_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12is_discardedEv:
43101|  11.8k|    {
43102|  11.8k|        return m_data.m_type == value_t::discarded;
43103|  11.8k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dumpEicbNS0_6detail15error_handler_tE:
42973|  36.2k|    {
42974|  36.2k|        string_t result;
42975|  36.2k|        detail::output_string_adapter<char, string_t> string_adapter(result);
42976|       |
42977|  36.2k|        if (indent >= 0)
  ------------------
  |  Branch (42977:13): [True: 0, False: 36.2k]
  ------------------
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|  36.2k|        else
42984|  36.2k|        {
42985|  36.2k|            serializer s(string_adapter, indent_char,
42986|  36.2k|                         false, ensure_ascii, 0, error_handler);
42987|  36.2k|            s.dump(*this);
42988|  36.2k|        }
42989|       |
42990|  36.2k|        return result;
42991|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2ERS9_:
30100|  36.2k|        : str(s)
30101|  36.2k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcEC2Ev:
29758|  36.2k|    output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcED2Ev:
29756|  36.2k|    virtual ~output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE16write_charactersEPKcm:
30109|  3.94M|    {
30110|  3.94M|        str.append(s, length);
30111|  3.94M|    }
_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|  36.2k|        : o(&s)
37674|  36.2k|        , number_buffer() // NOLINT(readability-redundant-member-init)
37675|  36.2k|        , string_buffer() // NOLINT(readability-redundant-member-init)
37676|  36.2k|        , indent_char(ichar)
37677|  36.2k|        , pretty_print(pretty_print_)
37678|  36.2k|        , ensure_ascii(ensure_ascii_)
37679|  36.2k|        , indent_step(indent_step_)
37680|  36.2k|        , error_handler(error_handler_)
37681|  36.2k|        , write_buffer() // NOLINT(readability-redundant-member-init)
37682|  36.2k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20uninitialized_bufferILm64EEC2Ev:
39810|  36.2k|        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|  36.2k|        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|  36.2k|        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|  36.2k|    {
37712|  36.2k|        dump_element(val, current_indent, 0);
37713|  36.2k|        flush();
37714|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_elementERKSG_mm:
37862|   727M|    {
37863|   727M|        if (val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array)
  ------------------
  |  Branch (37863:13): [True: 31.2k, False: 727M]
  |  Branch (37863:53): [True: 167k, False: 726M]
  ------------------
37864|   198k|        {
37865|   198k|            dump_container(val, current_indent, depth);
37866|   198k|        }
37867|   726M|        else
37868|   726M|        {
37869|   726M|            dump_scalar(val, current_indent);
37870|   726M|        }
37871|   727M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14dump_containerERKSG_mm:
37737|   198k|    {
37738|   198k|        JSON_ASSERT(val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array);
  ------------------
  |  | 2653|   198k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37738:9): [True: 31.2k, False: 167k]
  |  Branch (37738:9): [True: 167k, False: 0]
  |  Branch (37738:9): [True: 198k, False: 0]
  ------------------
37739|       |
37740|   198k|        if (JSON_HEDLEY_UNLIKELY(depth >= recursion_depth_limit()))
  ------------------
  |  | 1697|   198k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.44k, False: 195k]
  |  |  ------------------
  ------------------
37741|  3.44k|        {
37742|  3.44k|            dump_iteratively(val, current_indent);
37743|  3.44k|            return;
37744|  3.44k|        }
37745|       |
37746|   195k|        if (val.m_data.m_type == value_t::object)
  ------------------
  |  Branch (37746:13): [True: 30.8k, False: 164k]
  ------------------
37747|  30.8k|        {
37748|  30.8k|            if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (37748:17): [True: 8.79k, False: 22.0k]
  ------------------
37749|  8.79k|            {
37750|  8.79k|                put_literal("{}");
37751|  8.79k|                return;
37752|  8.79k|            }
37753|       |
37754|  22.0k|            if (pretty_print)
  ------------------
  |  Branch (37754:17): [True: 0, False: 22.0k]
  ------------------
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|  22.0k|            else
37780|  22.0k|            {
37781|  22.0k|                put_char('{');
37782|       |
37783|       |                // first n-1 elements
37784|  22.0k|                auto i = val.m_data.m_value.object->cbegin();
37785|  50.5k|                for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (37785:43): [True: 28.5k, False: 22.0k]
  ------------------
37786|  28.5k|                {
37787|  28.5k|                    put_object_key(i->first, "\":");
37788|  28.5k|                    dump_element(i->second, 0, depth + 1);
37789|  28.5k|                    put_char(',');
37790|  28.5k|                }
37791|       |
37792|       |                // last element
37793|  22.0k|                JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  22.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37793:17): [True: 22.0k, False: 0]
  ------------------
37794|  22.0k|                JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  22.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37794:17): [True: 22.0k, False: 0]
  ------------------
37795|  22.0k|                put_object_key(i->first, "\":");
37796|  22.0k|                dump_element(i->second, 0, depth + 1);
37797|       |
37798|  22.0k|                put_char('}');
37799|  22.0k|            }
37800|  22.0k|            return;
37801|  22.0k|        }
37802|       |
37803|   164k|        if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (37803:13): [True: 11.0k, False: 153k]
  ------------------
37804|  11.0k|        {
37805|  11.0k|            put_literal("[]");
37806|  11.0k|            return;
37807|  11.0k|        }
37808|       |
37809|   153k|        if (pretty_print)
  ------------------
  |  Branch (37809:13): [True: 0, False: 153k]
  ------------------
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|   153k|        else
37832|   153k|        {
37833|   153k|            put_char('[');
37834|       |
37835|       |            // first n-1 elements
37836|   153k|            for (auto i = val.m_data.m_value.array->cbegin();
37837|   727M|                    i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (37837:21): [True: 726M, False: 153k]
  ------------------
37838|   726M|            {
37839|   726M|                dump_element(*i, 0, depth + 1);
37840|   726M|                put_char(',');
37841|   726M|            }
37842|       |
37843|       |            // last element
37844|   153k|            JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2653|   153k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37844:13): [True: 153k, False: 0]
  ------------------
37845|   153k|            dump_element(val.m_data.m_value.array->back(), 0, depth + 1);
37846|       |
37847|   153k|            put_char(']');
37848|   153k|        }
37849|   153k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21recursion_depth_limitEv:
 8762|   728M|{
 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|   728M|    static_assert(std::is_integral<decltype(JSON_RECURSION_DEPTH_LIMIT)>::value
 8767|   728M|                  && !recursion_depth_limit_is_char_or_bool<typename std::remove_cv<decltype(JSON_RECURSION_DEPTH_LIMIT)>::type>::value,
 8768|   728M|                  "JSON_RECURSION_DEPTH_LIMIT must be an integer constant (not bool or a character type)");
 8769|   728M|    static_assert(JSON_RECURSION_DEPTH_LIMIT >= 0 && JSON_RECURSION_DEPTH_LIMIT <= 254,
 8770|   728M|                  "JSON_RECURSION_DEPTH_LIMIT must be between 0 and 254: the nesting depth is counted in a byte per thread "
 8771|   728M|                  "and may exceed the limit by one (see https://json.nlohmann.me/api/macros/json_recursion_depth_limit/)");
 8772|   728M|    return static_cast<std::size_t>(JSON_RECURSION_DEPTH_LIMIT);
  ------------------
  |  | 8697|   728M|    #define JSON_RECURSION_DEPTH_LIMIT 128
  ------------------
 8773|   728M|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16dump_iterativelyERKSG_m:
37884|  3.44k|    {
37885|       |        // Scalars, empty containers and binary values are written by dump_value
37886|       |        // alone, so nothing is allocated for them: only a container with
37887|       |        // elements is ever pushed.
37888|  3.44k|        std::vector<dump_frame> stack;
37889|       |
37890|  3.44k|        dump_value(val, current_indent, stack);
37891|       |
37892|   922k|        while (!stack.empty())
  ------------------
  |  Branch (37892:16): [True: 919k, False: 3.44k]
  ------------------
37893|   919k|        {
37894|   919k|            dump_frame& frame = stack.back();
37895|       |
37896|   919k|            if (frame.value->m_data.m_type == value_t::object)
  ------------------
  |  Branch (37896:17): [True: 2.46k, False: 917k]
  ------------------
37897|  2.46k|            {
37898|  2.46k|                const auto* object = frame.value->m_data.m_value.object;
37899|       |
37900|  2.46k|                if (frame.object_it == object->cend())
  ------------------
  |  Branch (37900:21): [True: 936, False: 1.53k]
  ------------------
37901|    936|                {
37902|    936|                    if (pretty_print)
  ------------------
  |  Branch (37902:25): [True: 0, False: 936]
  ------------------
37903|      0|                    {
37904|      0|                        put_literal_indent("\n", frame.current_indent);
37905|      0|                    }
37906|       |
37907|    936|                    put_char('}');
37908|    936|                    stack.pop_back();
37909|    936|                    continue;
37910|    936|                }
37911|       |
37912|       |                // the separator goes in front of every element but the first,
37913|       |                // which puts exactly one between each pair and none at the end
37914|  1.53k|                if (frame.object_it != object->cbegin())
  ------------------
  |  Branch (37914:21): [True: 594, False: 936]
  ------------------
37915|    594|                {
37916|    594|                    if (pretty_print)
  ------------------
  |  Branch (37916:25): [True: 0, False: 594]
  ------------------
37917|      0|                    {
37918|      0|                        put_literal(",\n");
37919|      0|                    }
37920|    594|                    else
37921|    594|                    {
37922|    594|                        put_char(',');
37923|    594|                    }
37924|    594|                }
37925|       |
37926|  1.53k|                if (pretty_print)
  ------------------
  |  Branch (37926:21): [True: 0, False: 1.53k]
  ------------------
37927|      0|                {
37928|      0|                    put_indent(frame.child_indent);
37929|      0|                }
37930|       |
37931|  1.53k|                if (pretty_print)
  ------------------
  |  Branch (37931:21): [True: 0, False: 1.53k]
  ------------------
37932|      0|                {
37933|      0|                    put_object_key(frame.object_it->first, "\": ");
37934|      0|                }
37935|  1.53k|                else
37936|  1.53k|                {
37937|  1.53k|                    put_object_key(frame.object_it->first, "\":");
37938|  1.53k|                }
37939|       |
37940|  1.53k|                const BasicJsonType& element = frame.object_it->second;
37941|  1.53k|                ++frame.object_it;
37942|       |
37943|       |                // read everything needed from the frame before this: entering a
37944|       |                // container pushes another one and can move them all
37945|  1.53k|                const std::size_t element_indent = frame.child_indent;
37946|  1.53k|                dump_value(element, element_indent, stack);
37947|  1.53k|            }
37948|   917k|            else
37949|   917k|            {
37950|   917k|                const auto* array = frame.value->m_data.m_value.array;
37951|       |
37952|   917k|                if (frame.array_it == array->cend())
  ------------------
  |  Branch (37952:21): [True: 8.01k, False: 909k]
  ------------------
37953|  8.01k|                {
37954|  8.01k|                    if (pretty_print)
  ------------------
  |  Branch (37954:25): [True: 0, False: 8.01k]
  ------------------
37955|      0|                    {
37956|      0|                        put_literal_indent("\n", frame.current_indent);
37957|      0|                    }
37958|       |
37959|  8.01k|                    put_char(']');
37960|  8.01k|                    stack.pop_back();
37961|  8.01k|                    continue;
37962|  8.01k|                }
37963|       |
37964|   909k|                if (frame.array_it != array->cbegin())
  ------------------
  |  Branch (37964:21): [True: 901k, False: 8.01k]
  ------------------
37965|   901k|                {
37966|   901k|                    if (pretty_print)
  ------------------
  |  Branch (37966:25): [True: 0, False: 901k]
  ------------------
37967|      0|                    {
37968|      0|                        put_literal(",\n");
37969|      0|                    }
37970|   901k|                    else
37971|   901k|                    {
37972|   901k|                        put_char(',');
37973|   901k|                    }
37974|   901k|                }
37975|       |
37976|   909k|                if (pretty_print)
  ------------------
  |  Branch (37976:21): [True: 0, False: 909k]
  ------------------
37977|      0|                {
37978|      0|                    put_indent(frame.child_indent);
37979|      0|                }
37980|       |
37981|   909k|                const BasicJsonType& element = *frame.array_it;
37982|   909k|                ++frame.array_it;
37983|       |
37984|       |                // see above
37985|   909k|                const std::size_t element_indent = frame.child_indent;
37986|   909k|                dump_value(element, element_indent, stack);
37987|   909k|            }
37988|   919k|        }
37989|  3.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_valueERKSG_mRNS6_INSH_10dump_frameENSA_ISK_EEEE:
38027|   914k|    {
38028|   914k|        switch (val.m_data.m_type)
38029|   914k|        {
38030|  2.11k|            case value_t::object:
  ------------------
  |  Branch (38030:13): [True: 2.11k, False: 911k]
  ------------------
38031|  2.11k|            {
38032|  2.11k|                if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (38032:21): [True: 1.17k, False: 936]
  ------------------
38033|  1.17k|                {
38034|  1.17k|                    put_literal("{}");
38035|  1.17k|                    return;
38036|  1.17k|                }
38037|       |
38038|    936|                std::size_t child_indent = current_indent;
38039|       |
38040|    936|                if (pretty_print)
  ------------------
  |  Branch (38040:21): [True: 0, False: 936]
  ------------------
38041|      0|                {
38042|      0|                    put_literal("{\n");
38043|      0|                    child_indent = next_indent(current_indent, indent_step);
38044|      0|                }
38045|    936|                else
38046|    936|                {
38047|    936|                    put_char('{');
38048|    936|                }
38049|       |
38050|    936|                stack.emplace_back(&val, current_indent, child_indent);
38051|    936|                stack.back().object_it = val.m_data.m_value.object->cbegin();
38052|    936|                return;
38053|  2.11k|            }
38054|       |
38055|  12.0k|            case value_t::array:
  ------------------
  |  Branch (38055:13): [True: 12.0k, False: 901k]
  ------------------
38056|  12.0k|            {
38057|  12.0k|                if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (38057:21): [True: 4.08k, False: 8.01k]
  ------------------
38058|  4.08k|                {
38059|  4.08k|                    put_literal("[]");
38060|  4.08k|                    return;
38061|  4.08k|                }
38062|       |
38063|  8.01k|                std::size_t child_indent = current_indent;
38064|       |
38065|  8.01k|                if (pretty_print)
  ------------------
  |  Branch (38065:21): [True: 0, False: 8.01k]
  ------------------
38066|      0|                {
38067|      0|                    put_literal("[\n");
38068|      0|                    child_indent = next_indent(current_indent, indent_step);
38069|      0|                }
38070|  8.01k|                else
38071|  8.01k|                {
38072|  8.01k|                    put_char('[');
38073|  8.01k|                }
38074|       |
38075|  8.01k|                stack.emplace_back(&val, current_indent, child_indent);
38076|  8.01k|                stack.back().array_it = val.m_data.m_value.array->cbegin();
38077|  8.01k|                return;
38078|  12.0k|            }
38079|       |
38080|     30|            case value_t::string:
  ------------------
  |  Branch (38080:13): [True: 30, False: 913k]
  ------------------
38081|     30|            case value_t::binary:
  ------------------
  |  Branch (38081:13): [True: 0, False: 914k]
  ------------------
38082|   307k|            case value_t::boolean:
  ------------------
  |  Branch (38082:13): [True: 307k, False: 606k]
  ------------------
38083|   308k|            case value_t::number_integer:
  ------------------
  |  Branch (38083:13): [True: 852, False: 913k]
  ------------------
38084|   310k|            case value_t::number_unsigned:
  ------------------
  |  Branch (38084:13): [True: 1.31k, False: 912k]
  ------------------
38085|   310k|            case value_t::number_float:
  ------------------
  |  Branch (38085:13): [True: 390, False: 913k]
  ------------------
38086|   310k|            case value_t::discarded:
  ------------------
  |  Branch (38086:13): [True: 0, False: 914k]
  ------------------
38087|   899k|            case value_t::null:
  ------------------
  |  Branch (38087:13): [True: 589k, False: 324k]
  ------------------
38088|   899k|            default:
  ------------------
  |  Branch (38088:13): [True: 0, False: 914k]
  ------------------
38089|   899k|                dump_scalar(val, current_indent);
38090|   899k|                return;
38091|   914k|        }
38092|   914k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_frameC2EPKSG_mm:
37997|  8.94k|            : value(value_)
37998|  8.94k|            , current_indent(current_indent_)
37999|  8.94k|            , child_indent(child_indent_)
38000|  8.94k|        {}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm3EEEvRAT__Kc:
39040|  42.7k|    {
39041|  42.7k|        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|  42.7k|        constexpr std::size_t length = N - 1;
39044|  42.7k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  42.7k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  42.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 252, False: 42.5k]
  |  |  ------------------
  ------------------
39047|    252|        {
39048|    252|            flush();
39049|    252|        }
39050|  42.7k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  42.7k|        write_buffer_pos += length;
39052|  42.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE18copy_plain_vectorsEPcPKcm:
38458|  3.30k|    {
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|  3.30k|        const __m128i a = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38477|  3.30k|        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|  3.30k|        const __m128i backslash = _mm_set1_epi8('\\');
38481|  3.30k|        const __m128i del = _mm_set1_epi8(0x7F);
38482|  3.30k|        const __m128i flip = _mm_set1_epi8(2);
38483|  3.30k|        const __m128i limit = _mm_set1_epi8(33);
38484|  3.30k|        const __m128i special = _mm_or_si128(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(a, backslash), _mm_cmpeq_epi8(b, backslash)),
38485|  3.30k|                                             _mm_or_si128(_mm_cmpeq_epi8(a, del), _mm_cmpeq_epi8(b, del))),
38486|  3.30k|                                             _mm_or_si128(_mm_cmplt_epi8(_mm_xor_si128(a, flip), limit), _mm_cmplt_epi8(_mm_xor_si128(b, flip), limit)));
38487|  3.30k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38487:13): [True: 3.01k, False: 282]
  ------------------
38488|  3.01k|        {
38489|  3.01k|            return false;
38490|  3.01k|        }
38491|    282|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d)), a); // NOLINT(bugprone-casting-through-void)
38492|    282|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d + n - 16)), b); // NOLINT(bugprone-casting-through-void)
38493|    282|#endif
38494|    282|        return true;
38495|  3.30k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17copy_plain_halvesEPcPKcm:
38423|  1.84k|    {
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|  1.84k|        const __m128i lo = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38440|  1.84k|        const __m128i hi = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p + n - 8))); // NOLINT(bugprone-casting-through-void)
38441|  1.84k|        const __m128i in = _mm_unpacklo_epi64(lo, hi);
38442|  1.84k|        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|  1.84k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
38444|  1.84k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38444:13): [True: 1.56k, False: 282]
  ------------------
38445|  1.56k|        {
38446|  1.56k|            return false;
38447|  1.56k|        }
38448|    282|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d)), lo); // NOLINT(bugprone-casting-through-void)
38449|    282|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d + n - 8)), hi); // NOLINT(bugprone-casting-through-void)
38450|    282|#endif
38451|    282|        return true;
38452|  1.84k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordIjEET_PKc:
38324|  9.01k|    {
38325|  9.01k|        WordType w;
38326|  9.01k|        std::memcpy(&w, p, sizeof(w));
38327|  9.01k|        return w;
38328|  9.01k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14swar_not_plainEm:
38314|  58.7k|    {
38315|  58.7k|        constexpr std::uint64_t ones = 0x0101010101010101ull;
38316|  58.7k|        const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'
38317|  58.7k|        const std::uint64_t b = v ^ 0x5C5C5C5C5C5C5C5Cull; // '\\'
38318|       |        // (see swar_string_special(): the bytes from 0x80 are flagged anyway)
38319|  58.7k|        return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v | (v + ones)) & 0x8080808080808080ull;
38320|  58.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordIjEEvPcT_:
38332|  1.48k|    {
38333|  1.48k|        std::memcpy(p, &w, sizeof(w));
38334|  1.48k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordItEET_PKc:
38324|  4.36k|    {
38325|  4.36k|        WordType w;
38326|  4.36k|        std::memcpy(&w, p, sizeof(w));
38327|  4.36k|        return w;
38328|  4.36k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordItEEvPcT_:
38332|  2.22k|    {
38333|  2.22k|        std::memcpy(p, &w, sizeof(w));
38334|  2.22k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_escapedERKSC_:
38517|  30.8k|    {
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|  30.8k|        if (ensure_ascii)
  ------------------
  |  Branch (38554:13): [True: 0, False: 30.8k]
  ------------------
38555|      0|        {
38556|      0|            dump_escaped_impl<true>(s);
38557|      0|        }
38558|  30.8k|        else
38559|  30.8k|        {
38560|  30.8k|            dump_escaped_impl<false>(s);
38561|  30.8k|        }
38562|  30.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16read_eight_bytesEPKh:
 9223|   265k|{
 9224|   265k|#if JSON_LITTLE_ENDIAN_TARGET
 9225|       |    // the byte order already matches
 9226|   265k|    std::uint64_t result = 0;
 9227|   265k|    std::memcpy(&result, b, sizeof(result));
 9228|   265k|    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|   265k|}
_ZN8nlohmann16json_abi_v3_12_06detail20count_trailing_zerosEm:
 9095|   237k|{
 9096|   237k|#if defined(__GNUC__) || defined(__clang__)
 9097|   237k|    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|   237k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12emit_pendingERm:
38566|   150k|    {
38567|   150k|        if (bytes != 0)
  ------------------
  |  Branch (38567:13): [True: 34.5k, False: 116k]
  ------------------
38568|  34.5k|        {
38569|  34.5k|            put_buffer(string_buffer, bytes);
38570|  34.5k|            bytes = 0;
38571|  34.5k|        }
38572|   150k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE7put_runISC_EEvRKT_mm:
39064|  50.5k|    {
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|  50.5k|        if (JSON_HEDLEY_UNLIKELY(length <= 16 && start + 16 <= str.size() && write_buffer_pos + 16 <= write_buffer.size()))
  ------------------
  |  | 1697|   180k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 29.8k, False: 20.7k]
  |  |  |  Branch (1697:94): [True: 48.9k, False: 1.65k]
  |  |  |  Branch (1697:94): [True: 30.0k, False: 18.9k]
  |  |  |  Branch (1697:94): [True: 29.8k, False: 174]
  |  |  ------------------
  ------------------
39068|  29.8k|        {
39069|  29.8k|            std::memcpy(write_buffer.data() + write_buffer_pos, str.data() + start, 16);
39070|  29.8k|            write_buffer_pos += length;
39071|  29.8k|            return;
39072|  29.8k|        }
39073|  20.7k|        put_string(str, start, start + length);
39074|  20.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringISC_EEvRKT_mm:
39087|  20.7k|    {
39088|  20.7k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|  20.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 20.7k, False: 0]
  ------------------
39089|  20.7k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|  20.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 20.7k, False: 0]
  ------------------
39090|       |
39091|  20.7k|        const char* const s = str.data() + start;
39092|  20.7k|        const std::size_t length = end - start;
39093|       |
39094|  20.7k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|  20.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 20.7k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|  20.7k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  20.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 132, False: 20.6k]
  |  |  ------------------
  ------------------
39101|    132|        {
39102|    132|            flush();
39103|    132|        }
39104|  20.7k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|  20.7k|        write_buffer_pos += length;
39106|  20.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE13ascii_escapesEv:
39200|   100k|    {
39201|   100k|        static const std::array<std::array<char, 8>, 0x60> escapes =
39202|   100k|        {
39203|   100k|            {
39204|   100k|                {{'\\', 'u', '0', '0', '0', '0', 0, 6}}, // 0x00
39205|   100k|                {{'\\', 'u', '0', '0', '0', '1', 0, 6}}, // 0x01
39206|   100k|                {{'\\', 'u', '0', '0', '0', '2', 0, 6}}, // 0x02
39207|   100k|                {{'\\', 'u', '0', '0', '0', '3', 0, 6}}, // 0x03
39208|   100k|                {{'\\', 'u', '0', '0', '0', '4', 0, 6}}, // 0x04
39209|   100k|                {{'\\', 'u', '0', '0', '0', '5', 0, 6}}, // 0x05
39210|   100k|                {{'\\', 'u', '0', '0', '0', '6', 0, 6}}, // 0x06
39211|   100k|                {{'\\', 'u', '0', '0', '0', '7', 0, 6}}, // 0x07
39212|   100k|                {{'\\', 'b', 0, 0, 0, 0, 0, 2}}, // 0x08
39213|   100k|                {{'\\', 't', 0, 0, 0, 0, 0, 2}}, // 0x09
39214|   100k|                {{'\\', 'n', 0, 0, 0, 0, 0, 2}}, // 0x0A
39215|   100k|                {{'\\', 'u', '0', '0', '0', 'b', 0, 6}}, // 0x0B
39216|   100k|                {{'\\', 'f', 0, 0, 0, 0, 0, 2}}, // 0x0C
39217|   100k|                {{'\\', 'r', 0, 0, 0, 0, 0, 2}}, // 0x0D
39218|   100k|                {{'\\', 'u', '0', '0', '0', 'e', 0, 6}}, // 0x0E
39219|   100k|                {{'\\', 'u', '0', '0', '0', 'f', 0, 6}}, // 0x0F
39220|   100k|                {{'\\', 'u', '0', '0', '1', '0', 0, 6}}, // 0x10
39221|   100k|                {{'\\', 'u', '0', '0', '1', '1', 0, 6}}, // 0x11
39222|   100k|                {{'\\', 'u', '0', '0', '1', '2', 0, 6}}, // 0x12
39223|   100k|                {{'\\', 'u', '0', '0', '1', '3', 0, 6}}, // 0x13
39224|   100k|                {{'\\', 'u', '0', '0', '1', '4', 0, 6}}, // 0x14
39225|   100k|                {{'\\', 'u', '0', '0', '1', '5', 0, 6}}, // 0x15
39226|   100k|                {{'\\', 'u', '0', '0', '1', '6', 0, 6}}, // 0x16
39227|   100k|                {{'\\', 'u', '0', '0', '1', '7', 0, 6}}, // 0x17
39228|   100k|                {{'\\', 'u', '0', '0', '1', '8', 0, 6}}, // 0x18
39229|   100k|                {{'\\', 'u', '0', '0', '1', '9', 0, 6}}, // 0x19
39230|   100k|                {{'\\', 'u', '0', '0', '1', 'a', 0, 6}}, // 0x1A
39231|   100k|                {{'\\', 'u', '0', '0', '1', 'b', 0, 6}}, // 0x1B
39232|   100k|                {{'\\', 'u', '0', '0', '1', 'c', 0, 6}}, // 0x1C
39233|   100k|                {{'\\', 'u', '0', '0', '1', 'd', 0, 6}}, // 0x1D
39234|   100k|                {{'\\', 'u', '0', '0', '1', 'e', 0, 6}}, // 0x1E
39235|   100k|                {{'\\', 'u', '0', '0', '1', 'f', 0, 6}}, // 0x1F
39236|   100k|                {{' ', 0, 0, 0, 0, 0, 0, 1}}, // 0x20
39237|   100k|                {{'!', 0, 0, 0, 0, 0, 0, 1}}, // 0x21
39238|   100k|                {{'\\', '"', 0, 0, 0, 0, 0, 2}}, // 0x22
39239|   100k|                {{'#', 0, 0, 0, 0, 0, 0, 1}}, // 0x23
39240|   100k|                {{'$', 0, 0, 0, 0, 0, 0, 1}}, // 0x24
39241|   100k|                {{'%', 0, 0, 0, 0, 0, 0, 1}}, // 0x25
39242|   100k|                {{'&', 0, 0, 0, 0, 0, 0, 1}}, // 0x26
39243|   100k|                {{'\'', 0, 0, 0, 0, 0, 0, 1}}, // 0x27
39244|   100k|                {{'(', 0, 0, 0, 0, 0, 0, 1}}, // 0x28
39245|   100k|                {{')', 0, 0, 0, 0, 0, 0, 1}}, // 0x29
39246|   100k|                {{'*', 0, 0, 0, 0, 0, 0, 1}}, // 0x2A
39247|   100k|                {{'+', 0, 0, 0, 0, 0, 0, 1}}, // 0x2B
39248|   100k|                {{',', 0, 0, 0, 0, 0, 0, 1}}, // 0x2C
39249|   100k|                {{'-', 0, 0, 0, 0, 0, 0, 1}}, // 0x2D
39250|   100k|                {{'.', 0, 0, 0, 0, 0, 0, 1}}, // 0x2E
39251|   100k|                {{'/', 0, 0, 0, 0, 0, 0, 1}}, // 0x2F
39252|   100k|                {{'0', 0, 0, 0, 0, 0, 0, 1}}, // 0x30
39253|   100k|                {{'1', 0, 0, 0, 0, 0, 0, 1}}, // 0x31
39254|   100k|                {{'2', 0, 0, 0, 0, 0, 0, 1}}, // 0x32
39255|   100k|                {{'3', 0, 0, 0, 0, 0, 0, 1}}, // 0x33
39256|   100k|                {{'4', 0, 0, 0, 0, 0, 0, 1}}, // 0x34
39257|   100k|                {{'5', 0, 0, 0, 0, 0, 0, 1}}, // 0x35
39258|   100k|                {{'6', 0, 0, 0, 0, 0, 0, 1}}, // 0x36
39259|   100k|                {{'7', 0, 0, 0, 0, 0, 0, 1}}, // 0x37
39260|   100k|                {{'8', 0, 0, 0, 0, 0, 0, 1}}, // 0x38
39261|   100k|                {{'9', 0, 0, 0, 0, 0, 0, 1}}, // 0x39
39262|   100k|                {{':', 0, 0, 0, 0, 0, 0, 1}}, // 0x3A
39263|   100k|                {{';', 0, 0, 0, 0, 0, 0, 1}}, // 0x3B
39264|   100k|                {{'<', 0, 0, 0, 0, 0, 0, 1}}, // 0x3C
39265|   100k|                {{'=', 0, 0, 0, 0, 0, 0, 1}}, // 0x3D
39266|   100k|                {{'>', 0, 0, 0, 0, 0, 0, 1}}, // 0x3E
39267|   100k|                {{'?', 0, 0, 0, 0, 0, 0, 1}}, // 0x3F
39268|   100k|                {{'@', 0, 0, 0, 0, 0, 0, 1}}, // 0x40
39269|   100k|                {{'A', 0, 0, 0, 0, 0, 0, 1}}, // 0x41
39270|   100k|                {{'B', 0, 0, 0, 0, 0, 0, 1}}, // 0x42
39271|   100k|                {{'C', 0, 0, 0, 0, 0, 0, 1}}, // 0x43
39272|   100k|                {{'D', 0, 0, 0, 0, 0, 0, 1}}, // 0x44
39273|   100k|                {{'E', 0, 0, 0, 0, 0, 0, 1}}, // 0x45
39274|   100k|                {{'F', 0, 0, 0, 0, 0, 0, 1}}, // 0x46
39275|   100k|                {{'G', 0, 0, 0, 0, 0, 0, 1}}, // 0x47
39276|   100k|                {{'H', 0, 0, 0, 0, 0, 0, 1}}, // 0x48
39277|   100k|                {{'I', 0, 0, 0, 0, 0, 0, 1}}, // 0x49
39278|   100k|                {{'J', 0, 0, 0, 0, 0, 0, 1}}, // 0x4A
39279|   100k|                {{'K', 0, 0, 0, 0, 0, 0, 1}}, // 0x4B
39280|   100k|                {{'L', 0, 0, 0, 0, 0, 0, 1}}, // 0x4C
39281|   100k|                {{'M', 0, 0, 0, 0, 0, 0, 1}}, // 0x4D
39282|   100k|                {{'N', 0, 0, 0, 0, 0, 0, 1}}, // 0x4E
39283|   100k|                {{'O', 0, 0, 0, 0, 0, 0, 1}}, // 0x4F
39284|   100k|                {{'P', 0, 0, 0, 0, 0, 0, 1}}, // 0x50
39285|   100k|                {{'Q', 0, 0, 0, 0, 0, 0, 1}}, // 0x51
39286|   100k|                {{'R', 0, 0, 0, 0, 0, 0, 1}}, // 0x52
39287|   100k|                {{'S', 0, 0, 0, 0, 0, 0, 1}}, // 0x53
39288|   100k|                {{'T', 0, 0, 0, 0, 0, 0, 1}}, // 0x54
39289|   100k|                {{'U', 0, 0, 0, 0, 0, 0, 1}}, // 0x55
39290|   100k|                {{'V', 0, 0, 0, 0, 0, 0, 1}}, // 0x56
39291|   100k|                {{'W', 0, 0, 0, 0, 0, 0, 1}}, // 0x57
39292|   100k|                {{'X', 0, 0, 0, 0, 0, 0, 1}}, // 0x58
39293|   100k|                {{'Y', 0, 0, 0, 0, 0, 0, 1}}, // 0x59
39294|   100k|                {{'Z', 0, 0, 0, 0, 0, 0, 1}}, // 0x5A
39295|   100k|                {{'[', 0, 0, 0, 0, 0, 0, 1}}, // 0x5B
39296|   100k|                {{'\\', '\\', 0, 0, 0, 0, 0, 2}}, // 0x5C
39297|   100k|                {{']', 0, 0, 0, 0, 0, 0, 1}}, // 0x5D
39298|   100k|                {{'^', 0, 0, 0, 0, 0, 0, 1}}, // 0x5E
39299|   100k|                {{'_', 0, 0, 0, 0, 0, 0, 1}}, // 0x5F
39300|   100k|            }
39301|   100k|        };
39302|   100k|        return escapes;
39303|   100k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_bufferILm512EEEvRKNS4_5arrayIcXT_EEEm:
39113|  46.0k|    {
39114|  46.0k|        put_string(buffer, 0, length);
39115|  46.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringINS4_5arrayIcLm512EEEEEvRKT_mm:
39087|  46.0k|    {
39088|  46.0k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|  46.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 46.0k, False: 0]
  ------------------
39089|  46.0k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|  46.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 46.0k, False: 0]
  ------------------
39090|       |
39091|  46.0k|        const char* const s = str.data() + start;
39092|  46.0k|        const std::size_t length = end - start;
39093|       |
39094|  46.0k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|  46.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 46.0k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|  46.0k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  46.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 45.9k]
  |  |  ------------------
  ------------------
39101|     66|        {
39102|     66|            flush();
39103|     66|        }
39104|  46.0k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|  46.0k|        write_buffer_pos += length;
39106|  46.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17validate_one_utf8EPKhm:
13120|   131k|{
13121|   131k|    const unsigned char c0 = data[0];
13122|   131k|    if (c0 >= 0xC2 && c0 <= 0xDF)  // U+0080..U+07FF
  ------------------
  |  Branch (13122:9): [True: 100k, False: 31.0k]
  |  Branch (13122:23): [True: 15.7k, False: 84.7k]
  ------------------
13123|  15.7k|    {
13124|  15.7k|        if (avail >= 2 && data[1] >= 0x80 && data[1] <= 0xBF)
  ------------------
  |  Branch (13124:13): [True: 12.7k, False: 3.00k]
  |  Branch (13124:27): [True: 8.60k, False: 4.13k]
  |  Branch (13124:46): [True: 2.66k, False: 5.94k]
  ------------------
13125|  2.66k|        {
13126|  2.66k|            return 2;
13127|  2.66k|        }
13128|  15.7k|    }
13129|   115k|    else if (c0 == 0xE0)  // U+0800..U+0FFF
  ------------------
  |  Branch (13129:14): [True: 7.23k, False: 108k]
  ------------------
13130|  7.23k|    {
13131|  7.23k|        if (avail >= 3 && data[1] >= 0xA0 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13131:13): [True: 6.67k, False: 558]
  |  Branch (13131:27): [True: 4.96k, False: 1.71k]
  |  Branch (13131:46): [True: 1.50k, False: 3.46k]
  |  Branch (13131:65): [True: 942, False: 564]
  |  Branch (13131:84): [True: 306, False: 636]
  ------------------
13132|    306|        {
13133|    306|            return 3;
13134|    306|        }
13135|  7.23k|    }
13136|   108k|    else if ((c0 >= 0xE1 && c0 <= 0xEC) || c0 == 0xEE || c0 == 0xEF)  // U+1000..U+CFFF, U+E000..U+FFFF
  ------------------
  |  Branch (13136:15): [True: 77.5k, False: 31.0k]
  |  Branch (13136:29): [True: 7.62k, False: 69.8k]
  |  Branch (13136:44): [True: 2.67k, False: 98.2k]
  |  Branch (13136:58): [True: 1.18k, False: 97.0k]
  ------------------
13137|  11.4k|    {
13138|  11.4k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13138:13): [True: 9.36k, False: 2.11k]
  |  Branch (13138:27): [True: 7.30k, False: 2.06k]
  |  Branch (13138:46): [True: 1.32k, False: 5.98k]
  |  Branch (13138:65): [True: 816, False: 504]
  |  Branch (13138:84): [True: 480, False: 336]
  ------------------
13139|    480|        {
13140|    480|            return 3;
13141|    480|        }
13142|  11.4k|    }
13143|  97.0k|    else if (c0 == 0xED)  // U+D000..U+D7FF (excludes surrogates)
  ------------------
  |  Branch (13143:14): [True: 7.32k, False: 89.7k]
  ------------------
13144|  7.32k|    {
13145|  7.32k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0x9F && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13145:13): [True: 6.69k, False: 636]
  |  Branch (13145:27): [True: 5.45k, False: 1.23k]
  |  Branch (13145:46): [True: 1.44k, False: 4.00k]
  |  Branch (13145:65): [True: 1.23k, False: 210]
  |  Branch (13145:84): [True: 618, False: 618]
  ------------------
13146|    618|        {
13147|    618|            return 3;
13148|    618|        }
13149|  7.32k|    }
13150|  89.7k|    else if (c0 == 0xF0)  // U+10000..U+3FFFF
  ------------------
  |  Branch (13150:14): [True: 7.25k, False: 82.5k]
  ------------------
13151|  7.25k|    {
13152|  7.25k|        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: 6.75k, False: 498]
  |  Branch (13152:27): [True: 4.83k, False: 1.92k]
  |  Branch (13152:46): [True: 2.19k, False: 2.64k]
  |  Branch (13152:65): [True: 1.56k, False: 630]
  |  Branch (13152:84): [True: 882, False: 684]
  |  Branch (13152:103): [True: 618, False: 264]
  |  Branch (13152:122): [True: 336, False: 282]
  ------------------
13153|    336|        {
13154|    336|            return 4;
13155|    336|        }
13156|  7.25k|    }
13157|  82.5k|    else if (c0 >= 0xF1 && c0 <= 0xF3)  // U+40000..U+FFFFF
  ------------------
  |  Branch (13157:14): [True: 51.4k, False: 31.0k]
  |  Branch (13157:28): [True: 8.62k, False: 42.8k]
  ------------------
13158|  8.62k|    {
13159|  8.62k|        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: 7.23k, False: 1.38k]
  |  Branch (13159:27): [True: 5.61k, False: 1.62k]
  |  Branch (13159:46): [True: 2.12k, False: 3.49k]
  |  Branch (13159:65): [True: 1.77k, False: 354]
  |  Branch (13159:84): [True: 1.18k, False: 582]
  |  Branch (13159:103): [True: 966, False: 222]
  |  Branch (13159:122): [True: 612, False: 354]
  ------------------
13160|    612|        {
13161|    612|            return 4;
13162|    612|        }
13163|  8.62k|    }
13164|  73.8k|    else if (c0 == 0xF4)  // U+100000..U+10FFFF
  ------------------
  |  Branch (13164:14): [True: 5.87k, False: 68.0k]
  ------------------
13165|  5.87k|    {
13166|  5.87k|        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: 5.19k, False: 678]
  |  Branch (13166:27): [True: 4.43k, False: 762]
  |  Branch (13166:46): [True: 2.59k, False: 1.83k]
  |  Branch (13166:65): [True: 2.26k, False: 330]
  |  Branch (13166:84): [True: 1.19k, False: 1.07k]
  |  Branch (13166:103): [True: 990, False: 204]
  |  Branch (13166:122): [True: 570, False: 420]
  ------------------
13167|    570|        {
13168|    570|            return 4;
13169|    570|        }
13170|  5.87k|    }
13171|   125k|    return 0; // invalid, incomplete, or must be diagnosed by the byte path
13172|   131k|}
_ZN8nlohmann16json_abi_v3_12_06detail6decodeERhRjh:
 7414|   183k|{
 7415|   183k|    static const std::array<std::uint8_t, 400> utf8d =
 7416|   183k|    {
 7417|   183k|        {
 7418|   183k|            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|   183k|            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|   183k|            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|   183k|            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|   183k|            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|   183k|            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|   183k|            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|   183k|            0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
 7426|   183k|            0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
 7427|   183k|            0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
 7428|   183k|            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|   183k|            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|   183k|            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|   183k|            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|   183k|        }
 7433|   183k|    };
 7434|       |
 7435|   183k|    JSON_ASSERT(static_cast<std::size_t>(byte) < utf8d.size());
  ------------------
  |  | 2653|   183k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7435:5): [True: 183k, False: 0]
  ------------------
 7436|   183k|    const std::uint8_t type = utf8d[byte];
 7437|       |
 7438|   183k|    codep = (state != UTF8_ACCEPT)
  ------------------
  |  Branch (7438:13): [True: 60.2k, False: 123k]
  ------------------
 7439|   183k|            ? (byte & 0x3fu) | (codep << 6u)
 7440|   183k|            : (0xFFu >> type) & (byte);
 7441|       |
 7442|   183k|    const std::size_t index = 256u + (static_cast<std::size_t>(state) * 16u) + static_cast<std::size_t>(type);
 7443|   183k|    JSON_ASSERT(index < utf8d.size());
  ------------------
  |  | 2653|   183k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7443:5): [True: 183k, False: 0]
  ------------------
 7444|   183k|    state = utf8d[index];
 7445|   183k|    return state;
 7446|   183k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE21reserve_string_bufferERm:
38578|   118k|    {
38579|   118k|        if (string_buffer.size() - bytes < 13)
  ------------------
  |  Branch (38579:13): [True: 0, False: 118k]
  ------------------
38580|      0|        {
38581|      0|            put_buffer(string_buffer, bytes);
38582|      0|            bytes = 0;
38583|      0|        }
38584|   118k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception9what_implIDnEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSA_iSC_T_:
 5676|  1.51k|    {
 5677|  1.51k|        return concat(name(ename, id_), diagnostics(context), what_arg);
 5678|  1.51k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_S9_RKS9_EEET_DpOT0_:
 5537|  2.45k|{
 5538|  2.45k|    OutStringType str;
 5539|  2.45k|    str.reserve(concat_length(args...));
 5540|  2.45k|    concat_into(str, std::forward<Args>(args)...);
 5541|  2.45k|    return str;
 5542|  2.45k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_S9_EEEmRKT_DpRKT0_:
 5447|  2.45k|{
 5448|  2.45k|    return str.size() + concat_length(rest...);
 5449|  2.45k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_EEEmRKT_DpRKT0_:
 5447|  35.0k|{
 5448|  35.0k|    return str.size() + concat_length(rest...);
 5449|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEmRKT_DpRKT0_:
 5447|   116k|{
 5448|   116k|    return str.size() + concat_length(rest...);
 5449|   116k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthEv:
 5423|   152k|{
 5424|   152k|    return 0;
 5425|   152k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  2.45k|{
 5501|  2.45k|    out.append(std::forward<Arg>(arg));
 5502|  2.45k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  2.45k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  35.0k|{
 5501|  35.0k|    out.append(std::forward<Arg>(arg));
 5502|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  68.1k|{
 5501|  68.1k|    out.append(std::forward<Arg>(arg));
 5502|  68.1k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  68.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEvRT_:
 5453|   152k|{}
_ZN8nlohmann16json_abi_v3_12_06detail9exception4nameERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEi:
 5669|  35.0k|    {
 5670|  35.0k|        return concat("[json.exception.", ename, '.', std::to_string(id_), "] ");
 5671|  35.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA17_KcRKS9_cS9_RA3_SA_EEET_DpOT0_:
 5537|  35.0k|{
 5538|  35.0k|    OutStringType str;
 5539|  35.0k|    str.reserve(concat_length(args...));
 5540|  35.0k|    concat_into(str, std::forward<Args>(args)...);
 5541|  35.0k|    return str;
 5542|  35.0k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcS9_A3_cEEEmPKcDpRKT_:
 5441|  35.0k|{
 5442|  35.0k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cEEEmRKT_DpRKT0_:
 5447|  35.0k|{
 5448|  35.0k|    return str.size() + concat_length(rest...);
 5449|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cEEEmcDpRKT_:
 5435|  35.0k|{
 5436|  35.0k|    return 1 + concat_length(rest...);
 5437|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cEEEmRKT_DpRKT0_:
 5447|  35.0k|{
 5448|  35.0k|    return str.size() + concat_length(rest...);
 5449|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJEEEmPKcDpRKT_:
 5441|  35.1k|{
 5442|  35.1k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  35.1k|}
_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|  35.0k|{
 5501|  35.0k|    out.append(std::forward<Arg>(arg));
 5502|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JcS9_RA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  35.0k|{
 5501|  35.0k|    out.append(std::forward<Arg>(arg));
 5502|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  35.0k|}
_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|  35.0k|{
 5510|  35.0k|    out += std::forward<Arg>(arg);
 5511|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  35.0k|{
 5501|  35.0k|    out.append(std::forward<Arg>(arg));
 5502|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  35.0k|{
 5501|  35.0k|    out.append(std::forward<Arg>(arg));
 5502|  35.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  35.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail9exception11diagnosticsEDn:
 5681|  34.1k|    {
 5682|  34.1k|        return "";
 5683|  34.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exceptionC2EiPKc:
 5666|  35.0k|    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
_ZNK8nlohmann16json_abi_v3_12_06detail9exception4whatEv:
 5657|  23.3k|    {
 5658|  23.3k|        return m.what();
 5659|  23.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  81.1k|{
 5442|  81.1k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  81.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA5_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  1.23k|{
 5501|  1.23k|    out.append(std::forward<Arg>(arg));
 5502|  1.23k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.23k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSB_OSC_DpOT1_:
 5500|  48.1k|{
 5501|  48.1k|    out.append(std::forward<Arg>(arg));
 5502|  48.1k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  48.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail8hex_byteEh:
 7225|  8.19k|{
 7226|  8.19k|    std::string result = "00";
 7227|  8.19k|    constexpr const char* nibble_to_hex = "0123456789ABCDEF";
 7228|  8.19k|    result[0] = nibble_to_hex[byte / 16];
 7229|  8.19k|    result[1] = nibble_to_hex[byte % 16];
 7230|  8.19k|    return result;
 7231|  8.19k|} // 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|  30.8k|    {
38600|  30.8k|        std::uint32_t codepoint{};
38601|  30.8k|        std::uint8_t state = UTF8_ACCEPT;
38602|  30.8k|        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|  30.8k|        std::size_t bytes_after_last_accept = 0;
38606|  30.8k|        std::size_t undumped_chars = 0;
38607|       |
38608|   314k|        for (std::size_t i = 0; i < s.size(); ++i)
  ------------------
  |  Branch (38608:33): [True: 291k, False: 23.6k]
  ------------------
38609|   291k|        {
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|   291k|            if (state == UTF8_ACCEPT)
  ------------------
  |  Branch (38623:17): [True: 231k, False: 60.2k]
  ------------------
38624|   231k|            {
38625|   231k|                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|   231k|                std::size_t run = 0;
38632|   231k|                if (!EnsureAscii)
  ------------------
  |  Branch (38632:21): [True: 231k, Folded]
  ------------------
38633|   231k|                {
38634|   231k|                    run = string_bulk_run(data + i, s.size() - i);
38635|   231k|                }
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|   231k|                if (run != 0)
  ------------------
  |  Branch (38640:21): [True: 50.5k, False: 180k]
  ------------------
38641|  50.5k|                {
38642|       |                    // emit any bytes still pending in string_buffer first to
38643|       |                    // preserve output order, then write the run directly
38644|  50.5k|                    emit_pending(bytes);
38645|  50.5k|                    put_run(s, i, run);
38646|  50.5k|                    bytes_after_last_accept = 0;
38647|  50.5k|                    undumped_chars = 0;
38648|  50.5k|                    i += run;
38649|  50.5k|                    if (i >= s.size())
  ------------------
  |  Branch (38649:25): [True: 7.19k, False: 43.3k]
  ------------------
38650|  7.19k|                    {
38651|  7.19k|                        break;
38652|  7.19k|                    }
38653|  50.5k|                }
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|   223k|                if (data[i] < 0x60)
  ------------------
  |  Branch (38661:21): [True: 100k, False: 123k]
  ------------------
38662|   100k|                {
38663|       |                    // emit any bytes still pending in string_buffer first to
38664|       |                    // preserve output order
38665|   100k|                    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|   100k|                    const auto& escape = ascii_escapes()[data[i]];
38670|   100k|                    if (JSON_HEDLEY_UNLIKELY(write_buffer.size() - write_buffer_pos < escape.size()))
  ------------------
  |  | 1697|   100k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 288, False: 99.9k]
  |  |  ------------------
  ------------------
38671|    288|                    {
38672|    288|                        flush();
38673|    288|                    }
38674|   100k|                    std::memcpy(write_buffer.data() + write_buffer_pos, escape.data(), escape.size());
38675|   100k|                    write_buffer_pos += static_cast<std::size_t>(escape[7]);
38676|   100k|                    bytes_after_last_accept = 0;
38677|   100k|                    undumped_chars = 0;
38678|   100k|                    continue;
38679|   100k|                }
38680|   223k|            }
38681|       |
38682|   183k|            const auto byte = static_cast<std::uint8_t>(s[i]);
38683|       |
38684|   183k|            if (EnsureAscii && state == UTF8_ACCEPT && byte >= 0x80)
  ------------------
  |  Branch (38684:17): [Folded, False: 183k]
  |  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|   183k|            switch (decode(state, codepoint, byte))
38706|   183k|            {
38707|      0|                case UTF8_ACCEPT:  // decode found a new code point
  ------------------
  |  Branch (38707:17): [True: 0, False: 183k]
  ------------------
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|   118k|                case UTF8_REJECT:  // decode found invalid UTF-8 byte
  ------------------
  |  Branch (38736:17): [True: 118k, False: 65.5k]
  ------------------
38737|   118k|                {
38738|   118k|                    switch (error_handler)
38739|   118k|                    {
38740|      0|                        case error_handler_t::strict:
  ------------------
  |  Branch (38740:25): [True: 0, False: 118k]
  ------------------
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: 118k]
  ------------------
38746|      0|                        case error_handler_t::replace:
  ------------------
  |  Branch (38746:25): [True: 0, False: 118k]
  ------------------
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|   118k|                        case error_handler_t::keep:
  ------------------
  |  Branch (38792:25): [True: 118k, False: 0]
  ------------------
38793|   118k|                        {
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|   118k|                            if (undumped_chars > 0)
  ------------------
  |  Branch (38797:33): [True: 50.4k, False: 67.8k]
  ------------------
38798|  50.4k|                            {
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|  50.4k|                                --i;
38804|  50.4k|                            }
38805|  67.8k|                            else
38806|  67.8k|                            {
38807|       |                                // a byte that cannot start a sequence (e.g.,
38808|       |                                // 0xFF or a stray continuation byte) is kept
38809|       |                                // as well
38810|  67.8k|                                string_buffer[bytes++] = s[i];
38811|  67.8k|                            }
38812|       |
38813|   118k|                            reserve_string_buffer(bytes);
38814|       |
38815|   118k|                            bytes_after_last_accept = bytes;
38816|   118k|                            undumped_chars = 0;
38817|       |
38818|       |                            // continue processing the string
38819|   118k|                            state = UTF8_ACCEPT;
38820|   118k|                            break;
38821|      0|                        }
38822|       |
38823|      0|                        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38823:25): [True: 0, False: 118k]
  ------------------
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|   118k|                    }
38826|   118k|                    break;
38827|   118k|                }
38828|       |
38829|   118k|                default:  // decode found yet incomplete multibyte code point
  ------------------
  |  Branch (38829:17): [True: 65.5k, False: 118k]
  ------------------
38830|  65.5k|                {
38831|  65.5k|                    if (!EnsureAscii || error_handler == error_handler_t::keep)
  ------------------
  |  Branch (38831:25): [True: 65.5k, Folded]
  |  Branch (38831:41): [True: 0, False: 0]
  ------------------
38832|  65.5k|                    {
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|  65.5k|                        string_buffer[bytes++] = s[i];
38838|  65.5k|                    }
38839|  65.5k|                    ++undumped_chars;
38840|  65.5k|                    break;
38841|   118k|                }
38842|   183k|            }
38843|   183k|        }
38844|       |
38845|       |        // we finished processing the string
38846|  30.8k|        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
  ------------------
  |  | 1696|  30.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 25.5k, False: 5.26k]
  |  |  ------------------
  ------------------
38847|  25.5k|        {
38848|       |            // write buffer
38849|  25.5k|            if (bytes > 0)
  ------------------
  |  Branch (38849:17): [True: 6.25k, False: 19.3k]
  ------------------
38850|  6.25k|            {
38851|  6.25k|                put_buffer(string_buffer, bytes);
38852|  6.25k|            }
38853|  25.5k|        }
38854|  5.26k|        else
38855|  5.26k|        {
38856|       |            // we finish reading, but do not accept: string was incomplete
38857|  5.26k|            switch (error_handler)
38858|  5.26k|            {
38859|      0|                case error_handler_t::strict:
  ------------------
  |  Branch (38859:17): [True: 0, False: 5.26k]
  ------------------
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: 5.26k]
  ------------------
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: 5.26k]
  ------------------
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|  5.26k|                case error_handler_t::keep:
  ------------------
  |  Branch (38887:17): [True: 5.26k, False: 0]
  ------------------
38888|  5.26k|                {
38889|       |                    // write the ill-formed trailing bytes as is; they were
38890|       |                    // buffered above regardless of EnsureAscii
38891|  5.26k|                    put_buffer(string_buffer, bytes);
38892|  5.26k|                    break;
38893|      0|                }
38894|       |
38895|      0|                default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38895:17): [True: 0, False: 5.26k]
  ------------------
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|  5.26k|            }
38898|  5.26k|        }
38899|  30.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail15string_bulk_runEPKhm:
13447|   243k|{
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|   243k|    return scalar_string_bulk_run(data, n);
13456|   243k|}
_ZN8nlohmann16json_abi_v3_12_06detail22scalar_string_bulk_runEPKhm:
13368|   243k|{
13369|   243k|    const unsigned char* const e = data + n;
13370|   243k|    const unsigned char* p = data;
13371|   243k|    while (p != e)
  ------------------
  |  Branch (13371:12): [True: 243k, False: 0]
  ------------------
13372|   243k|    {
13373|   243k|#if JSON_SCAN_VECTOR
13374|   243k|        p = plain_run_end(p, e);
13375|       |#else
13376|       |        p += find_string_special(p, static_cast<std::size_t>(e - p));
13377|       |#endif
13378|   243k|        if (p == e || *p < 0x80u)
  ------------------
  |  Branch (13378:13): [True: 6.77k, False: 236k]
  |  Branch (13378:23): [True: 108k, False: 128k]
  ------------------
13379|   115k|        {
13380|   115k|            break; // end of buffer, or a quote/escape/control byte
13381|   115k|        }
13382|   128k|#if JSON_SCAN_VECTOR_UTF8
13383|   128k|#if JSON_SCAN_SSSE3_DISPATCH
13384|   128k|        if (JSON_HEDLEY_LIKELY(cpu_has_ssse3()))
  ------------------
  |  | 1696|   128k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 128k, False: 0]
  |  |  ------------------
  ------------------
13385|   128k|#endif
13386|   128k|        {
13387|   128k|            return static_cast<std::size_t>(scan_string_vector(p, e) - data);
13388|   128k|        }
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|   115k|    return static_cast<std::size_t>(p - data);
13406|   243k|}
_ZN8nlohmann16json_abi_v3_12_06detail13plain_run_endEPKhS3_:
13333|   243k|{
13334|   243k|    constexpr int prefix_words = JSON_SCAN_NEON ? 4 : 1;
  ------------------
  |  |12600|   243k|    #define JSON_SCAN_NEON 0
  |  |  ------------------
  |  |  |  Branch (12600:28): [Folded, False: 243k]
  |  |  ------------------
  ------------------
13335|   248k|    for (int words = prefix_words; words > 0 && e - p >= 8; --words)
  ------------------
  |  Branch (13335:36): [True: 243k, False: 4.30k]
  |  Branch (13335:49): [True: 183k, False: 59.9k]
  ------------------
13336|   183k|    {
13337|   183k|        const std::uint64_t special = swar_string_special(read_eight_bytes(p));
13338|   183k|        if (special != 0)
  ------------------
  |  Branch (13338:13): [True: 179k, False: 4.30k]
  ------------------
13339|   179k|        {
13340|   179k|            return p + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13341|   179k|        }
13342|  4.30k|        p += 8;
13343|  4.30k|    }
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|  64.2k|    if (e - p >= 16)
  ------------------
  |  Branch (13348:9): [True: 3.17k, False: 61.1k]
  ------------------
13349|  3.17k|    {
13350|  3.17k|        p = vector_plain_run_long(p, e);
13351|  3.17k|        if (e - p >= 16)
  ------------------
  |  Branch (13351:13): [True: 2.76k, False: 408]
  ------------------
13352|  2.76k|        {
13353|  2.76k|            return p; // the vector loop stopped at a special byte
13354|  2.76k|        }
13355|  3.17k|    }
13356|  61.5k|    return p + find_string_special(p, static_cast<std::size_t>(e - p));
13357|  64.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail19swar_string_specialEm:
13004|   184k|{
13005|   184k|    constexpr std::uint64_t ones = 0x0101010101010101ull;
13006|   184k|    constexpr std::uint64_t high = 0x8080808080808080ull;
13007|   184k|    const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'  (0x22)
13008|   184k|    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|   184k|    return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v) & high;
13013|   184k|}
_ZN8nlohmann16json_abi_v3_12_06detail21vector_plain_run_longEPKhS3_:
12699|  3.17k|{
12700|  3.17k|    return vector_plain_run(p, e);
12701|  3.17k|}
_ZN8nlohmann16json_abi_v3_12_06detail16vector_plain_runEPKhS3_:
12659|  3.17k|{
12660|  5.06k|    while (e - p >= 16)
  ------------------
  |  Branch (12660:12): [True: 4.79k, False: 270]
  ------------------
12661|  4.79k|    {
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.79k|        const __m128i in = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
12675|  4.79k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12676|  4.79k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
12677|  4.79k|        const auto bits = static_cast<std::uint64_t>(static_cast<unsigned>(_mm_movemask_epi8(special)));
12678|  4.79k|        if (bits != 0)
  ------------------
  |  Branch (12678:13): [True: 2.90k, False: 1.89k]
  ------------------
12679|  2.90k|        {
12680|  2.90k|            return p + count_trailing_zeros(bits);
12681|  2.90k|        }
12682|  1.89k|#endif
12683|  1.89k|        p += 16;
12684|  1.89k|    }
12685|    270|    return p;
12686|  3.17k|}
_ZN8nlohmann16json_abi_v3_12_06detail19find_string_specialEPKhm:
13018|  61.5k|{
13019|  61.5k|    std::size_t i = 0;
13020|  61.7k|    for (; i + 8 <= n; i += 8)
  ------------------
  |  Branch (13020:12): [True: 780, False: 60.9k]
  ------------------
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: 522, False: 258]
  ------------------
13024|    522|        {
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|    522|            return i + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13028|    522|        }
13029|    780|    }
13030|  85.6k|    for (; i < n; ++i)
  ------------------
  |  Branch (13030:12): [True: 78.9k, False: 6.77k]
  ------------------
13031|  78.9k|    {
13032|  78.9k|        if (is_string_special(data[i]))
  ------------------
  |  Branch (13032:13): [True: 54.2k, False: 24.6k]
  ------------------
13033|  54.2k|        {
13034|  54.2k|            return i;
13035|  54.2k|        }
13036|  78.9k|    }
13037|  6.77k|    return n;
13038|  60.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail17is_string_specialEh:
12997|  83.3k|{
12998|  83.3k|    return c == '\"' || c == '\\' || c < 0x20u || c >= 0x80u;
  ------------------
  |  Branch (12998:12): [True: 1.38k, False: 82.0k]
  |  Branch (12998:25): [True: 2.97k, False: 79.0k]
  |  Branch (12998:38): [True: 21.0k, False: 57.9k]
  |  Branch (12998:51): [True: 29.4k, False: 28.4k]
  ------------------
12999|  83.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13cpu_has_ssse3Ev:
12726|   128k|{
12727|   128k|    static std::atomic<int> known{0}; // 0: not asked yet, 1: no, 2: yes
12728|   128k|    int state = known.load(std::memory_order_relaxed);
12729|   128k|    if (JSON_HEDLEY_UNLIKELY(state == 0))
  ------------------
  |  | 1697|   128k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 128k]
  |  |  ------------------
  ------------------
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|   128k|    return state == 2;
12735|   128k|}
_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|   128k|{
13317|   128k|    const unsigned char* block = p;
13318|   128k|    if (vector_utf8_run(p, e, block))
  ------------------
  |  Branch (13318:9): [True: 738, False: 127k]
  ------------------
13319|    738|    {
13320|    738|        return block;
13321|    738|    }
13322|   127k|    return scan_string_finish(p, block, e);
13323|   128k|}
_ZN8nlohmann16json_abi_v3_12_06detail15vector_utf8_runEPKhS3_RS3_:
12802|   128k|{
12803|   128k|    using lookup = utf8_lookup4<>;
12804|   128k|    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|   128k|    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|   128k|    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|   128k|    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|   128k|    const __m128i nibble = _mm_set1_epi8(0x0F);
12849|   128k|    const __m128i zero = _mm_setzero_si128();
12850|   128k|    __m128i prev = zero;
12851|   129k|    while (e - block >= 16)
  ------------------
  |  Branch (12851:12): [True: 85.9k, False: 43.2k]
  ------------------
12852|  85.9k|    {
12853|  85.9k|        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|  85.9k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12857|  85.9k|                                             _mm_cmpeq_epi8(_mm_subs_epu8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(32)), zero));
12858|  85.9k|        const __m128i prev1 = _mm_alignr_epi8(in, prev, 15);
12859|  85.9k|        const __m128i sc = _mm_and_si128(_mm_and_si128(_mm_shuffle_epi8(t1h, _mm_and_si128(_mm_srli_epi16(prev1, 4), nibble)),
12860|  85.9k|                                         _mm_shuffle_epi8(t1l, _mm_and_si128(prev1, nibble))),
12861|  85.9k|                                         _mm_shuffle_epi8(t2h, _mm_and_si128(_mm_srli_epi16(in, 4), nibble)));
12862|  85.9k|        const __m128i must23 = _mm_or_si128(_mm_subs_epu8(_mm_alignr_epi8(in, prev, 14), _mm_set1_epi8(0xE0 - 0x80)),
12863|  85.9k|                                            _mm_subs_epu8(_mm_alignr_epi8(in, prev, 13), _mm_set1_epi8(0xF0 - 0x80)));
12864|  85.9k|        const __m128i err = _mm_xor_si128(_mm_and_si128(must23, _mm_set1_epi8(static_cast<char>(-128))), sc);
12865|  85.9k|        const auto special_bits = static_cast<unsigned>(_mm_movemask_epi8(special));
12866|  85.9k|        const auto err_bits = ~static_cast<unsigned>(_mm_movemask_epi8(_mm_cmpeq_epi8(err, zero))) & 0xFFFFu;
12867|  85.9k|        if (special_bits != 0)
  ------------------
  |  Branch (12867:13): [True: 49.5k, False: 36.3k]
  ------------------
12868|  49.5k|        {
12869|  49.5k|            const auto k = static_cast<unsigned>(count_trailing_zeros(static_cast<std::uint64_t>(special_bits)));
12870|  49.5k|            if ((err_bits & ((2u << k) - 1u)) == 0)
  ------------------
  |  Branch (12870:17): [True: 738, False: 48.8k]
  ------------------
12871|    738|            {
12872|    738|                block_out = block + k;
12873|    738|                return true;
12874|    738|            }
12875|  48.8k|            break;
12876|  49.5k|        }
12877|  36.3k|        if (err_bits != 0)
  ------------------
  |  Branch (12877:13): [True: 35.4k, False: 912]
  ------------------
12878|  35.4k|        {
12879|  35.4k|            break;
12880|  35.4k|        }
12881|    912|        prev = in;
12882|    912|        block += 16;
12883|    912|    }
12884|   127k|#endif
12885|   127k|    block_out = block;
12886|   127k|    return false;
12887|   128k|}
_ZN8nlohmann16json_abi_v3_12_06detail18scan_string_finishEPKhS3_S3_:
13274|   127k|{
13275|   128k|    for (int i = 1; i <= 3 && block - i >= p; ++i)
  ------------------
  |  Branch (13275:21): [True: 128k, False: 186]
  |  Branch (13275:31): [True: 1.41k, False: 126k]
  ------------------
13276|  1.41k|    {
13277|  1.41k|        const unsigned char c = block[-i];
13278|  1.41k|        if (c < 0x80)
  ------------------
  |  Branch (13278:13): [True: 144, False: 1.27k]
  ------------------
13279|    144|        {
13280|    144|            break;
13281|    144|        }
13282|  1.27k|        if (c >= 0xC0)
  ------------------
  |  Branch (13282:13): [True: 324, False: 948]
  ------------------
13283|    324|        {
13284|    324|            const int len = 2 + static_cast<int>(c >= 0xE0) + static_cast<int>(c >= 0xF0);
13285|    324|            if (len > i)
  ------------------
  |  Branch (13285:17): [True: 210, False: 114]
  ------------------
13286|    210|            {
13287|    210|                block -= i;
13288|    210|            }
13289|    324|            break;
13290|    324|        }
13291|  1.27k|    }
13292|   136k|    for (p = block; p != e;)
  ------------------
  |  Branch (13292:21): [True: 136k, False: 888]
  ------------------
13293|   136k|    {
13294|   136k|        if (*p < 0x80)
  ------------------
  |  Branch (13294:13): [True: 4.49k, False: 131k]
  ------------------
13295|  4.49k|        {
13296|  4.49k|            if (is_string_special(*p))
  ------------------
  |  Branch (13296:17): [True: 702, False: 3.79k]
  ------------------
13297|    702|            {
13298|    702|                return p;
13299|    702|            }
13300|  3.79k|            ++p;
13301|  3.79k|            continue;
13302|  4.49k|        }
13303|   131k|        const std::size_t n = validate_one_utf8(p, static_cast<std::size_t>(e - p));
13304|   131k|        if (n == 0)
  ------------------
  |  Branch (13304:13): [True: 125k, False: 5.58k]
  ------------------
13305|   125k|        {
13306|   125k|            return p;
13307|   125k|        }
13308|  5.58k|        p += n;
13309|  5.58k|    }
13310|    888|    return p;
13311|   127k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE8put_charEc:
38914|   728M|    {
38915|   728M|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos == write_buffer.size()))
  ------------------
  |  | 1697|   728M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 919k, False: 727M]
  |  |  ------------------
  ------------------
38916|   919k|        {
38917|   919k|            flush();
38918|   919k|        }
38919|   728M|        write_buffer[write_buffer_pos++] = c;
38920|   728M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14put_object_keyILm3EEEvRKSC_RAT__Kc:
38294|  52.1k|    {
38295|  52.1k|#if JSON_LITTLE_ENDIAN_TARGET
38296|  52.1k|        if (put_short_quoted(s, tail))
  ------------------
  |  Branch (38296:13): [True: 34.4k, False: 17.6k]
  ------------------
38297|  34.4k|        {
38298|  34.4k|            return;
38299|  34.4k|        }
38300|  17.6k|#endif
38301|  17.6k|        put_char('"');
38302|  17.6k|        dump_escaped(s);
38303|  17.6k|        put_literal(tail);
38304|  17.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm3EEEbRKSC_RAT__Kc:
38348|  52.1k|    {
38349|  52.1k|        const std::size_t n = s.size();
38350|  52.1k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 486, False: 51.6k]
  |  Branch (38350:37): [True: 192, False: 51.4k]
  ------------------
38351|    678|        {
38352|    678|            return false;
38353|    678|        }
38354|       |
38355|  51.4k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|  51.4k|        const char* const p = s.data();
38357|       |
38358|  51.4k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 1.92k, False: 49.5k]
  ------------------
38359|  1.92k|        {
38360|  1.92k|#if JSON_SCAN_VECTOR
38361|  1.92k|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 1.77k, False: 150]
  |  Branch (38361:19): [True: 1.15k, False: 774]
  ------------------
38362|  1.77k|            {
38363|  1.77k|                return false;
38364|  1.77k|            }
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|  1.92k|        }
38376|  49.5k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 2.11k, False: 47.4k]
  ------------------
38377|  2.11k|        {
38378|  2.11k|            const auto a = load_word<std::uint32_t>(p);
38379|  2.11k|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|  2.11k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|  2.11k|                                    | (0x4141414141414141ull << (8 * n));
38383|  2.11k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 1.84k, False: 270]
  ------------------
38384|  1.84k|            {
38385|  1.84k|                return false;
38386|  1.84k|            }
38387|    270|            store_word(d, a);
38388|    270|            store_word(d + n - 4, b);
38389|    270|        }
38390|  47.4k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 960, False: 46.4k]
  ------------------
38391|    960|        {
38392|    960|            const auto a = load_word<std::uint16_t>(p);
38393|    960|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|    960|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|    960|                                    | (0x4141414141414141ull << (8 * n));
38396|    960|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 408, False: 552]
  ------------------
38397|    408|            {
38398|    408|                return false;
38399|    408|            }
38400|    552|            store_word(d, a);
38401|    552|            store_word(d + n - 2, b);
38402|    552|        }
38403|  46.4k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 28.2k, False: 18.1k]
  ------------------
38404|  28.2k|        {
38405|  28.2k|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|  28.2k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 12.9k, False: 15.3k]
  ------------------
38407|  12.9k|            {
38408|  12.9k|                return false;
38409|  12.9k|            }
38410|  15.3k|            *d = p[0];
38411|  15.3k|        }
38412|       |
38413|  34.4k|        d[-1] = '"';
38414|  34.4k|        std::memcpy(d + n, tail, N - 1);
38415|  34.4k|        write_buffer_pos += n + N;
38416|  34.4k|        return true;
38417|  51.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11dump_scalarERKSG_m:
38106|   727M|    {
38107|   727M|        switch (val.m_data.m_type)
38108|   727M|        {
38109|  33.0k|            case value_t::string:
  ------------------
  |  Branch (38109:13): [True: 33.0k, False: 727M]
  ------------------
38110|  33.0k|            {
38111|  33.0k|                dump_string_value(*val.m_data.m_value.string);
38112|  33.0k|                return;
38113|      0|            }
38114|       |
38115|      0|            case value_t::binary:
  ------------------
  |  Branch (38115:13): [True: 0, False: 727M]
  ------------------
38116|      0|            {
38117|      0|                dump_binary_value(current_indent, *val.m_data.m_value.binary);
38118|      0|                return;
38119|      0|            }
38120|       |
38121|   395M|            case value_t::boolean:
  ------------------
  |  Branch (38121:13): [True: 395M, False: 332M]
  ------------------
38122|   395M|            {
38123|   395M|                if (val.m_data.m_value.boolean)
  ------------------
  |  Branch (38123:21): [True: 44.5M, False: 350M]
  ------------------
38124|  44.5M|                {
38125|  44.5M|                    put_literal("true");
38126|  44.5M|                }
38127|   350M|                else
38128|   350M|                {
38129|   350M|                    put_literal("false");
38130|   350M|                }
38131|   395M|                return;
38132|      0|            }
38133|       |
38134|  38.2k|            case value_t::number_integer:
  ------------------
  |  Branch (38134:13): [True: 38.2k, False: 727M]
  ------------------
38135|  38.2k|            {
38136|  38.2k|                dump_signed_value(val.m_data.m_value.number_integer);
38137|  38.2k|                return;
38138|      0|            }
38139|       |
38140|  39.8k|            case value_t::number_unsigned:
  ------------------
  |  Branch (38140:13): [True: 39.8k, False: 727M]
  ------------------
38141|  39.8k|            {
38142|  39.8k|                dump_unsigned_value(val.m_data.m_value.number_unsigned);
38143|  39.8k|                return;
38144|      0|            }
38145|       |
38146|  31.2k|            case value_t::number_float:
  ------------------
  |  Branch (38146:13): [True: 31.2k, False: 727M]
  ------------------
38147|  31.2k|            {
38148|  31.2k|                dump_float_value(val.m_data.m_value.number_float);
38149|  31.2k|                return;
38150|      0|            }
38151|       |
38152|      0|            case value_t::discarded:
  ------------------
  |  Branch (38152:13): [True: 0, False: 727M]
  ------------------
38153|      0|            {
38154|      0|                put_literal("<discarded>");
38155|      0|                return;
38156|      0|            }
38157|       |
38158|   332M|            case value_t::null:
  ------------------
  |  Branch (38158:13): [True: 332M, False: 395M]
  ------------------
38159|   332M|            {
38160|   332M|                put_literal("null");
38161|   332M|                return;
38162|      0|            }
38163|       |
38164|      0|            case value_t::object: // LCOV_EXCL_LINE
  ------------------
  |  Branch (38164:13): [True: 0, False: 727M]
  ------------------
38165|      0|            case value_t::array:  // LCOV_EXCL_LINE
  ------------------
  |  Branch (38165:13): [True: 0, False: 727M]
  ------------------
38166|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38166:13): [True: 0, False: 727M]
  ------------------
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|   727M|        }
38169|   727M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_string_valueERKSC_:
38174|  33.0k|    {
38175|  33.0k|#if JSON_LITTLE_ENDIAN_TARGET
38176|  33.0k|        if (s.size() <= short_string_max && put_short_quoted(s, "\""))
  ------------------
  |  Branch (38176:13): [True: 31.4k, False: 1.51k]
  |  Branch (38176:45): [True: 19.7k, False: 11.6k]
  ------------------
38177|  19.7k|        {
38178|  19.7k|            return;
38179|  19.7k|        }
38180|  13.2k|#endif
38181|  13.2k|        put_char('"');
38182|  13.2k|        dump_escaped(s);
38183|  13.2k|        put_char('"');
38184|  13.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm2EEEbRKSC_RAT__Kc:
38348|  31.4k|    {
38349|  31.4k|        const std::size_t n = s.size();
38350|  31.4k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 0, False: 31.4k]
  |  Branch (38350:37): [True: 354, False: 31.1k]
  ------------------
38351|    354|        {
38352|    354|            return false;
38353|    354|        }
38354|       |
38355|  31.1k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|  31.1k|        const char* const p = s.data();
38357|       |
38358|  31.1k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 3.22k, False: 27.9k]
  ------------------
38359|  3.22k|        {
38360|  3.22k|#if JSON_SCAN_VECTOR
38361|  3.22k|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 2.80k, False: 414]
  |  Branch (38361:19): [True: 2.14k, False: 1.07k]
  ------------------
38362|  2.80k|            {
38363|  2.80k|                return false;
38364|  2.80k|            }
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|  3.22k|        }
38376|  27.9k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 2.38k, False: 25.5k]
  ------------------
38377|  2.38k|        {
38378|  2.38k|            const auto a = load_word<std::uint32_t>(p);
38379|  2.38k|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|  2.38k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|  2.38k|                                    | (0x4141414141414141ull << (8 * n));
38383|  2.38k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 1.91k, False: 474]
  ------------------
38384|  1.91k|            {
38385|  1.91k|                return false;
38386|  1.91k|            }
38387|    474|            store_word(d, a);
38388|    474|            store_word(d + n - 4, b);
38389|    474|        }
38390|  25.5k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 1.22k, False: 24.2k]
  ------------------
38391|  1.22k|        {
38392|  1.22k|            const auto a = load_word<std::uint16_t>(p);
38393|  1.22k|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|  1.22k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|  1.22k|                                    | (0x4141414141414141ull << (8 * n));
38396|  1.22k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 666, False: 558]
  ------------------
38397|    666|            {
38398|    666|                return false;
38399|    666|            }
38400|    558|            store_word(d, a);
38401|    558|            store_word(d + n - 2, b);
38402|    558|        }
38403|  24.2k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 23.7k, False: 504]
  ------------------
38404|  23.7k|        {
38405|  23.7k|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|  23.7k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 5.94k, False: 17.8k]
  ------------------
38407|  5.94k|            {
38408|  5.94k|                return false;
38409|  5.94k|            }
38410|  17.8k|            *d = p[0];
38411|  17.8k|        }
38412|       |
38413|  19.7k|        d[-1] = '"';
38414|  19.7k|        std::memcpy(d + n, tail, N - 1);
38415|  19.7k|        write_buffer_pos += n + N;
38416|  19.7k|        return true;
38417|  31.1k|    }
_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|  39.8k|    {
39528|  39.8k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|  39.8k|        {
39530|  39.8k|            {
39531|  39.8k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|  39.8k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|  39.8k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|  39.8k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|  39.8k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|  39.8k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|  39.8k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|  39.8k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|  39.8k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|  39.8k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|  39.8k|            }
39542|  39.8k|        };
39543|       |
39544|       |        // special case for "0"
39545|  39.8k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 3.84k, False: 35.9k]
  ------------------
39546|  3.84k|        {
39547|  3.84k|            put_char('0');
39548|  3.84k|            return;
39549|  3.84k|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|  35.9k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  35.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 222, False: 35.7k]
  |  |  ------------------
  ------------------
39553|    222|        {
39554|    222|            flush();
39555|    222|        }
39556|  35.9k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|  35.9k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|  35.9k|        unsigned int n_chars = 0;
39562|       |
39563|  35.9k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 0, False: 35.9k]
  ------------------
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|  35.9k|        else
39570|  35.9k|        {
39571|  35.9k|            abs_value = static_cast<number_magnitude_t>(x);
39572|  35.9k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|  35.9k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 32.8k, False: 3.13k]
  ------------------
39577|  32.8k|        {
39578|  32.8k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|  32.8k|            const std::uint64_t upper = value / 100000000u;
39580|  32.8k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 2.70k, False: 30.1k]
  ------------------
39581|  32.8k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|  32.8k|            char* const p = buffer_ptr + n_chars;
39583|  32.8k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|  32.8k|            n_chars += 8 - leading;
39585|  32.8k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 2.70k, False: 30.1k]
  ------------------
39586|  2.70k|            {
39587|  2.70k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  2.70k|                n_chars += 8;
39589|  2.70k|            }
39590|  32.8k|            write_buffer_pos += n_chars;
39591|  32.8k|            return;
39592|  32.8k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  3.13k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 3.13k, False: 0]
  ------------------
39596|  3.13k|        {
39597|  3.13k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  3.13k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  3.13k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  3.13k|            const std::uint64_t middle = low16 / 100000000u;
39601|  3.13k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  3.13k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  3.13k|            char* const p = buffer_ptr + n_chars;
39604|  3.13k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  3.13k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  3.13k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  3.13k|            write_buffer_pos += n_chars + 24 - leading;
39608|  3.13k|            return;
39609|  3.13k|        }
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|  35.9k|    {
39416|  35.9k|        return false;
39417|  35.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11remove_signEl:
39793|  9.98k|    {
39794|  9.98k|        JSON_ASSERT(x < 0);
  ------------------
  |  | 2653|  9.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39794:9): [True: 9.98k, False: 0]
  ------------------
39795|  9.98k|        return static_cast<number_magnitude_t>(static_cast<number_magnitude_t>(-(x + 1)) + 1);
39796|  9.98k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl17eight_digit_bytesEm:
37132|   103k|{
37133|   103k|    const std::uint64_t abcd_efgh = abcdefgh + (((std::uint64_t{1} << 32u) - 10000u) * ((abcdefgh * (((std::uint64_t{1} << 40u) / 10000u) + 1u)) >> 40u));
37134|   103k|    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|   103k|    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|   103k|}
_ZN8nlohmann16json_abi_v3_12_06detail19count_leading_zerosEm:
 9062|   159k|{
 9063|   159k|#if defined(__GNUC__) || defined(__clang__)
 9064|   159k|    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|   159k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl15store_msb_firstEPcm:
37142|   106k|{
37143|   106k|#if JSON_LITTLE_ENDIAN_TARGET
37144|   106k|    v = byteswap(v);
37145|   106k|    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|   106k|}
_ZN8nlohmann16json_abi_v3_12_06detail8byteswapEm:
 9172|   205k|{
 9173|   205k|#if defined(__GNUC__) || defined(__clang__)
 9174|   205k|    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|   205k|}
_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|  8.14k|    {
39775|  8.14k|        return true;
39776|  8.14k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm5EEEvRAT__Kc:
39040|   376M|    {
39041|   376M|        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|   376M|        constexpr std::size_t length = N - 1;
39044|   376M|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|   376M|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|   376M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 921k, False: 375M]
  |  |  ------------------
  ------------------
39047|   921k|        {
39048|   921k|            flush();
39049|   921k|        }
39050|   376M|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|   376M|        write_buffer_pos += length;
39052|   376M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm6EEEvRAT__Kc:
39040|   350M|    {
39041|   350M|        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|   350M|        constexpr std::size_t length = N - 1;
39044|   350M|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|   350M|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|   350M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.06M, False: 348M]
  |  |  ------------------
  ------------------
39047|  2.06M|        {
39048|  2.06M|            flush();
39049|  2.06M|        }
39050|   350M|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|   350M|        write_buffer_pos += length;
39052|   350M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_signed_valueEl:
38191|  38.2k|    {
38192|  38.2k|        dump_integer(x);
38193|  38.2k|    }
_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|  38.2k|    {
39528|  38.2k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|  38.2k|        {
39530|  38.2k|            {
39531|  38.2k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|  38.2k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|  38.2k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|  38.2k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|  38.2k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|  38.2k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|  38.2k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|  38.2k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|  38.2k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|  38.2k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|  38.2k|            }
39542|  38.2k|        };
39543|       |
39544|       |        // special case for "0"
39545|  38.2k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 2.70k, False: 35.5k]
  ------------------
39546|  2.70k|        {
39547|  2.70k|            put_char('0');
39548|  2.70k|            return;
39549|  2.70k|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|  35.5k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  35.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 564, False: 34.9k]
  |  |  ------------------
  ------------------
39553|    564|        {
39554|    564|            flush();
39555|    564|        }
39556|  35.5k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|  35.5k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|  35.5k|        unsigned int n_chars = 0;
39562|       |
39563|  35.5k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 9.98k, False: 25.5k]
  ------------------
39564|  9.98k|        {
39565|  9.98k|            *buffer_ptr = '-';
39566|  9.98k|            abs_value = remove_sign(static_cast<number_integer_t>(x));
39567|  9.98k|            n_chars = 1;
39568|  9.98k|        }
39569|  25.5k|        else
39570|  25.5k|        {
39571|  25.5k|            abs_value = static_cast<number_magnitude_t>(x);
39572|  25.5k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|  35.5k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 30.5k, False: 5.00k]
  ------------------
39577|  30.5k|        {
39578|  30.5k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|  30.5k|            const std::uint64_t upper = value / 100000000u;
39580|  30.5k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 6.61k, False: 23.9k]
  ------------------
39581|  30.5k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|  30.5k|            char* const p = buffer_ptr + n_chars;
39583|  30.5k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|  30.5k|            n_chars += 8 - leading;
39585|  30.5k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 6.61k, False: 23.9k]
  ------------------
39586|  6.61k|            {
39587|  6.61k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  6.61k|                n_chars += 8;
39589|  6.61k|            }
39590|  30.5k|            write_buffer_pos += n_chars;
39591|  30.5k|            return;
39592|  30.5k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  5.00k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 5.00k, False: 0]
  ------------------
39596|  5.00k|        {
39597|  5.00k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  5.00k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  5.00k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  5.00k|            const std::uint64_t middle = low16 / 100000000u;
39601|  5.00k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  5.00k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  5.00k|            char* const p = buffer_ptr + n_chars;
39604|  5.00k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  5.00k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  5.00k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  5.00k|            write_buffer_pos += n_chars + 24 - leading;
39608|  5.00k|            return;
39609|  5.00k|        }
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|  35.5k|    {
39410|  35.5k|        return x < 0;
39411|  35.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE19dump_unsigned_valueEm:
38196|  39.8k|    {
38197|  39.8k|        dump_integer(x);
38198|  39.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16dump_float_valueEd:
38201|  31.2k|    {
38202|  31.2k|        dump_float(x);
38203|  31.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEd:
39652|  31.2k|    {
39653|       |        // NaN / inf
39654|  31.2k|        if (!std::isfinite(x))
  ------------------
  |  Branch (39654:13): [True: 864, False: 30.3k]
  ------------------
39655|    864|        {
39656|    864|            put_literal("null");
39657|    864|            return;
39658|    864|        }
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|  30.3k|        static constexpr bool is_ieee_single_or_double
39667|  30.3k|            = (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|  30.3k|        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
39671|  30.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEdNS4_17integral_constantIbLb1EEE:
39674|  30.3k|    {
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|  30.3k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  30.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 204, False: 30.1k]
  |  |  ------------------
  ------------------
39678|    204|        {
39679|    204|            flush();
39680|    204|        }
39681|  30.3k|        auto* begin = write_buffer.data() + write_buffer_pos;
39682|  30.3k|        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
39683|  30.3k|        write_buffer_pos += static_cast<std::size_t>(end - begin);
39684|  30.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail8to_charsIdEEPcS3_PKcT_:
37575|  30.3k|{
37576|  30.3k|    JSON_ASSERT(std::isfinite(value));
  ------------------
  |  | 2653|  30.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37576:5): [True: 30.3k, False: 0]
  ------------------
37577|       |
37578|       |    // Use signbit(value) instead of (value < 0) since signbit works for -0.
37579|  30.3k|    if (std::signbit(value))
  ------------------
  |  Branch (37579:9): [True: 3.55k, False: 26.7k]
  ------------------
37580|  3.55k|    {
37581|  3.55k|        value = -value;
37582|  3.55k|        *first++ = '-';
37583|  3.55k|    }
37584|       |
37585|  30.3k|#ifdef __GNUC__
37586|  30.3k|    JSON_HEDLEY_DIAGNOSTIC_PUSH
37587|  30.3k|    JSON_HEDLEY_PRAGMA(GCC diagnostic ignored "-Wfloat-equal")
37588|  30.3k|#endif
37589|  30.3k|    if (value == 0) // +-0
  ------------------
  |  Branch (37589:9): [True: 2.35k, False: 27.9k]
  ------------------
37590|  2.35k|    {
37591|  2.35k|        *first++ = '0';
37592|       |        // Make it look like a floating-point number (#362, #378)
37593|  2.35k|        *first++ = '.';
37594|  2.35k|        *first++ = '0';
37595|  2.35k|        return first;
37596|  2.35k|    }
37597|  27.9k|#ifdef __GNUC__
37598|  27.9k|    JSON_HEDLEY_DIAGNOSTIC_POP
37599|  27.9k|#endif
37600|       |
37601|  27.9k|    return dtoa_impl::write_positive(first, last, value);
37602|  30.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_:
37555|  27.9k|{
37556|  27.9k|    return write_positive(first, last, value, is_binary64<FloatType> {});
37557|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_NSt3__117integral_constantIbLb1EEE:
37537|  27.9k|{
37538|  27.9k|    return write_positive_zmij(first, last, value);
37539|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl19write_positive_zmijIdEEPcS4_PKcT_:
37515|  27.9k|{
37516|  27.9k|    static_assert(is_binary64<FloatType>::value,
37517|  27.9k|                  "internal error: the conversion of Zmij needs IEEE 754 binary64 numbers");
37518|  27.9k|    const auto bits = bit_cast<std::uint64_t>(value);
37519|  27.9k|    const zmij::shortest_decimal d = zmij::to_shortest(bits);
37520|  27.9k|    if (JSON_HEDLEY_LIKELY(last - first >= 41))
  ------------------
  |  | 1696|  27.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 27.9k, False: 0]
  |  |  ------------------
  ------------------
37521|  27.9k|    {
37522|  27.9k|        return write_shortest(first, d);
37523|  27.9k|    }
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|  27.9k|{
 9130|  27.9k|    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|  27.9k|    To to {};
 9135|  27.9k|    std::memcpy(&to, &from, sizeof(To));
 9136|  27.9k|    return to;
 9137|  27.9k|#endif
 9138|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11to_shortestEm:
36050|  27.9k|{
36051|  27.9k|    constexpr int extra_shift = 9;
36052|  27.9k|    const auto raw_exp = static_cast<int>((bits >> 52u) & 0x7FFu);
36053|  27.9k|    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|  27.9k|    const bool regular = bin_sig != 0 || raw_exp <= 1;
  ------------------
  |  Branch (36055:26): [True: 26.2k, False: 1.72k]
  |  Branch (36055:42): [True: 0, False: 1.72k]
  ------------------
36056|  27.9k|    const int bin_exp = (raw_exp == 0 ? 1 : raw_exp) - 1075;
  ------------------
  |  Branch (36056:26): [True: 3.11k, False: 24.8k]
  ------------------
36057|  27.9k|    if (raw_exp != 0)
  ------------------
  |  Branch (36057:9): [True: 24.8k, False: 3.11k]
  ------------------
36058|  24.8k|    {
36059|  24.8k|        bin_sig |= std::uint64_t{1} << 52u;
36060|  24.8k|    }
36061|       |    // floor(log10(2^bin_exp)), or floor(log10(3/4 * 2^bin_exp)) for the irregular case
36062|  27.9k|    const int dec_exp = ((bin_exp * 315653) - (regular ? 0 : 131072)) >> 20;
  ------------------
  |  Branch (36062:48): [True: 26.2k, False: 1.72k]
  ------------------
36063|       |    // scaled by 10^(-dec_exp - 1): the integral part is the shorter candidate
36064|  27.9k|    const int shift = bin_exp + ((-(dec_exp + 1) * 217707) >> 16) + 1 + extra_shift;
36065|  27.9k|    const uint128_parts p10 = pow10(-dec_exp - 1);
36066|  27.9k|    const uint128_parts p = umul192_hi128(p10.high, p10.low, bin_sig << static_cast<unsigned>(shift));
36067|  27.9k|    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|  27.9k|    constexpr auto fractional_low_shift = static_cast<unsigned>(extra_shift);
36070|  27.9k|    constexpr unsigned fractional_high_shift = 64u - fractional_low_shift;
36071|  27.9k|    const std::uint64_t fractional = (p.high << fractional_high_shift) | (p.low >> fractional_low_shift);
36072|  27.9k|    std::uint64_t digit = 0;
36073|  27.9k|    bool round_up = false;
36074|  27.9k|    bool round_down = false;
36075|  27.9k|    if (JSON_HEDLEY_LIKELY(regular))
  ------------------
  |  | 1696|  27.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 26.2k, False: 1.72k]
  |  |  ------------------
  ------------------
36076|  26.2k|    {
36077|  26.2k|        const std::uint64_t half_ulp = (p10.high >> static_cast<unsigned>(extra_shift + 1 - shift)) + (1 - (bin_sig & 1u));
36078|  26.2k|        round_up = fractional + half_ulp < fractional;
36079|  26.2k|        round_down = half_ulp > fractional;
36080|       |        // the last digit of the longer candidate, rounded to nearest
36081|  26.2k|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) + 6);
36082|  26.2k|        if (fractional == (std::uint64_t{1} << 62u))
  ------------------
  |  Branch (36082:13): [True: 1.05k, False: 25.2k]
  ------------------
36083|  1.05k|        {
36084|  1.05k|            digit = 2; // 2.5 rounds to 2
36085|  1.05k|        }
36086|  26.2k|    }
36087|  1.72k|    else
36088|  1.72k|    {
36089|  1.72k|        const std::uint64_t half_ulp = p10.high >> static_cast<unsigned>(extra_shift + 1 - shift);
36090|  1.72k|        round_up = half_ulp > ~std::uint64_t{0} - fractional;
36091|  1.72k|        round_down = (half_ulp >> 1u) > fractional;
36092|  1.72k|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) - 1);
36093|  1.72k|        const std::uint64_t lowest = umul128_add_hi64(fractional - (half_ulp >> 1u), 10, ~std::uint64_t{0});
36094|  1.72k|        digit = digit < lowest ? lowest : digit;
  ------------------
  |  Branch (36094:17): [True: 780, False: 942]
  ------------------
36095|  1.72k|    }
36096|  27.9k|    integral += round_up ? 1u : 0u;
  ------------------
  |  Branch (36096:17): [True: 4.66k, False: 23.3k]
  ------------------
36097|       |    // if the shorter candidate is outside the rounding interval: one digit more
36098|  27.9k|    return shortest_decimal{integral, dec_exp, static_cast<unsigned char>(digit), !round_up && !round_down};
  ------------------
  |  Branch (36098:83): [True: 23.3k, False: 4.66k]
  |  Branch (36098:96): [True: 16.1k, False: 7.17k]
  ------------------
36099|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij5pow10Ei:
36004|  27.9k|{
36005|  27.9k|    if (k > pow5_128_largest_power)
  ------------------
  |  Branch (36005:9): [True: 3.82k, False: 24.1k]
  ------------------
36006|  3.82k|    {
36007|  3.82k|        return compute_pow10(k); // (only for the smallest doubles)
36008|  3.82k|    }
36009|  24.1k|    const auto i = 2 * static_cast<std::size_t>(k - pow5_128_smallest_power);
36010|  24.1k|    uint128_parts r{pow5_128()[i + 1], pow5_128()[i]};
36011|  24.1k|    const std::uint64_t adjust = static_cast<unsigned>(k + 27) < 27u ? 1u : 0u;
  ------------------
  |  Branch (36011:34): [True: 10.2k, False: 13.8k]
  ------------------
36012|  24.1k|    r.high -= r.low < adjust ? 1u : 0u;
  ------------------
  |  Branch (36012:15): [True: 0, False: 24.1k]
  ------------------
36013|  24.1k|    r.low -= adjust;
36014|  24.1k|    return r;
36015|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13compute_pow10Ei:
35974|  3.82k|{
35975|  3.82k|    const auto i = static_cast<unsigned>(k + 307);
35976|  3.82k|    const std::uint64_t m = pow10_minor()[(i + 24) % 28];
35977|  3.82k|    const std::size_t j = 2 * static_cast<std::size_t>((i + 24) / 28);
35978|  3.82k|    const std::uint64_t h_hi = pow10_major()[j];
35979|  3.82k|    const std::uint64_t h_lo = pow10_major()[j + 1];
35980|  3.82k|    const std::uint64_t h1 = full_multiplication(h_lo, m).high;
35981|  3.82k|    const std::uint64_t c0 = h_lo * m;
35982|  3.82k|    const std::uint64_t c1 = h1 + (h_hi * m);
35983|  3.82k|    const std::uint64_t c2 = (c1 < h1 ? 1u : 0u) + full_multiplication(h_hi, m).high;
  ------------------
  |  Branch (35983:31): [True: 300, False: 3.52k]
  ------------------
35984|  3.82k|    uint128_parts r{};
35985|  3.82k|    if ((c2 >> 63u) != 0)
  ------------------
  |  Branch (35985:9): [True: 666, False: 3.15k]
  ------------------
35986|    666|    {
35987|    666|        r.high = c2;
35988|    666|        r.low = c1;
35989|    666|    }
35990|  3.15k|    else
35991|  3.15k|    {
35992|  3.15k|        r.high = (c2 << 1u) | (c1 >> 63u);
35993|  3.15k|        r.low = (c1 << 1u) | (c0 >> 63u);
35994|  3.15k|    }
35995|  3.82k|    r.low -= (pow10_fixups()[i >> 5u] >> (i & 31u)) & 1u;
35996|  3.82k|    return r;
35997|  3.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_minorEv:
35922|  3.82k|{
35923|  3.82k|    static const std::array<std::uint64_t, 28> table =
35924|  3.82k|    {
35925|  3.82k|        {
35926|  3.82k|            0x8000000000000000u, 0xa000000000000000u, 0xc800000000000000u, 0xfa00000000000000u, 0x9c40000000000000u,
35927|  3.82k|            0xc350000000000000u, 0xf424000000000000u, 0x9896800000000000u, 0xbebc200000000000u, 0xee6b280000000000u,
35928|  3.82k|            0x9502f90000000000u, 0xba43b74000000000u, 0xe8d4a51000000000u, 0x9184e72a00000000u, 0xb5e620f480000000u,
35929|  3.82k|            0xe35fa931a0000000u, 0x8e1bc9bf04000000u, 0xb1a2bc2ec5000000u, 0xde0b6b3a76400000u, 0x8ac7230489e80000u,
35930|  3.82k|            0xad78ebc5ac620000u, 0xd8d726b7177a8000u, 0x878678326eac9000u, 0xa968163f0a57b400u, 0xd3c21bcecceda100u,
35931|  3.82k|            0x84595161401484a0u, 0xa56fa5b99019a5c8u, 0xcecb8f27f4200f3au
35932|  3.82k|        }
35933|  3.82k|    };
35934|  3.82k|    return table;
35935|  3.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_majorEv:
35939|  7.64k|{
35940|  7.64k|    static const std::array<std::uint64_t, 50> table =
35941|  7.64k|    {
35942|  7.64k|        {
35943|  7.64k|            0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3eu, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44ddau, 0xb1442798f49ffb4au, 0x99cd11cfdf41779du,
35944|  7.64k|            0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u, 0xb4bca50b065abe63u, 0x0fed077a756b53aau, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d543u,
35945|  7.64k|            0xb84687c269ef3bfbu, 0x3d5d514f40eea742u, 0xba121a4650e4ddebu, 0x92f34d62616ce413u, 0xbbe226efb628afeau, 0x890489f70a55368cu,
35946|  7.64k|            0xbdb6b8e905cb600fu, 0x5400e987bbc1c921u, 0xbf8fdb78849a5f96u, 0xde98520472bdd034u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
35947|  7.64k|            0xc350000000000000u, 0x0000000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef6u,
35948|  7.64k|            0xc913936dd571c84cu, 0x03bc3a19cd1e38eau, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc6u, 0xcd036837130890a1u, 0x36dba887c37a8c10u,
35949|  7.64k|            0xcf02b2c21207ef2eu, 0x94f967e45e03f4bcu, 0xd106f86e69d785c7u, 0xe13336d701beba52u, 0xd31045a8341ca07cu, 0x1ede48111209a051u,
35950|  7.64k|            0xd51ea6fa85785631u, 0x552a74227f3ea566u, 0xd732290fbacaf133u, 0xa97c177947ad4096u, 0xd94ad8b1c7380874u, 0x18375281ae7822bdu,
35951|  7.64k|            0xdb68c2ca82ed2a05u, 0xa67398db9f6820e1u
35952|  7.64k|        }
35953|  7.64k|    };
35954|  7.64k|    return table;
35955|  7.64k|}
_ZN8nlohmann16json_abi_v3_12_06detail19full_multiplicationEmm:
 9195|   118k|{
 9196|   118k|#if defined(__SIZEOF_INT128__)
 9197|   118k|    __extension__ using uint128 = unsigned __int128;
 9198|   118k|    const uint128 r = static_cast<uint128>(a) * b;
 9199|   118k|    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|   118k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij12pow10_fixupsEv:
35959|  3.82k|{
35960|  3.82k|    static const std::array<std::uint32_t, 21> table =
35961|  3.82k|    {
35962|  3.82k|        {
35963|  3.82k|            0x8d8fc810u, 0x06100293u, 0x19000000u, 0x00100000u, 0x00000908u, 0x00000000u, 0x04e00300u, 0x3807e0b2u, 0x3d83d793u, 0x0006f5ccu,
35964|  3.82k|            0x00000000u, 0xffff0000u, 0x8076337du, 0x4ff45ba0u, 0x09405033u, 0x034376d9u, 0x09000000u, 0x4e100501u, 0x076d14dcu, 0xf964f45eu,
35965|  3.82k|            0x0000003du
35966|  3.82k|        }
35967|  3.82k|    };
35968|  3.82k|    return table;
35969|  3.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail8pow5_128Ev:
11090|  73.2k|{
11091|  73.2k|    static const std::array<std::uint64_t, 1302> table =
11092|  73.2k|    {
11093|  73.2k|        {
11094|  73.2k|            0xeef453d6923bd65au, 0x113faa2906a13b3fu, 0x9558b4661b6565f8u, 0x4ac7ca59a424c507u,
11095|  73.2k|            0xbaaee17fa23ebf76u, 0x5d79bcf00d2df649u, 0xe95a99df8ace6f53u, 0xf4d82c2c107973dcu,
11096|  73.2k|            0x91d8a02bb6c10594u, 0x79071b9b8a4be869u, 0xb64ec836a47146f9u, 0x9748e2826cdee284u,
11097|  73.2k|            0xe3e27a444d8d98b7u, 0xfd1b1b2308169b25u, 0x8e6d8c6ab0787f72u, 0xfe30f0f5e50e20f7u,
11098|  73.2k|            0xb208ef855c969f4fu, 0xbdbd2d335e51a935u, 0xde8b2b66b3bc4723u, 0xad2c788035e61382u,
11099|  73.2k|            0x8b16fb203055ac76u, 0x4c3bcb5021afcc31u, 0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3du,
11100|  73.2k|            0xd953e8624b85dd78u, 0xd71d6dad34a2af0du, 0x87d4713d6f33aa6bu, 0x8672648c40e5ad68u,
11101|  73.2k|            0xa9c98d8ccb009506u, 0x680efdaf511f18c2u, 0xd43bf0effdc0ba48u, 0x0212bd1b2566def2u,
11102|  73.2k|            0x84a57695fe98746du, 0x014bb630f7604b57u, 0xa5ced43b7e3e9188u, 0x419ea3bd35385e2du,
11103|  73.2k|            0xcf42894a5dce35eau, 0x52064cac828675b9u, 0x818995ce7aa0e1b2u, 0x7343efebd1940993u,
11104|  73.2k|            0xa1ebfb4219491a1fu, 0x1014ebe6c5f90bf8u, 0xca66fa129f9b60a6u, 0xd41a26e077774ef6u,
11105|  73.2k|            0xfd00b897478238d0u, 0x8920b098955522b4u, 0x9e20735e8cb16382u, 0x55b46e5f5d5535b0u,
11106|  73.2k|            0xc5a890362fddbc62u, 0xeb2189f734aa831du, 0xf712b443bbd52b7bu, 0xa5e9ec7501d523e4u,
11107|  73.2k|            0x9a6bb0aa55653b2du, 0x47b233c92125366eu, 0xc1069cd4eabe89f8u, 0x999ec0bb696e840au,
11108|  73.2k|            0xf148440a256e2c76u, 0xc00670ea43ca250du, 0x96cd2a865764dbcau, 0x380406926a5e5728u,
11109|  73.2k|            0xbc807527ed3e12bcu, 0xc605083704f5ecf2u, 0xeba09271e88d976bu, 0xf7864a44c633682eu,
11110|  73.2k|            0x93445b8731587ea3u, 0x7ab3ee6afbe0211du, 0xb8157268fdae9e4cu, 0x5960ea05bad82964u,
11111|  73.2k|            0xe61acf033d1a45dfu, 0x6fb92487298e33bdu, 0x8fd0c16206306babu, 0xa5d3b6d479f8e056u,
11112|  73.2k|            0xb3c4f1ba87bc8696u, 0x8f48a4899877186cu, 0xe0b62e2929aba83cu, 0x331acdabfe94de87u,
11113|  73.2k|            0x8c71dcd9ba0b4925u, 0x9ff0c08b7f1d0b14u, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44dd9u,
11114|  73.2k|            0xdb71e91432b1a24au, 0xc9e82cd9f69d6150u, 0x892731ac9faf056eu, 0xbe311c083a225cd2u,
11115|  73.2k|            0xab70fe17c79ac6cau, 0x6dbd630a48aaf406u, 0xd64d3d9db981787du, 0x092cbbccdad5b108u,
11116|  73.2k|            0x85f0468293f0eb4eu, 0x25bbf56008c58ea5u, 0xa76c582338ed2621u, 0xaf2af2b80af6f24eu,
11117|  73.2k|            0xd1476e2c07286faau, 0x1af5af660db4aee1u, 0x82cca4db847945cau, 0x50d98d9fc890ed4du,
11118|  73.2k|            0xa37fce126597973cu, 0xe50ff107bab528a0u, 0xcc5fc196fefd7d0cu, 0x1e53ed49a96272c8u,
11119|  73.2k|            0xff77b1fcbebcdc4fu, 0x25e8e89c13bb0f7au, 0x9faacf3df73609b1u, 0x77b191618c54e9acu,
11120|  73.2k|            0xc795830d75038c1du, 0xd59df5b9ef6a2417u, 0xf97ae3d0d2446f25u, 0x4b0573286b44ad1du,
11121|  73.2k|            0x9becce62836ac577u, 0x4ee367f9430aec32u, 0xc2e801fb244576d5u, 0x229c41f793cda73fu,
11122|  73.2k|            0xf3a20279ed56d48au, 0x6b43527578c1110fu, 0x9845418c345644d6u, 0x830a13896b78aaa9u,
11123|  73.2k|            0xbe5691ef416bd60cu, 0x23cc986bc656d553u, 0xedec366b11c6cb8fu, 0x2cbfbe86b7ec8aa8u,
11124|  73.2k|            0x94b3a202eb1c3f39u, 0x7bf7d71432f3d6a9u, 0xb9e08a83a5e34f07u, 0xdaf5ccd93fb0cc53u,
11125|  73.2k|            0xe858ad248f5c22c9u, 0xd1b3400f8f9cff68u, 0x91376c36d99995beu, 0x23100809b9c21fa1u,
11126|  73.2k|            0xb58547448ffffb2du, 0xabd40a0c2832a78au, 0xe2e69915b3fff9f9u, 0x16c90c8f323f516cu,
11127|  73.2k|            0x8dd01fad907ffc3bu, 0xae3da7d97f6792e3u, 0xb1442798f49ffb4au, 0x99cd11cfdf41779cu,
11128|  73.2k|            0xdd95317f31c7fa1du, 0x40405643d711d583u, 0x8a7d3eef7f1cfc52u, 0x482835ea666b2572u,
11129|  73.2k|            0xad1c8eab5ee43b66u, 0xda3243650005eecfu, 0xd863b256369d4a40u, 0x90bed43e40076a82u,
11130|  73.2k|            0x873e4f75e2224e68u, 0x5a7744a6e804a291u, 0xa90de3535aaae202u, 0x711515d0a205cb36u,
11131|  73.2k|            0xd3515c2831559a83u, 0x0d5a5b44ca873e03u, 0x8412d9991ed58091u, 0xe858790afe9486c2u,
11132|  73.2k|            0xa5178fff668ae0b6u, 0x626e974dbe39a872u, 0xce5d73ff402d98e3u, 0xfb0a3d212dc8128fu,
11133|  73.2k|            0x80fa687f881c7f8eu, 0x7ce66634bc9d0b99u, 0xa139029f6a239f72u, 0x1c1fffc1ebc44e80u,
11134|  73.2k|            0xc987434744ac874eu, 0xa327ffb266b56220u, 0xfbe9141915d7a922u, 0x4bf1ff9f0062baa8u,
11135|  73.2k|            0x9d71ac8fada6c9b5u, 0x6f773fc3603db4a9u, 0xc4ce17b399107c22u, 0xcb550fb4384d21d3u,
11136|  73.2k|            0xf6019da07f549b2bu, 0x7e2a53a146606a48u, 0x99c102844f94e0fbu, 0x2eda7444cbfc426du,
11137|  73.2k|            0xc0314325637a1939u, 0xfa911155fefb5308u, 0xf03d93eebc589f88u, 0x793555ab7eba27cau,
11138|  73.2k|            0x96267c7535b763b5u, 0x4bc1558b2f3458deu, 0xbbb01b9283253ca2u, 0x9eb1aaedfb016f16u,
11139|  73.2k|            0xea9c227723ee8bcbu, 0x465e15a979c1cadcu, 0x92a1958a7675175fu, 0x0bfacd89ec191ec9u,
11140|  73.2k|            0xb749faed14125d36u, 0xcef980ec671f667bu, 0xe51c79a85916f484u, 0x82b7e12780e7401au,
11141|  73.2k|            0x8f31cc0937ae58d2u, 0xd1b2ecb8b0908810u, 0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u,
11142|  73.2k|            0xdfbdcece67006ac9u, 0x67a791e093e1d49au, 0x8bd6a141006042bdu, 0xe0c8bb2c5c6d24e0u,
11143|  73.2k|            0xaecc49914078536du, 0x58fae9f773886e18u, 0xda7f5bf590966848u, 0xaf39a475506a899eu,
11144|  73.2k|            0x888f99797a5e012du, 0x6d8406c952429603u, 0xaab37fd7d8f58178u, 0xc8e5087ba6d33b83u,
11145|  73.2k|            0xd5605fcdcf32e1d6u, 0xfb1e4a9a90880a64u, 0x855c3be0a17fcd26u, 0x5cf2eea09a55067fu,
11146|  73.2k|            0xa6b34ad8c9dfc06fu, 0xf42faa48c0ea481eu, 0xd0601d8efc57b08bu, 0xf13b94daf124da26u,
11147|  73.2k|            0x823c12795db6ce57u, 0x76c53d08d6b70858u, 0xa2cb1717b52481edu, 0x54768c4b0c64ca6eu,
11148|  73.2k|            0xcb7ddcdda26da268u, 0xa9942f5dcf7dfd09u, 0xfe5d54150b090b02u, 0xd3f93b35435d7c4cu,
11149|  73.2k|            0x9efa548d26e5a6e1u, 0xc47bc5014a1a6dafu, 0xc6b8e9b0709f109au, 0x359ab6419ca1091bu,
11150|  73.2k|            0xf867241c8cc6d4c0u, 0xc30163d203c94b62u, 0x9b407691d7fc44f8u, 0x79e0de63425dcf1du,
11151|  73.2k|            0xc21094364dfb5636u, 0x985915fc12f542e4u, 0xf294b943e17a2bc4u, 0x3e6f5b7b17b2939du,
11152|  73.2k|            0x979cf3ca6cec5b5au, 0xa705992ceecf9c42u, 0xbd8430bd08277231u, 0x50c6ff782a838353u,
11153|  73.2k|            0xece53cec4a314ebdu, 0xa4f8bf5635246428u, 0x940f4613ae5ed136u, 0x871b7795e136be99u,
11154|  73.2k|            0xb913179899f68584u, 0x28e2557b59846e3fu, 0xe757dd7ec07426e5u, 0x331aeada2fe589cfu,
11155|  73.2k|            0x9096ea6f3848984fu, 0x3ff0d2c85def7621u, 0xb4bca50b065abe63u, 0x0fed077a756b53a9u,
11156|  73.2k|            0xe1ebce4dc7f16dfbu, 0xd3e8495912c62894u, 0x8d3360f09cf6e4bdu, 0x64712dd7abbbd95cu,
11157|  73.2k|            0xb080392cc4349decu, 0xbd8d794d96aacfb3u, 0xdca04777f541c567u, 0xecf0d7a0fc5583a0u,
11158|  73.2k|            0x89e42caaf9491b60u, 0xf41686c49db57244u, 0xac5d37d5b79b6239u, 0x311c2875c522ced5u,
11159|  73.2k|            0xd77485cb25823ac7u, 0x7d633293366b828bu, 0x86a8d39ef77164bcu, 0xae5dff9c02033197u,
11160|  73.2k|            0xa8530886b54dbdebu, 0xd9f57f830283fdfcu, 0xd267caa862a12d66u, 0xd072df63c324fd7bu,
11161|  73.2k|            0x8380dea93da4bc60u, 0x4247cb9e59f71e6du, 0xa46116538d0deb78u, 0x52d9be85f074e608u,
11162|  73.2k|            0xcd795be870516656u, 0x67902e276c921f8bu, 0x806bd9714632dff6u, 0x00ba1cd8a3db53b6u,
11163|  73.2k|            0xa086cfcd97bf97f3u, 0x80e8a40eccd228a4u, 0xc8a883c0fdaf7df0u, 0x6122cd128006b2cdu,
11164|  73.2k|            0xfad2a4b13d1b5d6cu, 0x796b805720085f81u, 0x9cc3a6eec6311a63u, 0xcbe3303674053bb0u,
11165|  73.2k|            0xc3f490aa77bd60fcu, 0xbedbfc4411068a9cu, 0xf4f1b4d515acb93bu, 0xee92fb5515482d44u,
11166|  73.2k|            0x991711052d8bf3c5u, 0x751bdd152d4d1c4au, 0xbf5cd54678eef0b6u, 0xd262d45a78a0635du,
11167|  73.2k|            0xef340a98172aace4u, 0x86fb897116c87c34u, 0x9580869f0e7aac0eu, 0xd45d35e6ae3d4da0u,
11168|  73.2k|            0xbae0a846d2195712u, 0x8974836059cca109u, 0xe998d258869facd7u, 0x2bd1a438703fc94bu,
11169|  73.2k|            0x91ff83775423cc06u, 0x7b6306a34627ddcfu, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d542u,
11170|  73.2k|            0xe41f3d6a7377eecau, 0x20caba5f1d9e4a93u, 0x8e938662882af53eu, 0x547eb47b7282ee9cu,
11171|  73.2k|            0xb23867fb2a35b28du, 0xe99e619a4f23aa43u, 0xdec681f9f4c31f31u, 0x6405fa00e2ec94d4u,
11172|  73.2k|            0x8b3c113c38f9f37eu, 0xde83bc408dd3dd04u, 0xae0b158b4738705eu, 0x9624ab50b148d445u,
11173|  73.2k|            0xd98ddaee19068c76u, 0x3badd624dd9b0957u, 0x87f8a8d4cfa417c9u, 0xe54ca5d70a80e5d6u,
11174|  73.2k|            0xa9f6d30a038d1dbcu, 0x5e9fcf4ccd211f4cu, 0xd47487cc8470652bu, 0x7647c3200069671fu,
11175|  73.2k|            0x84c8d4dfd2c63f3bu, 0x29ecd9f40041e073u, 0xa5fb0a17c777cf09u, 0xf468107100525890u,
11176|  73.2k|            0xcf79cc9db955c2ccu, 0x7182148d4066eeb4u, 0x81ac1fe293d599bfu, 0xc6f14cd848405530u,
11177|  73.2k|            0xa21727db38cb002fu, 0xb8ada00e5a506a7cu, 0xca9cf1d206fdc03bu, 0xa6d90811f0e4851cu,
11178|  73.2k|            0xfd442e4688bd304au, 0x908f4a166d1da663u, 0x9e4a9cec15763e2eu, 0x9a598e4e043287feu,
11179|  73.2k|            0xc5dd44271ad3cdbau, 0x40eff1e1853f29fdu, 0xf7549530e188c128u, 0xd12bee59e68ef47cu,
11180|  73.2k|            0x9a94dd3e8cf578b9u, 0x82bb74f8301958ceu, 0xc13a148e3032d6e7u, 0xe36a52363c1faf01u,
11181|  73.2k|            0xf18899b1bc3f8ca1u, 0xdc44e6c3cb279ac1u, 0x96f5600f15a7b7e5u, 0x29ab103a5ef8c0b9u,
11182|  73.2k|            0xbcb2b812db11a5deu, 0x7415d448f6b6f0e7u, 0xebdf661791d60f56u, 0x111b495b3464ad21u,
11183|  73.2k|            0x936b9fcebb25c995u, 0xcab10dd900beec34u, 0xb84687c269ef3bfbu, 0x3d5d514f40eea742u,
11184|  73.2k|            0xe65829b3046b0afau, 0x0cb4a5a3112a5112u, 0x8ff71a0fe2c2e6dcu, 0x47f0e785eaba72abu,
11185|  73.2k|            0xb3f4e093db73a093u, 0x59ed216765690f56u, 0xe0f218b8d25088b8u, 0x306869c13ec3532cu,
11186|  73.2k|            0x8c974f7383725573u, 0x1e414218c73a13fbu, 0xafbd2350644eeacfu, 0xe5d1929ef90898fau,
11187|  73.2k|            0xdbac6c247d62a583u, 0xdf45f746b74abf39u, 0x894bc396ce5da772u, 0x6b8bba8c328eb783u,
11188|  73.2k|            0xab9eb47c81f5114fu, 0x066ea92f3f326564u, 0xd686619ba27255a2u, 0xc80a537b0efefebdu,
11189|  73.2k|            0x8613fd0145877585u, 0xbd06742ce95f5f36u, 0xa798fc4196e952e7u, 0x2c48113823b73704u,
11190|  73.2k|            0xd17f3b51fca3a7a0u, 0xf75a15862ca504c5u, 0x82ef85133de648c4u, 0x9a984d73dbe722fbu,
11191|  73.2k|            0xa3ab66580d5fdaf5u, 0xc13e60d0d2e0ebbau, 0xcc963fee10b7d1b3u, 0x318df905079926a8u,
11192|  73.2k|            0xffbbcfe994e5c61fu, 0xfdf17746497f7052u, 0x9fd561f1fd0f9bd3u, 0xfeb6ea8bedefa633u,
11193|  73.2k|            0xc7caba6e7c5382c8u, 0xfe64a52ee96b8fc0u, 0xf9bd690a1b68637bu, 0x3dfdce7aa3c673b0u,
11194|  73.2k|            0x9c1661a651213e2du, 0x06bea10ca65c084eu, 0xc31bfa0fe5698db8u, 0x486e494fcff30a62u,
11195|  73.2k|            0xf3e2f893dec3f126u, 0x5a89dba3c3efccfau, 0x986ddb5c6b3a76b7u, 0xf89629465a75e01cu,
11196|  73.2k|            0xbe89523386091465u, 0xf6bbb397f1135823u, 0xee2ba6c0678b597fu, 0x746aa07ded582e2cu,
11197|  73.2k|            0x94db483840b717efu, 0xa8c2a44eb4571cdcu, 0xba121a4650e4ddebu, 0x92f34d62616ce413u,
11198|  73.2k|            0xe896a0d7e51e1566u, 0x77b020baf9c81d17u, 0x915e2486ef32cd60u, 0x0ace1474dc1d122eu,
11199|  73.2k|            0xb5b5ada8aaff80b8u, 0x0d819992132456bau, 0xe3231912d5bf60e6u, 0x10e1fff697ed6c69u,
11200|  73.2k|            0x8df5efabc5979c8fu, 0xca8d3ffa1ef463c1u, 0xb1736b96b6fd83b3u, 0xbd308ff8a6b17cb2u,
11201|  73.2k|            0xddd0467c64bce4a0u, 0xac7cb3f6d05ddbdeu, 0x8aa22c0dbef60ee4u, 0x6bcdf07a423aa96bu,
11202|  73.2k|            0xad4ab7112eb3929du, 0x86c16c98d2c953c6u, 0xd89d64d57a607744u, 0xe871c7bf077ba8b7u,
11203|  73.2k|            0x87625f056c7c4a8bu, 0x11471cd764ad4972u, 0xa93af6c6c79b5d2du, 0xd598e40d3dd89bcfu,
11204|  73.2k|            0xd389b47879823479u, 0x4aff1d108d4ec2c3u, 0x843610cb4bf160cbu, 0xcedf722a585139bau,
11205|  73.2k|            0xa54394fe1eedb8feu, 0xc2974eb4ee658828u, 0xce947a3da6a9273eu, 0x733d226229feea32u,
11206|  73.2k|            0x811ccc668829b887u, 0x0806357d5a3f525fu, 0xa163ff802a3426a8u, 0xca07c2dcb0cf26f7u,
11207|  73.2k|            0xc9bcff6034c13052u, 0xfc89b393dd02f0b5u, 0xfc2c3f3841f17c67u, 0xbbac2078d443ace2u,
11208|  73.2k|            0x9d9ba7832936edc0u, 0xd54b944b84aa4c0du, 0xc5029163f384a931u, 0x0a9e795e65d4df11u,
11209|  73.2k|            0xf64335bcf065d37du, 0x4d4617b5ff4a16d5u, 0x99ea0196163fa42eu, 0x504bced1bf8e4e45u,
11210|  73.2k|            0xc06481fb9bcf8d39u, 0xe45ec2862f71e1d6u, 0xf07da27a82c37088u, 0x5d767327bb4e5a4cu,
11211|  73.2k|            0x964e858c91ba2655u, 0x3a6a07f8d510f86fu, 0xbbe226efb628afeau, 0x890489f70a55368bu,
11212|  73.2k|            0xeadab0aba3b2dbe5u, 0x2b45ac74ccea842eu, 0x92c8ae6b464fc96fu, 0x3b0b8bc90012929du,
11213|  73.2k|            0xb77ada0617e3bbcbu, 0x09ce6ebb40173744u, 0xe55990879ddcaabdu, 0xcc420a6a101d0515u,
11214|  73.2k|            0x8f57fa54c2a9eab6u, 0x9fa946824a12232du, 0xb32df8e9f3546564u, 0x47939822dc96abf9u,
11215|  73.2k|            0xdff9772470297ebdu, 0x59787e2b93bc56f7u, 0x8bfbea76c619ef36u, 0x57eb4edb3c55b65au,
11216|  73.2k|            0xaefae51477a06b03u, 0xede622920b6b23f1u, 0xdab99e59958885c4u, 0xe95fab368e45ecedu,
11217|  73.2k|            0x88b402f7fd75539bu, 0x11dbcb0218ebb414u, 0xaae103b5fcd2a881u, 0xd652bdc29f26a119u,
11218|  73.2k|            0xd59944a37c0752a2u, 0x4be76d3346f0495fu, 0x857fcae62d8493a5u, 0x6f70a4400c562ddbu,
11219|  73.2k|            0xa6dfbd9fb8e5b88eu, 0xcb4ccd500f6bb952u, 0xd097ad07a71f26b2u, 0x7e2000a41346a7a7u,
11220|  73.2k|            0x825ecc24c873782fu, 0x8ed400668c0c28c8u, 0xa2f67f2dfa90563bu, 0x728900802f0f32fau,
11221|  73.2k|            0xcbb41ef979346bcau, 0x4f2b40a03ad2ffb9u, 0xfea126b7d78186bcu, 0xe2f610c84987bfa8u,
11222|  73.2k|            0x9f24b832e6b0f436u, 0x0dd9ca7d2df4d7c9u, 0xc6ede63fa05d3143u, 0x91503d1c79720dbbu,
11223|  73.2k|            0xf8a95fcf88747d94u, 0x75a44c6397ce912au, 0x9b69dbe1b548ce7cu, 0xc986afbe3ee11abau,
11224|  73.2k|            0xc24452da229b021bu, 0xfbe85badce996168u, 0xf2d56790ab41c2a2u, 0xfae27299423fb9c3u,
11225|  73.2k|            0x97c560ba6b0919a5u, 0xdccd879fc967d41au, 0xbdb6b8e905cb600fu, 0x5400e987bbc1c920u,
11226|  73.2k|            0xed246723473e3813u, 0x290123e9aab23b68u, 0x9436c0760c86e30bu, 0xf9a0b6720aaf6521u,
11227|  73.2k|            0xb94470938fa89bceu, 0xf808e40e8d5b3e69u, 0xe7958cb87392c2c2u, 0xb60b1d1230b20e04u,
11228|  73.2k|            0x90bd77f3483bb9b9u, 0xb1c6f22b5e6f48c2u, 0xb4ecd5f01a4aa828u, 0x1e38aeb6360b1af3u,
11229|  73.2k|            0xe2280b6c20dd5232u, 0x25c6da63c38de1b0u, 0x8d590723948a535fu, 0x579c487e5a38ad0eu,
11230|  73.2k|            0xb0af48ec79ace837u, 0x2d835a9df0c6d851u, 0xdcdb1b2798182244u, 0xf8e431456cf88e65u,
11231|  73.2k|            0x8a08f0f8bf0f156bu, 0x1b8e9ecb641b58ffu, 0xac8b2d36eed2dac5u, 0xe272467e3d222f3fu,
11232|  73.2k|            0xd7adf884aa879177u, 0x5b0ed81dcc6abb0fu, 0x86ccbb52ea94baeau, 0x98e947129fc2b4e9u,
11233|  73.2k|            0xa87fea27a539e9a5u, 0x3f2398d747b36224u, 0xd29fe4b18e88640eu, 0x8eec7f0d19a03aadu,
11234|  73.2k|            0x83a3eeeef9153e89u, 0x1953cf68300424acu, 0xa48ceaaab75a8e2bu, 0x5fa8c3423c052dd7u,
11235|  73.2k|            0xcdb02555653131b6u, 0x3792f412cb06794du, 0x808e17555f3ebf11u, 0xe2bbd88bbee40bd0u,
11236|  73.2k|            0xa0b19d2ab70e6ed6u, 0x5b6aceaeae9d0ec4u, 0xc8de047564d20a8bu, 0xf245825a5a445275u,
11237|  73.2k|            0xfb158592be068d2eu, 0xeed6e2f0f0d56712u, 0x9ced737bb6c4183du, 0x55464dd69685606bu,
11238|  73.2k|            0xc428d05aa4751e4cu, 0xaa97e14c3c26b886u, 0xf53304714d9265dfu, 0xd53dd99f4b3066a8u,
11239|  73.2k|            0x993fe2c6d07b7fabu, 0xe546a8038efe4029u, 0xbf8fdb78849a5f96u, 0xde98520472bdd033u,
11240|  73.2k|            0xef73d256a5c0f77cu, 0x963e66858f6d4440u, 0x95a8637627989aadu, 0xdde7001379a44aa8u,
11241|  73.2k|            0xbb127c53b17ec159u, 0x5560c018580d5d52u, 0xe9d71b689dde71afu, 0xaab8f01e6e10b4a6u,
11242|  73.2k|            0x9226712162ab070du, 0xcab3961304ca70e8u, 0xb6b00d69bb55c8d1u, 0x3d607b97c5fd0d22u,
11243|  73.2k|            0xe45c10c42a2b3b05u, 0x8cb89a7db77c506au, 0x8eb98a7a9a5b04e3u, 0x77f3608e92adb242u,
11244|  73.2k|            0xb267ed1940f1c61cu, 0x55f038b237591ed3u, 0xdf01e85f912e37a3u, 0x6b6c46dec52f6688u,
11245|  73.2k|            0x8b61313bbabce2c6u, 0x2323ac4b3b3da015u, 0xae397d8aa96c1b77u, 0xabec975e0a0d081au,
11246|  73.2k|            0xd9c7dced53c72255u, 0x96e7bd358c904a21u, 0x881cea14545c7575u, 0x7e50d64177da2e54u,
11247|  73.2k|            0xaa242499697392d2u, 0xdde50bd1d5d0b9e9u, 0xd4ad2dbfc3d07787u, 0x955e4ec64b44e864u,
11248|  73.2k|            0x84ec3c97da624ab4u, 0xbd5af13bef0b113eu, 0xa6274bbdd0fadd61u, 0xecb1ad8aeacdd58eu,
11249|  73.2k|            0xcfb11ead453994bau, 0x67de18eda5814af2u, 0x81ceb32c4b43fcf4u, 0x80eacf948770ced7u,
11250|  73.2k|            0xa2425ff75e14fc31u, 0xa1258379a94d028du, 0xcad2f7f5359a3b3eu, 0x096ee45813a04330u,
11251|  73.2k|            0xfd87b5f28300ca0du, 0x8bca9d6e188853fcu, 0x9e74d1b791e07e48u, 0x775ea264cf55347eu,
11252|  73.2k|            0xc612062576589ddau, 0x95364afe032a819eu, 0xf79687aed3eec551u, 0x3a83ddbd83f52205u,
11253|  73.2k|            0x9abe14cd44753b52u, 0xc4926a9672793543u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
11254|  73.2k|            0xf1c90080baf72cb1u, 0x5324c68b12dd6339u, 0x971da05074da7beeu, 0xd3f6fc16ebca5e04u,
11255|  73.2k|            0xbce5086492111aeau, 0x88f4bb1ca6bcf585u, 0xec1e4a7db69561a5u, 0x2b31e9e3d06c32e6u,
11256|  73.2k|            0x9392ee8e921d5d07u, 0x3aff322e62439fd0u, 0xb877aa3236a4b449u, 0x09befeb9fad487c3u,
11257|  73.2k|            0xe69594bec44de15bu, 0x4c2ebe687989a9b4u, 0x901d7cf73ab0acd9u, 0x0f9d37014bf60a11u,
11258|  73.2k|            0xb424dc35095cd80fu, 0x538484c19ef38c95u, 0xe12e13424bb40e13u, 0x2865a5f206b06fbau,
11259|  73.2k|            0x8cbccc096f5088cbu, 0xf93f87b7442e45d4u, 0xafebff0bcb24aafeu, 0xf78f69a51539d749u,
11260|  73.2k|            0xdbe6fecebdedd5beu, 0xb573440e5a884d1cu, 0x89705f4136b4a597u, 0x31680a88f8953031u,
11261|  73.2k|            0xabcc77118461cefcu, 0xfdc20d2b36ba7c3eu, 0xd6bf94d5e57a42bcu, 0x3d32907604691b4du,
11262|  73.2k|            0x8637bd05af6c69b5u, 0xa63f9a49c2c1b110u, 0xa7c5ac471b478423u, 0x0fcf80dc33721d54u,
11263|  73.2k|            0xd1b71758e219652bu, 0xd3c36113404ea4a9u, 0x83126e978d4fdf3bu, 0x645a1cac083126eau,
11264|  73.2k|            0xa3d70a3d70a3d70au, 0x3d70a3d70a3d70a4u, 0xccccccccccccccccu, 0xcccccccccccccccdu,
11265|  73.2k|            0x8000000000000000u, 0x0000000000000000u, 0xa000000000000000u, 0x0000000000000000u,
11266|  73.2k|            0xc800000000000000u, 0x0000000000000000u, 0xfa00000000000000u, 0x0000000000000000u,
11267|  73.2k|            0x9c40000000000000u, 0x0000000000000000u, 0xc350000000000000u, 0x0000000000000000u,
11268|  73.2k|            0xf424000000000000u, 0x0000000000000000u, 0x9896800000000000u, 0x0000000000000000u,
11269|  73.2k|            0xbebc200000000000u, 0x0000000000000000u, 0xee6b280000000000u, 0x0000000000000000u,
11270|  73.2k|            0x9502f90000000000u, 0x0000000000000000u, 0xba43b74000000000u, 0x0000000000000000u,
11271|  73.2k|            0xe8d4a51000000000u, 0x0000000000000000u, 0x9184e72a00000000u, 0x0000000000000000u,
11272|  73.2k|            0xb5e620f480000000u, 0x0000000000000000u, 0xe35fa931a0000000u, 0x0000000000000000u,
11273|  73.2k|            0x8e1bc9bf04000000u, 0x0000000000000000u, 0xb1a2bc2ec5000000u, 0x0000000000000000u,
11274|  73.2k|            0xde0b6b3a76400000u, 0x0000000000000000u, 0x8ac7230489e80000u, 0x0000000000000000u,
11275|  73.2k|            0xad78ebc5ac620000u, 0x0000000000000000u, 0xd8d726b7177a8000u, 0x0000000000000000u,
11276|  73.2k|            0x878678326eac9000u, 0x0000000000000000u, 0xa968163f0a57b400u, 0x0000000000000000u,
11277|  73.2k|            0xd3c21bcecceda100u, 0x0000000000000000u, 0x84595161401484a0u, 0x0000000000000000u,
11278|  73.2k|            0xa56fa5b99019a5c8u, 0x0000000000000000u, 0xcecb8f27f4200f3au, 0x0000000000000000u,
11279|  73.2k|            0x813f3978f8940984u, 0x4000000000000000u, 0xa18f07d736b90be5u, 0x5000000000000000u,
11280|  73.2k|            0xc9f2c9cd04674edeu, 0xa400000000000000u, 0xfc6f7c4045812296u, 0x4d00000000000000u,
11281|  73.2k|            0x9dc5ada82b70b59du, 0xf020000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u,
11282|  73.2k|            0xf684df56c3e01bc6u, 0xc732000000000000u, 0x9a130b963a6c115cu, 0x3c7f400000000000u,
11283|  73.2k|            0xc097ce7bc90715b3u, 0x4b9f100000000000u, 0xf0bdc21abb48db20u, 0x1e86d40000000000u,
11284|  73.2k|            0x96769950b50d88f4u, 0x1314448000000000u, 0xbc143fa4e250eb31u, 0x17d955a000000000u,
11285|  73.2k|            0xeb194f8e1ae525fdu, 0x5dcfab0800000000u, 0x92efd1b8d0cf37beu, 0x5aa1cae500000000u,
11286|  73.2k|            0xb7abc627050305adu, 0xf14a3d9e40000000u, 0xe596b7b0c643c719u, 0x6d9ccd05d0000000u,
11287|  73.2k|            0x8f7e32ce7bea5c6fu, 0xe4820023a2000000u, 0xb35dbf821ae4f38bu, 0xdda2802c8a800000u,
11288|  73.2k|            0xe0352f62a19e306eu, 0xd50b2037ad200000u, 0x8c213d9da502de45u, 0x4526f422cc340000u,
11289|  73.2k|            0xaf298d050e4395d6u, 0x9670b12b7f410000u, 0xdaf3f04651d47b4cu, 0x3c0cdd765f114000u,
11290|  73.2k|            0x88d8762bf324cd0fu, 0xa5880a69fb6ac800u, 0xab0e93b6efee0053u, 0x8eea0d047a457a00u,
11291|  73.2k|            0xd5d238a4abe98068u, 0x72a4904598d6d880u, 0x85a36366eb71f041u, 0x47a6da2b7f864750u,
11292|  73.2k|            0xa70c3c40a64e6c51u, 0x999090b65f67d924u, 0xd0cf4b50cfe20765u, 0xfff4b4e3f741cf6du,
11293|  73.2k|            0x82818f1281ed449fu, 0xbff8f10e7a8921a4u, 0xa321f2d7226895c7u, 0xaff72d52192b6a0du,
11294|  73.2k|            0xcbea6f8ceb02bb39u, 0x9bf4f8a69f764490u, 0xfee50b7025c36a08u, 0x02f236d04753d5b4u,
11295|  73.2k|            0x9f4f2726179a2245u, 0x01d762422c946590u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef5u,
11296|  73.2k|            0xf8ebad2b84e0d58bu, 0xd2e0898765a7deb2u, 0x9b934c3b330c8577u, 0x63cc55f49f88eb2fu,
11297|  73.2k|            0xc2781f49ffcfa6d5u, 0x3cbf6b71c76b25fbu, 0xf316271c7fc3908au, 0x8bef464e3945ef7au,
11298|  73.2k|            0x97edd871cfda3a56u, 0x97758bf0e3cbb5acu, 0xbde94e8e43d0c8ecu, 0x3d52eeed1cbea317u,
11299|  73.2k|            0xed63a231d4c4fb27u, 0x4ca7aaa863ee4bddu, 0x945e455f24fb1cf8u, 0x8fe8caa93e74ef6au,
11300|  73.2k|            0xb975d6b6ee39e436u, 0xb3e2fd538e122b44u, 0xe7d34c64a9c85d44u, 0x60dbbca87196b616u,
11301|  73.2k|            0x90e40fbeea1d3a4au, 0xbc8955e946fe31cdu, 0xb51d13aea4a488ddu, 0x6babab6398bdbe41u,
11302|  73.2k|            0xe264589a4dcdab14u, 0xc696963c7eed2dd1u, 0x8d7eb76070a08aecu, 0xfc1e1de5cf543ca2u,
11303|  73.2k|            0xb0de65388cc8ada8u, 0x3b25a55f43294bcbu, 0xdd15fe86affad912u, 0x49ef0eb713f39ebeu,
11304|  73.2k|            0x8a2dbf142dfcc7abu, 0x6e3569326c784337u, 0xacb92ed9397bf996u, 0x49c2c37f07965404u,
11305|  73.2k|            0xd7e77a8f87daf7fbu, 0xdc33745ec97be906u, 0x86f0ac99b4e8dafdu, 0x69a028bb3ded71a3u,
11306|  73.2k|            0xa8acd7c0222311bcu, 0xc40832ea0d68ce0cu, 0xd2d80db02aabd62bu, 0xf50a3fa490c30190u,
11307|  73.2k|            0x83c7088e1aab65dbu, 0x792667c6da79e0fau, 0xa4b8cab1a1563f52u, 0x577001b891185938u,
11308|  73.2k|            0xcde6fd5e09abcf26u, 0xed4c0226b55e6f86u, 0x80b05e5ac60b6178u, 0x544f8158315b05b4u,
11309|  73.2k|            0xa0dc75f1778e39d6u, 0x696361ae3db1c721u, 0xc913936dd571c84cu, 0x03bc3a19cd1e38e9u,
11310|  73.2k|            0xfb5878494ace3a5fu, 0x04ab48a04065c723u, 0x9d174b2dcec0e47bu, 0x62eb0d64283f9c76u,
11311|  73.2k|            0xc45d1df942711d9au, 0x3ba5d0bd324f8394u, 0xf5746577930d6500u, 0xca8f44ec7ee36479u,
11312|  73.2k|            0x9968bf6abbe85f20u, 0x7e998b13cf4e1ecbu, 0xbfc2ef456ae276e8u, 0x9e3fedd8c321a67eu,
11313|  73.2k|            0xefb3ab16c59b14a2u, 0xc5cfe94ef3ea101eu, 0x95d04aee3b80ece5u, 0xbba1f1d158724a12u,
11314|  73.2k|            0xbb445da9ca61281fu, 0x2a8a6e45ae8edc97u, 0xea1575143cf97226u, 0xf52d09d71a3293bdu,
11315|  73.2k|            0x924d692ca61be758u, 0x593c2626705f9c56u, 0xb6e0c377cfa2e12eu, 0x6f8b2fb00c77836cu,
11316|  73.2k|            0xe498f455c38b997au, 0x0b6dfb9c0f956447u, 0x8edf98b59a373fecu, 0x4724bd4189bd5eacu,
11317|  73.2k|            0xb2977ee300c50fe7u, 0x58edec91ec2cb657u, 0xdf3d5e9bc0f653e1u, 0x2f2967b66737e3edu,
11318|  73.2k|            0x8b865b215899f46cu, 0xbd79e0d20082ee74u, 0xae67f1e9aec07187u, 0xecd8590680a3aa11u,
11319|  73.2k|            0xda01ee641a708de9u, 0xe80e6f4820cc9495u, 0x884134fe908658b2u, 0x3109058d147fdcddu,
11320|  73.2k|            0xaa51823e34a7eedeu, 0xbd4b46f0599fd415u, 0xd4e5e2cdc1d1ea96u, 0x6c9e18ac7007c91au,
11321|  73.2k|            0x850fadc09923329eu, 0x03e2cf6bc604ddb0u, 0xa6539930bf6bff45u, 0x84db8346b786151cu,
11322|  73.2k|            0xcfe87f7cef46ff16u, 0xe612641865679a63u, 0x81f14fae158c5f6eu, 0x4fcb7e8f3f60c07eu,
11323|  73.2k|            0xa26da3999aef7749u, 0xe3be5e330f38f09du, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc5u,
11324|  73.2k|            0xfdcb4fa002162a63u, 0x73d9732fc7c8f7f6u, 0x9e9f11c4014dda7eu, 0x2867e7fddcdd9afau,
11325|  73.2k|            0xc646d63501a1511du, 0xb281e1fd541501b8u, 0xf7d88bc24209a565u, 0x1f225a7ca91a4226u,
11326|  73.2k|            0x9ae757596946075fu, 0x3375788de9b06958u, 0xc1a12d2fc3978937u, 0x0052d6b1641c83aeu,
11327|  73.2k|            0xf209787bb47d6b84u, 0xc0678c5dbd23a49au, 0x9745eb4d50ce6332u, 0xf840b7ba963646e0u,
11328|  73.2k|            0xbd176620a501fbffu, 0xb650e5a93bc3d898u, 0xec5d3fa8ce427affu, 0xa3e51f138ab4cebeu,
11329|  73.2k|            0x93ba47c980e98cdfu, 0xc66f336c36b10137u, 0xb8a8d9bbe123f017u, 0xb80b0047445d4184u,
11330|  73.2k|            0xe6d3102ad96cec1du, 0xa60dc059157491e5u, 0x9043ea1ac7e41392u, 0x87c89837ad68db2fu,
11331|  73.2k|            0xb454e4a179dd1877u, 0x29babe4598c311fbu, 0xe16a1dc9d8545e94u, 0xf4296dd6fef3d67au,
11332|  73.2k|            0x8ce2529e2734bb1du, 0x1899e4a65f58660cu, 0xb01ae745b101e9e4u, 0x5ec05dcff72e7f8fu,
11333|  73.2k|            0xdc21a1171d42645du, 0x76707543f4fa1f73u, 0x899504ae72497ebau, 0x6a06494a791c53a8u,
11334|  73.2k|            0xabfa45da0edbde69u, 0x0487db9d17636892u, 0xd6f8d7509292d603u, 0x45a9d2845d3c42b6u,
11335|  73.2k|            0x865b86925b9bc5c2u, 0x0b8a2392ba45a9b2u, 0xa7f26836f282b732u, 0x8e6cac7768d7141eu,
11336|  73.2k|            0xd1ef0244af2364ffu, 0x3207d795430cd926u, 0x8335616aed761f1fu, 0x7f44e6bd49e807b8u,
11337|  73.2k|            0xa402b9c5a8d3a6e7u, 0x5f16206c9c6209a6u, 0xcd036837130890a1u, 0x36dba887c37a8c0fu,
11338|  73.2k|            0x802221226be55a64u, 0xc2494954da2c9789u, 0xa02aa96b06deb0fdu, 0xf2db9baa10b7bd6cu,
11339|  73.2k|            0xc83553c5c8965d3du, 0x6f92829494e5acc7u, 0xfa42a8b73abbf48cu, 0xcb772339ba1f17f9u,
11340|  73.2k|            0x9c69a97284b578d7u, 0xff2a760414536efbu, 0xc38413cf25e2d70du, 0xfef5138519684abau,
11341|  73.2k|            0xf46518c2ef5b8cd1u, 0x7eb258665fc25d69u, 0x98bf2f79d5993802u, 0xef2f773ffbd97a61u,
11342|  73.2k|            0xbeeefb584aff8603u, 0xaafb550ffacfd8fau, 0xeeaaba2e5dbf6784u, 0x95ba2a53f983cf38u,
11343|  73.2k|            0x952ab45cfa97a0b2u, 0xdd945a747bf26183u, 0xba756174393d88dfu, 0x94f971119aeef9e4u,
11344|  73.2k|            0xe912b9d1478ceb17u, 0x7a37cd5601aab85du, 0x91abb422ccb812eeu, 0xac62e055c10ab33au,
11345|  73.2k|            0xb616a12b7fe617aau, 0x577b986b314d6009u, 0xe39c49765fdf9d94u, 0xed5a7e85fda0b80bu,
11346|  73.2k|            0x8e41ade9fbebc27du, 0x14588f13be847307u, 0xb1d219647ae6b31cu, 0x596eb2d8ae258fc8u,
11347|  73.2k|            0xde469fbd99a05fe3u, 0x6fca5f8ed9aef3bbu, 0x8aec23d680043beeu, 0x25de7bb9480d5854u,
11348|  73.2k|            0xada72ccc20054ae9u, 0xaf561aa79a10ae6au, 0xd910f7ff28069da4u, 0x1b2ba1518094da04u,
11349|  73.2k|            0x87aa9aff79042286u, 0x90fb44d2f05d0842u, 0xa99541bf57452b28u, 0x353a1607ac744a53u,
11350|  73.2k|            0xd3fa922f2d1675f2u, 0x42889b8997915ce8u, 0x847c9b5d7c2e09b7u, 0x69956135febada11u,
11351|  73.2k|            0xa59bc234db398c25u, 0x43fab9837e699095u, 0xcf02b2c21207ef2eu, 0x94f967e45e03f4bbu,
11352|  73.2k|            0x8161afb94b44f57du, 0x1d1be0eebac278f5u, 0xa1ba1ba79e1632dcu, 0x6462d92a69731732u,
11353|  73.2k|            0xca28a291859bbf93u, 0x7d7b8f7503cfdcfeu, 0xfcb2cb35e702af78u, 0x5cda735244c3d43eu,
11354|  73.2k|            0x9defbf01b061adabu, 0x3a0888136afa64a7u, 0xc56baec21c7a1916u, 0x088aaa1845b8fdd0u,
11355|  73.2k|            0xf6c69a72a3989f5bu, 0x8aad549e57273d45u, 0x9a3c2087a63f6399u, 0x36ac54e2f678864bu,
11356|  73.2k|            0xc0cb28a98fcf3c7fu, 0x84576a1bb416a7ddu, 0xf0fdf2d3f3c30b9fu, 0x656d44a2a11c51d5u,
11357|  73.2k|            0x969eb7c47859e743u, 0x9f644ae5a4b1b325u, 0xbc4665b596706114u, 0x873d5d9f0dde1feeu,
11358|  73.2k|            0xeb57ff22fc0c7959u, 0xa90cb506d155a7eau, 0x9316ff75dd87cbd8u, 0x09a7f12442d588f2u,
11359|  73.2k|            0xb7dcbf5354e9beceu, 0x0c11ed6d538aeb2fu, 0xe5d3ef282a242e81u, 0x8f1668c8a86da5fau,
11360|  73.2k|            0x8fa475791a569d10u, 0xf96e017d694487bcu, 0xb38d92d760ec4455u, 0x37c981dcc395a9acu,
11361|  73.2k|            0xe070f78d3927556au, 0x85bbe253f47b1417u, 0x8c469ab843b89562u, 0x93956d7478ccec8eu,
11362|  73.2k|            0xaf58416654a6babbu, 0x387ac8d1970027b2u, 0xdb2e51bfe9d0696au, 0x06997b05fcc0319eu,
11363|  73.2k|            0x88fcf317f22241e2u, 0x441fece3bdf81f03u, 0xab3c2fddeeaad25au, 0xd527e81cad7626c3u,
11364|  73.2k|            0xd60b3bd56a5586f1u, 0x8a71e223d8d3b074u, 0x85c7056562757456u, 0xf6872d5667844e49u,
11365|  73.2k|            0xa738c6bebb12d16cu, 0xb428f8ac016561dbu, 0xd106f86e69d785c7u, 0xe13336d701beba52u,
11366|  73.2k|            0x82a45b450226b39cu, 0xecc0024661173473u, 0xa34d721642b06084u, 0x27f002d7f95d0190u,
11367|  73.2k|            0xcc20ce9bd35c78a5u, 0x31ec038df7b441f4u, 0xff290242c83396ceu, 0x7e67047175a15271u,
11368|  73.2k|            0x9f79a169bd203e41u, 0x0f0062c6e984d386u, 0xc75809c42c684dd1u, 0x52c07b78a3e60868u,
11369|  73.2k|            0xf92e0c3537826145u, 0xa7709a56ccdf8a82u, 0x9bbcc7a142b17ccbu, 0x88a66076400bb691u,
11370|  73.2k|            0xc2abf989935ddbfeu, 0x6acff893d00ea435u, 0xf356f7ebf83552feu, 0x0583f6b8c4124d43u,
11371|  73.2k|            0x98165af37b2153deu, 0xc3727a337a8b704au, 0xbe1bf1b059e9a8d6u, 0x744f18c0592e4c5cu,
11372|  73.2k|            0xeda2ee1c7064130cu, 0x1162def06f79df73u, 0x9485d4d1c63e8be7u, 0x8addcb5645ac2ba8u,
11373|  73.2k|            0xb9a74a0637ce2ee1u, 0x6d953e2bd7173692u, 0xe8111c87c5c1ba99u, 0xc8fa8db6ccdd0437u,
11374|  73.2k|            0x910ab1d4db9914a0u, 0x1d9c9892400a22a2u, 0xb54d5e4a127f59c8u, 0x2503beb6d00cab4bu,
11375|  73.2k|            0xe2a0b5dc971f303au, 0x2e44ae64840fd61du, 0x8da471a9de737e24u, 0x5ceaecfed289e5d2u,
11376|  73.2k|            0xb10d8e1456105dadu, 0x7425a83e872c5f47u, 0xdd50f1996b947518u, 0xd12f124e28f77719u,
11377|  73.2k|            0x8a5296ffe33cc92fu, 0x82bd6b70d99aaa6fu, 0xace73cbfdc0bfb7bu, 0x636cc64d1001550bu,
11378|  73.2k|            0xd8210befd30efa5au, 0x3c47f7e05401aa4eu, 0x8714a775e3e95c78u, 0x65acfaec34810a71u,
11379|  73.2k|            0xa8d9d1535ce3b396u, 0x7f1839a741a14d0du, 0xd31045a8341ca07cu, 0x1ede48111209a050u,
11380|  73.2k|            0x83ea2b892091e44du, 0x934aed0aab460432u, 0xa4e4b66b68b65d60u, 0xf81da84d5617853fu,
11381|  73.2k|            0xce1de40642e3f4b9u, 0x36251260ab9d668eu, 0x80d2ae83e9ce78f3u, 0xc1d72b7c6b426019u,
11382|  73.2k|            0xa1075a24e4421730u, 0xb24cf65b8612f81fu, 0xc94930ae1d529cfcu, 0xdee033f26797b627u,
11383|  73.2k|            0xfb9b7cd9a4a7443cu, 0x169840ef017da3b1u, 0x9d412e0806e88aa5u, 0x8e1f289560ee864eu,
11384|  73.2k|            0xc491798a08a2ad4eu, 0xf1a6f2bab92a27e2u, 0xf5b5d7ec8acb58a2u, 0xae10af696774b1dbu,
11385|  73.2k|            0x9991a6f3d6bf1765u, 0xacca6da1e0a8ef29u, 0xbff610b0cc6edd3fu, 0x17fd090a58d32af3u,
11386|  73.2k|            0xeff394dcff8a948eu, 0xddfc4b4cef07f5b0u, 0x95f83d0a1fb69cd9u, 0x4abdaf101564f98eu,
11387|  73.2k|            0xbb764c4ca7a4440fu, 0x9d6d1ad41abe37f1u, 0xea53df5fd18d5513u, 0x84c86189216dc5edu,
11388|  73.2k|            0x92746b9be2f8552cu, 0x32fd3cf5b4e49bb4u, 0xb7118682dbb66a77u, 0x3fbc8c33221dc2a1u,
11389|  73.2k|            0xe4d5e82392a40515u, 0x0fabaf3feaa5334au, 0x8f05b1163ba6832du, 0x29cb4d87f2a7400eu,
11390|  73.2k|            0xb2c71d5bca9023f8u, 0x743e20e9ef511012u, 0xdf78e4b2bd342cf6u, 0x914da9246b255416u,
11391|  73.2k|            0x8bab8eefb6409c1au, 0x1ad089b6c2f7548eu, 0xae9672aba3d0c320u, 0xa184ac2473b529b1u,
11392|  73.2k|            0xda3c0f568cc4f3e8u, 0xc9e5d72d90a2741eu, 0x8865899617fb1871u, 0x7e2fa67c7a658892u,
11393|  73.2k|            0xaa7eebfb9df9de8du, 0xddbb901b98feeab7u, 0xd51ea6fa85785631u, 0x552a74227f3ea565u,
11394|  73.2k|            0x8533285c936b35deu, 0xd53a88958f87275fu, 0xa67ff273b8460356u, 0x8a892abaf368f137u,
11395|  73.2k|            0xd01fef10a657842cu, 0x2d2b7569b0432d85u, 0x8213f56a67f6b29bu, 0x9c3b29620e29fc73u,
11396|  73.2k|            0xa298f2c501f45f42u, 0x8349f3ba91b47b8fu, 0xcb3f2f7642717713u, 0x241c70a936219a73u,
11397|  73.2k|            0xfe0efb53d30dd4d7u, 0xed238cd383aa0110u, 0x9ec95d1463e8a506u, 0xf4363804324a40aau,
11398|  73.2k|            0xc67bb4597ce2ce48u, 0xb143c6053edcd0d5u, 0xf81aa16fdc1b81dau, 0xdd94b7868e94050au,
11399|  73.2k|            0x9b10a4e5e9913128u, 0xca7cf2b4191c8326u, 0xc1d4ce1f63f57d72u, 0xfd1c2f611f63a3f0u,
11400|  73.2k|            0xf24a01a73cf2dccfu, 0xbc633b39673c8cecu, 0x976e41088617ca01u, 0xd5be0503e085d813u,
11401|  73.2k|            0xbd49d14aa79dbc82u, 0x4b2d8644d8a74e18u, 0xec9c459d51852ba2u, 0xddf8e7d60ed1219eu,
11402|  73.2k|            0x93e1ab8252f33b45u, 0xcabb90e5c942b503u, 0xb8da1662e7b00a17u, 0x3d6a751f3b936243u,
11403|  73.2k|            0xe7109bfba19c0c9du, 0x0cc512670a783ad4u, 0x906a617d450187e2u, 0x27fb2b80668b24c5u,
11404|  73.2k|            0xb484f9dc9641e9dau, 0xb1f9f660802dedf6u, 0xe1a63853bbd26451u, 0x5e7873f8a0396973u,
11405|  73.2k|            0x8d07e33455637eb2u, 0xdb0b487b6423e1e8u, 0xb049dc016abc5e5fu, 0x91ce1a9a3d2cda62u,
11406|  73.2k|            0xdc5c5301c56b75f7u, 0x7641a140cc7810fbu, 0x89b9b3e11b6329bau, 0xa9e904c87fcb0a9du,
11407|  73.2k|            0xac2820d9623bf429u, 0x546345fa9fbdcd44u, 0xd732290fbacaf133u, 0xa97c177947ad4095u,
11408|  73.2k|            0x867f59a9d4bed6c0u, 0x49ed8eabcccc485du, 0xa81f301449ee8c70u, 0x5c68f256bfff5a74u,
11409|  73.2k|            0xd226fc195c6a2f8cu, 0x73832eec6fff3111u, 0x83585d8fd9c25db7u, 0xc831fd53c5ff7eabu,
11410|  73.2k|            0xa42e74f3d032f525u, 0xba3e7ca8b77f5e55u, 0xcd3a1230c43fb26fu, 0x28ce1bd2e55f35ebu,
11411|  73.2k|            0x80444b5e7aa7cf85u, 0x7980d163cf5b81b3u, 0xa0555e361951c366u, 0xd7e105bcc332621fu,
11412|  73.2k|            0xc86ab5c39fa63440u, 0x8dd9472bf3fefaa7u, 0xfa856334878fc150u, 0xb14f98f6f0feb951u,
11413|  73.2k|            0x9c935e00d4b9d8d2u, 0x6ed1bf9a569f33d3u, 0xc3b8358109e84f07u, 0x0a862f80ec4700c8u,
11414|  73.2k|            0xf4a642e14c6262c8u, 0xcd27bb612758c0fau, 0x98e7e9cccfbd7dbdu, 0x8038d51cb897789cu,
11415|  73.2k|            0xbf21e44003acdd2cu, 0xe0470a63e6bd56c3u, 0xeeea5d5004981478u, 0x1858ccfce06cac74u,
11416|  73.2k|            0x95527a5202df0ccbu, 0x0f37801e0c43ebc8u, 0xbaa718e68396cffdu, 0xd30560258f54e6bau,
11417|  73.2k|            0xe950df20247c83fdu, 0x47c6b82ef32a2069u, 0x91d28b7416cdd27eu, 0x4cdc331d57fa5441u,
11418|  73.2k|            0xb6472e511c81471du, 0xe0133fe4adf8e952u, 0xe3d8f9e563a198e5u, 0x58180fddd97723a6u,
11419|  73.2k|            0x8e679c2f5e44ff8fu, 0x570f09eaa7ea7648u,
11420|  73.2k|        }
11421|  73.2k|    };
11422|  73.2k|    return table;
11423|  73.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13umul192_hi128Emmm:
36019|  27.9k|{
36020|  27.9k|    const uint128_parts p = full_multiplication(x_hi, y);
36021|  27.9k|    uint128_parts r{};
36022|  27.9k|    r.low = p.low + full_multiplication(x_lo, y).high;
36023|  27.9k|    r.high = p.high + (r.low < p.low ? 1u : 0u);
  ------------------
  |  Branch (36023:24): [True: 936, False: 27.0k]
  ------------------
36024|  27.9k|    return r;
36025|  27.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij16umul128_add_hi64Emmm:
36029|  29.7k|{
36030|  29.7k|    const uint128_parts p = full_multiplication(x, y);
36031|  29.7k|    return p.high + (p.low + c < p.low ? 1u : 0u);
  ------------------
  |  Branch (36031:22): [True: 16.4k, False: 13.2k]
  ------------------
36032|  29.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalE:
37259|  27.9k|{
37260|  27.9k|    const std::uint64_t sig = d.integral;
37261|  27.9k|    if (JSON_HEDLEY_UNLIKELY(sig < 100000000000000u || sig >= 10000000000000000u))
  ------------------
  |  | 1697|  52.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.01k, False: 24.9k]
  |  |  |  Branch (1697:94): [True: 3.01k, False: 24.9k]
  |  |  |  Branch (1697:94): [True: 0, False: 24.9k]
  |  |  ------------------
  ------------------
37262|  3.01k|    {
37263|       |        // (subnormals)
37264|  3.01k|        return d.has_digit ? write_decimal(first, (sig * 10) + d.digit, d.exponent) : write_decimal(first, sig, d.exponent + 1);
  ------------------
  |  Branch (37264:16): [True: 1.45k, False: 1.56k]
  ------------------
37265|  3.01k|    }
37266|  24.9k|    const bool sixteen = sig >= 1000000000000000u; // (else 15 digits)
37267|  24.9k|    const int last = d.has_digit ? d.digit : 0;
  ------------------
  |  Branch (37267:22): [True: 14.6k, False: 10.2k]
  ------------------
37268|  24.9k|    const std::uint64_t upper = sig / 100000000u;
37269|  24.9k|#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|  24.9k|    const __m128i x = _mm_set_epi64x(static_cast<long long>(sig - (upper * 100000000u)), static_cast<long long>(upper)); // NOLINT(runtime/int)
37274|  24.9k|    const __m128i abcd = _mm_srli_epi64(_mm_mul_epu32(x, _mm_set1_epi64x(109951163)), 40); // 2^40 / 10000 + 1
37275|  24.9k|    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|  24.9k|    const __m128i fours = _mm_shuffle_epi32(abcd_efgh, _MM_SHUFFLE(2, 3, 0, 1));
37278|  24.9k|    const __m128i ab = _mm_srli_epi16(_mm_mulhi_epu16(fours, _mm_set1_epi32(5243)), 3);
37279|  24.9k|    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|  24.9k|    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|  24.9k|    const auto nonzero = static_cast<std::uint64_t>(_mm_movemask_epi8(_mm_cmpgt_epi8(bytes, _mm_setzero_si128())));
37284|  24.9k|    const int digits = 63 - count_leading_zeros(nonzero) + (sixteen ? 1 : 0); // without trailing zeros
  ------------------
  |  Branch (37284:61): [True: 17.7k, False: 7.24k]
  ------------------
37285|  24.9k|    const __m128i chars = _mm_add_epi8(bytes, _mm_set1_epi8('0'));
37286|       |    // the 16 characters from the first digit
37287|  24.9k|    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: 17.7k, False: 7.24k]
  ------------------
37288|  24.9k|    const char s16 = static_cast<char>(sixteen ? '0' + last : '0'); // the 17th
  ------------------
  |  Branch (37288:40): [True: 17.7k, False: 7.24k]
  ------------------
37289|  24.9k|    const auto store_16 = [&s](char* p) noexcept
37290|  24.9k|    {
37291|  24.9k|        std::memcpy(p, &s, 16);
37292|  24.9k|    };
37293|  24.9k|    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|  24.9k|    const int len = d.has_digit ? 16 + (sixteen ? 1 : 0) : digits; // significant digits
  ------------------
  |  Branch (37334:21): [True: 14.6k, False: 10.2k]
  |  Branch (37334:41): [True: 9.08k, False: 5.61k]
  ------------------
37335|  24.9k|    const int n = 16 + (sixteen ? 1 : 0) + d.exponent;           // digits before the point
  ------------------
  |  Branch (37335:25): [True: 17.7k, False: 7.24k]
  ------------------
37336|       |
37337|  24.9k|    if (JSON_HEDLEY_LIKELY(n >= 1 && n <= 15))
  ------------------
  |  | 1696|  41.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 5.23k, False: 19.7k]
  |  |  |  Branch (1696:94): [True: 16.8k, False: 8.08k]
  |  |  |  Branch (1696:94): [True: 5.23k, False: 11.6k]
  |  |  ------------------
  ------------------
37338|  5.23k|    {
37339|       |        // "dig.its" and "digits[000].0": the digits after the point move by
37340|       |        // one byte ('0's follow the digits)
37341|  5.23k|#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|  5.23k|        const __m128i at = _mm_set1_epi8(static_cast<char>(n));
37346|  5.23k|        const __m128i index = _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
37347|  5.23k|        const __m128i before = _mm_cmpgt_epi8(at, index);
37348|  5.23k|        const __m128i after = _mm_cmpgt_epi8(index, at);
37349|  5.23k|        const __m128i text = _mm_or_si128(_mm_or_si128(_mm_and_si128(s, before), _mm_and_si128(_mm_slli_si128(s, 1), after)),
37350|  5.23k|                                          _mm_andnot_si128(_mm_or_si128(before, after), _mm_set1_epi8('.')));
37351|  5.23k|        std::memcpy(first, &text, 16);
37352|  5.23k|        first[16] = static_cast<char>(_mm_extract_epi16(s, 7) >> 8);
37353|  5.23k|        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|  5.23k|        return first + (n >= len ? n + 2 : len + 1);
  ------------------
  |  Branch (37370:25): [True: 2.31k, False: 2.92k]
  ------------------
37371|  5.23k|    }
37372|  19.7k|    if (n <= 0 && n > -4)
  ------------------
  |  Branch (37372:9): [True: 8.08k, False: 11.6k]
  |  Branch (37372:19): [True: 1.13k, False: 6.95k]
  ------------------
37373|  1.13k|    {
37374|       |        // "0.[000]digits"
37375|  1.13k|        std::memset(first, '0', 8);
37376|  1.13k|        first[1] = '.';
37377|  1.13k|        store_16(first + 2 - n);
37378|  1.13k|        first[18 - n] = s16;
37379|  1.13k|        return first + 2 - n + len;
37380|  1.13k|    }
37381|       |    // d.igitse+XX, with at least two exponent digits (as append_exponent())
37382|  18.6k|    store_16(first + 1);
37383|  18.6k|    first[17] = s16;
37384|  18.6k|    first[0] = first_digit;
37385|  18.6k|    first[1] = '.';
37386|  18.6k|    char* const end = first + (len == 1 ? 1 : len + 1);
  ------------------
  |  Branch (37386:32): [True: 840, False: 17.7k]
  ------------------
37387|  18.6k|    const int e = n - 1;
37388|  18.6k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37388:21): [True: 6.95k, False: 11.6k]
  ------------------
37389|  18.6k|    const bool three = ea >= 100;
37390|  18.6k|    end[0] = 'e';
37391|  18.6k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37391:14): [True: 6.95k, False: 11.6k]
  ------------------
37392|  18.6k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37392:39): [True: 2.34k, False: 16.2k]
  ------------------
37393|  18.6k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37393:39): [True: 2.34k, False: 16.2k]
  ------------------
37394|  18.6k|    end[4] = static_cast<char>('0' + (ea % 10));
37395|  18.6k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37395:19): [True: 2.34k, False: 16.2k]
  ------------------
37396|  19.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl13write_decimalEPcmi:
37171|  3.01k|{
37172|  3.01k|    JSON_ASSERT(digits != 0 && digits < 100000000000000000u);
  ------------------
  |  | 2653|  3.01k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37172:5): [True: 3.01k, False: 0]
  |  Branch (37172:5): [True: 3.01k, False: 0]
  |  Branch (37172:5): [True: 3.01k, False: 0]
  ------------------
37173|  3.01k|    const std::uint64_t upper = digits / 100000000u;
37174|  3.01k|    const std::uint64_t b0 = upper / 100000000u; // (one digit: it is its own byte)
37175|  3.01k|    const std::uint64_t b1 = eight_digit_bytes(upper % 100000000u);
37176|  3.01k|    const std::uint64_t b2 = eight_digit_bytes(digits % 100000000u);
37177|       |    // leading and trailing zero digits: zero bytes, counted without division
37178|  3.01k|    int leading = 16;
37179|  3.01k|    int zeros = 16;
37180|  3.01k|    if (b0 != 0)
  ------------------
  |  Branch (37180:9): [True: 0, False: 3.01k]
  ------------------
37181|      0|    {
37182|      0|        leading = count_leading_zeros(b0) / 8;
37183|      0|    }
37184|  3.01k|    else if (b1 != 0)
  ------------------
  |  Branch (37184:14): [True: 2.35k, False: 666]
  ------------------
37185|  2.35k|    {
37186|  2.35k|        leading = 8 + (count_leading_zeros(b1) / 8);
37187|  2.35k|    }
37188|    666|    else
37189|    666|    {
37190|    666|        leading += count_leading_zeros(b2) / 8;
37191|    666|    }
37192|  3.01k|    if (b2 != 0)
  ------------------
  |  Branch (37192:9): [True: 2.74k, False: 270]
  ------------------
37193|  2.74k|    {
37194|  2.74k|        zeros = count_trailing_zeros(b2) / 8;
37195|  2.74k|    }
37196|    270|    else if (b1 != 0)
  ------------------
  |  Branch (37196:14): [True: 270, False: 0]
  ------------------
37197|    270|    {
37198|    270|        zeros = 8 + (count_trailing_zeros(b1) / 8);
37199|    270|    }
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|  3.01k|    std::array<char, 64> text; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
37204|  3.01k|    store_msb_first(text.data(), b0 + 0x3030303030303030u);
37205|  3.01k|    store_msb_first(text.data() + 8, b1 + 0x3030303030303030u);
37206|  3.01k|    store_msb_first(text.data() + 16, b2 + 0x3030303030303030u);
37207|  3.01k|    std::memset(text.data() + 24, '0', 40);
37208|  3.01k|    const int k = 24 - leading - zeros; // significant digits
37209|  3.01k|    const int n = k + exp + zeros;      // position of the decimal point after the first digit
37210|  3.01k|    const char* const s0 = text.data() + leading;
37211|       |
37212|  3.01k|    if (-4 < n && n <= 15)
  ------------------
  |  Branch (37212:9): [True: 0, False: 3.01k]
  |  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|  3.01k|    std::memcpy(first, s0, 16);
37229|  3.01k|    std::memcpy(first + 2, s0 + 1, 16);
37230|  3.01k|    first[1] = '.';
37231|  3.01k|    char* const end = first + (k == 1 ? 1 : k + 1);
  ------------------
  |  Branch (37231:32): [True: 444, False: 2.57k]
  ------------------
37232|  3.01k|    const int e = n - 1;
37233|  3.01k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37233:21): [True: 3.01k, False: 0]
  ------------------
37234|  3.01k|    const bool three = ea >= 100;
37235|  3.01k|    end[0] = 'e';
37236|  3.01k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37236:14): [True: 3.01k, False: 0]
  ------------------
37237|  3.01k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37237:39): [True: 3.01k, False: 0]
  ------------------
37238|  3.01k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37238:39): [True: 3.01k, False: 0]
  ------------------
37239|  3.01k|    end[4] = static_cast<char>('0' + (ea % 10));
37240|  3.01k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37240:19): [True: 3.01k, False: 0]
  ------------------
37241|  3.01k|}
_ZZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalEENKUlS3_E_clES3_:
37290|  19.7k|    {
37291|  19.7k|        std::memcpy(p, &s, 16);
37292|  19.7k|    };
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE5flushEv:
39130|  3.94M|    {
39131|  3.94M|        o->write_characters(write_buffer.data(), write_buffer_pos);
39132|  3.94M|        write_buffer_pos = 0;
39133|  3.94M|    }
_ZN8nlohmann16json_abi_v3_12_06detail35binary_writer_default_error_handlerEv:
 6189|  36.2k|{
 6190|       |#if JSON_STRICT_BINARY_UTF8
 6191|       |    return error_handler_t::strict;
 6192|       |#else
 6193|  36.2k|    return error_handler_t::keep;
 6194|  36.2k|#endif
 6195|  36.2k|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvED2Ev:
42951|  2.48G|    {
42952|  2.48G|        assert_invariant(false);
42953|  2.48G|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16assert_invariantEb:
41279|  6.89G|    {
41280|  6.89G|        JSON_ASSERT(m_data.m_type != value_t::object || m_data.m_value.object != nullptr);
  ------------------
  |  | 2653|  6.89G|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41280:9): [True: 6.89G, False: 224k]
  |  Branch (41280:9): [True: 224k, False: 0]
  |  Branch (41280:9): [True: 6.89G, False: 0]
  ------------------
41281|  6.89G|        JSON_ASSERT(m_data.m_type != value_t::array || m_data.m_value.array != nullptr);
  ------------------
  |  | 2653|  6.89G|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41281:9): [True: 6.89G, False: 713k]
  |  Branch (41281:9): [True: 713k, False: 0]
  |  Branch (41281:9): [True: 6.89G, False: 0]
  ------------------
41282|  6.89G|        JSON_ASSERT(m_data.m_type != value_t::string || m_data.m_value.string != nullptr);
  ------------------
  |  | 2653|  6.89G|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41282:9): [True: 6.89G, False: 287k]
  |  Branch (41282:9): [True: 287k, False: 0]
  |  Branch (41282:9): [True: 6.89G, False: 0]
  ------------------
41283|  6.89G|        JSON_ASSERT(m_data.m_type != value_t::binary || m_data.m_value.binary != nullptr);
  ------------------
  |  | 2653|  6.89G|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41283:9): [True: 6.89G, False: 0]
  |  Branch (41283:9): [True: 0, False: 0]
  |  Branch (41283:9): [True: 6.89G, 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|  6.89G|        static_cast<void>(check_parents);
41296|  6.89G|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataD2Ev:
46531|  2.48G|        {
46532|  2.48G|            m_value.destroy(m_type);
46533|  2.48G|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value7destroyENS0_6detail7value_tE:
41223|  3.09G|        {
41224|  3.09G|            if (JSON_HEDLEY_UNLIKELY(detail::owns_memory(t)))
  ------------------
  |  | 1697|  3.09G|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 123k, False: 3.09G]
  |  |  ------------------
  ------------------
41225|   123k|            {
41226|   123k|                destroy_owned(t);
41227|   123k|            }
41228|  3.09G|        }
_ZN8nlohmann16json_abi_v3_12_06detail11owns_memoryENS1_7value_tE:
 3462|  3.09G|{
 3463|  3.09G|    switch (t)
 3464|  3.09G|    {
 3465|  16.5k|        case value_t::object:
  ------------------
  |  Branch (3465:9): [True: 16.5k, False: 3.09G]
  ------------------
 3466|  60.5k|        case value_t::array:
  ------------------
  |  Branch (3466:9): [True: 44.0k, False: 3.09G]
  ------------------
 3467|   123k|        case value_t::string:
  ------------------
  |  Branch (3467:9): [True: 63.1k, False: 3.09G]
  ------------------
 3468|   123k|        case value_t::binary:
  ------------------
  |  Branch (3468:9): [True: 0, False: 3.09G]
  ------------------
 3469|   123k|            return true;
 3470|       |
 3471|  2.48G|        case value_t::null:
  ------------------
  |  Branch (3471:9): [True: 2.48G, False: 612M]
  ------------------
 3472|  3.09G|        case value_t::boolean:
  ------------------
  |  Branch (3472:9): [True: 612M, False: 2.48G]
  ------------------
 3473|  3.09G|        case value_t::number_integer:
  ------------------
  |  Branch (3473:9): [True: 106k, False: 3.09G]
  ------------------
 3474|  3.09G|        case value_t::number_unsigned:
  ------------------
  |  Branch (3474:9): [True: 78.2k, False: 3.09G]
  ------------------
 3475|  3.09G|        case value_t::number_float:
  ------------------
  |  Branch (3475:9): [True: 67.6k, False: 3.09G]
  ------------------
 3476|  3.09G|        case value_t::discarded:
  ------------------
  |  Branch (3476:9): [True: 5.84k, False: 3.09G]
  ------------------
 3477|  3.09G|        default:
  ------------------
  |  Branch (3477:9): [True: 0, False: 3.09G]
  ------------------
 3478|  3.09G|            return false;
 3479|  3.09G|    }
 3480|  3.09G|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value13destroy_ownedENS0_6detail7value_tE:
41231|   123k|        {
41232|   123k|            switch (t)
41233|   123k|            {
41234|  63.1k|                case value_t::string:
  ------------------
  |  Branch (41234:17): [True: 63.1k, False: 60.5k]
  ------------------
41235|  63.1k|                    destroy_pointer(string);
41236|  63.1k|                    break;
41237|       |
41238|      0|                case value_t::binary:
  ------------------
  |  Branch (41238:17): [True: 0, False: 123k]
  ------------------
41239|      0|                    destroy_pointer(binary);
41240|      0|                    break;
41241|       |
41242|  16.5k|                case value_t::object:
  ------------------
  |  Branch (41242:17): [True: 16.5k, False: 107k]
  ------------------
41243|  60.5k|                case value_t::array:
  ------------------
  |  Branch (41243:17): [True: 44.0k, False: 79.6k]
  ------------------
41244|  60.5k|                    destroy_container(t);
41245|  60.5k|                    break;
41246|       |
41247|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (41247:17): [True: 0, False: 123k]
  ------------------
41248|      0|                case value_t::boolean:
  ------------------
  |  Branch (41248:17): [True: 0, False: 123k]
  ------------------
41249|      0|                case value_t::number_integer:
  ------------------
  |  Branch (41249:17): [True: 0, False: 123k]
  ------------------
41250|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (41250:17): [True: 0, False: 123k]
  ------------------
41251|      0|                case value_t::number_float:
  ------------------
  |  Branch (41251:17): [True: 0, False: 123k]
  ------------------
41252|      0|                case value_t::discarded:
  ------------------
  |  Branch (41252:17): [True: 0, False: 123k]
  ------------------
41253|      0|                default:
  ------------------
  |  Branch (41253:17): [True: 0, False: 123k]
  ------------------
41254|      0|                    break; // LCOV_EXCL_LINE
41255|   123k|            }
41256|   123k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_pointerISA_EEvRPT_:
41063|  63.1k|        {
41064|  63.1k|            if (ptr == nullptr)
  ------------------
  |  Branch (41064:17): [True: 0, False: 63.1k]
  ------------------
41065|      0|            {
41066|       |                // not initialized (e.g., due to exception in the ctor)
41067|      0|                return;
41068|      0|            }
41069|  63.1k|            AllocatorType<T> alloc;
41070|  63.1k|            std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr);
41071|  63.1k|            std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1);
41072|  63.1k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value17destroy_containerENS0_6detail7value_tE:
41076|  60.5k|        {
41077|  60.5k|            if (
41078|  60.5k|                (t == value_t::object && object == nullptr) ||
  ------------------
  |  Branch (41078:18): [True: 16.5k, False: 44.0k]
  |  Branch (41078:42): [True: 0, False: 16.5k]
  ------------------
41079|  60.5k|                (t == value_t::array && array == nullptr)
  ------------------
  |  Branch (41079:18): [True: 44.0k, False: 16.5k]
  |  Branch (41079:41): [True: 0, False: 44.0k]
  ------------------
41080|  60.5k|            )
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|  60.5k|            data cur;
41095|  60.5k|            cur.m_type = t;
41096|  60.5k|            std::swap(cur.m_value, *this);
41097|       |
41098|  60.5k|            destroy_bounded(cur, 0);
41099|  60.5k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2Ev:
46524|  1.16G|        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|   531k|        {
41107|   531k|            if (JSON_HEDLEY_UNLIKELY(depth >= detail::recursion_depth_limit()))
  ------------------
  |  | 1697|   531k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 7.65k, False: 523k]
  |  |  ------------------
  ------------------
41108|  7.65k|            {
41109|  7.65k|                destroy_walk(v);
41110|  7.65k|                return;
41111|  7.65k|            }
41112|       |
41113|   523k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41113:17): [True: 449k, False: 74.3k]
  ------------------
41114|   449k|            {
41115|   449k|                for (auto& child : *v.m_value.array)
  ------------------
  |  Branch (41115:34): [True: 1.16G, False: 449k]
  ------------------
41116|  1.16G|                {
41117|  1.16G|                    if (child.m_data.m_type == value_t::array || child.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41117:25): [True: 408k, False: 1.16G]
  |  Branch (41117:66): [True: 43.9k, False: 1.16G]
  ------------------
41118|   452k|                    {
41119|   452k|                        destroy_bounded(child.m_data, depth + 1);
41120|   452k|                    }
41121|  1.16G|                }
41122|   449k|            }
41123|  74.3k|            else
41124|  74.3k|            {
41125|  74.3k|                for (auto& child : *v.m_value.object)
  ------------------
  |  Branch (41125:34): [True: 100k, False: 74.3k]
  ------------------
41126|   100k|                {
41127|   100k|                    if (child.second.m_data.m_type == value_t::array || child.second.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41127:25): [True: 2.13k, False: 98.1k]
  |  Branch (41127:73): [True: 16.1k, False: 82.0k]
  ------------------
41128|  18.2k|                    {
41129|  18.2k|                        destroy_bounded(child.second.m_data, depth + 1);
41130|  18.2k|                    }
41131|   100k|                }
41132|  74.3k|            }
41133|       |
41134|       |            // only leaves and already destroyed (null) children remain
41135|   523k|            free_container(v);
41136|   523k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value12destroy_walkERNSE_4dataE:
41160|  7.65k|        {
41161|  7.65k|            data cur;
41162|  7.65k|            take(cur, top);
41163|       |
41164|  7.65k|            data prev; // value_t::null: no parent
41165|       |
41166|       |            // true right after cur was entered: its children have not been
41167|       |            // looked at yet. If none of them has children of its own, cur is
41168|       |            // freed in one go instead of child by child; this is tried once
41169|       |            // per container, so the walk stays linear.
41170|  7.65k|            bool fresh = true;
41171|       |
41172|  61.4k|            while (true)
  ------------------
  |  Branch (41172:20): [True: 61.4k, Folded]
  ------------------
41173|  61.4k|            {
41174|  61.4k|                const bool fresh_now = fresh;
41175|  61.4k|                fresh = false;
41176|  61.4k|                if (has_no_children(cur) || (fresh_now && all_children_leaves(cur)))
  ------------------
  |  Branch (41176:21): [True: 23.5k, False: 37.8k]
  |  Branch (41176:46): [True: 23.6k, False: 14.2k]
  |  Branch (41176:59): [True: 4.35k, False: 19.2k]
  ------------------
41177|  27.9k|                {
41178|  27.9k|                    if (prev.m_type == value_t::null)
  ------------------
  |  Branch (41178:25): [True: 7.65k, False: 20.2k]
  ------------------
41179|  7.65k|                    {
41180|  7.65k|                        free_container(cur);
41181|  7.65k|                        return; // back at the top with nothing left to do
41182|  7.65k|                    }
41183|       |
41184|       |                    // ascend: detach the grandparent link from prev's
41185|       |                    // walk_child() slot, drop that (now null) slot, free cur
41186|       |                    // (it is empty), then move up one level
41187|  20.2k|                    data gp;
41188|  20.2k|                    take(gp, walk_child(prev));
41189|  20.2k|                    pop_walk_child(prev);
41190|       |
41191|  20.2k|                    free_container(cur);
41192|       |
41193|  20.2k|                    take(cur, prev);
41194|  20.2k|                    take(prev, gp);
41195|  20.2k|                    continue;
41196|  27.9k|                }
41197|       |
41198|  33.5k|                data& cur_child_ref = walk_child(cur);
41199|       |
41200|  33.5k|                if (has_no_children(cur_child_ref))
  ------------------
  |  Branch (41200:21): [True: 13.2k, False: 20.2k]
  ------------------
41201|  13.2k|                {
41202|       |                    // scalar, or already-empty array/object
41203|  13.2k|                    pop_walk_child(cur);
41204|  13.2k|                    continue;
41205|  13.2k|                }
41206|       |
41207|       |                // descend into the non-empty child, reversing the
41208|       |                // link: its slot takes over prev, and the child becomes
41209|       |                // the new cur
41210|  20.2k|                data tmp;
41211|  20.2k|                take(tmp, cur_child_ref);
41212|  20.2k|                take(cur_child_ref, prev);
41213|  20.2k|                take(prev, cur);
41214|  20.2k|                take(cur, tmp);
41215|  20.2k|                fresh = true;
41216|  20.2k|            }
41217|  7.65k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value4takeERNSE_4dataESH_:
40939|   149k|        {
40940|   149k|            dst.m_type = src.m_type;
40941|   149k|            dst.m_value = src.m_value;
40942|   149k|            src.m_type = value_t::null;
40943|   149k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15has_no_childrenERKNSE_4dataE:
40947|  1.17G|        {
40948|  1.17G|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40948:17): [True: 562k, False: 1.17G]
  ------------------
40949|   562k|            {
40950|   562k|                return v.m_value.array->empty();
40951|   562k|            }
40952|  1.17G|            if (v.m_type == value_t::object)
  ------------------
  |  Branch (40952:17): [True: 102k, False: 1.17G]
  ------------------
40953|   102k|            {
40954|   102k|                return v.m_value.object->empty();
40955|   102k|            }
40956|  1.17G|            return true;
40957|  1.17G|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value19all_children_leavesERKNSE_4dataE:
40964|   482k|        {
40965|       |            // array_t only needs forward iterators (see custom_array_type)
40966|   482k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40966:17): [True: 428k, False: 54.2k]
  ------------------
40967|   428k|            {
40968|   428k|                const auto& a = *v.m_value.array;
40969|   428k|                return std::all_of(a.begin(), a.end(), [](const basic_json & el)
40970|   428k|                {
40971|   428k|                    return has_no_children(el.m_data);
40972|   428k|                });
40973|   428k|            }
40974|  54.2k|            const auto& o = *v.m_value.object;
40975|  54.2k|            return std::all_of(o.begin(), o.end(), [](const typename object_t::value_type & el)
40976|  54.2k|            {
40977|  54.2k|                return has_no_children(el.second.m_data);
40978|  54.2k|            });
40979|   482k|        }
_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|  1.17G|                {
40971|  1.17G|                    return has_no_children(el.m_data);
40972|  1.17G|                });
_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|   113k|            {
40977|   113k|                return has_no_children(el.second.m_data);
40978|   113k|            });
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value10walk_childERNSE_4dataE:
41010|  53.7k|        {
41011|  53.7k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41011:17): [True: 42.3k, False: 11.4k]
  ------------------
41012|  42.3k|            {
41013|  42.3k|                return v.m_value.array->back().m_data;
41014|  42.3k|            }
41015|  11.4k|            JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  11.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41015:13): [True: 11.4k, False: 0]
  ------------------
41016|  11.4k|            return walk_child_it(*v.m_value.object)->second.m_data;
41017|  11.4k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value13walk_child_itINS3_ISA_SE_NS2_4lessISA_EENS8_INS2_4pairIKSA_SE_EEEEEEEENT_8iteratorERSO_:
41002|  20.2k|        {
41003|  20.2k|            JSON_ASSERT(!o.empty());
  ------------------
  |  | 2653|  20.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41003:13): [True: 20.2k, False: 0]
  ------------------
41004|  20.2k|            return walk_child_it(o, typename std::iterator_traits<typename ObjectType_::iterator>::iterator_category());
41005|  20.2k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value13walk_child_itINS3_ISA_SE_NS2_4lessISA_EENS8_INS2_4pairIKSA_SE_EEEEEEEENT_8iteratorERSO_NS2_26bidirectional_iterator_tagE:
40990|  20.2k|        {
40991|  20.2k|            return std::prev(o.end());
40992|  20.2k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value14pop_walk_childERNSE_4dataE:
41024|  33.5k|        {
41025|  33.5k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41025:17): [True: 24.7k, False: 8.79k]
  ------------------
41026|  24.7k|            {
41027|  24.7k|                v.m_value.array->pop_back();
41028|  24.7k|            }
41029|  8.79k|            else
41030|  8.79k|            {
41031|  8.79k|                JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  8.79k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41031:17): [True: 8.79k, False: 0]
  ------------------
41032|  8.79k|                v.m_value.object->erase(walk_child_it(*v.m_value.object));
41033|  8.79k|            }
41034|  33.5k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value14free_containerERNSE_4dataE:
41042|   551k|        {
41043|   551k|            JSON_ASSERT(has_no_children(v) || all_children_leaves(v));
  ------------------
  |  | 2653|   551k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41043:13): [True: 92.4k, False: 459k]
  |  Branch (41043:13): [True: 459k, False: 0]
  |  Branch (41043:13): [True: 551k, False: 0]
  ------------------
41044|   551k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41044:17): [True: 472k, False: 79.1k]
  ------------------
41045|   472k|            {
41046|   472k|                AllocatorType<array_t> alloc;
41047|   472k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.array);
41048|   472k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.array, 1);
41049|   472k|            }
41050|  79.1k|            else
41051|  79.1k|            {
41052|  79.1k|                JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  79.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41052:17): [True: 79.1k, False: 0]
  ------------------
41053|  79.1k|                AllocatorType<object_t> alloc;
41054|  79.1k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.object);
41055|  79.1k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.object, 1);
41056|  79.1k|            }
41057|   551k|            v.m_type = value_t::null; // avoid a double free if v is later destructed
41058|   551k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_ubjsonIRKSD_EESE_OT_bbNS0_6detail15error_handler_tE:
46904|  41.8k|    {
46905|  41.8k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::ubjson, strict, allow_exceptions, error_handler);
46906|  41.8k|    }
_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|  53.7k|    {
46576|  53.7k|        basic_json result;
46577|  53.7k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  53.7k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  53.7k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 5.84k, False: 47.9k]
  ------------------
46580|  5.84k|        {
46581|  5.84k|            result = value_t::discarded;
46582|  5.84k|        }
46583|  53.7k|        return result;
46584|  53.7k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EDn:
42524|   556M|    {
42525|   556M|        assert_invariant();
42526|   556M|    }
_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|  53.7k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  53.7k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_stateC2Eb:
16621|  89.4k|        : allow_exceptions(allow_exceptions_)
16622|  89.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_EEEC2EOSK_NS1_14input_format_tENS1_15error_handler_tE:
18992|  53.7k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  53.7k|    {
18994|  53.7k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  53.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE3eofEv:
 4463|   866k|    {
 4464|   866k|        return static_cast<int_type>(std::char_traits<char>::eof());
 4465|   866k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17little_endiannessEi:
18810|   125k|{
18811|   125k|    return *reinterpret_cast<char*>(&num) == 1;
18812|   125k|}
_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|  53.7k|    {
19018|  53.7k|        sax = sax_;
19019|  53.7k|        container_stack.clear();
19020|  53.7k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  53.7k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  53.7k|        bool result = false;
19024|       |
19025|  53.7k|        switch (input_format)
19026|  53.7k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 53.7k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 53.7k]
  ------------------
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: 53.7k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|  53.7k|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 53.7k, False: 0]
  ------------------
19040|  53.7k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 53.7k]
  ------------------
19041|  53.7k|                result = parse_ubjson_internal();
19042|  53.7k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 53.7k]
  ------------------
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: 53.7k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 53.7k]
  ------------------
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|  53.7k|        }
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|  42.3k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 36.6k, False: 5.69k]
  |  Branch (19058:23): [True: 0, False: 36.6k]
  |  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|  42.3k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 36.6k, False: 5.69k]
  |  Branch (19065:23): [True: 36.6k, False: 0]
  ------------------
19066|  36.6k|        {
19067|  36.6k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 36.6k, False: 0]
  |  Branch (19067:59): [True: 0, False: 0]
  ------------------
19068|  36.6k|            {
19069|  36.6k|                get_ignore_noop();
19070|  36.6k|            }
19071|      0|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 0]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|      0|            else
19077|      0|            {
19078|      0|                get();
19079|      0|            }
19080|       |
19081|  36.6k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  36.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 456, False: 36.2k]
  |  |  ------------------
  ------------------
19082|    456|            {
19083|    456|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    456|            }
19085|  36.6k|        }
19086|       |
19087|  41.9k|        return result;
19088|  42.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_EEE12bound_parserEPSM_NS4_17integral_constantIbLb1EEE:
19096|  53.7k|    {
19097|  53.7k|        return s;
19098|  53.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_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  53.7k|            : parser(parser_), saved()
19120|  53.7k|        {
19121|  53.7k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 53.7k, False: 0]
  ------------------
19122|  53.7k|            {
19123|  53.7k|                saved = parser->get_reserve_state();
19124|  53.7k|                parser->set_input_position(position);
19125|  53.7k|            }
19126|  53.7k|        }
_ZNK8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17get_reserve_stateEv:
16668|  89.4k|    {
16669|  89.4k|        return {input_position, credit_position, reserve_credit};
16670|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state18set_input_positionEPKm:
16653|  89.4k|    {
16654|  89.4k|        input_position = position;
16655|  89.4k|        credit_position = 0;
16656|  89.4k|        reserve_credit = position != nullptr ? reserved_elements_base : (std::numeric_limits<std::size_t>::max)();
  ------------------
  |  Branch (16656:26): [True: 89.4k, False: 0]
  ------------------
16657|  89.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_EEE6get_toIiEEbRT_PKc:
23503|  10.5k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  10.5k|        auto new_chars_read = ia.get_elements(&dest);
23507|  10.5k|        chars_read += new_chars_read;
23508|  10.5k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  10.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 336, False: 10.2k]
  |  |  ------------------
  ------------------
23509|    336|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    336|            ++chars_read;
23512|    336|            static_cast<void>(report_eof(context));
23513|    336|            return false;
23514|    336|        }
23515|  10.2k|        return true;
23516|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIiEEmPT_m:
10326|  10.5k|    {
10327|  10.5k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIiEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  10.5k|    {
10385|  10.5k|        const std::size_t wanted = count * sizeof(T);
10386|  10.5k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  10.5k|        const std::size_t copied = (std::min)(wanted, available);
10388|  10.5k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  10.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 10.3k, False: 252]
  |  |  ------------------
  ------------------
10389|  10.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|  10.3k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  10.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 10.3k, False: 0]
  ------------------
10394|  10.3k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  10.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 10.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|  10.3k|            std::memcpy(dest, &*current, copied);
10398|  10.3k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  10.3k|        }
10400|  10.5k|        return copied;
10401|  10.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E15remaining_countEv:
10345|   399k|    {
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|   399k|        return static_cast<std::size_t>(std::distance(current, end));
10352|   399k|#endif
10353|   399k|    }
_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|  8.37k|    {
23992|  8.37k|        return sax->parse_error(chars_read, "<end of file>",
23993|  8.37k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  8.37k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state11parse_errorINS1_11parse_errorEEEbmRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKT_:
16634|  32.6k|    {
16635|  32.6k|        errored = true;
16636|  32.6k|        static_cast<void>(ex);
16637|  32.6k|        if (allow_exceptions)
  ------------------
  |  Branch (16637:13): [True: 27.2k, False: 5.44k]
  ------------------
16638|  27.2k|        {
16639|  27.2k|            JSON_THROW(ex);
  ------------------
  |  | 2618|  27.2k|    #define JSON_THROW(exception) throw exception
  ------------------
16640|  27.2k|        }
16641|  5.44k|        return false;
16642|  32.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idEmRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5802|  32.6k|    {
 5803|  32.6k|        return create(static_cast<int>(id_), byte_, what_arg, context);
 5804|  32.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_imRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5787|  32.6k|    {
 5788|  32.6k|        const std::string w = concat(exception::name("parse_error", id_), "parse error",
 5789|  32.6k|                                     (byte_ != 0 ? (concat(" at byte ", std::to_string(byte_))) : ""),
  ------------------
  |  Branch (5789:39): [True: 32.6k, False: 0]
  ------------------
 5790|  32.6k|                                     ": ", exception::diagnostics(context), what_arg);
 5791|  32.6k|        return {id_, byte_, w.c_str()};
 5792|  32.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_RA12_KcS9_RA3_SA_S9_RKS9_EEET_DpOT0_:
 5537|  32.6k|{
 5538|  32.6k|    OutStringType str;
 5539|  32.6k|    str.reserve(concat_length(args...));
 5540|  32.6k|    concat_into(str, std::forward<Args>(args)...);
 5541|  32.6k|    return str;
 5542|  32.6k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA12_cS9_A3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  32.6k|{
 5448|  32.6k|    return str.size() + concat_length(rest...);
 5449|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_S9_EEEmPKcDpRKT_:
 5441|  32.6k|{
 5442|  32.6k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  32.6k|{
 5448|  32.6k|    return str.size() + concat_length(rest...);
 5449|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_EEEmPKcDpRKT_:
 5441|  32.6k|{
 5442|  32.6k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  32.6k|}
_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|  32.6k|{
 5501|  32.6k|    out.append(std::forward<Arg>(arg));
 5502|  32.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  32.6k|}
_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|  32.6k|{
 5501|  32.6k|    out.append(std::forward<Arg>(arg));
 5502|  32.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  32.6k|}
_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|  32.6k|{
 5501|  32.6k|    out.append(std::forward<Arg>(arg));
 5502|  32.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  32.6k|{
 5501|  32.6k|    out.append(std::forward<Arg>(arg));
 5502|  32.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA10_KcS9_EEET_DpOT0_:
 5537|  32.6k|{
 5538|  32.6k|    OutStringType str;
 5539|  32.6k|    str.reserve(concat_length(args...));
 5540|  32.6k|    concat_into(str, std::forward<Args>(args)...);
 5541|  32.6k|    return str;
 5542|  32.6k|} // 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|  32.6k|{
 5501|  32.6k|    out.append(std::forward<Arg>(arg));
 5502|  32.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  32.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11parse_errorC2EimPKc:
 5819|  32.6k|        : 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|  16.5k|    {
24103|  16.5k|        std::string error_msg = "syntax error while parsing ";
24104|  16.5k|        error_msg += input_format_name(input_format);
24105|       |
24106|  16.5k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  16.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17input_format_nameENS1_14input_format_tE:
 9338|  33.0k|{
 9339|  33.0k|    switch (format)
 9340|  33.0k|    {
 9341|      0|        case input_format_t::cbor:
  ------------------
  |  Branch (9341:9): [True: 0, False: 33.0k]
  ------------------
 9342|      0|            return "CBOR";
 9343|      0|        case input_format_t::msgpack:
  ------------------
  |  Branch (9343:9): [True: 0, False: 33.0k]
  ------------------
 9344|      0|            return "MessagePack";
 9345|  33.0k|        case input_format_t::ubjson:
  ------------------
  |  Branch (9345:9): [True: 33.0k, False: 0]
  ------------------
 9346|  33.0k|            return "UBJSON";
 9347|      0|        case input_format_t::bson:
  ------------------
  |  Branch (9347:9): [True: 0, False: 33.0k]
  ------------------
 9348|      0|            return "BSON";
 9349|      0|        case input_format_t::bjdata:
  ------------------
  |  Branch (9349:9): [True: 0, False: 33.0k]
  ------------------
 9350|      0|            return "BJData";
 9351|      0|        case input_format_t::bon8:
  ------------------
  |  Branch (9351:9): [True: 0, False: 33.0k]
  ------------------
 9352|      0|            return "BON8";
 9353|      0|        case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (9353:9): [True: 0, False: 33.0k]
  ------------------
 9354|      0|        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (9354:9): [True: 0, False: 33.0k]
  ------------------
 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|  33.0k|    }
 9358|  33.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRS9_cRKS9_RA3_KcSC_EEET_DpOT0_:
 5537|  33.0k|{
 5538|  33.0k|    OutStringType str;
 5539|  33.0k|    str.reserve(concat_length(args...));
 5540|  33.0k|    concat_into(str, std::forward<Args>(args)...);
 5541|  33.0k|    return str;
 5542|  33.0k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cS9_EEEmRKT_DpRKT0_:
 5447|  33.0k|{
 5448|  33.0k|    return str.size() + concat_length(rest...);
 5449|  33.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_EEEmcDpRKT_:
 5435|  33.0k|{
 5436|  33.0k|    return 1 + concat_length(rest...);
 5437|  33.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_EEEmRKT_DpRKT0_:
 5447|  33.0k|{
 5448|  33.0k|    return str.size() + concat_length(rest...);
 5449|  33.0k|}
_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|  33.0k|{
 5501|  33.0k|    out.append(std::forward<Arg>(arg));
 5502|  33.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  33.0k|}
_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|  33.0k|{
 5510|  33.0k|    out += std::forward<Arg>(arg);
 5511|  33.0k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  33.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JRA3_KcSB_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  33.0k|{
 5501|  33.0k|    out.append(std::forward<Arg>(arg));
 5502|  33.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  33.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  33.0k|{
 5501|  33.0k|    out.append(std::forward<Arg>(arg));
 5502|  33.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  33.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_EEE9byte_swapIiEEvRT_:
23555|  12.5k|    {
23556|  12.5k|        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|  12.5k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  37.6k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 25.0k, False: 12.5k]
  ------------------
23572|  25.0k|            {
23573|  25.0k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  25.0k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  12.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_EEE15enter_containerEbmm:
19201|   328k|    {
19202|   328k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   656k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 157, False: 328k]
  |  |  |  Branch (1697:94): [True: 47.8k, False: 280k]
  |  |  ------------------
  ------------------
19203|    157|        {
19204|    157|            return false;
19205|    157|        }
19206|       |
19207|   328k|        container_stack.emplace_back(len, is_object, type_marker);
19208|   328k|        return true;
19209|   328k|    }
_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|  47.8k|    {
17879|  47.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|  47.8k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  47.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|   328k|    {
17962|   328k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 28.2k, False: 299k]
  ------------------
17963|  28.2k|        {
17964|  28.2k|            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|  28.2k|            return &root;
17971|  28.2k|        }
17972|       |
17973|   299k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   299k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 284k, False: 14.9k]
  |  Branch (17973:9): [True: 14.9k, False: 0]
  |  Branch (17973:9): [True: 299k, False: 0]
  ------------------
17974|       |
17975|   299k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 284k, False: 14.9k]
  ------------------
17976|   284k|        {
17977|   284k|            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|   284k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   284k|        }
17985|       |
17986|  14.9k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  14.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 14.9k, False: 0]
  ------------------
17987|  14.9k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  14.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 14.9k, False: 0]
  ------------------
17988|  14.9k|        *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|  14.9k|        return object_element;
17995|  14.9k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8is_arrayEv:
43077|  2.34G|    {
43078|  2.34G|        return m_data.m_type == value_t::array;
43079|  2.34G|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_objectEv:
43069|  1.71M|    {
43070|  1.71M|        return m_data.m_type == value_t::object;
43071|  1.71M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EOSE_:
42896|  1.31G|        : json_base_class_t(std::move(static_cast<json_base_class_t&>(other))),
42897|  1.31G|          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|  1.31G|    {
42903|       |        // check that the passed value is valid
42904|  1.31G|        other.assert_invariant(false);
42905|       |
42906|       |        // invalidate payload
42907|  1.31G|        other.m_data.m_type = value_t::null;
42908|  1.31G|        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|  1.31G|        set_parents();
42916|  1.31G|        assert_invariant();
42917|  1.31G|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11set_parentsEv:
41299|  2.54G|    {
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|  2.54G|    }
_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|   328k|{
16470|   328k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|   421k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 471, False: 327k]
  |  |  |  Branch (1697:94): [True: 93.5k, False: 234k]
  |  |  |  Branch (1697:94): [True: 471, False: 93.0k]
  |  |  ------------------
  ------------------
16471|    471|    {
16472|    471|        return container_too_large_error(sax, len, kind, ref);
16473|    471|    }
16474|   327k|    return true;
16475|   328k|}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8max_sizeEv:
44948|   117k|    {
44949|   117k|        if (m_data.m_type == value_t::array)
  ------------------
  |  Branch (44949:13): [True: 99.5k, False: 17.6k]
  ------------------
44950|  99.5k|        {
44951|       |            // delegate call to array_t::max_size()
44952|  99.5k|            return m_data.m_value.array->max_size();
44953|  99.5k|        }
44954|       |
44955|  17.6k|        if (m_data.m_type == value_t::object)
  ------------------
  |  Branch (44955:13): [True: 17.6k, False: 0]
  ------------------
44956|  17.6k|        {
44957|       |            // delegate call to object_t::max_size()
44958|  17.6k|            return m_data.m_value.object->max_size();
44959|  17.6k|        }
44960|       |
44961|       |        // all other types have max_size() == size()
44962|      0|        return size();
44963|  17.6k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4sizeEv:
44908|  18.5k|    {
44909|  18.5k|        switch (m_data.m_type)
44910|  18.5k|        {
44911|      0|            case value_t::null:
  ------------------
  |  Branch (44911:13): [True: 0, False: 18.5k]
  ------------------
44912|      0|            {
44913|       |                // null values are empty
44914|      0|                return 0;
44915|      0|            }
44916|       |
44917|  14.3k|            case value_t::array:
  ------------------
  |  Branch (44917:13): [True: 14.3k, False: 4.24k]
  ------------------
44918|  14.3k|            {
44919|       |                // delegate call to array_t::size()
44920|  14.3k|                return m_data.m_value.array->size();
44921|      0|            }
44922|       |
44923|  4.24k|            case value_t::object:
  ------------------
  |  Branch (44923:13): [True: 4.24k, False: 14.3k]
  ------------------
44924|  4.24k|            {
44925|       |                // delegate call to object_t::size()
44926|  4.24k|                return m_data.m_value.object->size();
44927|      0|            }
44928|       |
44929|      0|            case value_t::string:
  ------------------
  |  Branch (44929:13): [True: 0, False: 18.5k]
  ------------------
44930|      0|            case value_t::boolean:
  ------------------
  |  Branch (44930:13): [True: 0, False: 18.5k]
  ------------------
44931|      0|            case value_t::number_integer:
  ------------------
  |  Branch (44931:13): [True: 0, False: 18.5k]
  ------------------
44932|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (44932:13): [True: 0, False: 18.5k]
  ------------------
44933|      0|            case value_t::number_float:
  ------------------
  |  Branch (44933:13): [True: 0, False: 18.5k]
  ------------------
44934|      0|            case value_t::binary:
  ------------------
  |  Branch (44934:13): [True: 0, False: 18.5k]
  ------------------
44935|      0|            case value_t::discarded:
  ------------------
  |  Branch (44935:13): [True: 0, False: 18.5k]
  ------------------
44936|      0|            default:
  ------------------
  |  Branch (44936:13): [True: 0, False: 18.5k]
  ------------------
44937|      0|            {
44938|       |                // all other types have size 1
44939|      0|                return 1;
44940|      0|            }
44941|  18.5k|        }
44942|  18.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail25container_too_large_errorINS1_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_:
16463|    471|{
16464|    471|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    471|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state11parse_errorINS1_12out_of_rangeEEEbmRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKT_:
16634|  2.45k|    {
16635|  2.45k|        errored = true;
16636|  2.45k|        static_cast<void>(ex);
16637|  2.45k|        if (allow_exceptions)
  ------------------
  |  Branch (16637:13): [True: 2.04k, False: 409]
  ------------------
16638|  2.04k|        {
16639|  2.04k|            JSON_THROW(ex);
  ------------------
  |  | 2618|  2.04k|    #define JSON_THROW(exception) throw exception
  ------------------
16640|  2.04k|        }
16641|    409|        return false;
16642|  2.45k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIPNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEETnNS5_9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idERKSD_SK_:
 5889|    942|    {
 5890|    942|        return create(static_cast<int>(id_), what_arg, context);
 5891|    942|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIPNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEETnNS5_9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSD_SK_:
 5882|    942|    {
 5883|    942|        const std::string w = exception::what_impl("out_of_range", id_, what_arg, context);
 5884|    942|        return {id_, w.c_str()};
 5885|    942|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception9what_implIPNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_RKSD_iSK_T_:
 5676|    942|    {
 5677|    942|        return concat(name(ename, id_), diagnostics(context), what_arg);
 5678|    942|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception11diagnosticsINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_PKT_:
 5687|    942|    {
 5688|       |#if JSON_DIAGNOSTICS
 5689|       |        std::vector<std::string> tokens;
 5690|       |        for (const auto* current = leaf_element; current != nullptr && current->m_parent != nullptr; current = current->m_parent)
 5691|       |        {
 5692|       |            const auto* parent = current->m_parent;
 5693|       |            if (parent->is_array())
 5694|       |            {
 5695|       |                for (std::size_t i = 0; i < parent->m_data.m_value.array->size(); ++i)
 5696|       |                {
 5697|       |                    if (&parent->m_data.m_value.array->operator[](i) == current)
 5698|       |                    {
 5699|       |                        tokens.emplace_back(std::to_string(i));
 5700|       |                        break;
 5701|       |                    }
 5702|       |                }
 5703|       |            }
 5704|       |            else if (parent->is_object())
 5705|       |            {
 5706|       |                for (const auto& element : *parent->m_data.m_value.object)
 5707|       |                {
 5708|       |                    if (&element.second == current)
 5709|       |                    {
 5710|       |                        // data() is null-terminated, so a key containing
 5711|       |                        // a null byte is cut short here rather than
 5712|       |                        // truncating the whole message at what()
 5713|       |                        tokens.emplace_back(element.first.data());
 5714|       |                        break;
 5715|       |                    }
 5716|       |                }
 5717|       |            }
 5718|       |            // all other parent types (primitives) contribute no token
 5719|       |        }
 5720|       |
 5721|       |        // the root value has no path, but still has a byte range
 5722|       |        std::string prefix;
 5723|       |        if (!tokens.empty())
 5724|       |        {
 5725|       |            const auto str = std::accumulate(tokens.rbegin(), tokens.rend(), std::string{},
 5726|       |                                             [](const std::string & a, const std::string & b)
 5727|       |            {
 5728|       |                return concat(a, '/', detail::escape(b));
 5729|       |            });
 5730|       |            prefix = concat('(', str, ") ");
 5731|       |        }
 5732|       |
 5733|       |        return concat(prefix, get_byte_positions(leaf_element));
 5734|       |#else
 5735|    942|        return get_byte_positions(leaf_element);
 5736|    942|#endif
 5737|    942|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception18get_byte_positionsINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_PKT_:
 5756|    942|    {
 5757|    942|        static_cast<void>(leaf_element);
 5758|    942|        return "";
 5759|    942|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_rangeC2EiPKc:
 5895|  2.45k|    out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA11_KcRPSA_RA8_SA_S9_EEET_DpOT0_:
 5537|    942|{
 5538|    942|    OutStringType str;
 5539|    942|    str.reserve(concat_length(args...));
 5540|    942|    concat_into(str, std::forward<Args>(args)...);
 5541|    942|    return str;
 5542|    942|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA8_cNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|    942|{
 5442|    942|    return ::strlen(cstr) + concat_length(rest...);
 5443|    942|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA8_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|    942|{
 5442|    942|    return ::strlen(cstr) + concat_length(rest...);
 5443|    942|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA11_KcJRPSA_RA8_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|    942|{
 5501|    942|    out.append(std::forward<Arg>(arg));
 5502|    942|    concat_into(out, std::forward<Args>(rest)...);
 5503|    942|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA8_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|    942|{
 5501|    942|    out.append(std::forward<Arg>(arg));
 5502|    942|    concat_into(out, std::forward<Args>(rest)...);
 5503|    942|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA8_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    942|{
 5501|    942|    out.append(std::forward<Arg>(arg));
 5502|    942|    concat_into(out, std::forward<Args>(rest)...);
 5503|    942|}
_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|   280k|    {
17916|   280k|        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|   280k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|   280k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 280k]
  |  |  ------------------
  ------------------
17924|     69|        {
17925|     69|            return false;
17926|     69|        }
17927|       |
17928|   280k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 78.9k, False: 201k]
  ------------------
17929|  78.9k|        {
17930|  78.9k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  78.9k|        }
17932|       |
17933|   280k|        return true;
17934|   280k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20reserve_array_cappedINSt3__16vectorINS0_10basic_jsonINS3_3mapES4_NS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS4_IhNSA_IhEEEEvEENSA_ISG_EEEEEEDTcmcldtfp_7reservefp0_Ecvv_EERT_mNS1_12priority_tagILj1EEE:
16441|  99.1k|{
16442|  99.1k|    arr.reserve(count);
16443|  99.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state13reserve_countEm:
16700|  99.1k|    {
16701|  99.1k|        const std::size_t count = (std::min)(len, reserve_cap());
16702|  99.1k|        if (JSON_HEDLEY_LIKELY(count <= reserve_credit))
  ------------------
  |  | 1696|  99.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 93.6k, False: 5.48k]
  |  |  ------------------
  ------------------
16703|  93.6k|        {
16704|  93.6k|            reserve_credit -= count;
16705|  93.6k|            return count;
16706|  93.6k|        }
16707|  5.48k|        return reserve_count_slowly(count);
16708|  99.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11reserve_capEv:
16382|  99.1k|{
16383|  99.1k|    return 16384;
16384|  99.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state20reserve_count_slowlyEm:
16714|  5.48k|    {
16715|  5.48k|        constexpr std::size_t max_size = (std::numeric_limits<std::size_t>::max)();
16716|  5.48k|        if (input_position == nullptr)
  ------------------
  |  Branch (16716:13): [True: 0, False: 5.48k]
  ------------------
16717|      0|        {
16718|      0|            reserve_credit = max_size;
16719|      0|            return count;
16720|      0|        }
16721|       |
16722|       |        // refill the credit with 'reserved_elements_per_byte' for every
16723|       |        // character read since the last refill; it saturates instead of
16724|       |        // overflowing when size_t is 32 bits wide and a very large input has
16725|       |        // been read (the position goes back by up to two in BON8, which has
16726|       |        // no sizes)
16727|  5.48k|        const std::size_t position = *input_position;
16728|  5.48k|        if (position > credit_position)
  ------------------
  |  Branch (16728:13): [True: 5.48k, False: 0]
  ------------------
16729|  5.48k|        {
16730|  5.48k|            const std::size_t bytes = position - credit_position;
16731|  5.48k|            reserve_credit = bytes <= (max_size - reserve_credit) / reserved_elements_per_byte
  ------------------
  |  Branch (16731:30): [True: 5.48k, False: 0]
  ------------------
16732|  5.48k|                             ? reserve_credit + (reserved_elements_per_byte * bytes)
16733|  5.48k|                             : max_size;
16734|  5.48k|            credit_position = position;
16735|  5.48k|        }
16736|       |
16737|  5.48k|        count = (std::min)(count, reserve_credit);
16738|  5.48k|        reserve_credit -= count;
16739|  5.48k|        return count;
16740|  5.48k|    }
_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|   327k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail12unknown_sizeEv:
16376|  1.45M|{
16377|  1.45M|    return (std::numeric_limits<std::size_t>::max)();
16378|  1.45M|}
_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|   227k|    {
19234|   227k|        const bool is_object = container_stack.back().is_object;
19235|   227k|        container_stack.pop_back();
19236|   227k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 37.3k, False: 189k]
  ------------------
19237|   227k|    }
_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|  37.3k|    {
17902|  37.3k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  37.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 37.3k, False: 0]
  ------------------
17903|  37.3k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  37.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 37.3k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  37.3k|        ref_stack.back()->set_parents();
17910|  37.3k|        ref_stack.pop_back();
17911|  37.3k|        return true;
17912|  37.3k|    }
_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|   189k|    {
17938|   189k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|   189k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 189k, False: 0]
  ------------------
17939|   189k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|   189k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 189k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|   189k|        ref_stack.back()->set_parents();
17946|   189k|        ref_stack.pop_back();
17947|   189k|        return true;
17948|   189k|    }
_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|   553k|    {
23975|   553k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   553k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 6.18k, False: 547k]
  |  |  ------------------
  ------------------
23976|  6.18k|        {
23977|  6.18k|            return report_eof(context);
23978|  6.18k|        }
23979|   547k|        return true;
23980|   553k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E14bulk_remainingEv:
10370|  78.4k|    {
10371|  78.4k|        return remaining_count();
10372|  78.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_dataEv:
10364|  72.9k|    {
10365|  72.9k|        return &*current;
10366|  72.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_skipEm:
10376|  72.9k|    {
10377|  72.9k|        std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(n));
10378|  72.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_EEE17check_string_utf8ERSC_PKc:
23811|   107k|    {
23812|   107k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 107k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|   107k|    }
_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|  83.5k|    {
17891|  83.5k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  83.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 83.5k, False: 0]
  ------------------
17892|  83.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  83.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 83.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|  83.5k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  83.5k|        return true;
17898|  83.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_EEE6get_toIdEEbRT_PKc:
23503|  16.1k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  16.1k|        auto new_chars_read = ia.get_elements(&dest);
23507|  16.1k|        chars_read += new_chars_read;
23508|  16.1k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  16.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 231, False: 15.9k]
  |  |  ------------------
  ------------------
23509|    231|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    231|            ++chars_read;
23512|    231|            static_cast<void>(report_eof(context));
23513|    231|            return false;
23514|    231|        }
23515|  15.9k|        return true;
23516|  16.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIdEEmPT_m:
10326|  16.1k|    {
10327|  16.1k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  16.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIdEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  16.1k|    {
10385|  16.1k|        const std::size_t wanted = count * sizeof(T);
10386|  16.1k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  16.1k|        const std::size_t copied = (std::min)(wanted, available);
10388|  16.1k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  16.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 15.9k, False: 189]
  |  |  ------------------
  ------------------
10389|  15.9k|        {
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|  15.9k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  15.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 15.9k, False: 0]
  ------------------
10394|  15.9k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  15.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 15.9k, 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|  15.9k|            std::memcpy(dest, &*current, copied);
10398|  15.9k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  15.9k|        }
10400|  16.1k|        return copied;
10401|  16.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_EEE9byte_swapERd:
23535|  19.2k|    {
23536|  19.2k|        static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
23537|  19.2k|        std::uint64_t bits{};
23538|  19.2k|        std::memcpy(&bits, &number, sizeof(bits));
23539|  19.2k|        bits = byteswap(bits);
23540|  19.2k|        std::memcpy(&number, &bits, sizeof(bits));
23541|  19.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_EEE10emit_floatIdEEbT_:
23682|  19.2k|    {
23683|  19.2k|        const auto result = static_cast<number_float_t>(number);
23684|  19.2k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  37.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 19.2k]
  |  |  |  Branch (1697:94): [True: 18.7k, False: 510]
  |  |  |  Branch (1697:94): [True: 0, False: 18.7k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  19.2k|        return sax->number_float(result, no_source);
23689|  19.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_EEE18out_of_range_errorENS1_12exception_idEPKcSQ_:
24001|    186|    {
24002|    186|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|    186|    }
_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|  4.09k|    {
24092|  4.09k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  4.09k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idERKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5889|  1.51k|    {
 5890|  1.51k|        return create(static_cast<int>(id_), what_arg, context);
 5891|  1.51k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5882|  1.51k|    {
 5883|  1.51k|        const std::string w = exception::what_impl("out_of_range", id_, what_arg, context);
 5884|  1.51k|        return {id_, w.c_str()};
 5885|  1.51k|    }
_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|  41.6k|    {
17857|  41.6k|        handle_value(val);
17858|  41.6k|        return true;
17859|  41.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_EEE12handle_valueIRdEEPSG_OT_:
17961|  41.6k|    {
17962|  41.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10.0k, False: 31.5k]
  ------------------
17963|  10.0k|        {
17964|  10.0k|            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|  10.0k|            return &root;
17971|  10.0k|        }
17972|       |
17973|  31.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  31.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 29.4k, False: 2.08k]
  |  Branch (17973:9): [True: 2.08k, False: 0]
  |  Branch (17973:9): [True: 31.5k, False: 0]
  ------------------
17974|       |
17975|  31.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 29.4k, False: 2.08k]
  ------------------
17976|  29.4k|        {
17977|  29.4k|            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.4k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  29.4k|        }
17985|       |
17986|  2.08k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.08k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 2.08k, False: 0]
  ------------------
17987|  2.08k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  2.08k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 2.08k, False: 0]
  ------------------
17988|  2.08k|        *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|  2.08k|        return object_element;
17995|  2.08k|    }
_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|  67.6k|    {
42543|  67.6k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  67.6k|        set_parents();
42545|  67.6k|        assert_invariant();
42546|  67.6k|    }
_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|  67.6k|    {
 8497|  67.6k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  67.6k|    }
_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|  67.6k|    {
 8441|  67.6k|        return to_json(j, std::forward<T>(val));
 8442|  67.6k|    }
_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|  67.6k|{
 8129|  67.6k|    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
 8130|  67.6k|}
_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|  67.6k|    {
 7919|  67.6k|        j.replace_value(value_t::number_float, val);
 7920|  67.6k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE13replace_valueENS0_6detail7value_tERKNSE_10json_valueE:
41322|   612M|    {
41323|   612M|        m_data.m_value.destroy(m_data.m_type);
41324|   612M|        m_data.m_value = v;
41325|   612M|        m_data.m_type = t;
41326|   612M|        set_parents();
41327|   612M|        assert_invariant();
41328|   612M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Ed:
40810|  67.6k|        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_EEE10get_stringIiEEbT_RSC_:
23767|  1.47k|    {
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|  1.47k|        return get_bytes(len, "string", result);
23778|  1.47k|    }
_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|  1.47k|    {
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|  1.47k|        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|  1.47k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 657, False: 819]
  ------------------
23898|    657|        {
23899|    657|            return true;
23900|    657|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    819|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    819|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 270, False: 549]
  ------------------
23906|    270|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    270|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 114, False: 156]
  ------------------
23910|    270|                                       ? static_cast<std::size_t>(len)
23911|    270|                                       : chunk_size;
23912|    270|            const std::size_t old_size = result.size();
23913|    270|            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|    270|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    270|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 270, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    270|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    270|            chars_read += bytes_read;
23921|    270|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    270|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 0]
  |  |  ------------------
  ------------------
23922|    270|            {
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|    270|                result.resize(old_size + bytes_read);
23927|    270|                ++chars_read;
23928|    270|                current = char_traits<char_type>::eof();
23929|    270|                return unexpect_eof(context);
23930|    270|            }
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|    549|        return true;
23936|    819|    }
_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|  1.47k|    {
23943|  1.47k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 549, False: 927]
  ------------------
23944|    549|        {
23945|    549|            return false;
23946|    549|        }
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|    927|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    927|        const std::size_t remaining = ia.bulk_remaining();
23951|    927|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 270, False: 657]
  ------------------
23952|    270|        {
23953|    270|            return false; // (the loop reports the premature end)
23954|    270|        }
23955|    657|        const auto n = static_cast<std::size_t>(ulen);
23956|    657|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    657|        ia.bulk_skip(n);
23958|    657|        chars_read += n;
23959|    657|        return true;
23960|    927|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIcEEmPT_m:
10326|  1.17k|    {
10327|  1.17k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  1.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIcEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  1.17k|    {
10385|  1.17k|        const std::size_t wanted = count * sizeof(T);
10386|  1.17k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  1.17k|        const std::size_t copied = (std::min)(wanted, available);
10388|  1.17k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  1.17k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 330, False: 846]
  |  |  ------------------
  ------------------
10389|    330|        {
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|    330|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|    330|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 330, False: 0]
  ------------------
10394|    330|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|    330|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 330, 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|    330|            std::memcpy(dest, &*current, copied);
10398|    330|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|    330|        }
10400|  1.17k|        return copied;
10401|  1.17k|    }
_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|  39.8k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  39.8k|        handle_value(std::move(val));
17866|  39.8k|        return true;
17867|  39.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_valueISC_EEPSG_OT_:
17961|  39.8k|    {
17962|  39.8k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 2.68k, False: 37.1k]
  ------------------
17963|  2.68k|        {
17964|  2.68k|            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|  2.68k|            return &root;
17971|  2.68k|        }
17972|       |
17973|  37.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  37.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 31.8k, False: 5.32k]
  |  Branch (17973:9): [True: 5.32k, False: 0]
  |  Branch (17973:9): [True: 37.1k, False: 0]
  ------------------
17974|       |
17975|  37.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 31.8k, False: 5.32k]
  ------------------
17976|  31.8k|        {
17977|  31.8k|            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|  31.8k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  31.8k|        }
17985|       |
17986|  5.32k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.32k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 5.32k, False: 0]
  ------------------
17987|  5.32k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  5.32k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 5.32k, False: 0]
  ------------------
17988|  5.32k|        *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.32k|        return object_element;
17995|  5.32k|    }
_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|  63.1k|    {
42543|  63.1k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  63.1k|        set_parents();
42545|  63.1k|        assert_invariant();
42546|  63.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|  63.1k|    {
 8497|  63.1k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  63.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|  63.1k|    {
 8441|  63.1k|        return to_json(j, std::forward<T>(val));
 8442|  63.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|  63.1k|{
 8122|  63.1k|    external_constructor<value_t::string>::construct(j, std::move(s));
 8123|  63.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|  63.1k|    {
 7881|  63.1k|        const typename BasicJsonType::json_value value(std::move(s));
 7882|  63.1k|        j.replace_value(value_t::string, value);
 7883|  63.1k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2EOSA_:
40901|  63.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|  63.1k|    {
40735|  63.1k|        AllocatorType<T> alloc;
40736|  63.1k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  63.1k|        auto deleter = [&](T * obj)
40739|  63.1k|        {
40740|  63.1k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  63.1k|        };
40742|  63.1k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  63.1k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  63.1k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  63.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 63.1k, False: 0]
  ------------------
40745|  63.1k|        return obj.release();
40746|  63.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIhEEmPT_m:
10326|   107k|    {
10327|   107k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|   107k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIhEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|   107k|    {
10385|   107k|        const std::size_t wanted = count * sizeof(T);
10386|   107k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|   107k|        const std::size_t copied = (std::min)(wanted, available);
10388|   107k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|   107k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 107k, False: 342]
  |  |  ------------------
  ------------------
10389|   107k|        {
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|   107k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|   107k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 107k, False: 0]
  ------------------
10394|   107k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|   107k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 107k, 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|   107k|            std::memcpy(dest, &*current, copied);
10398|   107k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|   107k|        }
10400|   107k|        return copied;
10401|   107k|    }
_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|   107k|    {
23597|       |        // read in the original format
23598|       |
23599|   107k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|   107k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 107k]
  |  |  ------------------
  ------------------
23600|    114|        {
23601|    114|            return false;
23602|    114|        }
23603|   107k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 107k, False: 228]
  |  Branch (23603:34): [Folded, False: 107k]
  |  Branch (23603:57): [True: 0, False: 107k]
  ------------------
23604|   107k|        {
23605|   107k|            byte_swap(result);
23606|   107k|        }
23607|   107k|        return true;
23608|   107k|    }
_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|   107k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|   107k|        auto new_chars_read = ia.get_elements(&dest);
23507|   107k|        chars_read += new_chars_read;
23508|   107k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|   107k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 342, False: 107k]
  |  |  ------------------
  ------------------
23509|    342|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    342|            ++chars_read;
23512|    342|            static_cast<void>(report_eof(context));
23513|    342|            return false;
23514|    342|        }
23515|   107k|        return true;
23516|   107k|    }
_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|   120k|    {
23556|   120k|        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|   120k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|   120k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 120k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|   120k|    }
_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|   405M|    {
17839|   405M|        handle_value(val);
17840|   405M|        return true;
17841|   405M|    }
_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|   405M|    {
17962|   405M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 120, False: 405M]
  ------------------
17963|    120|        {
17964|    120|            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|    120|            return &root;
17971|    120|        }
17972|       |
17973|   405M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   405M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 405M, False: 13.9k]
  |  Branch (17973:9): [True: 13.9k, False: 0]
  |  Branch (17973:9): [True: 405M, False: 0]
  ------------------
17974|       |
17975|   405M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 405M, False: 13.9k]
  ------------------
17976|   405M|        {
17977|   405M|            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|   405M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   405M|        }
17985|       |
17986|  13.9k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 13.9k, False: 0]
  ------------------
17987|  13.9k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 13.9k, False: 0]
  ------------------
17988|  13.9k|        *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|  13.9k|        return object_element;
17995|  13.9k|    }
_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|   612M|    {
42543|   612M|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   612M|        set_parents();
42545|   612M|        assert_invariant();
42546|   612M|    }
_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|   612M|    {
 8497|   612M|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   612M|    }
_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|   612M|    {
 8441|   612M|        return to_json(j, std::forward<T>(val));
 8442|   612M|    }
_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|   612M|{
 8096|   612M|    external_constructor<value_t::boolean>::construct(j, b);
 8097|   612M|}
_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|   612M|    {
 7864|   612M|        j.replace_value(value_t::boolean, b);
 7865|   612M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Eb:
40804|   612M|        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|   361M|    {
17833|   361M|        handle_value(nullptr);
17834|   361M|        return true;
17835|   361M|    }
_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|   361M|    {
17962|   361M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 45, False: 361M]
  ------------------
17963|     45|        {
17964|     45|            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|     45|            return &root;
17971|     45|        }
17972|       |
17973|   361M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   361M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 361M, False: 33.3k]
  |  Branch (17973:9): [True: 33.3k, False: 0]
  |  Branch (17973:9): [True: 361M, False: 0]
  ------------------
17974|       |
17975|   361M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 361M, False: 33.3k]
  ------------------
17976|   361M|        {
17977|   361M|            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|   361M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   361M|        }
17985|       |
17986|  33.3k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  33.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 33.3k, False: 0]
  ------------------
17987|  33.3k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  33.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 33.3k, False: 0]
  ------------------
17988|  33.3k|        *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|  33.3k|        return object_element;
17995|  33.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_EEE11emit_signedIiEEbT_:
23628|  8.46k|    {
23629|  8.46k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  8.46k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.46k, False: 0]
  |  |  ------------------
  ------------------
23630|  8.46k|        {
23631|  8.46k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  8.46k|        }
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|  13.0k|{
 5317|  13.0k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  13.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IliLb1EvE4testEi:
 5309|  13.0k|    {
 5310|  13.0k|        return true;
 5311|  13.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_EEE14number_integerEl:
17844|  68.7k|    {
17845|  68.7k|        handle_value(val);
17846|  68.7k|        return true;
17847|  68.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_adapterIPKhSJ_EEE12handle_valueIRlEEPSG_OT_:
17961|  68.7k|    {
17962|  68.7k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 3.75k, False: 65.0k]
  ------------------
17963|  3.75k|        {
17964|  3.75k|            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|  3.75k|            return &root;
17971|  3.75k|        }
17972|       |
17973|  65.0k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  65.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 56.8k, False: 8.15k]
  |  Branch (17973:9): [True: 8.15k, False: 0]
  |  Branch (17973:9): [True: 65.0k, False: 0]
  ------------------
17974|       |
17975|  65.0k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 56.8k, False: 8.15k]
  ------------------
17976|  56.8k|        {
17977|  56.8k|            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|  56.8k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  56.8k|        }
17985|       |
17986|  8.15k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  8.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 8.15k, False: 0]
  ------------------
17987|  8.15k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  8.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 8.15k, False: 0]
  ------------------
17988|  8.15k|        *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|  8.15k|        return object_element;
17995|  8.15k|    }
_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|   106k|    {
42543|   106k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   106k|        set_parents();
42545|   106k|        assert_invariant();
42546|   106k|    }
_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|   106k|    {
 8497|   106k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   106k|    }
_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|   106k|    {
 8441|   106k|        return to_json(j, std::forward<T>(val));
 8442|   106k|    }
_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|   106k|{
 8143|   106k|    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
 8144|   106k|}
_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|   106k|    {
 7939|   106k|        j.replace_value(value_t::number_integer, val);
 7940|   106k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2El:
40806|   106k|        json_value(number_integer_t v) noexcept : number_integer(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImiEEbT0_:
 5316|  4.33k|{
 5317|  4.33k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  4.33k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImiLb0EvE4testEi:
 5300|  4.33k|    {
 5301|  4.33k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  4.33k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImiLb0ELb1EE4testEi:
 5274|  4.33k|    {
 5275|  4.33k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  4.33k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 4.33k, False: 0]
  |  Branch (5276:28): [True: 4.33k, False: 0]
  ------------------
 5277|  4.33k|    }
_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|  43.2k|    {
17851|  43.2k|        handle_value(val);
17852|  43.2k|        return true;
17853|  43.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_valueIRmEEPSG_OT_:
17961|  43.2k|    {
17962|  43.2k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.29k, False: 41.9k]
  ------------------
17963|  1.29k|        {
17964|  1.29k|            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|  1.29k|            return &root;
17971|  1.29k|        }
17972|       |
17973|  41.9k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  41.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 37.2k, False: 4.74k]
  |  Branch (17973:9): [True: 4.74k, False: 0]
  |  Branch (17973:9): [True: 41.9k, False: 0]
  ------------------
17974|       |
17975|  41.9k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 37.2k, False: 4.74k]
  ------------------
17976|  37.2k|        {
17977|  37.2k|            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|  37.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  37.2k|        }
17985|       |
17986|  4.74k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.74k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.74k, False: 0]
  ------------------
17987|  4.74k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.74k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.74k, False: 0]
  ------------------
17988|  4.74k|        *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.74k|        return object_element;
17995|  4.74k|    }
_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|  78.2k|    {
42543|  78.2k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  78.2k|        set_parents();
42545|  78.2k|        assert_invariant();
42546|  78.2k|    }
_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|  78.2k|    {
 8497|  78.2k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  78.2k|    }
_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|  78.2k|    {
 8441|  78.2k|        return to_json(j, std::forward<T>(val));
 8442|  78.2k|    }
_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|  78.2k|{
 8136|  78.2k|    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
 8137|  78.2k|}
_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|  78.2k|    {
 7929|  78.2k|        j.replace_value(value_t::number_unsigned, val);
 7930|  78.2k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Em:
40808|  78.2k|        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_EEE6get_toIlEEbRT_PKc:
23503|  12.5k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  12.5k|        auto new_chars_read = ia.get_elements(&dest);
23507|  12.5k|        chars_read += new_chars_read;
23508|  12.5k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  12.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 363, False: 12.1k]
  |  |  ------------------
  ------------------
23509|    363|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    363|            ++chars_read;
23512|    363|            static_cast<void>(report_eof(context));
23513|    363|            return false;
23514|    363|        }
23515|  12.1k|        return true;
23516|  12.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIlEEmPT_m:
10326|  12.5k|    {
10327|  12.5k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  12.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIlEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  12.5k|    {
10385|  12.5k|        const std::size_t wanted = count * sizeof(T);
10386|  12.5k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  12.5k|        const std::size_t copied = (std::min)(wanted, available);
10388|  12.5k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  12.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.2k, False: 258]
  |  |  ------------------
  ------------------
10389|  12.2k|        {
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|  12.2k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  12.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 12.2k, False: 0]
  ------------------
10394|  12.2k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  12.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 12.2k, 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|  12.2k|            std::memcpy(dest, &*current, copied);
10398|  12.2k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  12.2k|        }
10400|  12.5k|        return copied;
10401|  12.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_EEE9byte_swapIlEEvRT_:
23555|  13.8k|    {
23556|  13.8k|        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|  13.8k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  69.3k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 55.4k, False: 13.8k]
  ------------------
23572|  55.4k|            {
23573|  55.4k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  55.4k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  13.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_EEE11emit_signedIlEEbT_:
23628|  9.47k|    {
23629|  9.47k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  9.47k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.47k, False: 0]
  |  |  ------------------
  ------------------
23630|  9.47k|        {
23631|  9.47k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  9.47k|        }
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|  21.5k|{
 5317|  21.5k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  21.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IllLb1EvE4testEl:
 5309|  21.5k|    {
 5310|  21.5k|        return true;
 5311|  21.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImlEEbT0_:
 5316|  4.90k|{
 5317|  4.90k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  4.90k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImlLb0EvE4testEl:
 5300|  4.90k|    {
 5301|  4.90k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  4.90k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImlLb0ELb1EE4testEl:
 5274|  4.90k|    {
 5275|  4.90k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  4.90k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 4.90k, False: 0]
  |  Branch (5276:28): [True: 4.90k, False: 0]
  ------------------
 5277|  4.90k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA16_cNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|    864|{
 5442|    864|    return ::strlen(cstr) + concat_length(rest...);
 5443|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA16_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  1.96k|{
 5442|  1.96k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.96k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.96k|{
 5501|  1.96k|    out.append(std::forward<Arg>(arg));
 5502|  1.96k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.96k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA16_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  1.96k|{
 5501|  1.96k|    out.append(std::forward<Arg>(arg));
 5502|  1.96k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.96k|}
_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_bytesIhSC_EEbT_PKcRT0_:
23893|  52.7k|    {
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|  52.7k|        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|  52.7k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 28.9k, False: 23.8k]
  ------------------
23898|  28.9k|        {
23899|  28.9k|            return true;
23900|  28.9k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  23.8k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  23.8k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 144, False: 23.6k]
  ------------------
23906|    144|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    144|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 144, False: 0]
  ------------------
23910|    144|                                       ? static_cast<std::size_t>(len)
23911|    144|                                       : chunk_size;
23912|    144|            const std::size_t old_size = result.size();
23913|    144|            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|    144|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    144|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 144, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    144|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    144|            chars_read += bytes_read;
23921|    144|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    144|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 144, False: 0]
  |  |  ------------------
  ------------------
23922|    144|            {
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|    144|                result.resize(old_size + bytes_read);
23927|    144|                ++chars_read;
23928|    144|                current = char_traits<char_type>::eof();
23929|    144|                return unexpect_eof(context);
23930|    144|            }
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|  23.6k|        return true;
23936|  23.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_EEE17append_from_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  52.7k|    {
23943|  52.7k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 23.6k, False: 29.1k]
  ------------------
23944|  23.6k|        {
23945|  23.6k|            return false;
23946|  23.6k|        }
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|  29.1k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  29.1k|        const std::size_t remaining = ia.bulk_remaining();
23951|  29.1k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 144, False: 28.9k]
  ------------------
23952|    144|        {
23953|    144|            return false; // (the loop reports the premature end)
23954|    144|        }
23955|  28.9k|        const auto n = static_cast<std::size_t>(ulen);
23956|  28.9k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  28.9k|        ia.bulk_skip(n);
23958|  28.9k|        chars_read += n;
23959|  28.9k|        return true;
23960|  29.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_EEE13emit_unsignedIhEEbT_:
23656|  32.5k|    {
23657|  32.5k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  32.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 32.5k, False: 0]
  |  |  ------------------
  ------------------
23658|  32.5k|        {
23659|  32.5k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  32.5k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  32.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImhEEbT0_:
 5316|  57.9k|{
 5317|  57.9k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  57.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImhLb0EvE4testEh:
 5300|  57.9k|    {
 5301|  57.9k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  57.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImhLb0ELb0EE4testEh:
 5254|  57.9k|    {
 5255|  57.9k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  57.9k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  57.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIlmEEbT0_:
 5316|  4.45k|{
 5317|  4.45k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  4.45k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlmLb0EvE4testEm:
 5300|  4.45k|    {
 5301|  4.45k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  4.45k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IlmLb1ELb0EE4testEm:
 5264|  4.45k|    {
 5265|  4.45k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  4.45k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  4.45k|    }
_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_floatIfEEbT_:
23682|  12.9k|    {
23683|  12.9k|        const auto result = static_cast<number_float_t>(number);
23684|  12.9k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  25.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.9k]
  |  |  |  Branch (1697:94): [True: 12.5k, False: 408]
  |  |  |  Branch (1697:94): [True: 0, False: 12.5k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  12.9k|        return sax->number_float(result, no_source);
23689|  12.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_EEE9byte_swapERf:
23545|  12.9k|    {
23546|  12.9k|        static_assert(sizeof(float) == sizeof(std::uint32_t), "float must have 32 bits");
23547|  12.9k|        std::uint32_t bits{};
23548|  12.9k|        std::memcpy(&bits, &number, sizeof(bits));
23549|  12.9k|        bits = byteswap(bits);
23550|  12.9k|        std::memcpy(&number, &bits, sizeof(bits));
23551|  12.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail8byteswapEj:
 9157|  31.5k|{
 9158|  31.5k|#if defined(__GNUC__) || defined(__clang__)
 9159|  31.5k|    return __builtin_bswap32(x);
 9160|       |#elif defined(_MSC_VER)
 9161|       |    return _byteswap_ulong(x);
 9162|       |#elif defined(__cpp_lib_byteswap)
 9163|       |    return std::byteswap(x);
 9164|       |#else
 9165|       |    return ((x & 0x000000FFu) << 24u) | ((x & 0x0000FF00u) << 8u)
 9166|       |           | ((x & 0x00FF0000u) >> 8u) | ((x & 0xFF000000u) >> 24u);
 9167|       |#endif
 9168|  31.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_EEE11enter_arrayEmm:
19213|   280k|    {
19214|   280k|        return enter_container(/*is_object*/false, len, type_marker);
19215|   280k|    }
_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_EEE12enter_objectEmm:
19219|  47.8k|    {
19220|  47.8k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  47.8k|    }
_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_EEE15unexpected_byteEPKcSP_:
24069|    615|    {
24070|    615|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|    615|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRPKcRA5_SA_S9_EEET_DpOT0_:
 5537|  1.23k|{
 5538|  1.23k|    OutStringType str;
 5539|  1.23k|    str.reserve(concat_length(args...));
 5540|  1.23k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.23k|    return str;
 5542|  1.23k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA5_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  1.23k|{
 5442|  1.23k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.23k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA5_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.23k|{
 5501|  1.23k|    out.append(std::forward<Arg>(arg));
 5502|  1.23k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.23k|}
_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_numberIfLb0EEEbRT_:
23596|  7.39k|    {
23597|       |        // read in the original format
23598|       |
23599|  7.39k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  7.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 7.29k]
  |  |  ------------------
  ------------------
23600|     97|        {
23601|     97|            return false;
23602|     97|        }
23603|  7.29k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 7.10k, False: 194]
  |  Branch (23603:34): [Folded, False: 7.10k]
  |  Branch (23603:57): [True: 0, False: 7.10k]
  ------------------
23604|  7.10k|        {
23605|  7.10k|            byte_swap(result);
23606|  7.10k|        }
23607|  7.29k|        return true;
23608|  7.39k|    }
_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_toIfEEbRT_PKc:
23503|  7.39k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  7.39k|        auto new_chars_read = ia.get_elements(&dest);
23507|  7.39k|        chars_read += new_chars_read;
23508|  7.39k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  7.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 291, False: 7.10k]
  |  |  ------------------
  ------------------
23509|    291|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    291|            ++chars_read;
23512|    291|            static_cast<void>(report_eof(context));
23513|    291|            return false;
23514|    291|        }
23515|  7.10k|        return true;
23516|  7.39k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIfEEmPT_m:
10326|  7.39k|    {
10327|  7.39k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  7.39k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIfEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  7.39k|    {
10385|  7.39k|        const std::size_t wanted = count * sizeof(T);
10386|  7.39k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  7.39k|        const std::size_t copied = (std::min)(wanted, available);
10388|  7.39k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  7.39k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 7.15k, False: 237]
  |  |  ------------------
  ------------------
10389|  7.15k|        {
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|  7.15k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  7.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 7.15k, False: 0]
  ------------------
10394|  7.15k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  7.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 7.15k, 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|  7.15k|            std::memcpy(dest, &*current, copied);
10398|  7.15k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  7.15k|        }
10400|  7.39k|        return copied;
10401|  7.39k|    }
_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_numberIdLb0EEEbRT_:
23596|  16.1k|    {
23597|       |        // read in the original format
23598|       |
23599|  16.1k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  16.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 16.0k]
  |  |  ------------------
  ------------------
23600|     77|        {
23601|     77|            return false;
23602|     77|        }
23603|  16.0k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 15.9k, False: 154]
  |  Branch (23603:34): [Folded, False: 15.9k]
  |  Branch (23603:57): [True: 0, False: 15.9k]
  ------------------
23604|  15.9k|        {
23605|  15.9k|            byte_swap(result);
23606|  15.9k|        }
23607|  16.0k|        return true;
23608|  16.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_EEE22get_string_with_lengthIhEEbRSC_PKc:
23846|  52.8k|    {
23847|  52.8k|        NumberType len{};
23848|  52.8k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 52.7k, False: 30]
  |  Branch (23848:35): [True: 52.6k, False: 144]
  |  Branch (23848:62): [True: 52.6k, False: 0]
  ------------------
23849|  52.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_stringIhEEbT_RSC_:
23767|  52.7k|    {
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|  52.7k|        return get_bytes(len, "string", result);
23778|  52.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_EEE9byte_swapIsEEvRT_:
23555|  22.7k|    {
23556|  22.7k|        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|  22.7k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  45.5k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 22.7k, False: 22.7k]
  ------------------
23572|  22.7k|            {
23573|  22.7k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  22.7k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  22.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_numberIaLb0EEEbRT_:
23596|   147k|    {
23597|       |        // read in the original format
23598|       |
23599|   147k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|   147k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 146k]
  |  |  ------------------
  ------------------
23600|     99|        {
23601|     99|            return false;
23602|     99|        }
23603|   146k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 146k, False: 198]
  |  Branch (23603:34): [Folded, False: 146k]
  |  Branch (23603:57): [True: 0, False: 146k]
  ------------------
23604|   146k|        {
23605|   146k|            byte_swap(result);
23606|   146k|        }
23607|   146k|        return true;
23608|   147k|    }
_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_toIaEEbRT_PKc:
23503|   147k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|   147k|        auto new_chars_read = ia.get_elements(&dest);
23507|   147k|        chars_read += new_chars_read;
23508|   147k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|   147k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 297, False: 146k]
  |  |  ------------------
  ------------------
23509|    297|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    297|            ++chars_read;
23512|    297|            static_cast<void>(report_eof(context));
23513|    297|            return false;
23514|    297|        }
23515|   146k|        return true;
23516|   147k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIaEEmPT_m:
10326|   147k|    {
10327|   147k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|   147k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIaEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|   147k|    {
10385|   147k|        const std::size_t wanted = count * sizeof(T);
10386|   147k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|   147k|        const std::size_t copied = (std::min)(wanted, available);
10388|   147k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|   147k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 146k, False: 297]
  |  |  ------------------
  ------------------
10389|   146k|        {
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|   146k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|   146k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 146k, False: 0]
  ------------------
10394|   146k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|   146k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 146k, 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|   146k|            std::memcpy(dest, &*current, copied);
10398|   146k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|   146k|        }
10400|   147k|        return copied;
10401|   147k|    }
_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_swapIaEEvRT_:
23555|   161k|    {
23556|   161k|        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|   161k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|   161k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 161k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|   161k|    }
_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_signedIaEEbT_:
23628|  35.7k|    {
23629|  35.7k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  35.7k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 35.7k, False: 0]
  |  |  ------------------
  ------------------
23630|  35.7k|        {
23631|  35.7k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  35.7k|        }
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_ofIlaEEbT0_:
 5316|  54.2k|{
 5317|  54.2k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  54.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlaLb1EvE4testEa:
 5309|  54.2k|    {
 5310|  54.2k|        return true;
 5311|  54.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImaEEbT0_:
 5316|  82.4k|{
 5317|  82.4k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  82.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImaLb0EvE4testEa:
 5300|  82.4k|    {
 5301|  82.4k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  82.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImaLb0ELb1EE4testEa:
 5274|  82.4k|    {
 5275|  82.4k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  82.4k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 82.4k, False: 0]
  |  Branch (5276:28): [True: 82.4k, False: 0]
  ------------------
 5277|  82.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_EEE10get_numberIsLb0EEEbRT_:
23596|  18.3k|    {
23597|       |        // read in the original format
23598|       |
23599|  18.3k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  18.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 18.2k]
  |  |  ------------------
  ------------------
23600|    109|        {
23601|    109|            return false;
23602|    109|        }
23603|  18.2k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 18.0k, False: 218]
  |  Branch (23603:34): [Folded, False: 18.0k]
  |  Branch (23603:57): [True: 0, False: 18.0k]
  ------------------
23604|  18.0k|        {
23605|  18.0k|            byte_swap(result);
23606|  18.0k|        }
23607|  18.2k|        return true;
23608|  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_EEE6get_toIsEEbRT_PKc:
23503|  18.3k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  18.3k|        auto new_chars_read = ia.get_elements(&dest);
23507|  18.3k|        chars_read += new_chars_read;
23508|  18.3k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  18.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 327, False: 18.0k]
  |  |  ------------------
  ------------------
23509|    327|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    327|            ++chars_read;
23512|    327|            static_cast<void>(report_eof(context));
23513|    327|            return false;
23514|    327|        }
23515|  18.0k|        return true;
23516|  18.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIsEEmPT_m:
10326|  18.3k|    {
10327|  18.3k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  18.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIsEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  18.3k|    {
10385|  18.3k|        const std::size_t wanted = count * sizeof(T);
10386|  18.3k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  18.3k|        const std::size_t copied = (std::min)(wanted, available);
10388|  18.3k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  18.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 18.0k, False: 264]
  |  |  ------------------
  ------------------
10389|  18.0k|        {
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|  18.0k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  18.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 18.0k, False: 0]
  ------------------
10394|  18.0k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  18.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 18.0k, 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|  18.0k|            std::memcpy(dest, &*current, copied);
10398|  18.0k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  18.0k|        }
10400|  18.3k|        return copied;
10401|  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_EEE11emit_signedIsEEbT_:
23628|  13.7k|    {
23629|  13.7k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  13.7k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 13.7k, False: 0]
  |  |  ------------------
  ------------------
23630|  13.7k|        {
23631|  13.7k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  13.7k|        }
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_ofIlsEEbT0_:
 5316|  22.9k|{
 5317|  22.9k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  22.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlsLb1EvE4testEs:
 5309|  22.9k|    {
 5310|  22.9k|        return true;
 5311|  22.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImsEEbT0_:
 5316|  11.2k|{
 5317|  11.2k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  11.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImsLb0EvE4testEs:
 5300|  11.2k|    {
 5301|  11.2k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  11.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImsLb0ELb1EE4testEs:
 5274|  11.2k|    {
 5275|  11.2k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  11.2k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 11.2k, False: 0]
  |  Branch (5276:28): [True: 11.2k, False: 0]
  ------------------
 5277|  11.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_EEE10get_numberIiLb0EEEbRT_:
23596|  10.5k|    {
23597|       |        // read in the original format
23598|       |
23599|  10.5k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  10.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 112, False: 10.4k]
  |  |  ------------------
  ------------------
23600|    112|        {
23601|    112|            return false;
23602|    112|        }
23603|  10.4k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 10.2k, False: 224]
  |  Branch (23603:34): [Folded, False: 10.2k]
  |  Branch (23603:57): [True: 0, False: 10.2k]
  ------------------
23604|  10.2k|        {
23605|  10.2k|            byte_swap(result);
23606|  10.2k|        }
23607|  10.4k|        return true;
23608|  10.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_EEE10get_numberIlLb0EEEbRT_:
23596|  12.5k|    {
23597|       |        // read in the original format
23598|       |
23599|  12.5k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  12.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 121, False: 12.3k]
  |  |  ------------------
  ------------------
23600|    121|        {
23601|    121|            return false;
23602|    121|        }
23603|  12.3k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 12.1k, False: 242]
  |  Branch (23603:34): [Folded, False: 12.1k]
  |  Branch (23603:57): [True: 0, False: 12.1k]
  ------------------
23604|  12.1k|        {
23605|  12.1k|            byte_swap(result);
23606|  12.1k|        }
23607|  12.3k|        return true;
23608|  12.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_EEE21parse_ubjson_internalEv:
21807|  53.7k|    {
21808|       |        // the key currently being read; hoisted out of the loop so that its
21809|       |        // capacity is reused across elements and across nesting levels
21810|  53.7k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  53.7k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   766M|        while (true)
  ------------------
  |  Branch (21815:16): [True: 766M, Folded]
  ------------------
21816|   766M|        {
21817|   766M|            const std::size_t depth = container_stack.size();
21818|       |
21819|   766M|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   766M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4.91k, False: 766M]
  |  |  ------------------
  ------------------
21820|  4.91k|            {
21821|  4.91k|                return false;
21822|  4.91k|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   766M|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 17.9k, False: 766M]
  ------------------
21826|  17.9k|            {
21827|  17.9k|                return true;
21828|  17.9k|            }
21829|       |
21830|       |            // a value was completed rather than a container opened; a
21831|       |            // container that ends at a marker needs the next byte to test
21832|   766M|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 766M, False: 337k]
  |  Branch (21832:52): [True: 121M, False: 645M]
  ------------------
21833|   121M|            {
21834|   121M|                get_ignore_noop();
21835|   121M|            }
21836|       |
21837|       |            // advance to the next element, closing the containers that ended.
21838|       |            // top is a copy, not a reference: it must stay valid across the
21839|       |            // pop_back() below, which destroys the container_stack element it
21840|       |            // would otherwise alias.
21841|   766M|            for (;;)
21842|   767M|            {
21843|   767M|                const container_frame top = container_stack.back();
21844|       |
21845|   767M|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 645M, False: 121M]
  ------------------
21846|   645M|                {
21847|   645M|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 645M, False: 86.4k]
  ------------------
21848|   645M|                    {
21849|   645M|                        --container_stack.back().remaining;
21850|   645M|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 28.4k, False: 645M]
  ------------------
21851|  28.4k|                        {
21852|  28.4k|                            key.clear();
21853|  28.4k|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  56.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 131, False: 28.3k]
  |  |  |  Branch (1697:94): [True: 393, False: 28.0k]
  |  |  |  Branch (1697:94): [True: 0, False: 28.0k]
  |  |  ------------------
  ------------------
21854|    131|                            {
21855|    131|                                return false;
21856|    131|                            }
21857|  28.4k|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|   645M|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 512M, False: 132M]
  ------------------
21860|   645M|                        break;
21861|   645M|                    }
21862|   645M|                }
21863|       |                // the end marker is compared against a literal rather than
21864|       |                // against a conditional expression, because char_int_type is
21865|       |                // unsigned for some input adapters and MSVC then reports the
21866|       |                // comparison as a signed/unsigned mismatch
21867|   121M|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 81.1k, False: 121M]
  |  Branch (21867:26): [True: 121M, False: 140k]
  ------------------
21868|   121M|                {
21869|       |                    // a container that ends at a marker is never optimized, so
21870|       |                    // every element carries its own marker; for an object the
21871|       |                    // byte tested above is the first byte of the key
21872|   121M|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 57.3k, False: 121M]
  ------------------
21873|  57.3k|                    {
21874|  57.3k|                        key.clear();
21875|  57.3k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|   112k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 651, False: 56.7k]
  |  |  |  Branch (1697:94): [True: 1.95k, False: 55.4k]
  |  |  |  Branch (1697:94): [True: 0, False: 55.4k]
  |  |  ------------------
  ------------------
21876|    651|                        {
21877|    651|                            return false;
21878|    651|                        }
21879|  56.7k|                        prefix = get_ignore_noop();
21880|  56.7k|                    }
21881|   121M|                    else
21882|   121M|                    {
21883|   121M|                        prefix = current;
21884|   121M|                    }
21885|   121M|                    break;
21886|   121M|                }
21887|       |
21888|   227k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|   227k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 227k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|   227k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 18.7k, False: 208k]
  ------------------
21893|  18.7k|                {
21894|  18.7k|                    return true;
21895|  18.7k|                }
21896|       |                // the container that just ended was an element of the one
21897|       |                // below it, which may need the next byte for its own test
21898|   208k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 131k, False: 77.1k]
  ------------------
21899|   131k|                {
21900|   131k|                    get_ignore_noop();
21901|   131k|                }
21902|   208k|            }
21903|   766M|        }
21904|  53.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_EEE16get_ubjson_valueEm:
22404|   766M|    {
22405|   766M|        switch (prefix)
22406|   766M|        {
22407|  3.32k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 3.32k, False: 766M]
  ------------------
22408|  3.32k|                return unexpect_eof("value");
22409|       |
22410|  47.8M|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 47.8M, False: 719M]
  ------------------
22411|  47.8M|                return sax->boolean(true);
22412|   357M|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 357M, False: 409M]
  ------------------
22413|   357M|                return sax->boolean(false);
22414|       |
22415|   361M|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 361M, False: 405M]
  ------------------
22416|   361M|                return sax->null();
22417|       |
22418|      3|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 3, False: 766M]
  ------------------
22419|      3|            {
22420|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 3, False: 0]
  ------------------
22421|      3|                {
22422|      3|                    break;
22423|      3|                }
22424|      0|                std::uint8_t number{};
22425|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 0, False: 0]
  |  Branch (22425:46): [True: 0, False: 0]
  ------------------
22426|      3|            }
22427|       |
22428|  19.2k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 19.2k, False: 766M]
  ------------------
22429|  19.2k|            {
22430|  19.2k|                std::uint8_t number{};
22431|  19.2k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 19.0k, False: 291]
  |  Branch (22431:46): [True: 19.0k, False: 0]
  ------------------
22432|      3|            }
22433|       |
22434|  21.6k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 21.6k, False: 766M]
  ------------------
22435|  21.6k|            {
22436|  21.6k|                std::int8_t number{};
22437|  21.6k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 21.3k, False: 273]
  |  Branch (22437:46): [True: 21.3k, False: 0]
  ------------------
22438|      3|            }
22439|       |
22440|  9.32k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 9.32k, False: 766M]
  ------------------
22441|  9.32k|            {
22442|  9.32k|                std::int16_t number{};
22443|  9.32k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 9.05k, False: 276]
  |  Branch (22443:46): [True: 9.05k, False: 0]
  ------------------
22444|      3|            }
22445|       |
22446|  6.43k|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 6.43k, False: 766M]
  ------------------
22447|  6.43k|            {
22448|  6.43k|                std::int32_t number{};
22449|  6.43k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 6.16k, False: 273]
  |  Branch (22449:46): [True: 6.16k, False: 0]
  ------------------
22450|      3|            }
22451|       |
22452|  8.00k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 8.00k, False: 766M]
  ------------------
22453|  8.00k|            {
22454|  8.00k|                std::int64_t number{};
22455|  8.00k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 7.74k, False: 267]
  |  Branch (22455:46): [True: 7.74k, False: 0]
  ------------------
22456|      3|            }
22457|       |
22458|      3|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 3, False: 766M]
  ------------------
22459|      3|            {
22460|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 3, False: 0]
  ------------------
22461|      3|                {
22462|      3|                    break;
22463|      3|                }
22464|      0|                std::uint16_t number{};
22465|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 0, False: 0]
  |  Branch (22465:46): [True: 0, False: 0]
  ------------------
22466|      3|            }
22467|       |
22468|      6|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 6, False: 766M]
  ------------------
22469|      6|            {
22470|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 6, False: 0]
  ------------------
22471|      6|                {
22472|      6|                    break;
22473|      6|                }
22474|      0|                std::uint32_t number{};
22475|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 0, False: 0]
  |  Branch (22475:46): [True: 0, False: 0]
  ------------------
22476|      6|            }
22477|       |
22478|      6|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 6, False: 766M]
  ------------------
22479|      6|            {
22480|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 6, False: 0]
  ------------------
22481|      6|                {
22482|      6|                    break;
22483|      6|                }
22484|      0|                std::uint64_t number{};
22485|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 0, False: 0]
  |  Branch (22485:46): [True: 0, False: 0]
  ------------------
22486|      6|            }
22487|       |
22488|      6|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 6, False: 766M]
  ------------------
22489|      6|            {
22490|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 6, False: 0]
  ------------------
22491|      6|                {
22492|      6|                    break;
22493|      6|                }
22494|      0|                return get_half_float(true);
22495|      6|            }
22496|       |
22497|  7.39k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 7.39k, False: 766M]
  ------------------
22498|  7.39k|            {
22499|  7.39k|                float number{};
22500|  7.39k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 7.10k, False: 291]
  |  Branch (22500:46): [True: 7.10k, False: 0]
  ------------------
22501|      6|            }
22502|       |
22503|  16.1k|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 16.1k, False: 766M]
  ------------------
22504|  16.1k|            {
22505|  16.1k|                double number{};
22506|  16.1k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 15.9k, False: 231]
  |  Branch (22506:46): [True: 15.9k, False: 0]
  ------------------
22507|      6|            }
22508|       |
22509|  28.7k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 28.7k, False: 766M]
  ------------------
22510|  28.7k|            {
22511|  28.7k|                return get_ubjson_high_precision_number();
22512|      6|            }
22513|       |
22514|  16.1k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 16.1k, False: 766M]
  ------------------
22515|  16.1k|            {
22516|  16.1k|                get();
22517|  16.1k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  16.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 11, False: 16.1k]
  |  |  ------------------
  ------------------
22518|     11|                {
22519|     11|                    return false;
22520|     11|                }
22521|  16.1k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  16.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 15, False: 16.1k]
  |  |  ------------------
  ------------------
22522|     15|                {
22523|     15|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|     15|                }
22525|  16.1k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  16.1k|                return sax->string(s);
22527|  16.1k|            }
22528|       |
22529|  24.1k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 24.1k, False: 766M]
  ------------------
22530|  24.1k|            {
22531|  24.1k|                string_t s;
22532|  24.1k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 23.6k, False: 420]
  |  Branch (22532:48): [True: 23.6k, False: 0]
  ------------------
22533|  16.1k|            }
22534|       |
22535|   281k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 281k, False: 766M]
  ------------------
22536|   281k|                return get_ubjson_array();
22537|       |
22538|  47.8k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 47.8k, False: 766M]
  ------------------
22539|  47.8k|                return get_ubjson_object();
22540|       |
22541|    591|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 591, False: 766M]
  ------------------
22542|    591|                break;
22543|   766M|        }
22544|    615|        return unexpected_byte("invalid byte", "value");
22545|   766M|    }
_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_EEE32get_ubjson_high_precision_numberEv:
22845|  28.7k|    {
22846|       |        // get the size of the following number string
22847|  28.7k|        std::size_t size{};
22848|  28.7k|        bool no_ndarray = true;
22849|  28.7k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  28.7k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  28.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 184, False: 28.5k]
  |  |  ------------------
  ------------------
22851|    184|        {
22852|    184|            return res;
22853|    184|        }
22854|       |
22855|       |        // get number string
22856|  28.5k|        std::vector<char> number_vector;
22857|   406k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 377k, False: 28.4k]
  ------------------
22858|   377k|        {
22859|   377k|            get();
22860|   377k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   377k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 377k]
  |  |  ------------------
  ------------------
22861|    148|            {
22862|    148|                return false;
22863|    148|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|   377k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|   377k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 377k]
  |  |  ------------------
  ------------------
22866|      3|            {
22867|      3|                return sax->parse_error(chars_read, "00", parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22868|      3|                                        exception_message("invalid number text; last byte: 0x00", "high-precision number"), nullptr));
22869|      3|            }
22870|   377k|            number_vector.push_back(static_cast<char>(current));
22871|   377k|        }
22872|       |
22873|       |        // parse number string
22874|  28.4k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  28.4k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  28.4k|        const auto result_number = number_lexer.scan();
22877|  28.4k|        const auto number_string = number_lexer.get_token_string();
22878|       |        // the number as the lexer read it, for SAX number_float(): unlike
22879|       |        // get_token_string(), which is meant for error messages and shortens
22880|       |        // long tokens, it is complete; the next scan() replaces it
22881|  28.4k|        const string_t number_text = number_lexer.get_string();
22882|  28.4k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  28.4k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  28.4k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  28.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.55k, False: 24.8k]
  |  |  ------------------
  ------------------
22887|  3.55k|        {
22888|  3.55k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  3.55k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  3.55k|        }
22891|       |
22892|  24.8k|        switch (result_number)
22893|  24.8k|        {
22894|  1.34k|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 1.34k, False: 23.5k]
  ------------------
22895|  1.34k|                return sax->number_integer(number_lexer.get_number_integer());
22896|  10.7k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 10.7k, False: 14.1k]
  ------------------
22897|  10.7k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  10.0k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 10.0k, False: 14.8k]
  ------------------
22899|  10.0k|            {
22900|  10.0k|                const auto parsed_float = number_lexer.get_number_float();
22901|  10.0k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  10.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 570, False: 9.44k]
  |  |  ------------------
  ------------------
22902|    570|                {
22903|    570|                    return sax->parse_error(
22904|    570|                               chars_read,
22905|    570|                               number_string,
22906|    570|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    570|                }
22908|  9.44k|                return sax->number_float(parsed_float, number_text);
22909|  10.0k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 24.8k]
  ------------------
22911|      3|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 3, False: 24.8k]
  ------------------
22912|      6|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 3, False: 24.8k]
  ------------------
22913|      6|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 0, False: 24.8k]
  ------------------
22914|     12|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 6, False: 24.8k]
  ------------------
22915|     27|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 15, False: 24.8k]
  ------------------
22916|     30|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 3, False: 24.8k]
  ------------------
22917|     33|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 3, False: 24.8k]
  ------------------
22918|     36|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 3, False: 24.8k]
  ------------------
22919|     39|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 3, False: 24.8k]
  ------------------
22920|     42|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 3, False: 24.8k]
  ------------------
22921|  1.98k|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 1.94k, False: 22.9k]
  ------------------
22922|  2.10k|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 123, False: 24.7k]
  ------------------
22923|  2.10k|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 24.8k]
  ------------------
22924|  2.10k|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 24.8k]
  ------------------
22925|  2.10k|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|  2.10k|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  24.8k|        }
22928|  24.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_EEE21get_ubjson_size_valueERmRbmm:
22148|   122k|    {
22149|   122k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 122k, False: 0]
  ------------------
22150|   122k|        {
22151|   122k|            prefix = get_ignore_noop();
22152|   122k|        }
22153|       |
22154|   122k|        switch (prefix)
22155|   122k|        {
22156|  35.2k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 35.2k, False: 87.2k]
  ------------------
22157|  35.2k|            {
22158|  35.2k|                std::uint8_t number{};
22159|  35.2k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  35.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 7, False: 35.2k]
  |  |  ------------------
  ------------------
22160|      7|                {
22161|      7|                    return false;
22162|      7|                }
22163|  35.2k|                result = static_cast<std::size_t>(number);
22164|  35.2k|                return true;
22165|  35.2k|            }
22166|       |
22167|  75.4k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 75.4k, False: 47.1k]
  ------------------
22168|  75.4k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  6.39k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 6.39k, False: 116k]
  ------------------
22171|  6.39k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|  2.53k|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 2.53k, False: 120k]
  ------------------
22174|  2.53k|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|  2.70k|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 2.70k, False: 119k]
  ------------------
22177|  2.70k|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|      3|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 3, False: 122k]
  ------------------
22180|      3|            {
22181|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 3, False: 0]
  ------------------
22182|      3|                {
22183|      3|                    break;
22184|      3|                }
22185|      0|                std::uint16_t number{};
22186|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|      0|                result = static_cast<std::size_t>(number);
22191|      0|                return true;
22192|      0|            }
22193|       |
22194|      3|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 3, False: 122k]
  ------------------
22195|      3|            {
22196|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 3, False: 0]
  ------------------
22197|      3|                {
22198|      3|                    break;
22199|      3|                }
22200|      0|                std::uint32_t number{};
22201|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|      0|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|      0|            }
22207|       |
22208|      3|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 3, False: 122k]
  ------------------
22209|      3|            {
22210|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 3, False: 0]
  ------------------
22211|      3|                {
22212|      3|                    break;
22213|      3|                }
22214|      0|                std::uint64_t number{};
22215|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|      0|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 0]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|      0|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|      0|            }
22225|       |
22226|     18|            case '[':
  ------------------
  |  Branch (22226:13): [True: 18, False: 122k]
  ------------------
22227|     18|            {
22228|     18|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 18, False: 0]
  ------------------
22229|     18|                {
22230|     18|                    break;
22231|     18|                }
22232|      0|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 0, False: 0]
  ------------------
22233|      0|                {
22234|      0|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      0|                }
22236|      0|                std::vector<size_t> dim;
22237|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|      0|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 0, False: 0]
  |  Branch (22241:41): [True: 0, False: 0]
  |  Branch (22241:60): [True: 0, False: 0]
  ------------------
22242|      0|                {
22243|      0|                    result = dim.at(dim.size() - 1);
22244|      0|                    return true;
22245|      0|                }
22246|      0|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 0, False: 0]
  ------------------
22247|      0|                {
22248|      0|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 0, False: 0]
  ------------------
22249|      0|                    {
22250|      0|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 0, False: 0]
  ------------------
22251|      0|                        {
22252|      0|                            result = 0;
22253|      0|                            return true;
22254|      0|                        }
22255|      0|                    }
22256|       |
22257|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22258|      0|                    {
22259|      0|                        return false;
22260|      0|                    }
22261|       |
22262|       |                    // the element type precedes the dimension vector (see get_ubjson_size_type)
22263|       |                    // and is passed down as ndarray_dtype; emit it here so the annotation keys
22264|       |                    // follow the documented _ArrayType_, _ArraySize_, _ArrayData_ order
22265|      0|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 0, False: 0]
  ------------------
22266|      0|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|      0|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|      0|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 0, False: 0]
  ------------------
22270|       |
22271|      0|                        string_t type_key = "_ArrayType_";
22272|      0|                        string_t type = type_name; // sax->string() takes a reference
22273|      0|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|      0|                    }
22278|       |
22279|      0|                    string_t key = "_ArraySize_";
22280|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|      0|                    result = 1;
22285|      0|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 0, False: 0]
  ------------------
22286|      0|                    {
22287|       |                        // Pre-multiplication overflow check: since the loop above
22288|       |                        // already rejected any zero dimension, i is always > 0
22289|       |                        // here, so result > SIZE_MAX/i means result*i would
22290|       |                        // overflow. This check must happen before multiplication
22291|       |                        // since overflow detection after the fact is unreliable,
22292|       |                        // as modular arithmetic can produce any value, not just 0
22293|       |                        // or SIZE_MAX.
22294|      0|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22295|      0|                        {
22296|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|      0|                        }
22298|      0|                        result *= i;
22299|       |                        // the pre-check above already rules out result becoming 0
22300|       |                        // by overflow; the only value it cannot rule out is an
22301|       |                        // exact match with npos, the sentinel reserved for an
22302|       |                        // unknown-size container (see get_ubjson_size_type())
22303|      0|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 0, False: 0]
  ------------------
22304|      0|                        {
22305|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      0|                        }
22307|      0|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|      0|                    }
22312|      0|                    is_ndarray = true;
22313|      0|                    return sax->end_array();
22314|      0|                }
22315|      0|                result = 0;
22316|      0|                return true;
22317|      0|            }
22318|       |
22319|    162|            default:
  ------------------
  |  Branch (22319:13): [True: 162, False: 122k]
  ------------------
22320|    162|                break;
22321|   122k|        }
22322|    189|        return length_type_error(" after '#'", "size");
22323|   122k|    }
_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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  75.4k|    {
22115|  75.4k|        SignedType number{};
22116|  75.4k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  75.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 75.4k]
  |  |  ------------------
  ------------------
22117|      4|        {
22118|      4|            return false;
22119|      4|        }
22120|  75.4k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  75.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 6, False: 75.4k]
  |  |  ------------------
  ------------------
22121|      6|        {
22122|      6|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      6|        }
22124|  75.4k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  75.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 75.4k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  75.4k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  75.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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  6.39k|    {
22115|  6.39k|        SignedType number{};
22116|  6.39k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  6.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 10, False: 6.38k]
  |  |  ------------------
  ------------------
22117|     10|        {
22118|     10|            return false;
22119|     10|        }
22120|  6.38k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  6.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 6.37k]
  |  |  ------------------
  ------------------
22121|      9|        {
22122|      9|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      9|        }
22124|  6.37k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  6.37k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.37k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  6.37k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  6.37k|    }
_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_EEE23get_ubjson_signed_countIiEEbRm:
22114|  2.53k|    {
22115|  2.53k|        SignedType number{};
22116|  2.53k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.53k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 2.52k]
  |  |  ------------------
  ------------------
22117|     12|        {
22118|     12|            return false;
22119|     12|        }
22120|  2.52k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 2.41k]
  |  |  ------------------
  ------------------
22121|    105|        {
22122|    105|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|    105|        }
22124|  2.41k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  2.41k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.41k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  2.41k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  2.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_EEE23get_ubjson_signed_countIlEEbRm:
22114|  2.70k|    {
22115|  2.70k|        SignedType number{};
22116|  2.70k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.70k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 19, False: 2.69k]
  |  |  ------------------
  ------------------
22117|     19|        {
22118|     19|            return false;
22119|     19|        }
22120|  2.69k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 198, False: 2.49k]
  |  |  ------------------
  ------------------
22121|    198|        {
22122|    198|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|    198|        }
22124|  2.49k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  2.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.49k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  2.49k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  2.49k|    }
_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_EEE18store_ubjson_countEmRm:
22089|  86.6k|    {
22090|  86.6k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  86.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 86.6k]
  |  |  ------------------
  ------------------
22091|      0|        {
22092|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      0|        }
22094|  86.6k|        result = count;
22095|  86.6k|        return true;
22096|  86.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_EEE20get_ubjson_size_typeERNS4_4pairImmEEb:
22337|   328k|    {
22338|   328k|        result.first = npos; // size
22339|   328k|        result.second = 0; // type
22340|       |        // seed the flag with the caller's context: inside an ndarray dimension
22341|       |        // vector another ndarray is not allowed, and get_ubjson_size_value()
22342|       |        // rejects it up front instead of reading it and reporting afterwards.
22343|       |        // Seeding it with `false` made every '#' of a "[#[#[..." chain descend
22344|       |        // another level, which overflowed the stack (see #5104).
22345|   328k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|   328k|        get_ignore_noop();
22348|       |
22349|   328k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 44.9k, False: 284k]
  ------------------
22350|  44.9k|        {
22351|  44.9k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  44.9k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  44.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 6, False: 44.8k]
  |  |  ------------------
  ------------------
22353|      6|            {
22354|      6|                return false;
22355|      6|            }
22356|       |
22357|       |            // validate the type marker up front: otherwise it would only be
22358|       |            // checked when an element is read, and a container with count 0
22359|       |            // would accept any marker
22360|  44.8k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  44.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 44.8k]
  |  |  ------------------
  ------------------
22361|     36|            {
22362|     36|                return optimized_type_error();
22363|     36|            }
22364|       |
22365|  44.8k|            get_ignore_noop();
22366|  44.8k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  44.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 384, False: 44.4k]
  |  |  ------------------
  ------------------
22367|    384|            {
22368|    384|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    384|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 102, False: 282]
  |  |  ------------------
  ------------------
22369|    102|                {
22370|    102|                    return false;
22371|    102|                }
22372|    282|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    384|            }
22374|       |
22375|  44.4k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray, 0, result.second);
22376|       |            // an ndarray was read here only if the flag flipped; when it was
22377|       |            // seeded true, get_ubjson_size_value() already rejected the nested
22378|       |            // dimension vector
22379|  44.4k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 0, False: 44.4k]
  |  Branch (22379:31): [True: 0, False: 0]
  ------------------
22380|      0|            {
22381|      0|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|      0|            }
22383|  44.4k|            return is_error;
22384|  44.8k|        }
22385|       |
22386|   284k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 49.3k, False: 234k]
  ------------------
22387|  49.3k|        {
22388|  49.3k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  49.3k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 0, False: 49.3k]
  |  Branch (22389:31): [True: 0, False: 0]
  ------------------
22390|      0|            {
22391|      0|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|      0|            }
22393|  49.3k|            return is_error;
22394|  49.3k|        }
22395|       |
22396|   234k|        return true;
22397|   284k|    }
_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_EEE23is_valid_optimized_typeEm:
24157|  44.8k|    {
24158|  44.8k|        switch (marker)
24159|  44.8k|        {
24160|  2.05k|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 2.05k, False: 42.8k]
  ------------------
24161|  3.70k|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 1.65k, False: 43.2k]
  ------------------
24162|  5.09k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 1.38k, False: 43.5k]
  ------------------
24163|  6.65k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 1.56k, False: 43.3k]
  ------------------
24164|  8.14k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 1.49k, False: 43.3k]
  ------------------
24165|  9.37k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 1.22k, False: 43.6k]
  ------------------
24166|  10.5k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 1.17k, False: 43.7k]
  ------------------
24167|  11.0k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 504, False: 44.3k]
  ------------------
24168|  11.0k|                return true;
24169|  3.88k|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 3.88k, False: 40.9k]
  ------------------
24170|  4.35k|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 462, False: 44.4k]
  ------------------
24171|  7.69k|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 3.34k, False: 41.5k]
  ------------------
24172|  9.45k|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 1.76k, False: 43.1k]
  ------------------
24173|  10.0k|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 551, False: 44.3k]
  ------------------
24174|  10.9k|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 956, False: 43.9k]
  ------------------
24175|  32.5k|            case '[':
  ------------------
  |  Branch (24175:13): [True: 21.5k, False: 23.3k]
  ------------------
24176|  33.8k|            case '{':
  ------------------
  |  Branch (24176:13): [True: 1.30k, False: 43.5k]
  ------------------
24177|  33.8k|                return input_format != input_format_t::bjdata;
24178|      6|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 6, False: 44.8k]
  ------------------
24179|      9|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 3, False: 44.8k]
  ------------------
24180|     12|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 3, False: 44.8k]
  ------------------
24181|     15|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 3, False: 44.8k]
  ------------------
24182|     18|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 3, False: 44.8k]
  ------------------
24183|     18|                return input_format == input_format_t::bjdata;
24184|     18|            default:
  ------------------
  |  Branch (24184:13): [True: 18, False: 44.8k]
  ------------------
24185|     18|                return false;
24186|  44.8k|        }
24187|  44.8k|    }
_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_EEE20optimized_type_errorEv:
24014|     36|    {
24015|     36|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     36|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA10_KcS9_RA41_SA_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_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA41_cEEEmPKcDpRKT_:
 5441|     72|{
 5442|     72|    return ::strlen(cstr) + concat_length(rest...);
 5443|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA41_cEEEmRKT_DpRKT0_:
 5447|     72|{
 5448|     72|    return str.size() + concat_length(rest...);
 5449|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA10_KcJS9_RA41_SA_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_9allocatorIcEEEES9_JRA41_KcETnNS3_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_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA41_KcJETnNS3_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|}
_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_EEE17length_type_errorEPKcSP_:
24081|    432|    {
24082|    432|        const char* types = input_format == input_format_t::bjdata ? "U, i, u, I, m, l, M, L" : "U, i, I, l, L";
  ------------------
  |  Branch (24082:29): [True: 0, False: 432]
  ------------------
24083|    432|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    432|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    432|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA37_KcRPSA_RA2_SA_SE_RA16_SA_S9_EEET_DpOT0_:
 5537|    864|{
 5538|    864|    OutStringType str;
 5539|    864|    str.reserve(concat_length(args...));
 5540|    864|    concat_into(str, std::forward<Args>(args)...);
 5541|    864|    return str;
 5542|    864|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA2_cS4_A16_cNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|    864|{
 5442|    864|    return ::strlen(cstr) + concat_length(rest...);
 5443|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA2_cPKcA16_cNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEEEmS5_DpRKT_:
 5441|    864|{
 5442|    864|    return ::strlen(cstr) + concat_length(rest...);
 5443|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA37_KcJRPSA_RA2_SA_SE_RA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSK_OSL_DpOT1_:
 5500|    864|{
 5501|    864|    out.append(std::forward<Arg>(arg));
 5502|    864|    concat_into(out, std::forward<Args>(rest)...);
 5503|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA2_SA_SC_RA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|    864|{
 5501|    864|    out.append(std::forward<Arg>(arg));
 5502|    864|    concat_into(out, std::forward<Args>(rest)...);
 5503|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA2_KcJRPSA_RA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|    864|{
 5501|    864|    out.append(std::forward<Arg>(arg));
 5502|    864|    concat_into(out, std::forward<Args>(rest)...);
 5503|    864|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterINSt3__16vectorIcNS3_9allocatorIcEEEETnNS3_9enable_ifIXsr28is_contiguous_byte_containerIT_EE5valueEiE4typeELi0EEEDTcl13input_adaptercldtfp_4dataEplcldtfp_4dataEcldtfp_4sizeEEERKS9_:
10852|  54.3k|{
10853|  54.3k|    return input_adapter(container.data(), container.data() + container.size());
10854|  54.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterIPKcS4_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES6_S7_:
10755|  54.3k|{
10756|  54.3k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  54.3k|    return factory_type::create(first, last);
10758|  54.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryIPKcS4_vE6createES4_S4_:
10617|  54.3k|    {
10618|  54.3k|        return adapter_type(std::move(first), std::move(last));
10619|  54.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_EC2ES4_S4_:
10268|  54.3k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  54.3k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EEC2EOSK_b:
13798|  54.3k|        : ia(std::move(adapter))
13799|  54.3k|        , ignore_comments(ignore_comments_)
13800|  54.3k|    {
13801|       |        // the token string of an error before the first token is everything
13802|       |        // read so far
13803|  54.3k|        begin_token(std::integral_constant<bool, adapter_token> {});
13804|  54.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2Ev:
 9400|  78.0k|    token_text_buffer() = default;
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE11begin_tokenENS4_17integral_constantIbLb0EEE:
15366|  54.3k|    void begin_token(std::false_type /*adapter_token*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE4scanEv:
15997|   108k|    {
15998|       |        // initially, skip the BOM
15999|   108k|        if (get_chars_read_total() == 0 && !skip_bom())
  ------------------
  |  Branch (15999:13): [True: 54.3k, False: 54.3k]
  |  Branch (15999:44): [True: 96, False: 54.2k]
  ------------------
16000|     96|        {
16001|     96|            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
16002|     96|            return token_type::parse_error;
16003|     96|        }
16004|       |
16005|       |        // read the next character and ignore whitespace
16006|   108k|        skip_whitespace();
16007|       |
16008|   108k|        return scan_after_whitespace();
16009|   108k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE20get_chars_read_totalEv:
15659|   108k|    {
15660|   108k|        return get_chars_read_total_impl(std::integral_constant<bool, lazy_position> {});
15661|   108k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE25get_chars_read_total_implENS4_17integral_constantIbLb1EEE:
15709|   108k|    {
15710|   108k|        return ia.get_read_count() - (next_unget ? 1u : 0u);
  ------------------
  |  Branch (15710:39): [True: 8.99k, False: 99.6k]
  ------------------
15711|   108k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E14get_read_countEv:
10293|   108k|    {
10294|   108k|        return get_consumed_count() + eof_reads;
10295|   108k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E18get_consumed_countEv:
10286|   229k|    {
10287|   229k|        return static_cast<std::size_t>(std::distance(begin, current));
10288|   229k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE8skip_bomEv:
15909|  54.3k|    {
15910|  54.3k|        if (get() == 0xEF)
  ------------------
  |  Branch (15910:13): [True: 546, False: 53.7k]
  ------------------
15911|    546|        {
15912|       |            // check if we completely parse the BOM
15913|    546|            return get() == 0xBB && get() == 0xBF;
  ------------------
  |  Branch (15913:20): [True: 486, False: 60]
  |  Branch (15913:37): [True: 450, False: 36]
  ------------------
15914|    546|        }
15915|       |
15916|       |        // the first character is not the beginning of the BOM; unget it to
15917|       |        // process is later
15918|  53.7k|        unget();
15919|  53.7k|        return true;
15920|  54.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE3getEv:
15393|   206k|    {
15394|   206k|        advance_position();
15395|       |
15396|   206k|        if (next_unget)
  ------------------
  |  Branch (15396:13): [True: 62.7k, False: 143k]
  ------------------
15397|  62.7k|        {
15398|       |            // only reset the next_unget variable and work with current
15399|  62.7k|            next_unget = false;
15400|  62.7k|        }
15401|   143k|        else
15402|   143k|        {
15403|   143k|            current = ia.get_character();
15404|   143k|        }
15405|       |
15406|   206k|        return track_after_read();
15407|   206k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16advance_positionEv:
15413|   229k|    {
15414|   229k|        advance_position_impl(std::integral_constant<bool, lazy_position> {});
15415|   229k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE21advance_position_implENS4_17integral_constantIbLb1EEE:
15418|   229k|    void advance_position_impl(std::true_type /*lazy*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E13get_characterEv:
10272|   154k|    {
10273|   154k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   154k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 103k, False: 50.8k]
  |  |  ------------------
  ------------------
10274|   103k|        {
10275|   103k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   103k|            std::advance(current, 1);
10277|   103k|            return result;
10278|   103k|        }
10279|       |
10280|  50.8k|        ++eof_reads;
10281|  50.8k|        return char_traits<char_type>::eof();
10282|   154k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16track_after_readEv:
15431|   229k|    {
15432|       |        // seekable adapters reconstruct the token lazily on error (see
15433|       |        // get_token_string), so the eager per-character copy is skipped
15434|   229k|        capture_char(std::integral_constant<bool, lazy_token_string> {});
15435|   229k|        track_newline(std::integral_constant<bool, lazy_position> {});
15436|   229k|        return current;
15437|   229k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE12capture_charENS4_17integral_constantIbLb1EEE:
15479|   229k|    void capture_char(std::true_type /*lazy*/) const noexcept {}
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE13track_newlineENS4_17integral_constantIbLb1EEE:
15440|   229k|    void track_newline(std::true_type /*lazy*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE5ungetEv:
15500|  62.9k|    {
15501|  62.9k|        next_unget = true;
15502|  62.9k|        unget_position(std::integral_constant<bool, lazy_position> {});
15503|  62.9k|        uncapture_char(std::integral_constant<bool, lazy_token_string> {});
15504|  62.9k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE14unget_positionENS4_17integral_constantIbLb1EEE:
15507|  62.9k|    void unget_position(std::true_type /*lazy*/) const noexcept {}
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE14uncapture_charENS4_17integral_constantIbLb1EEE:
15552|  62.9k|    void uncapture_char(std::true_type /*lazy*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE15skip_whitespaceEv:
15929|   108k|    {
15930|       |        // the first character may be a pending unget() left over from the
15931|       |        // previous token (see get_ignoring_pending_unget()); every
15932|       |        // subsequent character read by this loop is guaranteed fresh, since
15933|       |        // nothing below calls unget()
15934|   108k|        get();
15935|       |
15936|   108k|        if (!current_is_whitespace())
  ------------------
  |  Branch (15936:13): [True: 103k, False: 5.29k]
  ------------------
15937|   103k|        {
15938|   103k|            return;
15939|   103k|        }
15940|       |
15941|       |        // this is written as an if-guarded do-while (rather than a plain
15942|       |        // while loop) because that shape is what lets both GCC and Clang
15943|       |        // keep the input adapter's read pointer in a register across
15944|       |        // iterations; the equivalent while-loop measurably defeated that
15945|       |        // optimization in testing, turning long whitespace runs (e.g. the
15946|       |        // indentation of pretty-printed JSON) from a register-only loop
15947|       |        // into one that reloads the pointer from memory every character
15948|  5.29k|        do
15949|  10.7k|        {
15950|  10.7k|            if (current == '\n')
  ------------------
  |  Branch (15950:17): [True: 3.99k, False: 6.75k]
  ------------------
15951|  3.99k|            {
15952|  3.99k|                skip_indentation(std::integral_constant<bool, bulk_scan> {});
15953|  3.99k|            }
15954|  10.7k|            get_ignoring_pending_unget();
15955|  10.7k|        }
15956|  10.7k|        while (current_is_whitespace());
  ------------------
  |  Branch (15956:16): [True: 5.44k, False: 5.29k]
  ------------------
15957|  5.29k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE21current_is_whitespaceEv:
15924|   119k|    {
15925|   119k|        return current == ' ' || current == '\t' || current == '\n' || current == '\r';
  ------------------
  |  Branch (15925:16): [True: 3.47k, False: 115k]
  |  Branch (15925:34): [True: 2.13k, False: 113k]
  |  Branch (15925:53): [True: 3.99k, False: 109k]
  |  Branch (15925:72): [True: 1.14k, False: 108k]
  ------------------
15926|   119k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16skip_indentationENS4_17integral_constantIbLb1EEE:
15970|  3.99k|    {
15971|  3.99k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  3.99k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15971:9): [True: 3.99k, False: 0]
  ------------------
15972|  3.99k|        const std::size_t remaining = ia.bulk_remaining();
15973|  3.99k|        if (remaining < 8)
  ------------------
  |  Branch (15973:13): [True: 1.53k, False: 2.46k]
  ------------------
15974|  1.53k|        {
15975|  1.53k|            return;
15976|  1.53k|        }
15977|  2.46k|        const char* const data = reinterpret_cast<const char*>(ia.bulk_data());
15978|  2.46k|        std::size_t pos = 0;
15979|  2.78k|        for (; pos + 8 <= remaining; pos += 8)
  ------------------
  |  Branch (15979:16): [True: 2.69k, False: 90]
  ------------------
15980|  2.69k|        {
15981|       |            // little-endian, so the first byte is the lowest
15982|  2.69k|            const std::uint64_t non_space = read_eight_bytes(data + pos) ^ 0x2020202020202020ull;
15983|  2.69k|            if (non_space != 0)
  ------------------
  |  Branch (15983:17): [True: 2.37k, False: 324]
  ------------------
15984|  2.37k|            {
15985|       |                // skip the spaces before the first other byte of this word
15986|  2.37k|                pos += static_cast<std::size_t>(count_trailing_zeros(non_space)) / 8;
15987|  2.37k|                break;
15988|  2.37k|            }
15989|  2.69k|        }
15990|  2.46k|        bulk_consume(data, pos);
15991|  2.46k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E14bulk_remainingEv:
10370|  70.6k|    {
10371|  70.6k|        return remaining_count();
10372|  70.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E15remaining_countEv:
10345|  70.6k|    {
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|  70.6k|        return static_cast<std::size_t>(std::distance(current, end));
10352|  70.6k|#endif
10353|  70.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E9bulk_dataEv:
10364|  58.7k|    {
10365|  58.7k|        return &*current;
10366|  58.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16read_eight_bytesEPKc:
 9239|  80.8k|{
 9240|  80.8k|    return read_eight_bytes(reinterpret_cast<const unsigned char*>(p)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
 9241|  80.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE12bulk_consumeESJ_m:
13996|  46.5k|    {
13997|  46.5k|        bulk_track_position(n, std::integral_constant<bool, lazy_position> {});
13998|  46.5k|        bulk_track_token(data, n, std::integral_constant<bool, lazy_token_string> {});
13999|  46.5k|        ia.bulk_skip(n);
14000|  46.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE19bulk_track_positionEmNS4_17integral_constantIbLb1EEE:
14003|  46.5k|    void bulk_track_position(std::size_t /*n*/, std::true_type /*lazy*/) const noexcept {}
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16bulk_track_tokenESJ_mNS4_17integral_constantIbLb1EEE:
14013|  46.5k|    void bulk_track_token(const char* /*data*/, std::size_t /*n*/, std::true_type /*lazy*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E9bulk_skipEm:
10376|  58.8k|    {
10377|  58.8k|        std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(n));
10378|  58.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE26get_ignoring_pending_ungetEv:
15469|  10.7k|    {
15470|  10.7k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  10.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15470:9): [True: 10.7k, False: 0]
  ------------------
15471|       |
15472|  10.7k|        advance_position();
15473|  10.7k|        current = ia.get_character();
15474|       |
15475|  10.7k|        return track_after_read();
15476|  10.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE21scan_after_whitespaceEv:
16040|   108k|    {
16041|       |        // ignore comments
16042|   108k|        while (ignore_comments && current == '/')
  ------------------
  |  Branch (16042:16): [True: 0, False: 108k]
  |  Branch (16042:35): [True: 0, False: 0]
  ------------------
16043|      0|        {
16044|      0|            if (!scan_comment())
  ------------------
  |  Branch (16044:17): [True: 0, False: 0]
  ------------------
16045|      0|            {
16046|      0|                return token_type::parse_error;
16047|      0|            }
16048|       |
16049|       |            // skip following whitespace
16050|      0|            skip_whitespace();
16051|      0|        }
16052|       |
16053|   108k|        switch (current)
16054|   108k|        {
16055|       |            // structural characters
16056|    228|            case '[':
  ------------------
  |  Branch (16056:13): [True: 228, False: 108k]
  ------------------
16057|    228|                return token_type::begin_array;
16058|     96|            case ']':
  ------------------
  |  Branch (16058:13): [True: 96, False: 108k]
  ------------------
16059|     96|                return token_type::end_array;
16060|     48|            case '{':
  ------------------
  |  Branch (16060:13): [True: 48, False: 108k]
  ------------------
16061|     48|                return token_type::begin_object;
16062|     24|            case '}':
  ------------------
  |  Branch (16062:13): [True: 24, False: 108k]
  ------------------
16063|     24|                return token_type::end_object;
16064|     54|            case ':':
  ------------------
  |  Branch (16064:13): [True: 54, False: 108k]
  ------------------
16065|     54|                return token_type::name_separator;
16066|     90|            case ',':
  ------------------
  |  Branch (16066:13): [True: 90, False: 108k]
  ------------------
16067|     90|                return token_type::value_separator;
16068|       |
16069|       |            // literals
16070|       |            // (the text after the first character; no local arrays, which
16071|       |            // would give this function a stack canary on every token)
16072|    312|            case 't':
  ------------------
  |  Branch (16072:13): [True: 312, False: 108k]
  ------------------
16073|    312|                return scan_literal("rue", token_type::literal_true);
16074|    288|            case 'f':
  ------------------
  |  Branch (16074:13): [True: 288, False: 108k]
  ------------------
16075|    288|                return scan_literal("alse", token_type::literal_false);
16076|    138|            case 'n':
  ------------------
  |  Branch (16076:13): [True: 138, False: 108k]
  ------------------
16077|    138|                return scan_literal("ull", token_type::literal_null);
16078|       |
16079|       |            // string
16080|  5.04k|            case '\"':
  ------------------
  |  Branch (16080:13): [True: 5.04k, False: 103k]
  ------------------
16081|       |                // accept() (DiscardValues) checks strings without copying them
16082|       |                // into token_buffer
16083|  5.04k|                return scan_string(keep_strings {});
16084|       |
16085|       |            // number
16086|  4.89k|            case '-':
  ------------------
  |  Branch (16086:13): [True: 4.89k, False: 103k]
  ------------------
16087|  10.2k|            case '0':
  ------------------
  |  Branch (16087:13): [True: 5.32k, False: 103k]
  ------------------
16088|  18.2k|            case '1':
  ------------------
  |  Branch (16088:13): [True: 8.05k, False: 100k]
  ------------------
16089|  23.4k|            case '2':
  ------------------
  |  Branch (16089:13): [True: 5.19k, False: 103k]
  ------------------
16090|  28.0k|            case '3':
  ------------------
  |  Branch (16090:13): [True: 4.56k, False: 103k]
  ------------------
16091|  34.1k|            case '4':
  ------------------
  |  Branch (16091:13): [True: 6.12k, False: 102k]
  ------------------
16092|  36.7k|            case '5':
  ------------------
  |  Branch (16092:13): [True: 2.59k, False: 105k]
  ------------------
16093|  38.8k|            case '6':
  ------------------
  |  Branch (16093:13): [True: 2.16k, False: 106k]
  ------------------
16094|  40.6k|            case '7':
  ------------------
  |  Branch (16094:13): [True: 1.75k, False: 106k]
  ------------------
16095|  43.2k|            case '8':
  ------------------
  |  Branch (16095:13): [True: 2.62k, False: 105k]
  ------------------
16096|  50.1k|            case '9':
  ------------------
  |  Branch (16096:13): [True: 6.86k, False: 101k]
  ------------------
16097|  50.1k|                return scan_number_dispatch(std::integral_constant<bool, bulk_scan> {});
16098|       |
16099|      0|#if !JSON_STRICT_NUL_HANDLING
16100|      0|            case '\0':
  ------------------
  |  Branch (16100:13): [True: 0, False: 108k]
  ------------------
16101|      0|#endif
16102|       |            // end of input; by default, a null byte is also treated as end of
16103|       |            // input for backwards compatibility (see JSON_STRICT_NUL_HANDLING
16104|       |            // to opt into rejecting a null byte in the input instead)
16105|  47.4k|            case char_traits<char_type>::eof():
  ------------------
  |  Branch (16105:13): [True: 47.4k, False: 61.0k]
  ------------------
16106|  47.4k|                return token_type::end_of_input;
16107|       |
16108|       |            // error
16109|  4.61k|            default:
  ------------------
  |  Branch (16109:13): [True: 4.61k, False: 103k]
  ------------------
16110|  4.61k|                error_message = "invalid literal";
16111|  4.61k|                return token_type::parse_error;
16112|   108k|        }
16113|   108k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE12scan_literalILm4EEENS1_10lexer_baseISG_E10token_typeERAT__SI_SP_:
15287|    450|    {
15288|    450|        constexpr std::size_t length = N - 1;
15289|    450|        if (scan_literal_bulk(rest, length, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (15289:13): [True: 18, False: 432]
  ------------------
15290|     18|        {
15291|     18|            return return_type;
15292|     18|        }
15293|    660|        for (std::size_t i = 0; i < length; ++i)
  ------------------
  |  Branch (15293:33): [True: 660, False: 0]
  ------------------
15294|    660|        {
15295|    660|            if (JSON_HEDLEY_UNLIKELY(char_traits<char_type>::to_char_type(get()) != static_cast<char_type>(rest[i])))
  ------------------
  |  | 1697|    660|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 432, False: 228]
  |  |  ------------------
  ------------------
15296|    432|            {
15297|    432|                error_message = "invalid literal";
15298|    432|                return token_type::parse_error;
15299|    432|            }
15300|    660|        }
15301|      0|        return return_type;
15302|    432|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE17scan_literal_bulkESJ_mNS4_17integral_constantIbLb1EEE:
15308|    738|    {
15309|       |        // called right after scan_after_whitespace() read current (see
15310|       |        // get_after_string_run()), so no unget is pending
15311|    738|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|    738|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15311:9): [True: 738, False: 0]
  ------------------
15312|    738|        if (ia.bulk_remaining() < length
  ------------------
  |  Branch (15312:13): [True: 258, False: 480]
  ------------------
15313|    480|                || std::memcmp(ia.bulk_data(), rest, length) != 0)
  ------------------
  |  Branch (15313:20): [True: 444, False: 36]
  ------------------
15314|    702|        {
15315|    702|            return false;
15316|    702|        }
15317|     36|        bulk_consume(reinterpret_cast<const char*>(ia.bulk_data()), length);
15318|     36|        current = static_cast<char_int_type>(static_cast<unsigned char>(rest[length - 1]));
15319|     36|        return true;
15320|    738|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE12scan_literalILm5EEENS1_10lexer_baseISG_E10token_typeERAT__SI_SP_:
15287|    288|    {
15288|    288|        constexpr std::size_t length = N - 1;
15289|    288|        if (scan_literal_bulk(rest, length, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (15289:13): [True: 18, False: 270]
  ------------------
15290|     18|        {
15291|     18|            return return_type;
15292|     18|        }
15293|    600|        for (std::size_t i = 0; i < length; ++i)
  ------------------
  |  Branch (15293:33): [True: 600, False: 0]
  ------------------
15294|    600|        {
15295|    600|            if (JSON_HEDLEY_UNLIKELY(char_traits<char_type>::to_char_type(get()) != static_cast<char_type>(rest[i])))
  ------------------
  |  | 1697|    600|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 330]
  |  |  ------------------
  ------------------
15296|    270|            {
15297|    270|                error_message = "invalid literal";
15298|    270|                return token_type::parse_error;
15299|    270|            }
15300|    600|        }
15301|      0|        return return_type;
15302|    270|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE11scan_stringILb1EEENS1_10lexer_baseISG_E10token_typeENS4_17integral_constantIbXT_EEE:
14052|  5.04k|    {
14053|       |        // reset token_buffer (ignore opening quote)
14054|  5.04k|        reset();
14055|       |
14056|       |        // we entered the function by reading an open quote
14057|  5.04k|        JSON_ASSERT(current == '\"');
  ------------------
  |  | 2653|  5.04k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (14057:9): [True: 5.04k, False: 0]
  ------------------
14058|       |
14059|  13.4k|        while (true)
  ------------------
  |  Branch (14059:16): [True: 13.4k, Folded]
  ------------------
14060|  13.4k|        {
14061|       |            // bulk-consume ordinary characters from contiguous input, then
14062|       |            // get the next character, the one that ends the run
14063|  13.4k|            switch (get_after_string_run(std::integral_constant<bool, bulk_scan>(), keep))
14064|  13.4k|            {
14065|       |                // end of file while parsing the string
14066|  1.15k|                case char_traits<char_type>::eof():
  ------------------
  |  Branch (14066:17): [True: 1.15k, False: 12.2k]
  ------------------
14067|  1.15k|                {
14068|  1.15k|                    error_message = "invalid string: missing closing quote";
14069|  1.15k|                    return token_type::parse_error;
14070|      0|                }
14071|       |
14072|       |                // closing quote
14073|     84|                case '\"':
  ------------------
  |  Branch (14073:17): [True: 84, False: 13.3k]
  ------------------
14074|     84|                {
14075|     84|                    return token_type::value_string;
14076|      0|                }
14077|       |
14078|       |                // escapes
14079|  9.03k|                case '\\':
  ------------------
  |  Branch (14079:17): [True: 9.03k, False: 4.36k]
  ------------------
14080|  9.03k|                {
14081|  9.03k|                    switch (get())
14082|  9.03k|                    {
14083|       |                        // quotation mark
14084|    852|                        case '\"':
  ------------------
  |  Branch (14084:25): [True: 852, False: 8.18k]
  ------------------
14085|    852|                            add_string_char(keep, '\"');
14086|    852|                            break;
14087|       |                        // reverse solidus
14088|  2.70k|                        case '\\':
  ------------------
  |  Branch (14088:25): [True: 2.70k, False: 6.33k]
  ------------------
14089|  2.70k|                            add_string_char(keep, '\\');
14090|  2.70k|                            break;
14091|       |                        // solidus
14092|    228|                        case '/':
  ------------------
  |  Branch (14092:25): [True: 228, False: 8.80k]
  ------------------
14093|    228|                            add_string_char(keep, '/');
14094|    228|                            break;
14095|       |                        // backspace
14096|    402|                        case 'b':
  ------------------
  |  Branch (14096:25): [True: 402, False: 8.63k]
  ------------------
14097|    402|                            add_string_char(keep, '\b');
14098|    402|                            break;
14099|       |                        // form feed
14100|    840|                        case 'f':
  ------------------
  |  Branch (14100:25): [True: 840, False: 8.19k]
  ------------------
14101|    840|                            add_string_char(keep, '\f');
14102|    840|                            break;
14103|       |                        // line feed
14104|    606|                        case 'n':
  ------------------
  |  Branch (14104:25): [True: 606, False: 8.43k]
  ------------------
14105|    606|                            add_string_char(keep, '\n');
14106|    606|                            break;
14107|       |                        // carriage return
14108|    618|                        case 'r':
  ------------------
  |  Branch (14108:25): [True: 618, False: 8.41k]
  ------------------
14109|    618|                            add_string_char(keep, '\r');
14110|    618|                            break;
14111|       |                        // tab
14112|    630|                        case 't':
  ------------------
  |  Branch (14112:25): [True: 630, False: 8.40k]
  ------------------
14113|    630|                            add_string_char(keep, '\t');
14114|    630|                            break;
14115|       |
14116|       |                        // unicode escapes
14117|  2.03k|                        case 'u':
  ------------------
  |  Branch (14117:25): [True: 2.03k, False: 7.00k]
  ------------------
14118|  2.03k|                        {
14119|  2.03k|                            const int codepoint1 = get_codepoint();
14120|  2.03k|                            int codepoint = codepoint1; // start with codepoint1
14121|       |
14122|  2.03k|                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
  ------------------
  |  | 1697|  2.03k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 264, False: 1.77k]
  |  |  ------------------
  ------------------
14123|    264|                            {
14124|    264|                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
14125|    264|                                return token_type::parse_error;
14126|    264|                            }
14127|       |
14128|       |                            // check if code point is a high surrogate
14129|  1.77k|                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
  ------------------
  |  Branch (14129:33): [True: 822, False: 948]
  |  Branch (14129:57): [True: 456, False: 366]
  ------------------
14130|    456|                            {
14131|       |                                // expect next \uxxxx entry
14132|    456|                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
  ------------------
  |  | 1696|    810|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 324, False: 132]
  |  |  |  Branch (1696:94): [True: 354, False: 102]
  |  |  |  Branch (1696:94): [True: 324, False: 30]
  |  |  ------------------
  ------------------
14133|    324|                                {
14134|    324|                                    const int codepoint2 = get_codepoint();
14135|       |
14136|    324|                                    if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
  ------------------
  |  | 1697|    324|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 24, False: 300]
  |  |  ------------------
  ------------------
14137|     24|                                    {
14138|     24|                                        error_message = "invalid string: '\\u' must be followed by 4 hex digits";
14139|     24|                                        return token_type::parse_error;
14140|     24|                                    }
14141|       |
14142|       |                                    // check if codepoint2 is a low surrogate
14143|    300|                                    if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
  ------------------
  |  | 1696|    522|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 216, False: 84]
  |  |  |  Branch (1696:94): [True: 222, False: 78]
  |  |  |  Branch (1696:94): [True: 216, False: 6]
  |  |  ------------------
  ------------------
14144|    216|                                    {
14145|       |                                        // overwrite codepoint
14146|    216|                                        codepoint = static_cast<int>(
14147|       |                                                        // high surrogate occupies the most significant 22 bits
14148|    216|                                                        (static_cast<unsigned int>(codepoint1) << 10u)
14149|       |                                                        // low surrogate occupies the least significant 15 bits
14150|    216|                                                        + static_cast<unsigned int>(codepoint2)
14151|       |                                                        // there is still the 0xD800, 0xDC00, and 0x10000 noise
14152|       |                                                        // in the result, so we have to subtract with:
14153|       |                                                        // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
14154|    216|                                                        - 0x35FDC00u);
14155|    216|                                    }
14156|     84|                                    else
14157|     84|                                    {
14158|     84|                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
14159|     84|                                        return token_type::parse_error;
14160|     84|                                    }
14161|    300|                                }
14162|    132|                                else
14163|    132|                                {
14164|    132|                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
14165|    132|                                    return token_type::parse_error;
14166|    132|                                }
14167|    456|                            }
14168|  1.31k|                            else
14169|  1.31k|                            {
14170|  1.31k|                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 54, False: 1.26k]
  |  |  |  Branch (1697:94): [True: 366, False: 948]
  |  |  |  Branch (1697:94): [True: 54, False: 312]
  |  |  ------------------
  ------------------
14171|     54|                                {
14172|     54|                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
14173|     54|                                    return token_type::parse_error;
14174|     54|                                }
14175|  1.31k|                            }
14176|       |
14177|       |                            // the result of the above calculation yields a proper codepoint
14178|  1.47k|                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (14178:29): [True: 1.47k, False: 0]
  |  Branch (14178:29): [True: 1.47k, False: 0]
  |  Branch (14178:29): [True: 1.47k, False: 0]
  ------------------
14179|       |
14180|       |                            // translate codepoint into bytes
14181|  1.47k|                            add_codepoint(keep, codepoint);
14182|       |
14183|  1.47k|                            break;
14184|  1.47k|                        }
14185|       |
14186|       |                        // other characters after escape
14187|    120|                        default:
  ------------------
  |  Branch (14187:25): [True: 120, False: 8.91k]
  ------------------
14188|    120|                            error_message = "invalid string: forbidden character after backslash";
14189|    120|                            return token_type::parse_error;
14190|  9.03k|                    }
14191|       |
14192|  8.35k|                    break;
14193|  9.03k|                }
14194|       |
14195|       |                // invalid control characters
14196|  8.35k|                case 0x00:
  ------------------
  |  Branch (14196:17): [True: 0, False: 13.4k]
  ------------------
14197|     18|                case 0x01:
  ------------------
  |  Branch (14197:17): [True: 18, False: 13.3k]
  ------------------
14198|     42|                case 0x02:
  ------------------
  |  Branch (14198:17): [True: 24, False: 13.3k]
  ------------------
14199|     72|                case 0x03:
  ------------------
  |  Branch (14199:17): [True: 30, False: 13.3k]
  ------------------
14200|     96|                case 0x04:
  ------------------
  |  Branch (14200:17): [True: 24, False: 13.3k]
  ------------------
14201|    114|                case 0x05:
  ------------------
  |  Branch (14201:17): [True: 18, False: 13.3k]
  ------------------
14202|    138|                case 0x06:
  ------------------
  |  Branch (14202:17): [True: 24, False: 13.3k]
  ------------------
14203|    156|                case 0x07:
  ------------------
  |  Branch (14203:17): [True: 18, False: 13.3k]
  ------------------
14204|    180|                case 0x08:
  ------------------
  |  Branch (14204:17): [True: 24, False: 13.3k]
  ------------------
14205|    198|                case 0x09:
  ------------------
  |  Branch (14205:17): [True: 18, False: 13.3k]
  ------------------
14206|    222|                case 0x0A:
  ------------------
  |  Branch (14206:17): [True: 24, False: 13.3k]
  ------------------
14207|    246|                case 0x0B:
  ------------------
  |  Branch (14207:17): [True: 24, False: 13.3k]
  ------------------
14208|    276|                case 0x0C:
  ------------------
  |  Branch (14208:17): [True: 30, False: 13.3k]
  ------------------
14209|    294|                case 0x0D:
  ------------------
  |  Branch (14209:17): [True: 18, False: 13.3k]
  ------------------
14210|    312|                case 0x0E:
  ------------------
  |  Branch (14210:17): [True: 18, False: 13.3k]
  ------------------
14211|    330|                case 0x0F:
  ------------------
  |  Branch (14211:17): [True: 18, False: 13.3k]
  ------------------
14212|    354|                case 0x10:
  ------------------
  |  Branch (14212:17): [True: 24, False: 13.3k]
  ------------------
14213|    390|                case 0x11:
  ------------------
  |  Branch (14213:17): [True: 36, False: 13.3k]
  ------------------
14214|    408|                case 0x12:
  ------------------
  |  Branch (14214:17): [True: 18, False: 13.3k]
  ------------------
14215|    432|                case 0x13:
  ------------------
  |  Branch (14215:17): [True: 24, False: 13.3k]
  ------------------
14216|    462|                case 0x14:
  ------------------
  |  Branch (14216:17): [True: 30, False: 13.3k]
  ------------------
14217|    480|                case 0x15:
  ------------------
  |  Branch (14217:17): [True: 18, False: 13.3k]
  ------------------
14218|    498|                case 0x16:
  ------------------
  |  Branch (14218:17): [True: 18, False: 13.3k]
  ------------------
14219|    534|                case 0x17:
  ------------------
  |  Branch (14219:17): [True: 36, False: 13.3k]
  ------------------
14220|    552|                case 0x18:
  ------------------
  |  Branch (14220:17): [True: 18, False: 13.3k]
  ------------------
14221|    570|                case 0x19:
  ------------------
  |  Branch (14221:17): [True: 18, False: 13.3k]
  ------------------
14222|    588|                case 0x1A:
  ------------------
  |  Branch (14222:17): [True: 18, False: 13.3k]
  ------------------
14223|    624|                case 0x1B:
  ------------------
  |  Branch (14223:17): [True: 36, False: 13.3k]
  ------------------
14224|    648|                case 0x1C:
  ------------------
  |  Branch (14224:17): [True: 24, False: 13.3k]
  ------------------
14225|    684|                case 0x1D:
  ------------------
  |  Branch (14225:17): [True: 36, False: 13.3k]
  ------------------
14226|    702|                case 0x1E:
  ------------------
  |  Branch (14226:17): [True: 18, False: 13.3k]
  ------------------
14227|    732|                case 0x1F:
  ------------------
  |  Branch (14227:17): [True: 30, False: 13.3k]
  ------------------
14228|    732|                {
14229|    732|                    static const std::array<const char*, 32> control_character_messages = {{
14230|    732|                            "invalid string: control character U+0000 (NUL) must be escaped to \\u0000",
14231|    732|                            "invalid string: control character U+0001 (SOH) must be escaped to \\u0001",
14232|    732|                            "invalid string: control character U+0002 (STX) must be escaped to \\u0002",
14233|    732|                            "invalid string: control character U+0003 (ETX) must be escaped to \\u0003",
14234|    732|                            "invalid string: control character U+0004 (EOT) must be escaped to \\u0004",
14235|    732|                            "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005",
14236|    732|                            "invalid string: control character U+0006 (ACK) must be escaped to \\u0006",
14237|    732|                            "invalid string: control character U+0007 (BEL) must be escaped to \\u0007",
14238|    732|                            "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b",
14239|    732|                            "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t",
14240|    732|                            "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n",
14241|    732|                            "invalid string: control character U+000B (VT) must be escaped to \\u000B",
14242|    732|                            "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f",
14243|    732|                            "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r",
14244|    732|                            "invalid string: control character U+000E (SO) must be escaped to \\u000E",
14245|    732|                            "invalid string: control character U+000F (SI) must be escaped to \\u000F",
14246|    732|                            "invalid string: control character U+0010 (DLE) must be escaped to \\u0010",
14247|    732|                            "invalid string: control character U+0011 (DC1) must be escaped to \\u0011",
14248|    732|                            "invalid string: control character U+0012 (DC2) must be escaped to \\u0012",
14249|    732|                            "invalid string: control character U+0013 (DC3) must be escaped to \\u0013",
14250|    732|                            "invalid string: control character U+0014 (DC4) must be escaped to \\u0014",
14251|    732|                            "invalid string: control character U+0015 (NAK) must be escaped to \\u0015",
14252|    732|                            "invalid string: control character U+0016 (SYN) must be escaped to \\u0016",
14253|    732|                            "invalid string: control character U+0017 (ETB) must be escaped to \\u0017",
14254|    732|                            "invalid string: control character U+0018 (CAN) must be escaped to \\u0018",
14255|    732|                            "invalid string: control character U+0019 (EM) must be escaped to \\u0019",
14256|    732|                            "invalid string: control character U+001A (SUB) must be escaped to \\u001A",
14257|    732|                            "invalid string: control character U+001B (ESC) must be escaped to \\u001B",
14258|    732|                            "invalid string: control character U+001C (FS) must be escaped to \\u001C",
14259|    732|                            "invalid string: control character U+001D (GS) must be escaped to \\u001D",
14260|    732|                            "invalid string: control character U+001E (RS) must be escaped to \\u001E",
14261|    732|                            "invalid string: control character U+001F (US) must be escaped to \\u001F"
14262|    732|                        }
14263|    732|                    };
14264|    732|                    error_message = control_character_messages[static_cast<std::size_t>(current)];
14265|    732|                    return token_type::parse_error;
14266|    702|                }
14267|       |
14268|       |                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
14269|      0|                case 0x20:
  ------------------
  |  Branch (14269:17): [True: 0, False: 13.4k]
  ------------------
14270|      0|                case 0x21:
  ------------------
  |  Branch (14270:17): [True: 0, False: 13.4k]
  ------------------
14271|      0|                case 0x23:
  ------------------
  |  Branch (14271:17): [True: 0, False: 13.4k]
  ------------------
14272|      0|                case 0x24:
  ------------------
  |  Branch (14272:17): [True: 0, False: 13.4k]
  ------------------
14273|      0|                case 0x25:
  ------------------
  |  Branch (14273:17): [True: 0, False: 13.4k]
  ------------------
14274|      0|                case 0x26:
  ------------------
  |  Branch (14274:17): [True: 0, False: 13.4k]
  ------------------
14275|      0|                case 0x27:
  ------------------
  |  Branch (14275:17): [True: 0, False: 13.4k]
  ------------------
14276|      0|                case 0x28:
  ------------------
  |  Branch (14276:17): [True: 0, False: 13.4k]
  ------------------
14277|      0|                case 0x29:
  ------------------
  |  Branch (14277:17): [True: 0, False: 13.4k]
  ------------------
14278|      0|                case 0x2A:
  ------------------
  |  Branch (14278:17): [True: 0, False: 13.4k]
  ------------------
14279|      0|                case 0x2B:
  ------------------
  |  Branch (14279:17): [True: 0, False: 13.4k]
  ------------------
14280|      0|                case 0x2C:
  ------------------
  |  Branch (14280:17): [True: 0, False: 13.4k]
  ------------------
14281|      0|                case 0x2D:
  ------------------
  |  Branch (14281:17): [True: 0, False: 13.4k]
  ------------------
14282|      0|                case 0x2E:
  ------------------
  |  Branch (14282:17): [True: 0, False: 13.4k]
  ------------------
14283|      0|                case 0x2F:
  ------------------
  |  Branch (14283:17): [True: 0, False: 13.4k]
  ------------------
14284|      0|                case 0x30:
  ------------------
  |  Branch (14284:17): [True: 0, False: 13.4k]
  ------------------
14285|      0|                case 0x31:
  ------------------
  |  Branch (14285:17): [True: 0, False: 13.4k]
  ------------------
14286|      0|                case 0x32:
  ------------------
  |  Branch (14286:17): [True: 0, False: 13.4k]
  ------------------
14287|      0|                case 0x33:
  ------------------
  |  Branch (14287:17): [True: 0, False: 13.4k]
  ------------------
14288|      0|                case 0x34:
  ------------------
  |  Branch (14288:17): [True: 0, False: 13.4k]
  ------------------
14289|      0|                case 0x35:
  ------------------
  |  Branch (14289:17): [True: 0, False: 13.4k]
  ------------------
14290|      0|                case 0x36:
  ------------------
  |  Branch (14290:17): [True: 0, False: 13.4k]
  ------------------
14291|      0|                case 0x37:
  ------------------
  |  Branch (14291:17): [True: 0, False: 13.4k]
  ------------------
14292|      0|                case 0x38:
  ------------------
  |  Branch (14292:17): [True: 0, False: 13.4k]
  ------------------
14293|      0|                case 0x39:
  ------------------
  |  Branch (14293:17): [True: 0, False: 13.4k]
  ------------------
14294|      0|                case 0x3A:
  ------------------
  |  Branch (14294:17): [True: 0, False: 13.4k]
  ------------------
14295|      0|                case 0x3B:
  ------------------
  |  Branch (14295:17): [True: 0, False: 13.4k]
  ------------------
14296|      0|                case 0x3C:
  ------------------
  |  Branch (14296:17): [True: 0, False: 13.4k]
  ------------------
14297|      0|                case 0x3D:
  ------------------
  |  Branch (14297:17): [True: 0, False: 13.4k]
  ------------------
14298|      0|                case 0x3E:
  ------------------
  |  Branch (14298:17): [True: 0, False: 13.4k]
  ------------------
14299|      0|                case 0x3F:
  ------------------
  |  Branch (14299:17): [True: 0, False: 13.4k]
  ------------------
14300|      0|                case 0x40:
  ------------------
  |  Branch (14300:17): [True: 0, False: 13.4k]
  ------------------
14301|      0|                case 0x41:
  ------------------
  |  Branch (14301:17): [True: 0, False: 13.4k]
  ------------------
14302|      0|                case 0x42:
  ------------------
  |  Branch (14302:17): [True: 0, False: 13.4k]
  ------------------
14303|      0|                case 0x43:
  ------------------
  |  Branch (14303:17): [True: 0, False: 13.4k]
  ------------------
14304|      0|                case 0x44:
  ------------------
  |  Branch (14304:17): [True: 0, False: 13.4k]
  ------------------
14305|      0|                case 0x45:
  ------------------
  |  Branch (14305:17): [True: 0, False: 13.4k]
  ------------------
14306|      0|                case 0x46:
  ------------------
  |  Branch (14306:17): [True: 0, False: 13.4k]
  ------------------
14307|      0|                case 0x47:
  ------------------
  |  Branch (14307:17): [True: 0, False: 13.4k]
  ------------------
14308|      0|                case 0x48:
  ------------------
  |  Branch (14308:17): [True: 0, False: 13.4k]
  ------------------
14309|      0|                case 0x49:
  ------------------
  |  Branch (14309:17): [True: 0, False: 13.4k]
  ------------------
14310|      0|                case 0x4A:
  ------------------
  |  Branch (14310:17): [True: 0, False: 13.4k]
  ------------------
14311|      0|                case 0x4B:
  ------------------
  |  Branch (14311:17): [True: 0, False: 13.4k]
  ------------------
14312|      0|                case 0x4C:
  ------------------
  |  Branch (14312:17): [True: 0, False: 13.4k]
  ------------------
14313|      0|                case 0x4D:
  ------------------
  |  Branch (14313:17): [True: 0, False: 13.4k]
  ------------------
14314|      0|                case 0x4E:
  ------------------
  |  Branch (14314:17): [True: 0, False: 13.4k]
  ------------------
14315|      0|                case 0x4F:
  ------------------
  |  Branch (14315:17): [True: 0, False: 13.4k]
  ------------------
14316|      0|                case 0x50:
  ------------------
  |  Branch (14316:17): [True: 0, False: 13.4k]
  ------------------
14317|      0|                case 0x51:
  ------------------
  |  Branch (14317:17): [True: 0, False: 13.4k]
  ------------------
14318|      0|                case 0x52:
  ------------------
  |  Branch (14318:17): [True: 0, False: 13.4k]
  ------------------
14319|      0|                case 0x53:
  ------------------
  |  Branch (14319:17): [True: 0, False: 13.4k]
  ------------------
14320|      0|                case 0x54:
  ------------------
  |  Branch (14320:17): [True: 0, False: 13.4k]
  ------------------
14321|      0|                case 0x55:
  ------------------
  |  Branch (14321:17): [True: 0, False: 13.4k]
  ------------------
14322|      0|                case 0x56:
  ------------------
  |  Branch (14322:17): [True: 0, False: 13.4k]
  ------------------
14323|      0|                case 0x57:
  ------------------
  |  Branch (14323:17): [True: 0, False: 13.4k]
  ------------------
14324|      0|                case 0x58:
  ------------------
  |  Branch (14324:17): [True: 0, False: 13.4k]
  ------------------
14325|      0|                case 0x59:
  ------------------
  |  Branch (14325:17): [True: 0, False: 13.4k]
  ------------------
14326|      0|                case 0x5A:
  ------------------
  |  Branch (14326:17): [True: 0, False: 13.4k]
  ------------------
14327|      0|                case 0x5B:
  ------------------
  |  Branch (14327:17): [True: 0, False: 13.4k]
  ------------------
14328|      0|                case 0x5D:
  ------------------
  |  Branch (14328:17): [True: 0, False: 13.4k]
  ------------------
14329|      0|                case 0x5E:
  ------------------
  |  Branch (14329:17): [True: 0, False: 13.4k]
  ------------------
14330|      0|                case 0x5F:
  ------------------
  |  Branch (14330:17): [True: 0, False: 13.4k]
  ------------------
14331|      0|                case 0x60:
  ------------------
  |  Branch (14331:17): [True: 0, False: 13.4k]
  ------------------
14332|      0|                case 0x61:
  ------------------
  |  Branch (14332:17): [True: 0, False: 13.4k]
  ------------------
14333|      0|                case 0x62:
  ------------------
  |  Branch (14333:17): [True: 0, False: 13.4k]
  ------------------
14334|      0|                case 0x63:
  ------------------
  |  Branch (14334:17): [True: 0, False: 13.4k]
  ------------------
14335|      0|                case 0x64:
  ------------------
  |  Branch (14335:17): [True: 0, False: 13.4k]
  ------------------
14336|      0|                case 0x65:
  ------------------
  |  Branch (14336:17): [True: 0, False: 13.4k]
  ------------------
14337|      0|                case 0x66:
  ------------------
  |  Branch (14337:17): [True: 0, False: 13.4k]
  ------------------
14338|      0|                case 0x67:
  ------------------
  |  Branch (14338:17): [True: 0, False: 13.4k]
  ------------------
14339|      0|                case 0x68:
  ------------------
  |  Branch (14339:17): [True: 0, False: 13.4k]
  ------------------
14340|      0|                case 0x69:
  ------------------
  |  Branch (14340:17): [True: 0, False: 13.4k]
  ------------------
14341|      0|                case 0x6A:
  ------------------
  |  Branch (14341:17): [True: 0, False: 13.4k]
  ------------------
14342|      0|                case 0x6B:
  ------------------
  |  Branch (14342:17): [True: 0, False: 13.4k]
  ------------------
14343|      0|                case 0x6C:
  ------------------
  |  Branch (14343:17): [True: 0, False: 13.4k]
  ------------------
14344|      0|                case 0x6D:
  ------------------
  |  Branch (14344:17): [True: 0, False: 13.4k]
  ------------------
14345|      0|                case 0x6E:
  ------------------
  |  Branch (14345:17): [True: 0, False: 13.4k]
  ------------------
14346|      0|                case 0x6F:
  ------------------
  |  Branch (14346:17): [True: 0, False: 13.4k]
  ------------------
14347|      0|                case 0x70:
  ------------------
  |  Branch (14347:17): [True: 0, False: 13.4k]
  ------------------
14348|      0|                case 0x71:
  ------------------
  |  Branch (14348:17): [True: 0, False: 13.4k]
  ------------------
14349|      0|                case 0x72:
  ------------------
  |  Branch (14349:17): [True: 0, False: 13.4k]
  ------------------
14350|      0|                case 0x73:
  ------------------
  |  Branch (14350:17): [True: 0, False: 13.4k]
  ------------------
14351|      0|                case 0x74:
  ------------------
  |  Branch (14351:17): [True: 0, False: 13.4k]
  ------------------
14352|      0|                case 0x75:
  ------------------
  |  Branch (14352:17): [True: 0, False: 13.4k]
  ------------------
14353|      0|                case 0x76:
  ------------------
  |  Branch (14353:17): [True: 0, False: 13.4k]
  ------------------
14354|      0|                case 0x77:
  ------------------
  |  Branch (14354:17): [True: 0, False: 13.4k]
  ------------------
14355|      0|                case 0x78:
  ------------------
  |  Branch (14355:17): [True: 0, False: 13.4k]
  ------------------
14356|      0|                case 0x79:
  ------------------
  |  Branch (14356:17): [True: 0, False: 13.4k]
  ------------------
14357|      0|                case 0x7A:
  ------------------
  |  Branch (14357:17): [True: 0, False: 13.4k]
  ------------------
14358|      0|                case 0x7B:
  ------------------
  |  Branch (14358:17): [True: 0, False: 13.4k]
  ------------------
14359|      0|                case 0x7C:
  ------------------
  |  Branch (14359:17): [True: 0, False: 13.4k]
  ------------------
14360|      0|                case 0x7D:
  ------------------
  |  Branch (14360:17): [True: 0, False: 13.4k]
  ------------------
14361|      0|                case 0x7E:
  ------------------
  |  Branch (14361:17): [True: 0, False: 13.4k]
  ------------------
14362|      0|                case 0x7F:
  ------------------
  |  Branch (14362:17): [True: 0, False: 13.4k]
  ------------------
14363|      0|                {
14364|      0|                    add_string_char(keep, current);
14365|      0|                    break;
14366|      0|                }
14367|       |
14368|       |                // U+0080..U+07FF: bytes C2..DF 80..BF
14369|     72|                case 0xC2:
  ------------------
  |  Branch (14369:17): [True: 72, False: 13.3k]
  ------------------
14370|    102|                case 0xC3:
  ------------------
  |  Branch (14370:17): [True: 30, False: 13.3k]
  ------------------
14371|    120|                case 0xC4:
  ------------------
  |  Branch (14371:17): [True: 18, False: 13.3k]
  ------------------
14372|    138|                case 0xC5:
  ------------------
  |  Branch (14372:17): [True: 18, False: 13.3k]
  ------------------
14373|    162|                case 0xC6:
  ------------------
  |  Branch (14373:17): [True: 24, False: 13.3k]
  ------------------
14374|    186|                case 0xC7:
  ------------------
  |  Branch (14374:17): [True: 24, False: 13.3k]
  ------------------
14375|    222|                case 0xC8:
  ------------------
  |  Branch (14375:17): [True: 36, False: 13.3k]
  ------------------
14376|    246|                case 0xC9:
  ------------------
  |  Branch (14376:17): [True: 24, False: 13.3k]
  ------------------
14377|    264|                case 0xCA:
  ------------------
  |  Branch (14377:17): [True: 18, False: 13.3k]
  ------------------
14378|    282|                case 0xCB:
  ------------------
  |  Branch (14378:17): [True: 18, False: 13.3k]
  ------------------
14379|    300|                case 0xCC:
  ------------------
  |  Branch (14379:17): [True: 18, False: 13.3k]
  ------------------
14380|    318|                case 0xCD:
  ------------------
  |  Branch (14380:17): [True: 18, False: 13.3k]
  ------------------
14381|    342|                case 0xCE:
  ------------------
  |  Branch (14381:17): [True: 24, False: 13.3k]
  ------------------
14382|    360|                case 0xCF:
  ------------------
  |  Branch (14382:17): [True: 18, False: 13.3k]
  ------------------
14383|    390|                case 0xD0:
  ------------------
  |  Branch (14383:17): [True: 30, False: 13.3k]
  ------------------
14384|    426|                case 0xD1:
  ------------------
  |  Branch (14384:17): [True: 36, False: 13.3k]
  ------------------
14385|    456|                case 0xD2:
  ------------------
  |  Branch (14385:17): [True: 30, False: 13.3k]
  ------------------
14386|    480|                case 0xD3:
  ------------------
  |  Branch (14386:17): [True: 24, False: 13.3k]
  ------------------
14387|    516|                case 0xD4:
  ------------------
  |  Branch (14387:17): [True: 36, False: 13.3k]
  ------------------
14388|    534|                case 0xD5:
  ------------------
  |  Branch (14388:17): [True: 18, False: 13.3k]
  ------------------
14389|    558|                case 0xD6:
  ------------------
  |  Branch (14389:17): [True: 24, False: 13.3k]
  ------------------
14390|    582|                case 0xD7:
  ------------------
  |  Branch (14390:17): [True: 24, False: 13.3k]
  ------------------
14391|    606|                case 0xD8:
  ------------------
  |  Branch (14391:17): [True: 24, False: 13.3k]
  ------------------
14392|    624|                case 0xD9:
  ------------------
  |  Branch (14392:17): [True: 18, False: 13.3k]
  ------------------
14393|    654|                case 0xDA:
  ------------------
  |  Branch (14393:17): [True: 30, False: 13.3k]
  ------------------
14394|    690|                case 0xDB:
  ------------------
  |  Branch (14394:17): [True: 36, False: 13.3k]
  ------------------
14395|    720|                case 0xDC:
  ------------------
  |  Branch (14395:17): [True: 30, False: 13.3k]
  ------------------
14396|    738|                case 0xDD:
  ------------------
  |  Branch (14396:17): [True: 18, False: 13.3k]
  ------------------
14397|    756|                case 0xDE:
  ------------------
  |  Branch (14397:17): [True: 18, False: 13.3k]
  ------------------
14398|    774|                case 0xDF:
  ------------------
  |  Branch (14398:17): [True: 18, False: 13.3k]
  ------------------
14399|    774|                {
14400|    774|                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range(keep, {0x80, 0xBF})))
  ------------------
  |  | 1697|    774|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 774, False: 0]
  |  |  ------------------
  ------------------
14401|    774|                    {
14402|    774|                        return token_type::parse_error;
14403|    774|                    }
14404|      0|                    break;
14405|    774|                }
14406|       |
14407|       |                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
14408|    204|                case 0xE0:
  ------------------
  |  Branch (14408:17): [True: 204, False: 13.2k]
  ------------------
14409|    204|                {
14410|    204|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0xA0, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    204|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 204, False: 0]
  |  |  ------------------
  ------------------
14411|    204|                    {
14412|    204|                        return token_type::parse_error;
14413|    204|                    }
14414|      0|                    break;
14415|    204|                }
14416|       |
14417|       |                // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
14418|       |                // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
14419|     36|                case 0xE1:
  ------------------
  |  Branch (14419:17): [True: 36, False: 13.3k]
  ------------------
14420|     66|                case 0xE2:
  ------------------
  |  Branch (14420:17): [True: 30, False: 13.3k]
  ------------------
14421|     90|                case 0xE3:
  ------------------
  |  Branch (14421:17): [True: 24, False: 13.3k]
  ------------------
14422|    120|                case 0xE4:
  ------------------
  |  Branch (14422:17): [True: 30, False: 13.3k]
  ------------------
14423|    144|                case 0xE5:
  ------------------
  |  Branch (14423:17): [True: 24, False: 13.3k]
  ------------------
14424|    162|                case 0xE6:
  ------------------
  |  Branch (14424:17): [True: 18, False: 13.3k]
  ------------------
14425|    198|                case 0xE7:
  ------------------
  |  Branch (14425:17): [True: 36, False: 13.3k]
  ------------------
14426|    234|                case 0xE8:
  ------------------
  |  Branch (14426:17): [True: 36, False: 13.3k]
  ------------------
14427|    270|                case 0xE9:
  ------------------
  |  Branch (14427:17): [True: 36, False: 13.3k]
  ------------------
14428|    288|                case 0xEA:
  ------------------
  |  Branch (14428:17): [True: 18, False: 13.3k]
  ------------------
14429|    330|                case 0xEB:
  ------------------
  |  Branch (14429:17): [True: 42, False: 13.3k]
  ------------------
14430|    366|                case 0xEC:
  ------------------
  |  Branch (14430:17): [True: 36, False: 13.3k]
  ------------------
14431|    390|                case 0xEE:
  ------------------
  |  Branch (14431:17): [True: 24, False: 13.3k]
  ------------------
14432|    420|                case 0xEF:
  ------------------
  |  Branch (14432:17): [True: 30, False: 13.3k]
  ------------------
14433|    420|                {
14434|    420|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    420|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 420, False: 0]
  |  |  ------------------
  ------------------
14435|    420|                    {
14436|    420|                        return token_type::parse_error;
14437|    420|                    }
14438|      0|                    break;
14439|    420|                }
14440|       |
14441|       |                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
14442|    180|                case 0xED:
  ------------------
  |  Branch (14442:17): [True: 180, False: 13.2k]
  ------------------
14443|    180|                {
14444|    180|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0x9F, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    180|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 180, False: 0]
  |  |  ------------------
  ------------------
14445|    180|                    {
14446|    180|                        return token_type::parse_error;
14447|    180|                    }
14448|      0|                    break;
14449|    180|                }
14450|       |
14451|       |                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
14452|    204|                case 0xF0:
  ------------------
  |  Branch (14452:17): [True: 204, False: 13.2k]
  ------------------
14453|    204|                {
14454|    204|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    204|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 204, False: 0]
  |  |  ------------------
  ------------------
14455|    204|                    {
14456|    204|                        return token_type::parse_error;
14457|    204|                    }
14458|      0|                    break;
14459|    204|                }
14460|       |
14461|       |                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
14462|     78|                case 0xF1:
  ------------------
  |  Branch (14462:17): [True: 78, False: 13.3k]
  ------------------
14463|    156|                case 0xF2:
  ------------------
  |  Branch (14463:17): [True: 78, False: 13.3k]
  ------------------
14464|    222|                case 0xF3:
  ------------------
  |  Branch (14464:17): [True: 66, False: 13.3k]
  ------------------
14465|    222|                {
14466|    222|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    222|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 222, False: 0]
  |  |  ------------------
  ------------------
14467|    222|                    {
14468|    222|                        return token_type::parse_error;
14469|    222|                    }
14470|      0|                    break;
14471|    222|                }
14472|       |
14473|       |                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
14474|    198|                case 0xF4:
  ------------------
  |  Branch (14474:17): [True: 198, False: 13.2k]
  ------------------
14475|    198|                {
14476|    198|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    198|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 198, False: 0]
  |  |  ------------------
  ------------------
14477|    198|                    {
14478|    198|                        return token_type::parse_error;
14479|    198|                    }
14480|      0|                    break;
14481|    198|                }
14482|       |
14483|       |                // the remaining bytes (80..C1 and F5..FF) are ill-formed
14484|    198|                default:
  ------------------
  |  Branch (14484:17): [True: 198, False: 13.2k]
  ------------------
14485|    198|                {
14486|    198|                    error_message = "invalid string: ill-formed UTF-8 byte";
14487|    198|                    return token_type::parse_error;
14488|    198|                }
14489|  13.4k|            }
14490|  13.4k|        }
14491|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE5resetEv:
15334|  55.1k|    {
15335|  55.1k|        token_buffer.clear();
15336|  55.1k|        pending_number_text = nullptr;
15337|  55.1k|        decimal_point_position = std::string::npos;
15338|       |
15339|       |#if JSON_DIAGNOSTIC_POSITIONS
15340|       |        // the first character of the token has already been read, hence the -1
15341|       |        token_start_position = get_chars_read_total() - 1;
15342|       |#endif
15343|       |
15344|  55.1k|        note_token_start(std::integral_constant<bool, lazy_token_string> {});
15345|  55.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16note_token_startENS4_17integral_constantIbLb1EEE:
15351|  55.1k|    {
15352|  55.1k|        note_token_start_lazy(std::integral_constant<bool, adapter_token> {});
15353|  55.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE21note_token_start_lazyENS4_17integral_constantIbLb0EEE:
15356|  55.1k|    {
15357|  55.1k|        token_string_start = ia.get_consumed_count() - 1;
15358|  55.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE20get_after_string_runILb1EEEiNS4_17integral_constantIbLb1EEENSN_IbXT_EEE:
13962|  13.4k|    {
13963|       |        // scan_string() is entered from scan_after_whitespace(), whose current
13964|       |        // was read by skip_whitespace() (its first get() clears a pending
13965|       |        // unget), and nothing in scan_string() calls unget()
13966|  13.4k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  13.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13966:9): [True: 13.4k, False: 0]
  ------------------
13967|  13.4k|        const std::size_t remaining = ia.bulk_remaining();
13968|  13.4k|        if (remaining == 0)
  ------------------
  |  Branch (13968:13): [True: 684, False: 12.7k]
  ------------------
13969|    684|        {
13970|    684|            return get();
13971|    684|        }
13972|  12.7k|        const auto* const raw = ia.bulk_data();
13973|  12.7k|        const auto* const data = reinterpret_cast<const unsigned char*>(raw);
13974|       |
13975|  12.7k|        const std::size_t pos = lexer_string_bulk_run(data, remaining);
13976|  12.7k|        if (pos != 0)
  ------------------
  |  Branch (13976:13): [True: 2.85k, False: 9.86k]
  ------------------
13977|  2.85k|        {
13978|  2.85k|            append_string_run(keep, data, pos);
13979|  2.85k|            bulk_consume(reinterpret_cast<const char*>(data), pos);
13980|  2.85k|        }
13981|  12.7k|        if (pos == remaining)
  ------------------
  |  Branch (13981:13): [True: 468, False: 12.2k]
  ------------------
13982|    468|        {
13983|    468|            return get(); // end of the contiguous input
13984|    468|        }
13985|       |        // what get() does, with the byte at hand
13986|  12.2k|        advance_position();
13987|  12.2k|        ia.bulk_skip(1);
13988|  12.2k|        current = char_traits<char_type>::to_int_type(raw[pos]);
13989|  12.2k|        return track_after_read();
13990|  12.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21lexer_string_bulk_runEPKhm:
13478|  12.7k|{
13479|       |#if JSON_SCAN_NEON && !(defined(JSON_USE_SIMDUTF) && defined(JSON_HAS_CPP_17))
13480|       |    std::size_t i = 0;
13481|       |    for (int words = 4; words > 0 && n - i >= 8; --words)
13482|       |    {
13483|       |        const std::uint64_t special = swar_string_special(read_eight_bytes(data + i));
13484|       |        if (special != 0)
13485|       |        {
13486|       |            const std::size_t pos = i + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13487|       |            return data[pos] < 0x80u ? pos : string_bulk_run_from(data, pos, n);
13488|       |        }
13489|       |        i += 8;
13490|       |    }
13491|       |    return string_bulk_run_from(data, i, n);
13492|       |#else
13493|  12.7k|    return string_bulk_run(data, n);
13494|  12.7k|#endif
13495|  12.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE17append_string_runENS4_17integral_constantIbLb1EEEPKhm:
15592|  2.85k|    {
15593|  2.85k|        token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), n);
15594|  2.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE15add_string_charENS4_17integral_constantIbLb1EEEi:
15573|  9.78k|    {
15574|  9.78k|        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
15575|  9.78k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE13get_codepointEv:
13871|  2.35k|    {
13872|       |        // this function only makes sense after reading `\u`
13873|  2.35k|        JSON_ASSERT(current == 'u');
  ------------------
  |  | 2653|  2.35k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13873:9): [True: 2.35k, False: 0]
  ------------------
13874|       |
13875|       |        // contiguous input: decode all 4 hex digits directly from the buffer
13876|  2.35k|        int fast_codepoint = 0;
13877|  2.35k|        if (get_codepoint_bulk(std::integral_constant<bool, bulk_scan> {}, fast_codepoint))
  ------------------
  |  Branch (13877:13): [True: 2.07k, False: 288]
  ------------------
13878|  2.07k|        {
13879|  2.07k|            return fast_codepoint;
13880|  2.07k|        }
13881|       |
13882|    288|        int codepoint = 0;
13883|       |
13884|    288|        const auto factors = { 12u, 8u, 4u, 0u };
13885|    288|        for (const auto factor : factors)
  ------------------
  |  Branch (13885:32): [True: 600, False: 0]
  ------------------
13886|    600|        {
13887|    600|            get();
13888|       |
13889|    600|            if (current >= '0' && current <= '9')
  ------------------
  |  Branch (13889:17): [True: 408, False: 192]
  |  Branch (13889:35): [True: 84, False: 324]
  ------------------
13890|     84|            {
13891|     84|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
13892|     84|            }
13893|    516|            else if (current >= 'A' && current <= 'F')
  ------------------
  |  Branch (13893:22): [True: 318, False: 198]
  |  Branch (13893:40): [True: 102, False: 216]
  ------------------
13894|    102|            {
13895|    102|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
13896|    102|            }
13897|    414|            else if (current >= 'a' && current <= 'f')
  ------------------
  |  Branch (13897:22): [True: 204, False: 210]
  |  Branch (13897:40): [True: 126, False: 78]
  ------------------
13898|    126|            {
13899|    126|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
13900|    126|            }
13901|    288|            else
13902|    288|            {
13903|    288|                return -1;
13904|    288|            }
13905|    600|        }
13906|       |
13907|      0|        JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13907:9): [True: 0, False: 0]
  |  Branch (13907:9): [True: 0, False: 0]
  |  Branch (13907:9): [True: 0, False: 0]
  ------------------
13908|      0|        return codepoint;
13909|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE18get_codepoint_bulkENS4_17integral_constantIbLb1EEERi:
13830|  2.35k|    {
13831|       |        // no unget is pending inside a string (see get_after_string_run())
13832|  2.35k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  2.35k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13832:9): [True: 2.35k, False: 0]
  ------------------
13833|  2.35k|        if (ia.bulk_remaining() < 4)
  ------------------
  |  Branch (13833:13): [True: 198, False: 2.16k]
  ------------------
13834|    198|        {
13835|    198|            return false;
13836|    198|        }
13837|  2.16k|        const char_type* const raw = ia.bulk_data();
13838|  2.16k|        const int codepoint = hex_codepoint(reinterpret_cast<const unsigned char*>(raw));
13839|  2.16k|        if (codepoint < 0)
  ------------------
  |  Branch (13839:13): [True: 90, False: 2.07k]
  ------------------
13840|     90|        {
13841|     90|            return false;
13842|     90|        }
13843|  2.07k|        bulk_consume(reinterpret_cast<const char*>(raw), 4);
13844|  2.07k|        current = char_traits<char_type>::to_int_type(raw[3]);
13845|  2.07k|        out = codepoint;
13846|  2.07k|        return true;
13847|  2.16k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13hex_codepointEPKh:
13506|  2.16k|{
13507|  2.16k|    static const std::array<std::uint8_t, 256> hex_digit_table = // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
13508|  2.16k|    {
13509|  2.16k|        {
13510|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 00..0F
13511|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 10..1F
13512|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 20..2F
13513|  2.16k|            0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 30..3F ('0'..'9')
13514|  2.16k|            0xFF, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 40..4F ('A'..'F')
13515|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 50..5F
13516|  2.16k|            0xFF, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 60..6F ('a'..'f')
13517|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 70..7F
13518|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 80..8F
13519|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 90..9F
13520|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // A0..AF
13521|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // B0..BF
13522|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // C0..CF
13523|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // D0..DF
13524|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // E0..EF
13525|  2.16k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF  // F0..FF
13526|  2.16k|        }
13527|  2.16k|    };
13528|       |
13529|  2.16k|    const std::uint8_t d0 = hex_digit_table[data[0]];
13530|  2.16k|    const std::uint8_t d1 = hex_digit_table[data[1]];
13531|  2.16k|    const std::uint8_t d2 = hex_digit_table[data[2]];
13532|  2.16k|    const std::uint8_t d3 = hex_digit_table[data[3]];
13533|       |    // every valid digit is <= 0xF; the combined OR only exceeds it if at
13534|       |    // least one of the four bytes was not a hex digit (looked up as 0xFF)
13535|  2.16k|    if ((d0 | d1 | d2 | d3) > 0x0F)
  ------------------
  |  Branch (13535:9): [True: 90, False: 2.07k]
  ------------------
13536|     90|    {
13537|     90|        return -1;
13538|     90|    }
13539|  2.07k|    return (d0 << 12) | (d1 << 8) | (d2 << 4) | d3;
13540|  2.16k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE13add_codepointENS4_17integral_constantIbLb1EEEi:
15581|  1.47k|    {
15582|  1.47k|        encode_utf8(static_cast<std::uint32_t>(codepoint), [this](std::uint32_t byte)
15583|  1.47k|        {
15584|  1.47k|            add(static_cast<char_int_type>(byte));
15585|  1.47k|        });
15586|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11encode_utf8IZNS1_5lexerINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_22iterator_input_adapterIPKcSK_EELb0EE13add_codepointENS5_17integral_constantIbLb1EEEiEUljE_EEvjRKT_:
 7275|  1.47k|{
 7276|  1.47k|    JSON_ASSERT(cp <= 0x10FFFF);
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7276:5): [True: 1.47k, False: 0]
  ------------------
 7277|       |
 7278|  1.47k|    if (cp < 0x80)
  ------------------
  |  Branch (7278:9): [True: 246, False: 1.23k]
  ------------------
 7279|    246|    {
 7280|       |        // 1-byte characters: 0xxxxxxx (ASCII)
 7281|    246|        out(cp);
 7282|    246|    }
 7283|  1.23k|    else if (cp <= 0x7FF)
  ------------------
  |  Branch (7283:14): [True: 516, False: 714]
  ------------------
 7284|    516|    {
 7285|       |        // 2-byte characters: 110xxxxx 10xxxxxx
 7286|    516|        out(0xC0u | (cp >> 6u));
 7287|    516|        out(0x80u | (cp & 0x3Fu));
 7288|    516|    }
 7289|    714|    else if (cp <= 0xFFFF)
  ------------------
  |  Branch (7289:14): [True: 498, False: 216]
  ------------------
 7290|    498|    {
 7291|       |        // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
 7292|    498|        out(0xE0u | (cp >> 12u));
 7293|    498|        out(0x80u | ((cp >> 6u) & 0x3Fu));
 7294|    498|        out(0x80u | (cp & 0x3Fu));
 7295|    498|    }
 7296|    216|    else
 7297|    216|    {
 7298|       |        // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
 7299|    216|        out(0xF0u | (cp >> 18u));
 7300|    216|        out(0x80u | ((cp >> 12u) & 0x3Fu));
 7301|    216|        out(0x80u | ((cp >> 6u) & 0x3Fu));
 7302|    216|        out(0x80u | (cp & 0x3Fu));
 7303|    216|    }
 7304|  1.47k|}
_ZZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE13add_codepointENS4_17integral_constantIbLb1EEEiENKUljE_clEj:
15583|  3.63k|        {
15584|  3.63k|            add(static_cast<char_int_type>(byte));
15585|  3.63k|        });
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE3addEi:
15566|  30.2k|    {
15567|  30.2k|        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
15568|  30.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE18next_byte_in_rangeILb1EEEbNS4_17integral_constantIbXT_EEESt16initializer_listIiE:
13930|  2.20k|    {
13931|  2.20k|        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
  ------------------
  |  | 2653|  2.20k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13931:9): [True: 774, False: 1.42k]
  |  Branch (13931:9): [True: 804, False: 624]
  |  Branch (13931:9): [True: 624, False: 0]
  |  Branch (13931:9): [True: 2.20k, False: 0]
  ------------------
13932|  2.20k|        add_string_char(keep, current);
13933|       |
13934|  2.90k|        for (auto range = ranges.begin(); range != ranges.end(); ++range)
  ------------------
  |  Branch (13934:43): [True: 2.90k, False: 0]
  ------------------
13935|  2.90k|        {
13936|  2.90k|            get();
13937|  2.90k|            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions)
  ------------------
  |  | 1696|  4.13k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 702, False: 2.20k]
  |  |  |  Branch (1696:94): [True: 1.23k, False: 1.67k]
  |  |  |  Branch (1696:94): [True: 702, False: 528]
  |  |  ------------------
  ------------------
13938|    702|            {
13939|    702|                add_string_char(keep, current);
13940|    702|            }
13941|  2.20k|            else
13942|  2.20k|            {
13943|  2.20k|                error_message = "invalid string: ill-formed UTF-8 byte";
13944|  2.20k|                return false;
13945|  2.20k|            }
13946|  2.90k|        }
13947|       |
13948|      0|        return true;
13949|  2.20k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE20scan_number_dispatchENS4_17integral_constantIbLb1EEE:
15267|  50.1k|    {
15268|  50.1k|        const token_type t = scan_number_bulk_contiguous();
15269|  50.1k|        return (t != token_type::uninitialized) ? t : scan_number();
  ------------------
  |  Branch (15269:16): [True: 39.1k, False: 11.0k]
  ------------------
15270|  50.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE27scan_number_bulk_contiguousEv:
15043|  50.1k|    {
15044|       |        // called right after scan_after_whitespace() read current (see
15045|       |        // get_after_string_run()), so no unget is pending
15046|  50.1k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  50.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15046:9): [True: 50.1k, False: 0]
  ------------------
15047|  50.1k|        const std::size_t rem = ia.bulk_remaining();
15048|  50.1k|        if (rem == 0)
  ------------------
  |  Branch (15048:13): [True: 9.23k, False: 40.9k]
  ------------------
15049|  9.23k|        {
15050|       |            // the first digit is the last input byte; let scan_number() finish
15051|  9.23k|            return token_type::uninitialized;
15052|  9.23k|        }
15053|       |        // the byte before the next unread one is current (contiguous input)
15054|  40.9k|        const char* const data = reinterpret_cast<const char*>(ia.bulk_data()) - 1;
15055|  40.9k|        const std::size_t avail = rem + 1;
15056|       |
15057|       |        // validate + classify the number extent (mirrors scan_number()'s grammar)
15058|       |        // and accumulate the mantissa digits on the way, so that tokens with up
15059|       |        // to 19 digits need no second pass for their value
15060|  40.9k|        std::size_t i = 0;
15061|  40.9k|        std::size_t dot_index = std::string::npos;
15062|  40.9k|        token_type number_type = token_type::value_unsigned;
15063|  40.9k|        std::uint64_t w = 0;
15064|  40.9k|        if (data[0] == '-')
  ------------------
  |  Branch (15064:13): [True: 4.84k, False: 36.0k]
  ------------------
15065|  4.84k|        {
15066|  4.84k|            number_type = token_type::value_integer;
15067|  4.84k|            i = 1; // avail >= 2: rem == 0 returned above
15068|  4.84k|        }
15069|  40.9k|        const std::size_t integer_begin = i;
15070|  40.9k|        if (data[i] == '0')
  ------------------
  |  Branch (15070:13): [True: 4.36k, False: 36.5k]
  ------------------
15071|  4.36k|        {
15072|  4.36k|            ++i;
15073|  4.36k|        }
15074|  36.5k|        else if (data[i] >= '1' && data[i] <= '9')
  ------------------
  |  Branch (15074:18): [True: 36.4k, False: 132]
  |  Branch (15074:36): [True: 36.3k, False: 54]
  ------------------
15075|  36.3k|        {
15076|  36.3k|            i = accumulate_digits(data, i, avail, w);
15077|  36.3k|        }
15078|    186|        else
15079|    186|        {
15080|    186|            return token_type::uninitialized;
15081|    186|        }
15082|  40.7k|        std::size_t digit_count = i - integer_begin;
15083|  40.7k|        std::size_t fraction_digits = 0;
15084|  40.7k|        if (i < avail && data[i] == '.')
  ------------------
  |  Branch (15084:13): [True: 24.5k, False: 16.2k]
  |  Branch (15084:26): [True: 8.73k, False: 15.7k]
  ------------------
15085|  8.73k|        {
15086|  8.73k|            number_type = token_type::value_float;
15087|  8.73k|            dot_index = i;
15088|  8.73k|            ++i;
15089|  8.73k|            if (i >= avail || !(data[i] >= '0' && data[i] <= '9'))
  ------------------
  |  Branch (15089:17): [True: 210, False: 8.52k]
  |  Branch (15089:33): [True: 8.37k, False: 150]
  |  Branch (15089:51): [True: 8.31k, False: 54]
  ------------------
15090|    414|            {
15091|    414|                return token_type::uninitialized;
15092|    414|            }
15093|  8.31k|            const std::size_t fraction_begin = i;
15094|  8.31k|            i = accumulate_digits(data, i, avail, w);
15095|  8.31k|            fraction_digits = i - fraction_begin;
15096|  8.31k|            digit_count += fraction_digits;
15097|  8.31k|        }
15098|       |        // the mantissa ends here, whether or not an exponent part follows
15099|  40.3k|        const std::size_t mantissa_end = i;
15100|  40.3k|        std::int64_t exponent = 0;
15101|  40.3k|        if (i < avail && (data[i] == 'e' || data[i] == 'E'))
  ------------------
  |  Branch (15101:13): [True: 18.9k, False: 21.3k]
  |  Branch (15101:27): [True: 6.84k, False: 12.0k]
  |  Branch (15101:45): [True: 8.04k, False: 4.03k]
  ------------------
15102|  14.8k|        {
15103|  14.8k|            number_type = token_type::value_float;
15104|  14.8k|            ++i;
15105|  14.8k|            bool negative_exponent = false;
15106|  14.8k|            if (i < avail && (data[i] == '+' || data[i] == '-'))
  ------------------
  |  Branch (15106:17): [True: 14.2k, False: 594]
  |  Branch (15106:31): [True: 1.73k, False: 12.5k]
  |  Branch (15106:49): [True: 4.85k, False: 7.70k]
  ------------------
15107|  6.58k|            {
15108|  6.58k|                negative_exponent = data[i] == '-';
15109|  6.58k|                ++i;
15110|  6.58k|            }
15111|  14.8k|            if (i >= avail || !(data[i] >= '0' && data[i] <= '9'))
  ------------------
  |  Branch (15111:17): [True: 636, False: 14.2k]
  |  Branch (15111:33): [True: 13.8k, False: 378]
  |  Branch (15111:51): [True: 13.6k, False: 174]
  ------------------
15112|  1.18k|            {
15113|  1.18k|                return token_type::uninitialized;
15114|  1.18k|            }
15115|       |            // saturated far beyond every range, see parse_float_exponent()
15116|  13.6k|            constexpr std::int64_t saturation = 100000000000000000; // 10^17
15117|  78.2k|            while (i < avail && data[i] >= '0' && data[i] <= '9')
  ------------------
  |  Branch (15117:20): [True: 66.7k, False: 11.4k]
  |  Branch (15117:33): [True: 65.3k, False: 1.44k]
  |  Branch (15117:51): [True: 64.5k, False: 786]
  ------------------
15118|  64.5k|            {
15119|  64.5k|                if (exponent < saturation)
  ------------------
  |  Branch (15119:21): [True: 62.0k, False: 2.48k]
  ------------------
15120|  62.0k|                {
15121|  62.0k|                    exponent = (exponent * 10) + (data[i] - '0');
15122|  62.0k|                }
15123|  64.5k|                ++i;
15124|  64.5k|            }
15125|  13.6k|            exponent = negative_exponent ? -exponent : exponent;
  ------------------
  |  Branch (15125:24): [True: 4.80k, False: 8.89k]
  ------------------
15126|  13.6k|        }
15127|  39.1k|        const std::size_t len = i;
15128|  39.1k|        if (number_may_continue(len == avail, std::integral_constant<bool, bulk_window> {}))
  ------------------
  |  Branch (15128:13): [True: 0, False: 39.1k]
  ------------------
15129|      0|        {
15130|      0|            return token_type::uninitialized;
15131|      0|        }
15132|       |
15133|       |        // reset() records where this token starts (for diagnostics), so it has
15134|       |        // to run before the input position advances below
15135|  39.1k|        reset();
15136|       |
15137|       |        // An integer token needs no token_buffer: the SAX callbacks for
15138|       |        // number_integer/number_unsigned take only the value, and the overflow
15139|       |        // diagnostic rebuilds the text from the input. Convert straight from the
15140|       |        // input buffer and leave token_buffer empty. (JSON_DIAGNOSTIC_POSITIONS
15141|       |        // derives a number's start position from get_string().size(), so there
15142|       |        // the token still has to be materialized.)
15143|  39.1k|#if !JSON_DIAGNOSTIC_POSITIONS
15144|  39.1k|        if (number_type != token_type::value_float)
  ------------------
  |  Branch (15144:13): [True: 18.6k, False: 20.4k]
  ------------------
15145|  18.6k|        {
15146|       |            // up to 18 digits always fit into std::uint64_t and std::int64_t
15147|  18.6k|            const token_type integer_result = (digit_count <= 18)
  ------------------
  |  Branch (15147:47): [True: 10.1k, False: 8.49k]
  ------------------
15148|  18.6k|                                              ? store_integer(number_type, w)
15149|  18.6k|                                              : convert_integer(number_type, data, data + len);
15150|  18.6k|            if (JSON_HEDLEY_LIKELY(integer_result != token_type::uninitialized))
  ------------------
  |  | 1696|  18.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 15.1k, False: 3.49k]
  |  |  ------------------
  ------------------
15151|  15.1k|            {
15152|  15.1k|                bulk_consume(data + 1, len - 1);
15153|  15.1k|                read_number_terminator(std::integral_constant<bool, bulk_window> {});
15154|  15.1k|                return integer_result;
15155|  15.1k|            }
15156|       |            // The value does not fit an integer, so this token converts as a
15157|       |            // float. Recording that here keeps convert_number() below from
15158|       |            // repeating the integer attempt that just failed.
15159|  3.49k|            number_type = token_type::value_float;
15160|  3.49k|        }
15161|  23.9k|#endif
15162|       |
15163|  23.9k|        decimal_point_position = dot_index;
15164|       |
15165|  23.9k|        bulk_consume(data + 1, len - 1);
15166|  23.9k|        read_number_terminator(std::integral_constant<bool, bulk_window> {});
15167|       |
15168|       |        // a float whose digits all fit into w converts from the accumulated
15169|       |        // value; longer ones (and other float formats) take the general path
15170|  23.9k|        if (number_type == token_type::value_float && digit_count <= 19)
  ------------------
  |  Branch (15170:13): [True: 23.9k, False: 0]
  |  Branch (15170:55): [True: 12.8k, False: 11.0k]
  ------------------
15171|  12.8k|        {
15172|  12.8k|            float_significand s;
15173|  12.8k|            s.w = w;
15174|  12.8k|            s.exponent = exponent - static_cast<std::int64_t>(fraction_digits);
15175|  12.8k|            s.negative = data[0] == '-';
15176|  12.8k|            if (convert_accumulated_float(s, std::integral_constant<bool, has_native_float_format<number_float_t>::value> {}))
  ------------------
  |  Branch (15176:17): [True: 12.8k, False: 0]
  ------------------
15177|  12.8k|            {
15178|       |                // the token text is only copied into token_buffer when
15179|       |                // get_string() asks for it; the library's own SAX handlers
15180|       |                // ignore it. A window into a stream may be refilled by the
15181|       |                // next read, so there the text is copied right away.
15182|  12.8k|                if (bulk_window)
  ------------------
  |  Branch (15182:21): [Folded, False: 12.8k]
  ------------------
15183|      0|                {
15184|      0|                    token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), len);
15185|      0|                }
15186|  12.8k|                else
15187|  12.8k|                {
15188|  12.8k|                    pending_number_text = data;
15189|  12.8k|                    pending_number_length = len;
15190|  12.8k|                }
15191|  12.8k|                return token_type::value_float;
15192|  12.8k|            }
15193|  12.8k|        }
15194|       |
15195|       |        // materialize the token exactly as scan_number() would. reset() already
15196|       |        // cleared token_buffer, so append() fills it (assign() is avoided
15197|       |        // because custom string_t types need not provide it)
15198|  11.0k|        token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), len);
15199|  11.0k|        return convert_number(number_type, mantissa_end);
15200|  23.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17accumulate_digitsEPKcmmRm:
11703|  44.6k|{
11704|  91.5k|    while (avail - i >= 8)
  ------------------
  |  Branch (11704:12): [True: 57.6k, False: 33.8k]
  ------------------
11705|  57.6k|    {
11706|  57.6k|        const std::uint64_t v = read_eight_bytes(data + i);
11707|  57.6k|        if (!is_eight_digits(v))
  ------------------
  |  Branch (11707:13): [True: 10.7k, False: 46.8k]
  ------------------
11708|  10.7k|        {
11709|  10.7k|            break;
11710|  10.7k|        }
11711|  46.8k|        w = (w * 100000000u) + parse_eight_digits(v);
11712|  46.8k|        i += 8;
11713|  46.8k|    }
11714|   161k|    while (i < avail && data[i] >= '0' && data[i] <= '9')
  ------------------
  |  Branch (11714:12): [True: 140k, False: 20.8k]
  |  Branch (11714:25): [True: 130k, False: 9.96k]
  |  Branch (11714:43): [True: 117k, False: 13.8k]
  ------------------
11715|   117k|    {
11716|   117k|        w = (w * 10u) + static_cast<std::uint64_t>(data[i] - '0');
11717|   117k|        ++i;
11718|   117k|    }
11719|  44.6k|    return i;
11720|  44.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail15is_eight_digitsEm:
11690|  57.6k|{
11691|  57.6k|    return ((v & 0xF0F0F0F0F0F0F0F0u) | (((v + 0x0606060606060606u) & 0xF0F0F0F0F0F0F0F0u) >> 4u)) == 0x3333333333333333u;
11692|  57.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail18parse_eight_digitsEm:
11681|  67.3k|{
11682|  67.3k|    v = ((v & 0x0F0F0F0F0F0F0F0Fu) * 2561u) >> 8u;
11683|  67.3k|    v = ((v & 0x00FF00FF00FF00FFu) * 6553601u) >> 16u;
11684|  67.3k|    return static_cast<std::uint32_t>(((v & 0x0000FFFF0000FFFFu) * 42949672960001u) >> 32u);
11685|  67.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE19number_may_continueEbNS4_17integral_constantIbLb0EEE:
15211|  39.1k|    {
15212|  39.1k|        return false;
15213|  39.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE13store_integerENS1_10lexer_baseISG_E10token_typeEm:
15253|  10.1k|    {
15254|  10.1k|        if (number_type == token_type::value_unsigned)
  ------------------
  |  Branch (15254:13): [True: 8.22k, False: 1.92k]
  ------------------
15255|  8.22k|        {
15256|  8.22k|            value_unsigned = static_cast<number_unsigned_t>(w);
15257|       |            // reject values that do not round-trip into a narrower type
15258|  8.22k|            return (static_cast<std::uint64_t>(value_unsigned) == w) ? token_type::value_unsigned : token_type::uninitialized;
  ------------------
  |  Branch (15258:20): [True: 8.22k, False: 0]
  ------------------
15259|  8.22k|        }
15260|  1.92k|        const std::int64_t x = -static_cast<std::int64_t>(w);
15261|  1.92k|        value_integer = static_cast<number_integer_t>(x);
15262|  1.92k|        return (static_cast<std::int64_t>(value_integer) == x) ? token_type::value_integer : token_type::uninitialized;
  ------------------
  |  Branch (15262:16): [True: 1.92k, False: 0]
  ------------------
15263|  10.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE15convert_integerENS1_10lexer_baseISG_E10token_typeESJ_SJ_:
14930|  17.6k|    {
14931|  17.6k|        if (number_type == token_type::value_unsigned)
  ------------------
  |  Branch (14931:13): [True: 15.8k, False: 1.81k]
  ------------------
14932|  15.8k|        {
14933|  15.8k|            if (parse_integer_unsigned(first, last, value_unsigned))
  ------------------
  |  Branch (14933:17): [True: 13.3k, False: 2.51k]
  ------------------
14934|  13.3k|            {
14935|  13.3k|                return token_type::value_unsigned;
14936|  13.3k|            }
14937|  15.8k|        }
14938|  1.81k|        else // value_integer (the callers handle value_float themselves)
14939|  1.81k|        {
14940|  1.81k|            if (parse_integer_signed(first, last, value_integer))
  ------------------
  |  Branch (14940:17): [True: 828, False: 984]
  ------------------
14941|    828|            {
14942|    828|                return token_type::value_integer;
14943|    828|            }
14944|  1.81k|        }
14945|       |
14946|  3.49k|        return token_type::uninitialized;
14947|  17.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22parse_integer_unsignedImEEbPKcS4_RT_:
11493|  15.8k|{
11494|       |    // accumulate in the widest unsigned type used by the previous strtoull
11495|       |    // path so the overflow behavior is unchanged for custom number types
11496|  15.8k|    std::uint64_t x = 0;
11497|  15.8k|    constexpr std::uint64_t cutoff = (std::numeric_limits<std::uint64_t>::max)() / 10u;
11498|  15.8k|    constexpr std::uint64_t cutlim = (std::numeric_limits<std::uint64_t>::max)() % 10u;
11499|   154k|    for (const char* p = first; p != last; ++p)
  ------------------
  |  Branch (11499:33): [True: 141k, False: 13.3k]
  ------------------
11500|   141k|    {
11501|   141k|        const auto digit = static_cast<std::uint64_t>(static_cast<unsigned char>(*p) - static_cast<unsigned char>('0'));
11502|   141k|        if (JSON_HEDLEY_UNLIKELY(x > cutoff || (x == cutoff && digit > cutlim)))
  ------------------
  |  | 1697|   418k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.51k, False: 138k]
  |  |  |  Branch (1697:94): [True: 186, False: 138k]
  |  |  |  Branch (1697:94): [True: 36, False: 150]
  |  |  |  Branch (1697:94): [True: 2.47k, False: 138k]
  |  |  ------------------
  ------------------
11503|  2.51k|        {
11504|  2.51k|            return false;
11505|  2.51k|        }
11506|   138k|        x = (x * 10u) + digit;
11507|   138k|    }
11508|  13.3k|    value = static_cast<NumberUnsignedType>(x);
11509|       |    // reject values that do not round-trip into a narrower NumberUnsignedType,
11510|       |    // and values that wrap around to negative numbers if it is a signed type
11511|       |    // (number_unsigned_t may be the same type as number_integer_t, #2573)
11512|  13.3k|    return static_cast<std::uint64_t>(value) == x && !is_negative_integer(value, std::is_signed<NumberUnsignedType>());
  ------------------
  |  Branch (11512:12): [True: 13.3k, False: 0]
  |  Branch (11512:54): [True: 13.3k, False: 0]
  ------------------
11513|  15.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail19is_negative_integerImEEbT_NSt3__117integral_constantIbLb0EEE:
11472|  13.3k|{
11473|  13.3k|    return false;
11474|  13.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail20parse_integer_signedIlEEbPKcS4_RT_:
11525|  1.81k|{
11526|       |    // the state machine only reaches the signed path via a leading '-'
11527|  1.81k|    JSON_ASSERT(first != last && *first == '-');
  ------------------
  |  | 2653|  1.81k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (11527:5): [True: 1.81k, False: 0]
  |  Branch (11527:5): [True: 1.81k, False: 0]
  |  Branch (11527:5): [True: 1.81k, False: 0]
  ------------------
11528|  1.81k|    std::uint64_t magnitude = 0;
11529|       |    // |INT64_MIN| == INT64_MAX + 1; this is the largest admissible magnitude
11530|  1.81k|    constexpr std::uint64_t limit = static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()) + 1u;
11531|  35.6k|    for (const char* p = first + 1; p != last; ++p)
  ------------------
  |  Branch (11531:37): [True: 34.8k, False: 828]
  ------------------
11532|  34.8k|    {
11533|  34.8k|        const auto digit = static_cast<std::uint64_t>(static_cast<unsigned char>(*p) - static_cast<unsigned char>('0'));
11534|  34.8k|        if (JSON_HEDLEY_UNLIKELY(magnitude > (limit - digit) / 10u))
  ------------------
  |  | 1697|  34.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 984, False: 33.8k]
  |  |  ------------------
  ------------------
11535|    984|        {
11536|    984|            return false;
11537|    984|        }
11538|  33.8k|        magnitude = (magnitude * 10u) + digit;
11539|  33.8k|    }
11540|    828|    const std::int64_t x = (magnitude == limit)
  ------------------
  |  Branch (11540:28): [True: 90, False: 738]
  ------------------
11541|    828|                           ? (std::numeric_limits<std::int64_t>::min)()
11542|    828|                           : -static_cast<std::int64_t>(magnitude);
11543|    828|    value = static_cast<NumberIntegerType>(x);
11544|       |    // reject values that do not round-trip into a narrower NumberIntegerType
11545|    828|    return static_cast<std::int64_t>(value) == x;
11546|  1.81k|}
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE22read_number_terminatorENS4_17integral_constantIbLb0EEE:
15225|  39.1k|    void read_number_terminator(std::false_type /*window*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE25convert_accumulated_floatERKNS1_17float_significandENS4_17integral_constantIbLb1EEE:
15230|  12.8k|    {
15231|       |        // accept() only needs to know that the value is finite (see the parser):
15232|       |        // w < 10^19, so a value below 10^max_exponent10 cannot overflow, and a
15233|       |        // value that underflows is a finite number as well. Only a token that
15234|       |        // may overflow has to be converted to find out.
15235|  12.8k|        if (JSON_HEDLEY_UNLIKELY(discard_values() && s.exponent + 19 <= std::numeric_limits<number_float_t>::max_exponent10))
  ------------------
  |  | 1697|  12.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.8k]
  |  |  |  Branch (1697:94): [True: 0, False: 12.8k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
15236|      0|        {
15237|      0|            value_float = 0;
15238|      0|            return true;
15239|      0|        }
15240|  12.8k|        value_float = decimal_to_float<number_float_t>(s);
15241|  12.8k|        return true;
15242|  12.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE14discard_valuesEv:
16175|  33.1k|    {
16176|  33.1k|        return DiscardValues;
16177|  33.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16decimal_to_floatIdEET_RKNS1_17float_significandE:
12245|  16.8k|{
12246|  16.8k|    using result_type = native_float_t<FloatType>;
12247|  16.8k|    using format = ieee_binary_format<std::numeric_limits<FloatType>::digits>;
12248|  16.8k|    JSON_ASSERT(!s.truncated);
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (12248:5): [True: 16.8k, False: 0]
  ------------------
12249|       |
12250|  16.8k|#if !defined(FLT_EVAL_METHOD) || FLT_EVAL_METHOD == 0
12251|  16.8k|    if (s.exponent >= -format::max_exponent_fast_path() && s.exponent <= format::max_exponent_fast_path()
  ------------------
  |  Branch (12251:9): [True: 13.2k, False: 3.64k]
  |  Branch (12251:60): [True: 8.33k, False: 4.90k]
  ------------------
12252|  8.33k|            && s.w <= format::max_mantissa_fast_path())
  ------------------
  |  Branch (12252:16): [True: 4.77k, False: 3.56k]
  ------------------
12253|  4.77k|    {
12254|  4.77k|        auto value = static_cast<result_type>(s.w);
12255|  4.77k|        if (s.exponent < 0)
  ------------------
  |  Branch (12255:13): [True: 1.87k, False: 2.89k]
  ------------------
12256|  1.87k|        {
12257|  1.87k|            value /= exact_power_of_ten(-s.exponent, result_type{});
12258|  1.87k|        }
12259|  2.89k|        else
12260|  2.89k|        {
12261|  2.89k|            value *= exact_power_of_ten(s.exponent, result_type{});
12262|  2.89k|        }
12263|  4.77k|        const FloatType result = s.negative ? -value : value;
  ------------------
  |  Branch (12263:34): [True: 492, False: 4.27k]
  ------------------
12264|  4.77k|        return result;
12265|  4.77k|    }
12266|  12.1k|#endif
12267|       |
12268|  12.1k|    result_type value{};
12269|  12.1k|    float_from_bits(eisel_lemire<format>(s.exponent, s.w) | (s.negative ? (std::uint64_t{1} << format::sign_bit()) : 0u), value);
  ------------------
  |  Branch (12269:62): [True: 708, False: 11.4k]
  ------------------
12270|  12.1k|    const FloatType result = value;
12271|  12.1k|    return result;
12272|  16.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE22max_exponent_fast_pathEv:
11645|  30.1k|    {
11646|  30.1k|        return 22;
11647|  30.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE22max_mantissa_fast_pathEv:
11649|  8.33k|    {
11650|  8.33k|        return std::uint64_t{2} << 52u;
11651|  8.33k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18exact_power_of_tenEld:
12206|  4.77k|{
12207|  4.77k|    static const std::array<double, 23> powers =
12208|  4.77k|    {
12209|  4.77k|        {
12210|  4.77k|            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
12211|  4.77k|            1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22
12212|  4.77k|        }
12213|  4.77k|    };
12214|  4.77k|    return powers[static_cast<std::size_t>(n)];
12215|  4.77k|}
_ZN8nlohmann16json_abi_v3_12_06detail15float_from_bitsEmRd:
12192|  19.2k|{
12193|  19.2k|    static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
12194|  19.2k|    value = bit_cast<double>(bits);
12195|  19.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail8bit_castIdmEET_RKT0_:
 9129|  19.2k|{
 9130|  19.2k|    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|  19.2k|    To to {};
 9135|  19.2k|    std::memcpy(&to, &from, sizeof(To));
 9136|  19.2k|    return to;
 9137|  19.2k|#endif
 9138|  19.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail12eisel_lemireINS1_18ieee_binary_formatILi53EEEEEmlm:
11896|  26.3k|{
11897|  26.3k|    constexpr int mantissa_bits = Format::mantissa_bits();
11898|  26.3k|    constexpr std::uint64_t infinity = static_cast<std::uint64_t>(Format::infinite_power()) << mantissa_bits;
11899|  26.3k|    if (w == 0 || q < Format::smallest_power_of_ten())
  ------------------
  |  Branch (11899:9): [True: 660, False: 25.6k]
  |  Branch (11899:19): [True: 2.07k, False: 23.5k]
  ------------------
11900|  2.73k|    {
11901|  2.73k|        return 0;
11902|  2.73k|    }
11903|  23.5k|    if (q > Format::largest_power_of_ten())
  ------------------
  |  Branch (11903:9): [True: 2.06k, False: 21.5k]
  ------------------
11904|  2.06k|    {
11905|  2.06k|        return infinity;
11906|  2.06k|    }
11907|       |
11908|  21.5k|    const int lz = count_leading_zeros(w);
11909|  21.5k|    w <<= static_cast<unsigned>(lz);
11910|  21.5k|    const auto index = static_cast<std::size_t>(2 * (q - pow5_128_smallest_power));
11911|  21.5k|    uint128_parts product = full_multiplication(w, pow5_128()[index]);
11912|  21.5k|    constexpr std::uint64_t precision_mask = 0xFFFFFFFFFFFFFFFFu >> (mantissa_bits + 3);
11913|  21.5k|    if ((product.high & precision_mask) == precision_mask)
  ------------------
  |  Branch (11913:9): [True: 3.41k, False: 18.1k]
  ------------------
11914|  3.41k|    {
11915|       |        // the lower bits may carry into the result: use the next 64 bits of 5^q
11916|  3.41k|        const uint128_parts second = full_multiplication(w, pow5_128()[index + 1]);
11917|  3.41k|        product.low += second.high;
11918|  3.41k|        if (second.high > product.low)
  ------------------
  |  Branch (11918:13): [True: 1.53k, False: 1.87k]
  ------------------
11919|  1.53k|        {
11920|  1.53k|            ++product.high;
11921|  1.53k|        }
11922|  3.41k|    }
11923|       |
11924|  21.5k|    const auto upperbit = static_cast<int>(product.high >> 63u);
11925|  21.5k|    const int shift = upperbit + 64 - mantissa_bits - 3;
11926|  21.5k|    std::uint64_t mantissa = product.high >> static_cast<unsigned>(shift);
11927|       |    // floor(log2(10^q)) + 63 + bias, with log2(10) ~ 217706 / 2^16
11928|  21.5k|    std::int64_t power2 = (((152170 + 65536) * q) >> 16) + 63 + upperbit - lz - Format::minimum_exponent();
11929|       |
11930|  21.5k|    if (power2 <= 0) // subnormal
  ------------------
  |  Branch (11930:9): [True: 2.72k, False: 18.7k]
  ------------------
11931|  2.72k|    {
11932|  2.72k|        if (-power2 + 1 >= 64)
  ------------------
  |  Branch (11932:13): [True: 336, False: 2.38k]
  ------------------
11933|    336|        {
11934|    336|            return 0;
11935|    336|        }
11936|  2.38k|        mantissa >>= static_cast<unsigned>(-power2 + 1);
11937|       |        // no tie is possible here: that needs a small |q|
11938|  2.38k|        mantissa += (mantissa & 1u);
11939|  2.38k|        mantissa >>= 1u;
11940|       |        // rounding up may produce the smallest normal number
11941|  2.38k|        power2 = (mantissa < (std::uint64_t{1} << mantissa_bits)) ? 0 : 1;
  ------------------
  |  Branch (11941:18): [True: 2.38k, False: 0]
  ------------------
11942|  2.38k|        return (mantissa & ((std::uint64_t{1} << mantissa_bits) - 1)) | (static_cast<std::uint64_t>(power2) << mantissa_bits);
11943|  2.72k|    }
11944|       |
11945|       |    // a value exactly between two floats rounds to even; this can only
11946|       |    // happen for small |q|, where 5^q is exact
11947|  18.7k|    if (product.low <= 1 && q >= Format::min_exponent_round_to_even() && q <= Format::max_exponent_round_to_even()
  ------------------
  |  Branch (11947:9): [True: 7.03k, False: 11.7k]
  |  Branch (11947:29): [True: 5.97k, False: 1.06k]
  |  Branch (11947:74): [True: 4.81k, False: 1.15k]
  ------------------
11948|  4.81k|            && (mantissa & 3u) == 1 && (mantissa << static_cast<unsigned>(shift)) == product.high)
  ------------------
  |  Branch (11948:16): [True: 1.93k, False: 2.87k]
  |  Branch (11948:40): [True: 1.11k, False: 828]
  ------------------
11949|  1.11k|    {
11950|  1.11k|        mantissa &= ~std::uint64_t{1};
11951|  1.11k|    }
11952|  18.7k|    mantissa += (mantissa & 1u);
11953|  18.7k|    mantissa >>= 1u;
11954|  18.7k|    if (mantissa >= (std::uint64_t{2} << mantissa_bits))
  ------------------
  |  Branch (11954:9): [True: 486, False: 18.3k]
  ------------------
11955|    486|    {
11956|    486|        mantissa = std::uint64_t{1} << mantissa_bits;
11957|    486|        ++power2;
11958|    486|    }
11959|  18.7k|    mantissa &= ~(std::uint64_t{1} << mantissa_bits);
11960|  18.7k|    if (power2 >= Format::infinite_power())
  ------------------
  |  Branch (11960:9): [True: 174, False: 18.6k]
  ------------------
11961|    174|    {
11962|    174|        return infinity;
11963|    174|    }
11964|  18.6k|    return mantissa | (static_cast<std::uint64_t>(power2) << mantissa_bits);
11965|  18.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE21smallest_power_of_tenEv:
11629|  25.6k|    {
11630|  25.6k|        return -342;
11631|  25.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE20largest_power_of_tenEv:
11633|  23.5k|    {
11634|  23.5k|        return 308;
11635|  23.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE16minimum_exponentEv:
11621|  23.8k|    {
11622|  23.8k|        return -1023;
11623|  23.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE26min_exponent_round_to_evenEv:
11637|  7.03k|    {
11638|  7.03k|        return -4;
11639|  7.03k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE26max_exponent_round_to_evenEv:
11641|  5.97k|    {
11642|  5.97k|        return 23;
11643|  5.97k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE14infinite_powerEv:
11625|  18.7k|    {
11626|  18.7k|        return 0x7FF;
11627|  18.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE8sign_bitEv:
11617|  19.2k|    {
11618|  19.2k|        return 63;
11619|  19.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE14convert_numberENS1_10lexer_baseISG_E10token_typeEm:
14965|  20.2k|    {
14966|       |        // accept() only needs to know whether the input is valid, so it sets
14967|       |        // discard_values (see json.hpp), and an integer token whose
14968|       |        // digit count shows that it fits is reported without calling
14969|       |        // convert_integer(). A number with up to 18 digits always fits into
14970|       |        // both std::uint64_t and std::int64_t (18 nines is about 1e18, below
14971|       |        // INT64_MAX, which is about 9.2e18). Longer tokens take the exact path
14972|       |        // below, including the fallback to floating point when the value does
14973|       |        // not fit.
14974|       |        //
14975|       |        // With a narrower number_unsigned_t/number_integer_t (e.g.
14976|       |        // std::uint32_t), the exact path would reclassify some of these tokens
14977|       |        // as (finite) floats, while this check reports integers. That does not
14978|       |        // change the result of accept(): it always parses through
14979|       |        // json_sax_acceptor, whose number callbacks discard their argument and
14980|       |        // return true, and the parser rejects neither integers nor finite
14981|       |        // floats. value_unsigned/value_integer are left unset here, so a caller
14982|       |        // that reads the converted value must not set discard_values.
14983|       |        //
14984|       |        // On contiguous input, scan_number_bulk_contiguous() converts integer
14985|       |        // tokens itself and does not pass them to this function, unless
14986|       |        // JSON_DIAGNOSTIC_POSITIONS is enabled. This check is therefore only
14987|       |        // reached for input without bulk access (e.g. streams), with
14988|       |        // JSON_DIAGNOSTIC_POSITIONS, or when scan_number_bulk_contiguous()
14989|       |        // falls back to scan_number().
14990|  20.2k|        if (discard_values())
  ------------------
  |  Branch (14990:13): [True: 0, False: 20.2k]
  ------------------
14991|      0|        {
14992|      0|            constexpr std::size_t safe_digit_count = 18;
14993|      0|            if (number_type == token_type::value_unsigned && token_buffer.size() <= safe_digit_count)
  ------------------
  |  Branch (14993:17): [True: 0, False: 0]
  |  Branch (14993:62): [True: 0, False: 0]
  ------------------
14994|      0|            {
14995|      0|                return token_type::value_unsigned;
14996|      0|            }
14997|      0|            if (number_type == token_type::value_integer && token_buffer.size() - 1 <= safe_digit_count)
  ------------------
  |  Branch (14997:17): [True: 0, False: 0]
  |  Branch (14997:61): [True: 0, False: 0]
  ------------------
14998|      0|            {
14999|      0|                return token_type::value_integer;
15000|      0|            }
15001|      0|        }
15002|       |
15003|  20.2k|        const char* const num_begin = token_buffer.data();
15004|  20.2k|        const char* const num_end = num_begin + token_buffer.size();
15005|       |
15006|  20.2k|        if (number_type != token_type::value_float)
  ------------------
  |  Branch (15006:13): [True: 9.18k, False: 11.0k]
  ------------------
15007|  9.18k|        {
15008|  9.18k|            const token_type integer_result = convert_integer(number_type, num_begin, num_end);
15009|  9.18k|            if (integer_result != token_type::uninitialized)
  ------------------
  |  Branch (15009:17): [True: 9.18k, False: 0]
  ------------------
15010|  9.18k|            {
15011|  9.18k|                return integer_result;
15012|  9.18k|            }
15013|  9.18k|        }
15014|       |
15015|       |        // this code is reached if we parse a floating-point number or if an
15016|       |        // integer conversion above overflowed. float and double (and long
15017|       |        // double where it is binary64) are converted by the library itself,
15018|       |        // correctly rounded and independent of the locale; other long double
15019|       |        // formats use std::from_chars when available, otherwise the
15020|       |        // locale-aware strtold.
15021|  11.0k|        if (convert_float_fast(num_begin, num_end, decimal_point_position, mantissa_end, value_float))
  ------------------
  |  Branch (15021:13): [True: 11.0k, False: 0]
  ------------------
15022|  11.0k|        {
15023|  11.0k|            return token_type::value_float;
15024|  11.0k|        }
15025|       |
15026|      0|        convert_float_locale_aware(token_buffer, decimal_point_position, value_float);
15027|      0|        return token_type::value_float;
15028|  11.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18convert_float_fastIdEEbPKcS4_mmRT_:
12387|  11.0k|{
12388|  11.0k|    return convert_float_fast(first, last, decimal_point_position, mantissa_end, value,
12389|  11.0k|                              std::integral_constant<bool, has_native_float_format<FloatType>::value> {});
12390|  11.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail18convert_float_fastIdEEbPKcS4_mmRT_NSt3__117integral_constantIbLb1EEE:
12354|  11.0k|{
12355|  11.0k|    value = parse_float_native<FloatType>(first, last, decimal_point_position, mantissa_end);
12356|  11.0k|    return true;
12357|  11.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail18parse_float_nativeIdEET_PKcS5_mm:
12298|  11.0k|{
12299|  11.0k|    using result_type = native_float_t<FloatType>;
12300|  11.0k|    using format = ieee_binary_format<std::numeric_limits<FloatType>::digits>;
12301|  11.0k|    static_assert(std::numeric_limits<result_type>::digits == std::numeric_limits<FloatType>::digits, "unexpected float format");
12302|       |
12303|  11.0k|    const float_significand s = parse_float_significand(first, last, decimal_point_position, mantissa_end);
12304|  11.0k|    if (JSON_HEDLEY_LIKELY(!s.truncated))
  ------------------
  |  | 1696|  11.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.98k, False: 7.10k]
  |  |  ------------------
  ------------------
12305|  3.98k|    {
12306|  3.98k|        return decimal_to_float<FloatType>(s);
12307|  3.98k|    }
12308|       |
12309|  7.10k|    std::uint64_t bits = eisel_lemire<format>(s.exponent, s.w);
12310|  7.10k|    if (JSON_HEDLEY_UNLIKELY(bits != eisel_lemire<format>(s.exponent, s.w + 1)))
  ------------------
  |  | 1697|  7.10k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.38k, False: 4.72k]
  |  |  ------------------
  ------------------
12311|  2.38k|    {
12312|  2.38k|        bits = digit_comparison<format>(first, last, bits);
12313|  2.38k|    }
12314|  7.10k|    result_type value{};
12315|  7.10k|    float_from_bits(bits | (s.negative ? (std::uint64_t{1} << format::sign_bit()) : 0u), value);
  ------------------
  |  Branch (12315:29): [True: 510, False: 6.59k]
  ------------------
12316|  7.10k|    const FloatType result = value;
12317|  7.10k|    return result;
12318|  11.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail23parse_float_significandEPKcS3_mm:
11829|  11.0k|{
11830|  11.0k|    float_significand s;
11831|  11.0k|    const char* p = first;
11832|  11.0k|    s.negative = *p == '-';
11833|  11.0k|    p += s.negative ? 1 : 0;
  ------------------
  |  Branch (11833:10): [True: 588, False: 10.5k]
  ------------------
11834|  11.0k|    const bool has_dot = decimal_point_position != std::string::npos;
11835|  11.0k|    const char* const mantissa_last = first + mantissa_end;
11836|  11.0k|    const char* const integer_last = has_dot ? first + decimal_point_position : mantissa_last;
  ------------------
  |  Branch (11836:38): [True: 5.28k, False: 5.80k]
  ------------------
11837|       |
11838|  11.0k|    std::uint64_t w = 0;
11839|  11.0k|    int remaining = 19; // digits that still fit into w
11840|  11.0k|    if (*p != '0') // the integer part is "0" or [1-9][0-9]*
  ------------------
  |  Branch (11840:9): [True: 10.0k, False: 1.08k]
  ------------------
11841|  10.0k|    {
11842|  10.0k|        p = accumulate_significant_digits(p, integer_last, remaining, w);
11843|  10.0k|        s.exponent = integer_last - p;
11844|  10.0k|        s.truncated = has_nonzero_digit(p, integer_last);
11845|  10.0k|    }
11846|       |
11847|  11.0k|    if (has_dot)
  ------------------
  |  Branch (11847:9): [True: 5.28k, False: 5.80k]
  ------------------
11848|  5.28k|    {
11849|  5.28k|        p = integer_last + 1;
11850|  5.28k|        if (w == 0)
  ------------------
  |  Branch (11850:13): [True: 1.08k, False: 4.20k]
  ------------------
11851|  1.08k|        {
11852|       |            // zeros after the decimal point of "0." are not significant
11853|  1.08k|            const char* const zeros = p;
11854|  13.1k|            while (p != mantissa_last && *p == '0')
  ------------------
  |  Branch (11854:20): [True: 13.0k, False: 114]
  |  Branch (11854:42): [True: 12.0k, False: 966]
  ------------------
11855|  12.0k|            {
11856|  12.0k|                ++p;
11857|  12.0k|            }
11858|  1.08k|            s.exponent -= p - zeros;
11859|  1.08k|        }
11860|  5.28k|        const char* const digits = p;
11861|  5.28k|        p = accumulate_significant_digits(p, mantissa_last, remaining, w);
11862|  5.28k|        s.exponent -= p - digits;
11863|  5.28k|        s.truncated = s.truncated || has_nonzero_digit(p, mantissa_last);
  ------------------
  |  Branch (11863:23): [True: 162, False: 5.11k]
  |  Branch (11863:38): [True: 3.09k, False: 2.02k]
  ------------------
11864|  5.28k|    }
11865|       |
11866|  11.0k|    if (mantissa_last != last)
  ------------------
  |  Branch (11866:9): [True: 3.87k, False: 7.21k]
  ------------------
11867|  3.87k|    {
11868|  3.87k|        s.exponent += parse_float_exponent(mantissa_last + 1, last);
11869|  3.87k|    }
11870|  11.0k|    s.w = w;
11871|  11.0k|    return s;
11872|  11.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail29accumulate_significant_digitsEPKcS3_RiRm:
11770|  15.2k|{
11771|  35.7k|    while (remaining >= 8 && last - p >= 8)
  ------------------
  |  Branch (11771:12): [True: 22.9k, False: 12.7k]
  |  Branch (11771:30): [True: 20.4k, False: 2.51k]
  ------------------
11772|  20.4k|    {
11773|  20.4k|        w = (w * 100000000u) + parse_eight_digits(read_eight_bytes(p));
11774|  20.4k|        p += 8;
11775|  20.4k|        remaining -= 8;
11776|  20.4k|    }
11777|  55.9k|    for (; remaining > 0 && p != last; ++p, --remaining)
  ------------------
  |  Branch (11777:12): [True: 45.0k, False: 10.8k]
  |  Branch (11777:29): [True: 40.6k, False: 4.39k]
  ------------------
11778|  40.6k|    {
11779|  40.6k|        w = (w * 10u) + static_cast<std::uint64_t>(*p - '0');
11780|  40.6k|    }
11781|  15.2k|    return p;
11782|  15.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail17has_nonzero_digitEPKcS3_:
11749|  15.1k|{
11750|  38.9k|    for (; first != last; ++first)
  ------------------
  |  Branch (11750:12): [True: 30.8k, False: 8.02k]
  ------------------
11751|  30.8k|    {
11752|  30.8k|        if (*first != '0')
  ------------------
  |  Branch (11752:13): [True: 7.10k, False: 23.7k]
  ------------------
11753|  7.10k|        {
11754|  7.10k|            return true;
11755|  7.10k|        }
11756|  30.8k|    }
11757|  8.02k|    return false;
11758|  15.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail20parse_float_exponentEPKcS3_:
11787|  4.36k|{
11788|  4.36k|    const bool negative = *first == '-';
11789|  4.36k|    first += (*first == '-' || *first == '+') ? 1 : 0;
  ------------------
  |  Branch (11789:15): [True: 2.24k, False: 2.12k]
  |  Branch (11789:32): [True: 24, False: 2.10k]
  ------------------
11790|  4.36k|    constexpr std::int64_t saturation = 100000000000000000; // 10^17
11791|  4.36k|    std::int64_t value = 0;
11792|  38.8k|    for (; first != last; ++first)
  ------------------
  |  Branch (11792:12): [True: 34.4k, False: 4.36k]
  ------------------
11793|  34.4k|    {
11794|  34.4k|        if (value < saturation)
  ------------------
  |  Branch (11794:13): [True: 32.9k, False: 1.51k]
  ------------------
11795|  32.9k|        {
11796|  32.9k|            value = (value * 10) + (*first - '0');
11797|  32.9k|        }
11798|  34.4k|    }
11799|  4.36k|    return negative ? -value : value;
  ------------------
  |  Branch (11799:12): [True: 2.24k, False: 2.12k]
  ------------------
11800|  4.36k|}
_ZN8nlohmann16json_abi_v3_12_06detail16digit_comparisonINS1_18ieee_binary_formatILi53EEEEEmPKcS6_m:
12090|  2.38k|{
12091|  2.38k|    const char* p = first + ((*first == '-') ? 1 : 0);
  ------------------
  |  Branch (12091:30): [True: 48, False: 2.33k]
  ------------------
12092|       |
12093|       |    // D, in chunks of up to 9 digits, and s
12094|  2.38k|    float_bigint digits(0);
12095|  2.38k|    std::int64_t count = 0;
12096|  2.38k|    std::int64_t point = 0; // the value is 0.D... * 10^point
12097|  2.38k|    bool truncated = false;
12098|  2.38k|    std::uint32_t chunk = 0;
12099|  2.38k|    int chunk_digits = 0;
12100|  2.38k|    static const std::array<std::uint32_t, 10> powers_of_ten = {{1u, 10u, 100u, 1000u, 10000u, 100000u, 1000000u, 10000000u, 100000000u, 1000000000u}};
12101|  2.38k|    const auto append = [&](char c) noexcept
12102|  2.38k|    {
12103|  2.38k|        if (count < Format::max_digits())
12104|  2.38k|        {
12105|  2.38k|            chunk = (chunk * 10u) + static_cast<std::uint32_t>(c - '0');
12106|  2.38k|            ++count;
12107|  2.38k|            if (++chunk_digits == 9)
12108|  2.38k|            {
12109|  2.38k|                digits.multiply_add(powers_of_ten[9], chunk);
12110|  2.38k|                chunk = 0;
12111|  2.38k|                chunk_digits = 0;
12112|  2.38k|            }
12113|  2.38k|        }
12114|  2.38k|        else
12115|  2.38k|        {
12116|  2.38k|            truncated = truncated || c != '0';
12117|  2.38k|        }
12118|  2.38k|    };
12119|  2.38k|    bool significant = false;
12120|  40.3k|    for (; p != last && *p >= '0' && *p <= '9'; ++p)
  ------------------
  |  Branch (12120:12): [True: 39.5k, False: 744]
  |  Branch (12120:25): [True: 38.1k, False: 1.39k]
  |  Branch (12120:38): [True: 37.9k, False: 246]
  ------------------
12121|  37.9k|    {
12122|  37.9k|        significant = significant || *p != '0';
  ------------------
  |  Branch (12122:23): [True: 35.5k, False: 2.38k]
  |  Branch (12122:38): [True: 2.10k, False: 276]
  ------------------
12123|  37.9k|        if (significant)
  ------------------
  |  Branch (12123:13): [True: 37.6k, False: 276]
  ------------------
12124|  37.6k|        {
12125|  37.6k|            append(*p);
12126|  37.6k|            ++point;
12127|  37.6k|        }
12128|  37.9k|    }
12129|  2.38k|    if (p != last && *p == '.')
  ------------------
  |  Branch (12129:9): [True: 1.63k, False: 744]
  |  Branch (12129:22): [True: 1.39k, False: 246]
  ------------------
12130|  1.39k|    {
12131|  44.6k|        for (++p; p != last && *p >= '0' && *p <= '9'; ++p)
  ------------------
  |  Branch (12131:19): [True: 43.4k, False: 1.14k]
  |  Branch (12131:32): [True: 43.4k, False: 0]
  |  Branch (12131:45): [True: 43.2k, False: 246]
  ------------------
12132|  43.2k|        {
12133|  43.2k|            significant = significant || *p != '0';
  ------------------
  |  Branch (12133:27): [True: 42.4k, False: 810]
  |  Branch (12133:42): [True: 276, False: 534]
  ------------------
12134|  43.2k|            if (significant)
  ------------------
  |  Branch (12134:17): [True: 42.7k, False: 534]
  ------------------
12135|  42.7k|            {
12136|  42.7k|                append(*p);
12137|  42.7k|            }
12138|    534|            else
12139|    534|            {
12140|    534|                --point;
12141|    534|            }
12142|  43.2k|        }
12143|  1.39k|    }
12144|  2.38k|    if (chunk_digits != 0)
  ------------------
  |  Branch (12144:9): [True: 2.25k, False: 126]
  ------------------
12145|  2.25k|    {
12146|  2.25k|        digits.multiply_add(powers_of_ten[static_cast<std::size_t>(chunk_digits)], chunk);
12147|  2.25k|    }
12148|  2.38k|    if (p != last)
  ------------------
  |  Branch (12148:9): [True: 492, False: 1.89k]
  ------------------
12149|    492|    {
12150|    492|        point += parse_float_exponent(p + 1, last);
12151|    492|    }
12152|  2.38k|    const std::int64_t s = point - count; // v = D * 10^s
12153|       |
12154|       |    // the midpoint above the lower candidate
12155|  2.38k|    constexpr int mantissa_bits = Format::mantissa_bits();
12156|  2.38k|    const std::uint64_t exponent_field = lower >> mantissa_bits;
12157|  2.38k|    std::uint64_t mantissa = lower & ((std::uint64_t{1} << mantissa_bits) - 1);
12158|  2.38k|    std::int64_t e = 1 + Format::minimum_exponent() - mantissa_bits; // of the smallest subnormal number
12159|  2.38k|    if (exponent_field != 0)
  ------------------
  |  Branch (12159:9): [True: 2.29k, False: 84]
  ------------------
12160|  2.29k|    {
12161|  2.29k|        mantissa |= std::uint64_t{1} << mantissa_bits;
12162|  2.29k|        e += static_cast<std::int64_t>(exponent_field) - 1;
12163|  2.29k|    }
12164|  2.38k|    float_bigint midpoint((2 * mantissa) + 1);
12165|  2.38k|    const std::int64_t midpoint_exponent = e - 1; // m = midpoint * 2^midpoint_exponent
12166|       |
12167|       |    // compare D * 5^s * 2^s with midpoint * 2^midpoint_exponent
12168|  2.38k|    if (s >= 0)
  ------------------
  |  Branch (12168:9): [True: 972, False: 1.41k]
  ------------------
12169|    972|    {
12170|    972|        digits.multiply_power_of_five(s);
12171|    972|    }
12172|  1.41k|    else
12173|  1.41k|    {
12174|  1.41k|        midpoint.multiply_power_of_five(-s);
12175|  1.41k|    }
12176|  2.38k|    const std::int64_t shift = s - midpoint_exponent;
12177|  2.38k|    if (shift >= 0)
  ------------------
  |  Branch (12177:9): [True: 996, False: 1.38k]
  ------------------
12178|    996|    {
12179|    996|        digits.shift_left(shift);
12180|    996|    }
12181|  1.38k|    else
12182|  1.38k|    {
12183|  1.38k|        midpoint.shift_left(-shift);
12184|  1.38k|    }
12185|  2.38k|    const int order = digits.compare(midpoint);
12186|  2.38k|    const bool round_up = order > 0 || (order == 0 && (truncated || (mantissa & 1u) != 0));
  ------------------
  |  Branch (12186:27): [True: 924, False: 1.45k]
  |  Branch (12186:41): [True: 294, False: 1.16k]
  |  Branch (12186:56): [True: 0, False: 294]
  |  Branch (12186:69): [True: 264, False: 30]
  ------------------
12187|  2.38k|    return lower + (round_up ? 1u : 0u);
  ------------------
  |  Branch (12187:21): [True: 1.18k, False: 1.19k]
  ------------------
12188|  2.38k|}
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigintC2Em:
11973|  4.76k|    {
11974|  9.52k|        for (; value != 0; value >>= 32u)
  ------------------
  |  Branch (11974:16): [True: 4.76k, False: 4.76k]
  ------------------
11975|  4.76k|        {
11976|  4.76k|            limbs[count++] = static_cast<std::uint32_t>(value);
11977|  4.76k|        }
11978|  4.76k|    }
_ZZN8nlohmann16json_abi_v3_12_06detail16digit_comparisonINS1_18ieee_binary_formatILi53EEEEEmPKcS6_mENKUlcE_clEc:
12102|  80.3k|    {
12103|  80.3k|        if (count < Format::max_digits())
  ------------------
  |  Branch (12103:13): [True: 80.3k, False: 0]
  ------------------
12104|  80.3k|        {
12105|  80.3k|            chunk = (chunk * 10u) + static_cast<std::uint32_t>(c - '0');
12106|  80.3k|            ++count;
12107|  80.3k|            if (++chunk_digits == 9)
  ------------------
  |  Branch (12107:17): [True: 8.21k, False: 72.1k]
  ------------------
12108|  8.21k|            {
12109|  8.21k|                digits.multiply_add(powers_of_ten[9], chunk);
12110|  8.21k|                chunk = 0;
12111|  8.21k|                chunk_digits = 0;
12112|  8.21k|            }
12113|  80.3k|        }
12114|      0|        else
12115|      0|        {
12116|      0|            truncated = truncated || c != '0';
  ------------------
  |  Branch (12116:25): [True: 0, False: 0]
  |  Branch (12116:38): [True: 0, False: 0]
  ------------------
12117|      0|        }
12118|  80.3k|    };
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE10max_digitsEv:
11653|  80.3k|    {
11654|  80.3k|        return 769;
11655|  80.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint12multiply_addEjj:
11982|  22.4k|    {
11983|  22.4k|        std::uint64_t carry = summand;
11984|   202k|        for (std::size_t i = 0; i < count; ++i)
  ------------------
  |  Branch (11984:33): [True: 179k, False: 22.4k]
  ------------------
11985|   179k|        {
11986|   179k|            const std::uint64_t product = (static_cast<std::uint64_t>(limbs[i]) * factor) + carry;
11987|   179k|            limbs[i] = static_cast<std::uint32_t>(product);
11988|   179k|            carry = product >> 32u;
11989|   179k|        }
11990|  22.4k|        if (carry != 0)
  ------------------
  |  Branch (11990:13): [True: 19.7k, False: 2.69k]
  ------------------
11991|  19.7k|        {
11992|  19.7k|            JSON_ASSERT(count < limbs.size());
  ------------------
  |  | 2653|  19.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (11992:13): [True: 19.7k, False: 0]
  ------------------
11993|  19.7k|            limbs[count++] = static_cast<std::uint32_t>(carry);
11994|  19.7k|        }
11995|  22.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint22multiply_power_of_fiveEl:
11999|  2.38k|    {
12000|  2.38k|        static const std::array<std::uint32_t, 14> powers =
12001|  2.38k|        {
12002|  2.38k|            {1u, 5u, 25u, 125u, 625u, 3125u, 15625u, 78125u, 390625u, 1953125u, 9765625u, 48828125u, 244140625u, 1220703125u}
12003|  2.38k|        };
12004|  11.9k|        for (; n >= 13; n -= 13)
  ------------------
  |  Branch (12004:16): [True: 9.58k, False: 2.38k]
  ------------------
12005|  9.58k|        {
12006|  9.58k|            multiply_add(powers[13], 0);
12007|  9.58k|        }
12008|  2.38k|        multiply_add(powers[static_cast<std::size_t>(n)], 0);
12009|  2.38k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint10shift_leftEl:
12013|  2.38k|    {
12014|  2.38k|        if (count == 0)
  ------------------
  |  Branch (12014:13): [True: 0, False: 2.38k]
  ------------------
12015|      0|        {
12016|      0|            return;
12017|      0|        }
12018|  2.38k|        const auto limb_shift = static_cast<std::size_t>(n / 32);
12019|  2.38k|        const auto bit_shift = static_cast<unsigned>(n % 32);
12020|  2.38k|        JSON_ASSERT(count + limb_shift + 1 <= limbs.size());
  ------------------
  |  | 2653|  2.38k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (12020:9): [True: 2.38k, False: 0]
  ------------------
12021|  2.38k|        if (bit_shift != 0)
  ------------------
  |  Branch (12021:13): [True: 2.25k, False: 126]
  ------------------
12022|  2.25k|        {
12023|  2.25k|            std::uint32_t carry = 0;
12024|  9.29k|            for (std::size_t i = 0; i < count; ++i)
  ------------------
  |  Branch (12024:37): [True: 7.03k, False: 2.25k]
  ------------------
12025|  7.03k|            {
12026|  7.03k|                const std::uint32_t limb = limbs[i];
12027|  7.03k|                limbs[i] = (limb << bit_shift) | carry;
12028|  7.03k|                carry = limb >> (32u - bit_shift);
12029|  7.03k|            }
12030|  2.25k|            if (carry != 0)
  ------------------
  |  Branch (12030:17): [True: 1.48k, False: 768]
  ------------------
12031|  1.48k|            {
12032|  1.48k|                limbs[count++] = carry;
12033|  1.48k|            }
12034|  2.25k|        }
12035|  2.38k|        if (limb_shift != 0)
  ------------------
  |  Branch (12035:13): [True: 882, False: 1.50k]
  ------------------
12036|    882|        {
12037|  4.88k|            for (std::size_t i = count; i-- > 0;)
  ------------------
  |  Branch (12037:41): [True: 4.00k, False: 882]
  ------------------
12038|  4.00k|            {
12039|  4.00k|                limbs[i + limb_shift] = limbs[i];
12040|  4.00k|            }
12041|  9.16k|            for (std::size_t i = 0; i < limb_shift; ++i)
  ------------------
  |  Branch (12041:37): [True: 8.28k, False: 882]
  ------------------
12042|  8.28k|            {
12043|  8.28k|                limbs[i] = 0;
12044|  8.28k|            }
12045|    882|            count += limb_shift;
12046|    882|        }
12047|  2.38k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail12float_bigint7compareERKS2_:
12051|  2.38k|    {
12052|  2.38k|        if (count != other.count)
  ------------------
  |  Branch (12052:13): [True: 0, False: 2.38k]
  ------------------
12053|      0|        {
12054|      0|            return count < other.count ? -1 : 1;
  ------------------
  |  Branch (12054:20): [True: 0, False: 0]
  ------------------
12055|      0|        }
12056|  8.14k|        for (std::size_t i = count; i-- > 0;)
  ------------------
  |  Branch (12056:37): [True: 7.84k, False: 294]
  ------------------
12057|  7.84k|        {
12058|  7.84k|            if (limbs[i] != other.limbs[i])
  ------------------
  |  Branch (12058:17): [True: 2.08k, False: 5.76k]
  ------------------
12059|  2.08k|            {
12060|  2.08k|                return limbs[i] < other.limbs[i] ? -1 : 1;
  ------------------
  |  Branch (12060:24): [True: 1.16k, False: 924]
  ------------------
12061|  2.08k|            }
12062|  7.84k|        }
12063|    294|        return 0;
12064|  2.38k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE11scan_numberEv:
14621|  11.0k|    {
14622|       |        // reset token_buffer to store the number's bytes
14623|  11.0k|        reset();
14624|       |
14625|       |        // the type of the parsed number; initially set to unsigned; will be
14626|       |        // changed if minus sign, decimal point, or exponent is read
14627|  11.0k|        token_type number_type = token_type::value_unsigned;
14628|       |
14629|       |        // offset just past the last mantissa byte in token_buffer (i.e. the
14630|       |        // index of 'e'/'E', or the whole token when there is no exponent).
14631|       |        // convert_number() uses it to split the token; npos means
14632|       |        // "not seen an exponent yet" and is resolved at scan_number_done
14633|  11.0k|        std::size_t mantissa_end = std::string::npos;
14634|       |
14635|       |        // state (init): we just found out we need to scan a number
14636|  11.0k|        switch (current)
14637|  11.0k|        {
14638|    432|            case '-':
  ------------------
  |  Branch (14638:13): [True: 432, False: 10.5k]
  ------------------
14639|    432|            {
14640|    432|                add(current);
14641|    432|                goto scan_number_minus;
14642|      0|            }
14643|       |
14644|  1.78k|            case '0':
  ------------------
  |  Branch (14644:13): [True: 1.78k, False: 9.23k]
  ------------------
14645|  1.78k|            {
14646|  1.78k|                add(current);
14647|  1.78k|                goto scan_number_zero;
14648|      0|            }
14649|       |
14650|  1.37k|            case '1':
  ------------------
  |  Branch (14650:13): [True: 1.37k, False: 9.64k]
  ------------------
14651|  2.59k|            case '2':
  ------------------
  |  Branch (14651:13): [True: 1.22k, False: 9.79k]
  ------------------
14652|  3.67k|            case '3':
  ------------------
  |  Branch (14652:13): [True: 1.07k, False: 9.94k]
  ------------------
14653|  4.83k|            case '4':
  ------------------
  |  Branch (14653:13): [True: 1.16k, False: 9.85k]
  ------------------
14654|  5.56k|            case '5':
  ------------------
  |  Branch (14654:13): [True: 726, False: 10.2k]
  ------------------
14655|  6.21k|            case '6':
  ------------------
  |  Branch (14655:13): [True: 654, False: 10.3k]
  ------------------
14656|  6.94k|            case '7':
  ------------------
  |  Branch (14656:13): [True: 726, False: 10.2k]
  ------------------
14657|  8.03k|            case '8':
  ------------------
  |  Branch (14657:13): [True: 1.09k, False: 9.93k]
  ------------------
14658|  8.80k|            case '9':
  ------------------
  |  Branch (14658:13): [True: 768, False: 10.2k]
  ------------------
14659|  8.80k|            {
14660|  8.80k|                add(current);
14661|  8.80k|                goto scan_number_any1;
14662|  8.03k|            }
14663|       |
14664|       |            // all other characters are rejected outside scan_number()
14665|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (14665:13): [True: 0, False: 11.0k]
  ------------------
14666|      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 (14666:17): [Folded, False: 0]
  ------------------
14667|  11.0k|        }
14668|       |
14669|    432|scan_number_minus:
14670|       |        // state: we just parsed a leading minus sign
14671|    432|        number_type = token_type::value_integer;
14672|    432|        switch (get())
14673|    432|        {
14674|     18|            case '0':
  ------------------
  |  Branch (14674:13): [True: 18, False: 414]
  ------------------
14675|     18|            {
14676|     18|                add(current);
14677|     18|                goto scan_number_zero;
14678|      0|            }
14679|       |
14680|     18|            case '1':
  ------------------
  |  Branch (14680:13): [True: 18, False: 414]
  ------------------
14681|     36|            case '2':
  ------------------
  |  Branch (14681:13): [True: 18, False: 414]
  ------------------
14682|     60|            case '3':
  ------------------
  |  Branch (14682:13): [True: 24, False: 408]
  ------------------
14683|     78|            case '4':
  ------------------
  |  Branch (14683:13): [True: 18, False: 414]
  ------------------
14684|     96|            case '5':
  ------------------
  |  Branch (14684:13): [True: 18, False: 414]
  ------------------
14685|    120|            case '6':
  ------------------
  |  Branch (14685:13): [True: 24, False: 408]
  ------------------
14686|    138|            case '7':
  ------------------
  |  Branch (14686:13): [True: 18, False: 414]
  ------------------
14687|    156|            case '8':
  ------------------
  |  Branch (14687:13): [True: 18, False: 414]
  ------------------
14688|    174|            case '9':
  ------------------
  |  Branch (14688:13): [True: 18, False: 414]
  ------------------
14689|    174|            {
14690|    174|                add(current);
14691|    174|                goto scan_number_any1;
14692|    156|            }
14693|       |
14694|    240|            default:
  ------------------
  |  Branch (14694:13): [True: 240, False: 192]
  ------------------
14695|    240|            {
14696|    240|                error_message = "invalid number; expected digit after '-'";
14697|    240|                return token_type::parse_error;
14698|    156|            }
14699|    432|        }
14700|       |
14701|  1.80k|scan_number_zero:
14702|       |        // state: we just parse a zero (maybe with a leading minus sign)
14703|  1.80k|        switch (get())
14704|  1.80k|        {
14705|    126|            case '.':
  ------------------
  |  Branch (14705:13): [True: 126, False: 1.68k]
  ------------------
14706|    126|            {
14707|    126|                add(current);
14708|    126|                decimal_point_position = token_buffer.size() - 1;
14709|    126|                goto scan_number_decimal1;
14710|      0|            }
14711|       |
14712|     66|            case 'e':
  ------------------
  |  Branch (14712:13): [True: 66, False: 1.74k]
  ------------------
14713|    126|            case 'E':
  ------------------
  |  Branch (14713:13): [True: 60, False: 1.74k]
  ------------------
14714|    126|            {
14715|    126|                add(current);
14716|    126|                goto scan_number_exponent;
14717|     66|            }
14718|       |
14719|  1.55k|            default:
  ------------------
  |  Branch (14719:13): [True: 1.55k, False: 252]
  ------------------
14720|  1.55k|                goto scan_number_done;
14721|  1.80k|        }
14722|       |
14723|  15.6k|scan_number_any1:
14724|       |        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
14725|  15.6k|        switch (get())
14726|  15.6k|        {
14727|  1.07k|            case '0':
  ------------------
  |  Branch (14727:13): [True: 1.07k, False: 14.5k]
  ------------------
14728|  1.66k|            case '1':
  ------------------
  |  Branch (14728:13): [True: 588, False: 15.0k]
  ------------------
14729|  2.29k|            case '2':
  ------------------
  |  Branch (14729:13): [True: 636, False: 14.9k]
  ------------------
14730|  2.91k|            case '3':
  ------------------
  |  Branch (14730:13): [True: 612, False: 15.0k]
  ------------------
14731|  3.55k|            case '4':
  ------------------
  |  Branch (14731:13): [True: 648, False: 14.9k]
  ------------------
14732|  4.14k|            case '5':
  ------------------
  |  Branch (14732:13): [True: 588, False: 15.0k]
  ------------------
14733|  4.78k|            case '6':
  ------------------
  |  Branch (14733:13): [True: 636, False: 14.9k]
  ------------------
14734|  5.40k|            case '7':
  ------------------
  |  Branch (14734:13): [True: 618, False: 15.0k]
  ------------------
14735|  6.01k|            case '8':
  ------------------
  |  Branch (14735:13): [True: 618, False: 15.0k]
  ------------------
14736|  6.64k|            case '9':
  ------------------
  |  Branch (14736:13): [True: 630, False: 14.9k]
  ------------------
14737|  6.64k|            {
14738|  6.64k|                add(current);
14739|  6.64k|                goto scan_number_any1;
14740|  6.01k|            }
14741|       |
14742|    774|            case '.':
  ------------------
  |  Branch (14742:13): [True: 774, False: 14.8k]
  ------------------
14743|    774|            {
14744|    774|                add(current);
14745|    774|                decimal_point_position = token_buffer.size() - 1;
14746|    774|                goto scan_number_decimal1;
14747|  6.01k|            }
14748|       |
14749|    258|            case 'e':
  ------------------
  |  Branch (14749:13): [True: 258, False: 15.3k]
  ------------------
14750|    576|            case 'E':
  ------------------
  |  Branch (14750:13): [True: 318, False: 15.3k]
  ------------------
14751|    576|            {
14752|    576|                add(current);
14753|    576|                goto scan_number_exponent;
14754|    258|            }
14755|       |
14756|  7.62k|            default:
  ------------------
  |  Branch (14756:13): [True: 7.62k, False: 7.99k]
  ------------------
14757|  7.62k|                goto scan_number_done;
14758|  15.6k|        }
14759|       |
14760|    900|scan_number_decimal1:
14761|       |        // state: we just parsed a decimal point
14762|    900|        number_type = token_type::value_float;
14763|    900|        switch (get())
14764|    900|        {
14765|    120|            case '0':
  ------------------
  |  Branch (14765:13): [True: 120, False: 780]
  ------------------
14766|    150|            case '1':
  ------------------
  |  Branch (14766:13): [True: 30, False: 870]
  ------------------
14767|    186|            case '2':
  ------------------
  |  Branch (14767:13): [True: 36, False: 864]
  ------------------
14768|    258|            case '3':
  ------------------
  |  Branch (14768:13): [True: 72, False: 828]
  ------------------
14769|    276|            case '4':
  ------------------
  |  Branch (14769:13): [True: 18, False: 882]
  ------------------
14770|    366|            case '5':
  ------------------
  |  Branch (14770:13): [True: 90, False: 810]
  ------------------
14771|    408|            case '6':
  ------------------
  |  Branch (14771:13): [True: 42, False: 858]
  ------------------
14772|    426|            case '7':
  ------------------
  |  Branch (14772:13): [True: 18, False: 882]
  ------------------
14773|    450|            case '8':
  ------------------
  |  Branch (14773:13): [True: 24, False: 876]
  ------------------
14774|    486|            case '9':
  ------------------
  |  Branch (14774:13): [True: 36, False: 864]
  ------------------
14775|    486|            {
14776|    486|                add(current);
14777|    486|                goto scan_number_decimal2;
14778|    450|            }
14779|       |
14780|    414|            default:
  ------------------
  |  Branch (14780:13): [True: 414, False: 486]
  ------------------
14781|    414|            {
14782|    414|                error_message = "invalid number; expected digit after '.'";
14783|    414|                return token_type::parse_error;
14784|    450|            }
14785|    900|        }
14786|       |
14787|  6.61k|scan_number_decimal2:
14788|       |        // we just parsed at least one number after a decimal point
14789|  6.61k|        switch (get())
14790|  6.61k|        {
14791|    882|            case '0':
  ------------------
  |  Branch (14791:13): [True: 882, False: 5.73k]
  ------------------
14792|  1.43k|            case '1':
  ------------------
  |  Branch (14792:13): [True: 552, False: 6.06k]
  ------------------
14793|  2.07k|            case '2':
  ------------------
  |  Branch (14793:13): [True: 642, False: 5.97k]
  ------------------
14794|  2.72k|            case '3':
  ------------------
  |  Branch (14794:13): [True: 648, False: 5.96k]
  ------------------
14795|  3.33k|            case '4':
  ------------------
  |  Branch (14795:13): [True: 606, False: 6.00k]
  ------------------
14796|  3.87k|            case '5':
  ------------------
  |  Branch (14796:13): [True: 546, False: 6.06k]
  ------------------
14797|  4.44k|            case '6':
  ------------------
  |  Branch (14797:13): [True: 564, False: 6.04k]
  ------------------
14798|  5.02k|            case '7':
  ------------------
  |  Branch (14798:13): [True: 588, False: 6.02k]
  ------------------
14799|  5.59k|            case '8':
  ------------------
  |  Branch (14799:13): [True: 570, False: 6.04k]
  ------------------
14800|  6.12k|            case '9':
  ------------------
  |  Branch (14800:13): [True: 528, False: 6.08k]
  ------------------
14801|  6.12k|            {
14802|  6.12k|                add(current);
14803|  6.12k|                goto scan_number_decimal2;
14804|  5.59k|            }
14805|       |
14806|    234|            case 'e':
  ------------------
  |  Branch (14806:13): [True: 234, False: 6.37k]
  ------------------
14807|    486|            case 'E':
  ------------------
  |  Branch (14807:13): [True: 252, False: 6.36k]
  ------------------
14808|    486|            {
14809|    486|                add(current);
14810|    486|                goto scan_number_exponent;
14811|    234|            }
14812|       |
14813|      0|            default:
  ------------------
  |  Branch (14813:13): [True: 0, False: 6.61k]
  ------------------
14814|      0|                goto scan_number_done;
14815|  6.61k|        }
14816|       |
14817|  1.18k|scan_number_exponent:
14818|       |        // we just parsed an exponent
14819|  1.18k|        number_type = token_type::value_float;
14820|       |        // this label is reached only right after the 'e'/'E' was appended (from
14821|       |        // the zero, any1, and decimal2 states), so the mantissa ends before it
14822|  1.18k|        mantissa_end = token_buffer.size() - 1;
14823|  1.18k|        switch (get())
14824|  1.18k|        {
14825|     48|            case '+':
  ------------------
  |  Branch (14825:13): [True: 48, False: 1.14k]
  ------------------
14826|     96|            case '-':
  ------------------
  |  Branch (14826:13): [True: 48, False: 1.14k]
  ------------------
14827|     96|            {
14828|     96|                add(current);
14829|     96|                goto scan_number_sign;
14830|     48|            }
14831|       |
14832|      0|            case '0':
  ------------------
  |  Branch (14832:13): [True: 0, False: 1.18k]
  ------------------
14833|      0|            case '1':
  ------------------
  |  Branch (14833:13): [True: 0, False: 1.18k]
  ------------------
14834|      0|            case '2':
  ------------------
  |  Branch (14834:13): [True: 0, False: 1.18k]
  ------------------
14835|      0|            case '3':
  ------------------
  |  Branch (14835:13): [True: 0, False: 1.18k]
  ------------------
14836|      0|            case '4':
  ------------------
  |  Branch (14836:13): [True: 0, False: 1.18k]
  ------------------
14837|      0|            case '5':
  ------------------
  |  Branch (14837:13): [True: 0, False: 1.18k]
  ------------------
14838|      0|            case '6':
  ------------------
  |  Branch (14838:13): [True: 0, False: 1.18k]
  ------------------
14839|      0|            case '7':
  ------------------
  |  Branch (14839:13): [True: 0, False: 1.18k]
  ------------------
14840|      0|            case '8':
  ------------------
  |  Branch (14840:13): [True: 0, False: 1.18k]
  ------------------
14841|      0|            case '9':
  ------------------
  |  Branch (14841:13): [True: 0, False: 1.18k]
  ------------------
14842|      0|            {
14843|      0|                add(current);
14844|      0|                goto scan_number_any2;
14845|      0|            }
14846|       |
14847|  1.09k|            default:
  ------------------
  |  Branch (14847:13): [True: 1.09k, False: 96]
  ------------------
14848|  1.09k|            {
14849|  1.09k|                error_message =
14850|  1.09k|                    "invalid number; expected '+', '-', or digit after exponent";
14851|  1.09k|                return token_type::parse_error;
14852|      0|            }
14853|  1.18k|        }
14854|       |
14855|     96|scan_number_sign:
14856|       |        // we just parsed an exponent sign
14857|     96|        switch (get())
14858|     96|        {
14859|      0|            case '0':
  ------------------
  |  Branch (14859:13): [True: 0, False: 96]
  ------------------
14860|      0|            case '1':
  ------------------
  |  Branch (14860:13): [True: 0, False: 96]
  ------------------
14861|      0|            case '2':
  ------------------
  |  Branch (14861:13): [True: 0, False: 96]
  ------------------
14862|      0|            case '3':
  ------------------
  |  Branch (14862:13): [True: 0, False: 96]
  ------------------
14863|      0|            case '4':
  ------------------
  |  Branch (14863:13): [True: 0, False: 96]
  ------------------
14864|      0|            case '5':
  ------------------
  |  Branch (14864:13): [True: 0, False: 96]
  ------------------
14865|      0|            case '6':
  ------------------
  |  Branch (14865:13): [True: 0, False: 96]
  ------------------
14866|      0|            case '7':
  ------------------
  |  Branch (14866:13): [True: 0, False: 96]
  ------------------
14867|      0|            case '8':
  ------------------
  |  Branch (14867:13): [True: 0, False: 96]
  ------------------
14868|      0|            case '9':
  ------------------
  |  Branch (14868:13): [True: 0, False: 96]
  ------------------
14869|      0|            {
14870|      0|                add(current);
14871|      0|                goto scan_number_any2;
14872|      0|            }
14873|       |
14874|     96|            default:
  ------------------
  |  Branch (14874:13): [True: 96, False: 0]
  ------------------
14875|     96|            {
14876|     96|                error_message = "invalid number; expected digit after exponent sign";
14877|     96|                return token_type::parse_error;
14878|      0|            }
14879|     96|        }
14880|       |
14881|      0|scan_number_any2:
14882|       |        // we just parsed a number after the exponent or exponent sign
14883|      0|        switch (get())
14884|      0|        {
14885|      0|            case '0':
  ------------------
  |  Branch (14885:13): [True: 0, False: 0]
  ------------------
14886|      0|            case '1':
  ------------------
  |  Branch (14886:13): [True: 0, False: 0]
  ------------------
14887|      0|            case '2':
  ------------------
  |  Branch (14887:13): [True: 0, False: 0]
  ------------------
14888|      0|            case '3':
  ------------------
  |  Branch (14888:13): [True: 0, False: 0]
  ------------------
14889|      0|            case '4':
  ------------------
  |  Branch (14889:13): [True: 0, False: 0]
  ------------------
14890|      0|            case '5':
  ------------------
  |  Branch (14890:13): [True: 0, False: 0]
  ------------------
14891|      0|            case '6':
  ------------------
  |  Branch (14891:13): [True: 0, False: 0]
  ------------------
14892|      0|            case '7':
  ------------------
  |  Branch (14892:13): [True: 0, False: 0]
  ------------------
14893|      0|            case '8':
  ------------------
  |  Branch (14893:13): [True: 0, False: 0]
  ------------------
14894|      0|            case '9':
  ------------------
  |  Branch (14894:13): [True: 0, False: 0]
  ------------------
14895|      0|            {
14896|      0|                add(current);
14897|      0|                goto scan_number_any2;
14898|      0|            }
14899|       |
14900|      0|            default:
  ------------------
  |  Branch (14900:13): [True: 0, False: 0]
  ------------------
14901|      0|                goto scan_number_done;
14902|      0|        }
14903|       |
14904|  9.18k|scan_number_done:
14905|       |        // unget the character after the number (we only read it to know that
14906|       |        // we are done scanning a number)
14907|  9.18k|        unget();
14908|       |
14909|       |        // no exponent was scanned: the mantissa spans the whole token
14910|  9.18k|        if (mantissa_end == std::string::npos)
  ------------------
  |  Branch (14910:13): [True: 9.18k, False: 0]
  ------------------
14911|  9.18k|        {
14912|  9.18k|            mantissa_end = token_buffer.size();
14913|  9.18k|        }
14914|       |
14915|  9.18k|        return convert_number(number_type, mantissa_end);
14916|      0|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16get_token_stringEv:
15792|  65.6k|    {
15793|  65.6k|        std::vector<char_type> reconstructed;
15794|  65.6k|        const std::vector<char_type>& chars = collect_token_chars(reconstructed, std::integral_constant<bool, lazy_token_string> {});
15795|       |
15796|       |        // a long token is shown by its first and its last head() characters;
15797|       |        // the buffers that keep it while it is read keep no more than these
15798|       |        // and a few more (see token_text_buffer)
15799|  65.6k|        constexpr std::size_t shown = token_text_buffer<char_type>::head();
15800|  65.6k|        std::string result;
15801|  65.6k|        if (chars.size() > 2 * shown)
  ------------------
  |  Branch (15801:13): [True: 0, False: 65.6k]
  ------------------
15802|      0|        {
15803|       |            // the lexer reads bytes (wide characters arrive as UTF-8), so
15804|       |            // move both cuts to character boundaries to keep the message
15805|       |            // valid UTF-8; this only shortens the two parts
15806|      0|            const auto head_end = chars.begin() + static_cast<std::ptrdiff_t>(length_without_partial_utf8_at_end(chars.data(), shown));
15807|      0|            const auto tail_begin = chars.end() - static_cast<std::ptrdiff_t>(shown);
15808|      0|            append_escaped(result, chars.begin(), head_end);
15809|      0|            result += "...";
15810|      0|            append_escaped(result, tail_begin + static_cast<std::ptrdiff_t>(partial_utf8_length_at_start(&*tail_begin)), chars.end());
15811|      0|        }
15812|  65.6k|        else
15813|  65.6k|        {
15814|  65.6k|            append_escaped(result, chars.begin(), chars.end());
15815|  65.6k|        }
15816|  65.6k|        return result;
15817|  65.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE19collect_token_charsERNS6_IcSB_EENS4_17integral_constantIbLb1EEE:
15742|  65.6k|    {
15743|  65.6k|        return collect_token_chars_lazy(out, std::integral_constant<bool, adapter_token> {});
15744|  65.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE24collect_token_chars_lazyERNS6_IcSB_EENS4_17integral_constantIbLb0EEE:
15756|  65.6k|    {
15757|       |        // a pending unget of a real (non-EOF) character means that character
15758|       |        // was consumed from the input but is not part of the token; EOF is
15759|       |        // never consumed, so it must not be subtracted (mirrors unget())
15760|  65.6k|        const bool pending_real_unget = next_unget && current != char_traits<char_type>::eof();
  ------------------
  |  Branch (15760:41): [True: 9.18k, False: 56.4k]
  |  Branch (15760:55): [True: 0, False: 9.18k]
  ------------------
15761|  65.6k|        const std::size_t stop = ia.get_consumed_count() - (pending_real_unget ? 1u : 0u);
  ------------------
  |  Branch (15761:61): [True: 0, False: 65.6k]
  ------------------
15762|  65.6k|        if (JSON_HEDLEY_LIKELY(stop >= token_string_start))
  ------------------
  |  | 1696|  65.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 65.6k, False: 0]
  |  |  ------------------
  ------------------
15763|  65.6k|        {
15764|       |            // only the beginning and the end of a long token are shown (see
15765|       |            // get_token_string), so copy only these
15766|  65.6k|            constexpr std::size_t head = token_text_buffer<char_type>::head();
15767|  65.6k|            constexpr std::size_t tail = token_text_buffer<char_type>::tail();
15768|  65.6k|            if (stop - token_string_start > head + tail)
  ------------------
  |  Branch (15768:17): [True: 0, False: 65.6k]
  ------------------
15769|      0|            {
15770|      0|                ia.copy_consumed_range(token_string_start, token_string_start + head, out);
15771|      0|                ia.copy_consumed_range(stop - tail, stop, out);
15772|      0|            }
15773|  65.6k|            else
15774|  65.6k|            {
15775|  65.6k|                ia.copy_consumed_range(token_string_start, stop, out);
15776|  65.6k|            }
15777|  65.6k|        }
15778|  65.6k|        return out;
15779|  65.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E19copy_consumed_rangeINSt3__16vectorIcNS7_9allocatorIcEEEEEEvmmRT_:
10314|  65.6k|    {
10315|  65.6k|        const auto from = std::next(begin, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(first_index));
10316|  65.6k|        const auto to = std::next(begin, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(last_index));
10317|  65.6k|        out.insert(out.end(), from, to);
10318|  65.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE14append_escapedINS4_11__wrap_iterISJ_EEEEvRSC_T_SQ_:
15872|  65.6k|    {
15873|   869k|        for (; first != last; ++first)
  ------------------
  |  Branch (15873:16): [True: 803k, False: 65.6k]
  ------------------
15874|   803k|        {
15875|   803k|            const auto c = *first;
15876|   803k|            if (static_cast<unsigned char>(c) <= '\x1F')
  ------------------
  |  Branch (15876:17): [True: 7.09k, False: 796k]
  ------------------
15877|  7.09k|            {
15878|       |                // escape control characters
15879|  7.09k|                std::array<char, 9> cs{{}};
15880|  7.09k|                static_cast<void>((std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
15881|  7.09k|                result += cs.data();
15882|  7.09k|            }
15883|   796k|            else
15884|   796k|            {
15885|       |                // add character as is
15886|   796k|                result.push_back(static_cast<std::string::value_type>(c));
15887|   796k|            }
15888|   803k|        }
15889|  65.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE10get_stringEv:
15623|  54.3k|    {
15624|  54.3k|        if (pending_number_text != nullptr)
  ------------------
  |  Branch (15624:13): [True: 12.2k, False: 42.0k]
  ------------------
15625|  12.2k|        {
15626|  12.2k|            token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(pending_number_text), pending_number_length);
15627|  12.2k|            pending_number_text = nullptr;
15628|  12.2k|        }
15629|       |        // a number token holds '.' regardless of the locale (#4084)
15630|  54.3k|        return token_buffer;
15631|  54.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA22_KcS9_EEET_DpOT0_:
 5537|  11.3k|{
 5538|  11.3k|    OutStringType str;
 5539|  11.3k|    str.reserve(concat_length(args...));
 5540|  11.3k|    concat_into(str, std::forward<Args>(args)...);
 5541|  11.3k|    return str;
 5542|  11.3k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA22_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  11.3k|{
 5501|  11.3k|    out.append(std::forward<Arg>(arg));
 5502|  11.3k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  11.3k|}
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE18get_number_integerEv:
15605|  2.68k|    {
15606|  2.68k|        return value_integer;
15607|  2.68k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE19get_number_unsignedEv:
15611|  20.2k|    {
15612|  20.2k|        return value_unsigned;
15613|  20.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE16get_number_floatEv:
15617|  20.0k|    {
15618|  20.0k|        return value_float;
15619|  20.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA26_KcRKS9_cEEET_DpOT0_:
 5537|  1.14k|{
 5538|  1.14k|    OutStringType str;
 5539|  1.14k|    str.reserve(concat_length(args...));
 5540|  1.14k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.14k|    return str;
 5542|  1.14k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcEEEmPKcDpRKT_:
 5441|  1.14k|{
 5442|  1.14k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcEEEmRKT_DpRKT0_:
 5447|  1.14k|{
 5448|  1.14k|    return str.size() + concat_length(rest...);
 5449|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJEEEmcDpRKT_:
 5435|  1.14k|{
 5436|  1.14k|    return 1 + concat_length(rest...);
 5437|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA26_KcJRKS9_cETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.14k|{
 5501|  1.14k|    out.append(std::forward<Arg>(arg));
 5502|  1.14k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  1.14k|{
 5501|  1.14k|    out.append(std::forward<Arg>(arg));
 5502|  1.14k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcJETnNS3_9enable_ifIXaantsr24detect_string_can_appendIT_T0_EE5valuesr27detect_string_can_append_opISB_SC_EE5valueEiE4typeELi0EEEvRSB_OSC_DpOT1_:
 5509|  1.14k|{
 5510|  1.14k|    out += std::forward<Arg>(arg);
 5511|  1.14k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  1.14k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EED2Ev:
13811|  54.3k|    ~lexer() = default;
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcED2Ev:
 9416|   101k|    ~token_text_buffer() = default;
_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_EEE16get_ubjson_arrayEv:
22707|   281k|    {
22708|   281k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|   281k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|   281k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 170, False: 280k]
  |  |  ------------------
  ------------------
22710|    170|        {
22711|    170|            return false;
22712|    170|        }
22713|       |
22714|       |        // if bit-8 of size_and_type.second is set to 1, encode bjdata ndarray as an object in JData annotated array format (https://github.com/NeuroJSON/jdata):
22715|       |        // {"_ArrayType_" : "typeid", "_ArraySize_" : [n1, n2, ...], "_ArrayData_" : [v1, v2, ...]}
22716|       |
22717|   280k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 0, False: 280k]
  ------------------
22718|      0|        {
22719|      0|            size_and_type.second &= ~(static_cast<char_int_type>(1) << 8);  // use bit 8 to indicate ndarray, here we remove the bit to restore the type marker
22720|       |
22721|       |            // the "_ArrayType_" and "_ArraySize_" annotation keys were already emitted by
22722|       |            // get_ubjson_size_value() (the type marker is known before the dimension vector
22723|       |            // that determines size_and_type.first is read, so it is emitted first there to
22724|       |            // match the documented _ArrayType_, _ArraySize_, _ArrayData_ key order)
22725|       |            // 'C' elements are read as unsigned bytes, but BJData limits a char to 0..127
22726|      0|            const bool nd_is_char = size_and_type.second == 'C';
22727|      0|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 0, False: 0]
  |  Branch (22727:48): [True: 0, False: 0]
  ------------------
22728|      0|            {
22729|      0|                size_and_type.second = 'U';
22730|      0|            }
22731|       |
22732|      0|            string_t key = "_ArrayData_";
22733|      0|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22734|      0|            {
22735|      0|                return false;
22736|      0|            }
22737|       |
22738|       |            // the numbers that are in the input, in one loop; the rest (if
22739|       |            // the input ends early) one by one below
22740|      0|            std::size_t remaining = size_and_type.first;
22741|      0|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 0, False: 0]
  |  Branch (22741:17): [True: 0, False: 0]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|      0|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 0, False: 0]
  ------------------
22747|      0|            {
22748|      0|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 0, False: 0]
  ------------------
22749|      0|                {
22750|      0|                    get();
22751|      0|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|      0|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22756|      0|                    {
22757|      0|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      0|                    }
22759|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|      0|                    continue;
22764|      0|                }
22765|       |
22766|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|      0|            }
22771|       |
22772|      0|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 0, False: 0]
  |  Branch (22772:41): [True: 0, False: 0]
  ------------------
22773|      0|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|   280k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 79.3k, False: 201k]
  |  Branch (22776:44): [True: 0, False: 79.3k]
  ------------------
22777|      0|        {
22778|      0|            binary_t result;
22779|      0|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 0, False: 0]
  |  Branch (22779:63): [True: 0, False: 0]
  ------------------
22780|      0|        }
22781|       |
22782|   280k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 79.3k, False: 201k]
  ------------------
22783|  79.3k|        {
22784|       |            // reading an element of a valueless type consumes no input, so the
22785|       |            // declared count alone decides how much is allocated; the check is
22786|       |            // made before the start event so that no container is opened that
22787|       |            // is then abandoned. See @ref max_valueless_container_size.
22788|  79.3k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|   308k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 7.65k, False: 71.7k]
  |  |  |  Branch (1697:94): [True: 3.36k, False: 75.9k]
  |  |  |  Branch (1697:94): [True: 2.58k, False: 73.4k]
  |  |  |  Branch (1697:94): [True: 1.70k, False: 71.7k]
  |  |  ------------------
  ------------------
22789|  7.65k|            {
22790|  7.65k|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|  7.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 132, False: 7.52k]
  |  |  ------------------
  ------------------
22791|    132|                {
22792|    132|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|    132|                }
22794|  7.52k|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|  7.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 54, False: 7.46k]
  |  |  ------------------
  ------------------
22795|     54|                {
22796|     54|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|     54|                }
22798|  7.52k|            }
22799|       |
22800|       |            // a no-op is not a value, so an array of them is empty whatever
22801|       |            // count it declares: the SAX parser is told so, instead of being
22802|       |            // made to reserve storage for a count that no input backs
22803|  79.1k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 435, False: 78.7k]
  ------------------
22804|  79.1k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  79.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 79.1k]
  |  |  ------------------
  ------------------
22805|     69|            {
22806|     69|                return false;
22807|     69|            }
22808|       |
22809|  79.1k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 38.5k, False: 40.5k]
  ------------------
22810|  40.5k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 40.5k, False: 0]
  ------------------
22811|  79.1k|        }
22812|       |
22813|   201k|        return enter_array(detail::unknown_size());
22814|   280k|    }
_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_EEE22parse_ubjson_typed_runERmmNS4_17integral_constantIbLb1EEE:
22562|  40.5k|    {
22563|  40.5k|        switch (type)
22564|  40.5k|        {
22565|  1.51k|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 1.51k, False: 39.0k]
  ------------------
22566|  1.51k|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|  1.66k|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 1.66k, False: 38.8k]
  ------------------
22568|  1.66k|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|  1.22k|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 1.22k, False: 39.3k]
  ------------------
22570|  1.22k|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|  1.29k|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 1.29k, False: 39.2k]
  ------------------
22572|  1.29k|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|  1.13k|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 1.13k, False: 39.4k]
  ------------------
22574|  1.13k|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|      0|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 0, False: 40.5k]
  ------------------
22576|      0|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|      0|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 0, False: 40.5k]
  ------------------
22578|      0|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|      0|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 0, False: 40.5k]
  ------------------
22580|      0|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|  1.19k|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 1.19k, False: 39.3k]
  ------------------
22582|  1.19k|                return parse_ubjson_typed_run<float>(remaining);
22583|    942|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 942, False: 39.5k]
  ------------------
22584|    942|                return parse_ubjson_typed_run<double>(remaining);
22585|  31.5k|            default:
  ------------------
  |  Branch (22585:13): [True: 31.5k, False: 8.96k]
  ------------------
22586|  31.5k|                return true;
22587|  40.5k|        }
22588|  40.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_EEE22parse_ubjson_typed_runIhEEbRm:
22598|  1.51k|    {
22599|  1.51k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.51k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.51k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 615, False: 902]
  ------------------
22602|    615|        {
22603|    615|            return true;
22604|    615|        }
22605|    902|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    902|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    902|        const std::size_t start = chars_read;
22609|    902|        std::size_t read = 0;
22610|    902|        bool accepted = true;
22611|  14.4k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 13.5k, False: 902]
  |  Branch (22611:32): [True: 13.5k, False: 0]
  ------------------
22612|  13.5k|        {
22613|  13.5k|            NumberType number{};
22614|  13.5k|            std::memcpy(&number, data + (read * size), size);
22615|  13.5k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 13.5k, False: 0]
  ------------------
22616|  13.5k|            {
22617|  13.5k|                byte_swap(number);
22618|  13.5k|            }
22619|  13.5k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  13.5k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  13.5k|            accepted = emit_ubjson_number(number);
22625|  13.5k|        }
22626|       |        // get_number() does not change current
22627|    902|        ia.bulk_skip(read * size);
22628|    902|        chars_read = start + (read * size);
22629|    902|        remaining -= read;
22630|    902|        return accepted;
22631|  1.51k|    }
_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_EEE14set_chars_readEmNS4_17integral_constantIbLb0EEE:
22651|  45.8k|    void set_chars_read(const std::size_t /*position*/, std::false_type /*track*/) const noexcept {}
_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_EEE18emit_ubjson_numberIhTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22667|  13.5k|    {
22668|  13.5k|        return emit_unsigned(number);
22669|  13.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_EEE22parse_ubjson_typed_runIaEEbRm:
22598|  1.66k|    {
22599|  1.66k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.66k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.66k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 759, False: 903]
  ------------------
22602|    759|        {
22603|    759|            return true;
22604|    759|        }
22605|    903|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    903|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    903|        const std::size_t start = chars_read;
22609|    903|        std::size_t read = 0;
22610|    903|        bool accepted = true;
22611|  15.2k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 14.3k, False: 903]
  |  Branch (22611:32): [True: 14.3k, False: 0]
  ------------------
22612|  14.3k|        {
22613|  14.3k|            NumberType number{};
22614|  14.3k|            std::memcpy(&number, data + (read * size), size);
22615|  14.3k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 14.3k, False: 0]
  ------------------
22616|  14.3k|            {
22617|  14.3k|                byte_swap(number);
22618|  14.3k|            }
22619|  14.3k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  14.3k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  14.3k|            accepted = emit_ubjson_number(number);
22625|  14.3k|        }
22626|       |        // get_number() does not change current
22627|    903|        ia.bulk_skip(read * size);
22628|    903|        chars_read = start + (read * size);
22629|    903|        remaining -= read;
22630|    903|        return accepted;
22631|  1.66k|    }
_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_EEE18emit_ubjson_numberIaTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22661|  14.3k|    {
22662|  14.3k|        return emit_signed(number);
22663|  14.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_EEE22parse_ubjson_typed_runIsEEbRm:
22598|  1.22k|    {
22599|  1.22k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.22k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.22k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 591, False: 631]
  ------------------
22602|    591|        {
22603|    591|            return true;
22604|    591|        }
22605|    631|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    631|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    631|        const std::size_t start = chars_read;
22609|    631|        std::size_t read = 0;
22610|    631|        bool accepted = true;
22611|  5.36k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.73k, False: 631]
  |  Branch (22611:32): [True: 4.73k, False: 0]
  ------------------
22612|  4.73k|        {
22613|  4.73k|            NumberType number{};
22614|  4.73k|            std::memcpy(&number, data + (read * size), size);
22615|  4.73k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 4.73k, False: 0]
  ------------------
22616|  4.73k|            {
22617|  4.73k|                byte_swap(number);
22618|  4.73k|            }
22619|  4.73k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  4.73k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.73k|            accepted = emit_ubjson_number(number);
22625|  4.73k|        }
22626|       |        // get_number() does not change current
22627|    631|        ia.bulk_skip(read * size);
22628|    631|        chars_read = start + (read * size);
22629|    631|        remaining -= read;
22630|    631|        return accepted;
22631|  1.22k|    }
_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_EEE18emit_ubjson_numberIsTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22661|  4.73k|    {
22662|  4.73k|        return emit_signed(number);
22663|  4.73k|    }
_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_EEE22parse_ubjson_typed_runIiEEbRm:
22598|  1.29k|    {
22599|  1.29k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.29k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.29k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 618, False: 676]
  ------------------
22602|    618|        {
22603|    618|            return true;
22604|    618|        }
22605|    676|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    676|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    676|        const std::size_t start = chars_read;
22609|    676|        std::size_t read = 0;
22610|    676|        bool accepted = true;
22611|  2.98k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 2.30k, False: 676]
  |  Branch (22611:32): [True: 2.30k, False: 0]
  ------------------
22612|  2.30k|        {
22613|  2.30k|            NumberType number{};
22614|  2.30k|            std::memcpy(&number, data + (read * size), size);
22615|  2.30k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 2.30k, False: 0]
  ------------------
22616|  2.30k|            {
22617|  2.30k|                byte_swap(number);
22618|  2.30k|            }
22619|  2.30k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  2.30k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  2.30k|            accepted = emit_ubjson_number(number);
22625|  2.30k|        }
22626|       |        // get_number() does not change current
22627|    676|        ia.bulk_skip(read * size);
22628|    676|        chars_read = start + (read * size);
22629|    676|        remaining -= read;
22630|    676|        return accepted;
22631|  1.29k|    }
_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_EEE18emit_ubjson_numberIiTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22661|  2.30k|    {
22662|  2.30k|        return emit_signed(number);
22663|  2.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_EEE22parse_ubjson_typed_runIlEEbRm:
22598|  1.13k|    {
22599|  1.13k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.13k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.13k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 657, False: 477]
  ------------------
22602|    657|        {
22603|    657|            return true;
22604|    657|        }
22605|    477|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    477|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    477|        const std::size_t start = chars_read;
22609|    477|        std::size_t read = 0;
22610|    477|        bool accepted = true;
22611|  2.20k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.73k, False: 477]
  |  Branch (22611:32): [True: 1.73k, False: 0]
  ------------------
22612|  1.73k|        {
22613|  1.73k|            NumberType number{};
22614|  1.73k|            std::memcpy(&number, data + (read * size), size);
22615|  1.73k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 1.73k, False: 0]
  ------------------
22616|  1.73k|            {
22617|  1.73k|                byte_swap(number);
22618|  1.73k|            }
22619|  1.73k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  1.73k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.73k|            accepted = emit_ubjson_number(number);
22625|  1.73k|        }
22626|       |        // get_number() does not change current
22627|    477|        ia.bulk_skip(read * size);
22628|    477|        chars_read = start + (read * size);
22629|    477|        remaining -= read;
22630|    477|        return accepted;
22631|  1.13k|    }
_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_EEE18emit_ubjson_numberIlTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22661|  1.73k|    {
22662|  1.73k|        return emit_signed(number);
22663|  1.73k|    }
_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_EEE22parse_ubjson_typed_runIfEEbRm:
22598|  1.19k|    {
22599|  1.19k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.19k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.19k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 600, False: 594]
  ------------------
22602|    600|        {
22603|    600|            return true;
22604|    600|        }
22605|    594|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    594|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    594|        const std::size_t start = chars_read;
22609|    594|        std::size_t read = 0;
22610|    594|        bool accepted = true;
22611|  6.46k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 5.86k, False: 594]
  |  Branch (22611:32): [True: 5.86k, False: 0]
  ------------------
22612|  5.86k|        {
22613|  5.86k|            NumberType number{};
22614|  5.86k|            std::memcpy(&number, data + (read * size), size);
22615|  5.86k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 5.86k, False: 0]
  ------------------
22616|  5.86k|            {
22617|  5.86k|                byte_swap(number);
22618|  5.86k|            }
22619|  5.86k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  5.86k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  5.86k|            accepted = emit_ubjson_number(number);
22625|  5.86k|        }
22626|       |        // get_number() does not change current
22627|    594|        ia.bulk_skip(read * size);
22628|    594|        chars_read = start + (read * size);
22629|    594|        remaining -= read;
22630|    594|        return accepted;
22631|  1.19k|    }
_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_EEE18emit_ubjson_numberIfTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSQ_:
22655|  5.86k|    {
22656|  5.86k|        return emit_float(number);
22657|  5.86k|    }
_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_EEE22parse_ubjson_typed_runIdEEbRm:
22598|    942|    {
22599|    942|        constexpr std::size_t size = sizeof(NumberType);
22600|    942|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    942|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 558, False: 384]
  ------------------
22602|    558|        {
22603|    558|            return true;
22604|    558|        }
22605|    384|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    384|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    384|        const std::size_t start = chars_read;
22609|    384|        std::size_t read = 0;
22610|    384|        bool accepted = true;
22611|  3.70k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 3.32k, False: 384]
  |  Branch (22611:32): [True: 3.32k, False: 0]
  ------------------
22612|  3.32k|        {
22613|  3.32k|            NumberType number{};
22614|  3.32k|            std::memcpy(&number, data + (read * size), size);
22615|  3.32k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 3.32k, False: 0]
  ------------------
22616|  3.32k|            {
22617|  3.32k|                byte_swap(number);
22618|  3.32k|            }
22619|  3.32k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  3.32k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  3.32k|            accepted = emit_ubjson_number(number);
22625|  3.32k|        }
22626|       |        // get_number() does not change current
22627|    384|        ia.bulk_skip(read * size);
22628|    384|        chars_read = start + (read * size);
22629|    384|        remaining -= read;
22630|    384|        return accepted;
22631|    942|    }
_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_EEE18emit_ubjson_numberIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSQ_:
22655|  3.32k|    {
22656|  3.32k|        return emit_float(number);
22657|  3.32k|    }
_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_EEE25charge_valueless_elementsEm:
22686|  7.52k|    {
22687|       |        // limit = base + rate * chars_read, saturating at the largest size_t
22688|       |        // instead of wrapping around, which would make a huge rate or input
22689|       |        // reject everything. valueless_elements never exceeds the limit of an
22690|       |        // earlier call, and the limit does not decrease, so the difference
22691|       |        // below cannot underflow.
22692|  7.52k|        const std::size_t limit = chars_read <= valueless_elements_saturation_chars
  ------------------
  |  Branch (22692:35): [True: 7.52k, False: 0]
  ------------------
22693|  7.52k|                                  ? valueless_elements_base + (valueless_elements_per_byte * chars_read)
22694|  7.52k|                                  : (std::numeric_limits<std::size_t>::max)();
22695|  7.52k|        if (JSON_HEDLEY_UNLIKELY(count > limit - valueless_elements))
  ------------------
  |  | 1697|  7.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 54, False: 7.46k]
  |  |  ------------------
  ------------------
22696|     54|        {
22697|     54|            return false;
22698|     54|        }
22699|  7.46k|        valueless_elements += count;
22700|  7.46k|        return true;
22701|  7.52k|    }
_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_EEE17get_ubjson_objectEv:
22820|  47.8k|    {
22821|  47.8k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  47.8k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  47.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 13, False: 47.8k]
  |  |  ------------------
  ------------------
22823|     13|        {
22824|     13|            return false;
22825|     13|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  47.8k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 0, False: 47.8k]
  ------------------
22829|      0|        {
22830|      0|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      0|        }
22832|       |
22833|  47.8k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 14.3k, False: 33.5k]
  ------------------
22834|  14.3k|        {
22835|  14.3k|            return enter_object(size_and_type.first, size_and_type.second);
22836|  14.3k|        }
22837|       |
22838|  33.5k|        return enter_object(detail::unknown_size());
22839|  47.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_EEE17get_ubjson_stringERSC_bPKc:
21943|   109k|    {
21944|   109k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 52.5k, False: 57.3k]
  ------------------
21945|  52.5k|        {
21946|       |            // no get_ignore_noop() here: the byte read next must be a string
21947|       |            // length type specification, and a no-op ('N') is not valid in
21948|       |            // that position. No-ops at positions where a value may appear are
21949|       |            // already consumed by the callers via get_ignore_noop().
21950|  52.5k|            get();
21951|  52.5k|        }
21952|       |
21953|   109k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|   109k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 297, False: 109k]
  |  |  ------------------
  ------------------
21954|    297|        {
21955|    297|            return false;
21956|    297|        }
21957|       |
21958|   109k|        switch (current)
21959|   109k|        {
21960|  52.8k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 52.8k, False: 56.8k]
  ------------------
21961|  52.8k|            {
21962|  52.8k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  50.0k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 50.0k, False: 59.6k]
  ------------------
21966|  50.0k|            {
21967|  50.0k|                std::int8_t len{};
21968|  50.0k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 49.9k, False: 12]
  |  Branch (21968:43): [True: 49.9k, False: 9]
  |  Branch (21968:78): [True: 49.8k, False: 126]
  |  Branch (21968:105): [True: 49.8k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|  2.63k|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 2.63k, False: 107k]
  ------------------
21972|  2.63k|            {
21973|  2.63k|                std::int16_t len{};
21974|  2.63k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 2.61k, False: 21]
  |  Branch (21974:43): [True: 2.59k, False: 12]
  |  Branch (21974:78): [True: 2.42k, False: 174]
  |  Branch (21974:105): [True: 2.42k, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|  1.60k|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 1.60k, False: 108k]
  ------------------
21978|  1.60k|            {
21979|  1.60k|                std::int32_t len{};
21980|  1.60k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 1.57k, False: 27]
  |  Branch (21980:43): [True: 1.47k, False: 99]
  |  Branch (21980:78): [True: 1.20k, False: 270]
  |  Branch (21980:105): [True: 1.20k, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|  1.78k|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 1.78k, False: 107k]
  ------------------
21984|  1.78k|            {
21985|  1.78k|                std::int64_t len{};
21986|  1.78k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 1.74k, False: 39]
  |  Branch (21986:43): [True: 1.53k, False: 207]
  |  Branch (21986:78): [True: 1.07k, False: 462]
  |  Branch (21986:105): [True: 1.07k, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|      3|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 3, False: 109k]
  ------------------
21990|      3|            {
21991|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 3, False: 0]
  ------------------
21992|      3|                {
21993|      3|                    break;
21994|      3|                }
21995|      0|                return get_string_with_length<std::uint16_t>(result, context);
21996|      3|            }
21997|       |
21998|      6|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 6, False: 109k]
  ------------------
21999|      6|            {
22000|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 6, False: 0]
  ------------------
22001|      6|                {
22002|      6|                    break;
22003|      6|                }
22004|      0|                return get_string_with_length<std::uint32_t>(result, context);
22005|      6|            }
22006|       |
22007|      3|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 3, False: 109k]
  ------------------
22008|      3|            {
22009|      3|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 3, False: 0]
  ------------------
22010|      3|                {
22011|      3|                    break;
22012|      3|                }
22013|      0|                return get_string_with_length<std::uint64_t>(result, context);
22014|      3|            }
22015|       |
22016|    231|            default:
  ------------------
  |  Branch (22016:13): [True: 231, False: 109k]
  ------------------
22017|    231|                break;
22018|   109k|        }
22019|    243|        return length_type_error("", "string");
22020|   109k|    }
_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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  49.9k|    {
21921|  49.9k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  49.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 49.9k]
  |  |  ------------------
  ------------------
21922|      9|        {
21923|      9|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      9|        }
21925|  49.9k|        return true;
21926|  49.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_EEE10get_stringIaEEbT_RSC_:
23767|  49.9k|    {
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|  49.9k|        return get_bytes(len, "string", result);
23778|  49.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_EEE9get_bytesIaSC_EEbT_PKcRT0_:
23893|  49.9k|    {
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|  49.9k|        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|  49.9k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 36.7k, False: 13.2k]
  ------------------
23898|  36.7k|        {
23899|  36.7k|            return true;
23900|  36.7k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  13.2k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  13.2k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 126, False: 13.1k]
  ------------------
23906|    126|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    126|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 126, False: 0]
  ------------------
23910|    126|                                       ? static_cast<std::size_t>(len)
23911|    126|                                       : chunk_size;
23912|    126|            const std::size_t old_size = result.size();
23913|    126|            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|    126|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    126|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 126, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    126|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    126|            chars_read += bytes_read;
23921|    126|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    126|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 126, False: 0]
  |  |  ------------------
  ------------------
23922|    126|            {
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|    126|                result.resize(old_size + bytes_read);
23927|    126|                ++chars_read;
23928|    126|                current = char_traits<char_type>::eof();
23929|    126|                return unexpect_eof(context);
23930|    126|            }
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|  13.1k|        return true;
23936|  13.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_EEE17append_from_blockIaEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  49.9k|    {
23943|  49.9k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 13.1k, False: 36.8k]
  ------------------
23944|  13.1k|        {
23945|  13.1k|            return false;
23946|  13.1k|        }
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|  36.8k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  36.8k|        const std::size_t remaining = ia.bulk_remaining();
23951|  36.8k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 126, False: 36.7k]
  ------------------
23952|    126|        {
23953|    126|            return false; // (the loop reports the premature end)
23954|    126|        }
23955|  36.7k|        const auto n = static_cast<std::size_t>(ulen);
23956|  36.7k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  36.7k|        ia.bulk_skip(n);
23958|  36.7k|        chars_read += n;
23959|  36.7k|        return true;
23960|  36.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_EEE26check_ubjson_string_lengthIsEEbT_:
21920|  2.61k|    {
21921|  2.61k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.61k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 2.59k]
  |  |  ------------------
  ------------------
21922|     12|        {
21923|     12|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     12|        }
21925|  2.59k|        return true;
21926|  2.61k|    }
_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_stringIsEEbT_RSC_:
23767|  2.59k|    {
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.59k|        return get_bytes(len, "string", result);
23778|  2.59k|    }
_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_bytesIsSC_EEbT_PKcRT0_:
23893|  2.59k|    {
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.59k|        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.59k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 1.49k, False: 1.10k]
  ------------------
23898|  1.49k|        {
23899|  1.49k|            return true;
23900|  1.49k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.10k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.10k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 174, False: 930]
  ------------------
23906|    174|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    174|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 132, False: 42]
  ------------------
23910|    174|                                       ? static_cast<std::size_t>(len)
23911|    174|                                       : chunk_size;
23912|    174|            const std::size_t old_size = result.size();
23913|    174|            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|    174|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    174|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 174, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    174|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    174|            chars_read += bytes_read;
23921|    174|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    174|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 174, False: 0]
  |  |  ------------------
  ------------------
23922|    174|            {
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|    174|                result.resize(old_size + bytes_read);
23927|    174|                ++chars_read;
23928|    174|                current = char_traits<char_type>::eof();
23929|    174|                return unexpect_eof(context);
23930|    174|            }
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|    930|        return true;
23936|  1.10k|    }
_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_blockIsEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.59k|    {
23943|  2.59k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 930, False: 1.66k]
  ------------------
23944|    930|        {
23945|    930|            return false;
23946|    930|        }
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|  1.66k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.66k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.66k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 174, False: 1.49k]
  ------------------
23952|    174|        {
23953|    174|            return false; // (the loop reports the premature end)
23954|    174|        }
23955|  1.49k|        const auto n = static_cast<std::size_t>(ulen);
23956|  1.49k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  1.49k|        ia.bulk_skip(n);
23958|  1.49k|        chars_read += n;
23959|  1.49k|        return true;
23960|  1.66k|    }
_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_EEE26check_ubjson_string_lengthIiEEbT_:
21920|  1.57k|    {
21921|  1.57k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  1.57k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 1.47k]
  |  |  ------------------
  ------------------
21922|     99|        {
21923|     99|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     99|        }
21925|  1.47k|        return true;
21926|  1.57k|    }
_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_EEE26check_ubjson_string_lengthIlEEbT_:
21920|  1.74k|    {
21921|  1.74k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  1.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 207, False: 1.53k]
  |  |  ------------------
  ------------------
21922|    207|        {
21923|    207|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|    207|        }
21925|  1.53k|        return true;
21926|  1.74k|    }
_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_stringIlEEbT_RSC_:
23767|  1.53k|    {
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|  1.53k|        return get_bytes(len, "string", result);
23778|  1.53k|    }
_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_bytesIlSC_EEbT_PKcRT0_:
23893|  1.53k|    {
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|  1.53k|        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|  1.53k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 474, False: 1.06k]
  ------------------
23898|    474|        {
23899|    474|            return true;
23900|    474|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.06k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.06k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 462, False: 603]
  ------------------
23906|    462|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    462|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 114, False: 348]
  ------------------
23910|    462|                                       ? static_cast<std::size_t>(len)
23911|    462|                                       : chunk_size;
23912|    462|            const std::size_t old_size = result.size();
23913|    462|            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|    462|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    462|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 462, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    462|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    462|            chars_read += bytes_read;
23921|    462|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    462|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 462, False: 0]
  |  |  ------------------
  ------------------
23922|    462|            {
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|    462|                result.resize(old_size + bytes_read);
23927|    462|                ++chars_read;
23928|    462|                current = char_traits<char_type>::eof();
23929|    462|                return unexpect_eof(context);
23930|    462|            }
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|    603|        return true;
23936|  1.06k|    }
_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_blockIlEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  1.53k|    {
23943|  1.53k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 603, False: 936]
  ------------------
23944|    603|        {
23945|    603|            return false;
23946|    603|        }
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|    936|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    936|        const std::size_t remaining = ia.bulk_remaining();
23951|    936|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 462, False: 474]
  ------------------
23952|    462|        {
23953|    462|            return false; // (the loop reports the premature end)
23954|    462|        }
23955|    474|        const auto n = static_cast<std::size_t>(ulen);
23956|    474|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    474|        ia.bulk_skip(n);
23958|    474|        chars_read += n;
23959|    474|        return true;
23960|    936|    }
_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|  2.27k|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|  2.27k|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|  2.27k|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 1.72k, False: 549]
  ------------------
24059|  2.27k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRKS9_RPKcRA16_SC_S9_EEET_DpOT0_:
 5537|  1.09k|{
 5538|  1.09k|    OutStringType str;
 5539|  1.09k|    str.reserve(concat_length(args...));
 5540|  1.09k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.09k|    return str;
 5542|  1.09k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJPKcA16_cS9_EEEmRKT_DpRKT0_:
 5447|  1.09k|{
 5448|  1.09k|    return str.size() + concat_length(rest...);
 5449|  1.09k|}
_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|  1.09k|{
 5501|  1.09k|    out.append(std::forward<Arg>(arg));
 5502|  1.09k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.09k|}
_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_ignore_noopEv:
23522|   254M|    {
23523|   254M|        do
23524|   254M|        {
23525|   254M|            get();
23526|   254M|        }
23527|   254M|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 19.1k, False: 254M]
  ------------------
23528|       |
23529|   254M|        return current;
23530|   254M|    }
_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|   255M|    {
23489|   255M|        ++chars_read;
23490|   255M|        return current = ia.get_character();
23491|   255M|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E13get_characterEv:
10272|   255M|    {
10273|   255M|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   255M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 255M, False: 41.3k]
  |  |  ------------------
  ------------------
10274|   255M|        {
10275|   255M|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   255M|            std::advance(current, 1);
10277|   255M|            return result;
10278|   255M|        }
10279|       |
10280|  41.3k|        ++eof_reads;
10281|  41.3k|        return char_traits<char_type>::eof();
10282|   255M|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE11to_int_typeEh:
 4453|   255M|    {
 4454|   255M|        return static_cast<int_type>(c);
 4455|   255M|    }
_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|  53.7k|        {
19135|  53.7k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 53.7k, False: 0]
  ------------------
19136|  53.7k|            {
19137|  53.7k|                parser->set_reserve_state(saved);
19138|  53.7k|            }
19139|  53.7k|        }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17set_reserve_stateERKNS2_13reserve_stateE:
16673|  89.4k|    {
16674|  89.4k|        input_position = state.position;
16675|  89.4k|        credit_position = state.position_at_refill;
16676|  89.4k|        reserve_credit = state.credit;
16677|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ENS0_6detail7value_tE:
42516|   557k|        : m_data(stored_kind(v))
42517|   557k|    {
42518|   557k|        assert_invariant();
42519|   557k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11stored_kindENS0_6detail7value_tE:
40726|   557k|    {
40727|   557k|        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: 557k]
  |  Branch (40727:77): [True: 0, False: 0]
  ------------------
40728|   557k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2ENS0_6detail7value_tE:
46514|   557k|            : m_type(v), m_value(v)
46515|   557k|        {
46516|   557k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ENS0_6detail7value_tE:
40813|   557k|        {
40814|   557k|            switch (t)
40815|   557k|            {
40816|  79.1k|                case value_t::object:
  ------------------
  |  Branch (40816:17): [True: 79.1k, False: 478k]
  ------------------
40817|   551k|                case value_t::array:
  ------------------
  |  Branch (40817:17): [True: 472k, False: 85.0k]
  ------------------
40818|   551k|                case value_t::string:
  ------------------
  |  Branch (40818:17): [True: 0, False: 557k]
  ------------------
40819|   551k|                case value_t::binary:
  ------------------
  |  Branch (40819:17): [True: 0, False: 557k]
  ------------------
40820|   551k|                {
40821|       |                    // allocating: kept out of line, so the scalar cases below inline
40822|   551k|                    init_owned(t);
40823|   551k|                    break;
40824|   551k|                }
40825|       |
40826|      0|                case value_t::boolean:
  ------------------
  |  Branch (40826:17): [True: 0, False: 557k]
  ------------------
40827|      0|                {
40828|      0|                    boolean = static_cast<boolean_t>(false);
40829|      0|                    break;
40830|   551k|                }
40831|       |
40832|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40832:17): [True: 0, False: 557k]
  ------------------
40833|      0|                {
40834|      0|                    number_integer = static_cast<number_integer_t>(0);
40835|      0|                    break;
40836|   551k|                }
40837|       |
40838|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40838:17): [True: 0, False: 557k]
  ------------------
40839|      0|                {
40840|      0|                    number_unsigned = static_cast<number_unsigned_t>(0);
40841|      0|                    break;
40842|   551k|                }
40843|       |
40844|      0|                case value_t::number_float:
  ------------------
  |  Branch (40844:17): [True: 0, False: 557k]
  ------------------
40845|      0|                {
40846|      0|                    number_float = static_cast<number_float_t>(0.0);
40847|      0|                    break;
40848|   551k|                }
40849|       |
40850|      0|                case value_t::null:
  ------------------
  |  Branch (40850:17): [True: 0, False: 557k]
  ------------------
40851|      0|                {
40852|      0|                    object = nullptr;  // silence warning, see #821
40853|      0|                    break;
40854|   551k|                }
40855|       |
40856|  5.84k|                case value_t::discarded:
  ------------------
  |  Branch (40856:17): [True: 5.84k, False: 551k]
  ------------------
40857|  5.84k|                default:
  ------------------
  |  Branch (40857:17): [True: 0, False: 557k]
  ------------------
40858|  5.84k|                {
40859|  5.84k|                    object = nullptr;  // silence warning, see #821
40860|  5.84k|                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
  ------------------
  |  | 1697|  5.84k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.84k]
  |  |  ------------------
  ------------------
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|  5.84k|                    break;
40865|  5.84k|                }
40866|   557k|            }
40867|   557k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value10init_ownedENS0_6detail7value_tE:
40871|   551k|        {
40872|   551k|            switch (t)
40873|   551k|            {
40874|  79.1k|                case value_t::object:
  ------------------
  |  Branch (40874:17): [True: 79.1k, False: 472k]
  ------------------
40875|  79.1k|                    object = create<object_t>();
40876|  79.1k|                    break;
40877|   472k|                case value_t::array:
  ------------------
  |  Branch (40877:17): [True: 472k, False: 79.1k]
  ------------------
40878|   472k|                    array = create<array_t>();
40879|   472k|                    break;
40880|      0|                case value_t::string:
  ------------------
  |  Branch (40880:17): [True: 0, False: 551k]
  ------------------
40881|      0|                    string = create<string_t>("");
40882|      0|                    break;
40883|      0|                case value_t::binary:
  ------------------
  |  Branch (40883:17): [True: 0, False: 551k]
  ------------------
40884|      0|                    binary = create<binary_t>();
40885|      0|                    break;
40886|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (40886:17): [True: 0, False: 551k]
  ------------------
40887|      0|                case value_t::boolean:
  ------------------
  |  Branch (40887:17): [True: 0, False: 551k]
  ------------------
40888|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40888:17): [True: 0, False: 551k]
  ------------------
40889|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40889:17): [True: 0, False: 551k]
  ------------------
40890|      0|                case value_t::number_float:
  ------------------
  |  Branch (40890:17): [True: 0, False: 551k]
  ------------------
40891|      0|                case value_t::discarded:
  ------------------
  |  Branch (40891:17): [True: 0, False: 551k]
  ------------------
40892|      0|                default:
  ------------------
  |  Branch (40892:17): [True: 0, False: 551k]
  ------------------
40893|      0|                    break; // LCOV_EXCL_LINE
40894|   551k|            }
40895|   551k|        }
_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|  79.1k|    {
40735|  79.1k|        AllocatorType<T> alloc;
40736|  79.1k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  79.1k|        auto deleter = [&](T * obj)
40739|  79.1k|        {
40740|  79.1k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  79.1k|        };
40742|  79.1k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  79.1k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  79.1k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  79.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 79.1k, False: 0]
  ------------------
40745|  79.1k|        return obj.release();
40746|  79.1k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS4_ISE_NS8_ISE_EEEEJEEEPT_DpOT0_:
40734|   472k|    {
40735|   472k|        AllocatorType<T> alloc;
40736|   472k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|   472k|        auto deleter = [&](T * obj)
40739|   472k|        {
40740|   472k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|   472k|        };
40742|   472k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|   472k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|   472k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|   472k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 472k, False: 0]
  ------------------
40745|   472k|        return obj.release();
40746|   472k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEaSESE_:
42928|   219k|    {
42929|       |        // check that the passed value is valid
42930|   219k|        other.assert_invariant();
42931|       |
42932|   219k|        using std::swap;
42933|   219k|        swap(m_data.m_type, other.m_data.m_type);
42934|   219k|        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|   219k|        json_base_class_t::operator=(std::move(other));
42942|       |
42943|   219k|        set_parents();
42944|   219k|        assert_invariant();
42945|   219k|        return *this;
42946|   219k|    }
_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|  53.7k|    ~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|  53.7k|    ~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|  41.8k|{
10853|  41.8k|    return input_adapter(container.data(), container.data() + container.size());
10854|  41.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterIPKhS4_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES6_S7_:
10755|  53.7k|{
10756|  53.7k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  53.7k|    return factory_type::create(first, last);
10758|  53.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryIPKhS4_vE6createES4_S4_:
10617|  53.7k|    {
10618|  53.7k|        return adapter_type(std::move(first), std::move(last));
10619|  53.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_EC2ES4_S4_:
10268|  53.7k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  53.7k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9to_ubjsonERKSE_bbNS0_6detail15error_handler_tE:
46662|  36.2k|    {
46663|  36.2k|        return to_binary_vector(j, error_handler, [&](vector_binary_writer<std::uint8_t>& w)
46664|  36.2k|        {
46665|  36.2k|            w.write_ubjson(j, use_size, use_type);
46666|  36.2k|        });
46667|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16to_binary_vectorIZNSE_9to_ubjsonERKSE_bbNS0_6detail15error_handler_tEEUlRNSI_13binary_writerISE_hNSI_18output_vector_sinkIhSC_EEEEE_EESD_SH_SJ_T_:
43400|  36.2k|    {
43401|  36.2k|        std::vector<std::uint8_t> result;
43402|  36.2k|        result.reserve(detail::binary_initial_capacity(j));
43403|  36.2k|        {
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|  36.2k|            auto writer = vector_writer(result, error_handler);
43407|  36.2k|            write(writer);
43408|  36.2k|        }
43409|  36.2k|        return result;
43410|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23binary_initial_capacityINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30426|  36.2k|{
30427|  36.2k|    return (std::max)(binary_reserve_hint(j), min_vector_sink_capacity);
30428|  36.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail19binary_reserve_hintINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30401|  36.2k|{
30402|  36.2k|    if (j.is_array())
  ------------------
  |  Branch (30402:9): [True: 14.3k, False: 21.9k]
  ------------------
30403|  14.3k|    {
30404|  14.3k|        return j.size() + 1;
30405|  14.3k|    }
30406|       |
30407|  21.9k|    if (j.is_object())
  ------------------
  |  Branch (30407:9): [True: 4.24k, False: 17.6k]
  ------------------
30408|  4.24k|    {
30409|  4.24k|        return (j.size() * 2) + 1;
30410|  4.24k|    }
30411|       |
30412|  17.6k|    return 0;
30413|  21.9k|}
_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|  36.2k|    {
40417|  36.2k|        return vector_binary_writer<CharType>(::nlohmann::detail::output_vector_sink<CharType>(v), error_handler);
40418|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2ERNS3_6vectorIhS5_EE:
29861|  36.2k|        : v(&vec), cursor(vec.data() + vec.size()), limit(cursor)
29862|  36.2k|    {}
_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|  36.2k|        : oa(std::move(sink)), error_handler(error_handler_)
30459|  36.2k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2EOS6_:
29869|  36.2k|        : v(other.v), cursor(other.cursor), limit(other.limit)
29870|  36.2k|    {
29871|  36.2k|        other.v = nullptr;
29872|  36.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEED2Ev:
29875|  72.4k|    {
29876|  72.4k|        if (v != nullptr)
  ------------------
  |  Branch (29876:13): [True: 36.2k, False: 36.2k]
  ------------------
29877|  36.2k|        {
29878|  36.2k|            v->resize(position());
29879|  36.2k|        }
29880|  72.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE8positionEv:
29978|   109k|    {
29979|   109k|        return static_cast<std::size_t>(cursor - v->data());
29980|   109k|    }
_ZZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9to_ubjsonERKSE_bbNS0_6detail15error_handler_tEENKUlRNSH_13binary_writerISE_hNSH_18output_vector_sinkIhSC_EEEEE_clESN_:
46664|  36.2k|        {
46665|  36.2k|            w.write_ubjson(j, use_size, use_type);
46666|  36.2k|        });
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_ubjsonERKSG_bbbbNS1_16bjdata_version_tEm:
30902|   727M|    {
30903|   727M|        if (JSON_HEDLEY_UNLIKELY(depth >= recursion_depth_limit()) && (j.is_array() || j.is_object()))
  ------------------
  |  | 1697|  1.45G|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9.64k, False: 727M]
  |  |  ------------------
  ------------------
  |  Branch (30903:72): [True: 3.00k, False: 6.63k]
  |  Branch (30903:88): [True: 438, False: 6.19k]
  ------------------
30904|  3.44k|        {
30905|  3.44k|            write_ubjson_iterative(j, use_count, use_type, add_prefix, use_bjdata, bjdata_version);
30906|  3.44k|            return;
30907|  3.44k|        }
30908|       |
30909|   727M|        const bool bjdata_draft3 = use_bjdata && bjdata_version == bjdata_version_t::draft3;
  ------------------
  |  Branch (30909:36): [True: 0, False: 727M]
  |  Branch (30909:50): [True: 0, False: 0]
  ------------------
30910|       |
30911|   727M|        switch (j.type())
30912|   727M|        {
30913|   332M|            case value_t::null:
  ------------------
  |  Branch (30913:13): [True: 332M, False: 395M]
  ------------------
30914|   332M|            {
30915|   332M|                if (add_prefix)
  ------------------
  |  Branch (30915:21): [True: 227M, False: 105M]
  ------------------
30916|   227M|                {
30917|   227M|                    oa.write_character(to_char_type('Z'));
30918|   227M|                }
30919|   332M|                break;
30920|      0|            }
30921|       |
30922|   395M|            case value_t::boolean:
  ------------------
  |  Branch (30922:13): [True: 395M, False: 332M]
  ------------------
30923|   395M|            {
30924|   395M|                if (add_prefix)
  ------------------
  |  Branch (30924:21): [True: 280M, False: 115M]
  ------------------
30925|   280M|                {
30926|   280M|                    oa.write_character(j.m_data.m_value.boolean
  ------------------
  |  Branch (30926:40): [True: 33.8M, False: 246M]
  ------------------
30927|   280M|                                       ? to_char_type('T')
30928|   280M|                                       : to_char_type('F'));
30929|   280M|                }
30930|   395M|                break;
30931|      0|            }
30932|       |
30933|  19.6k|            case value_t::number_integer:
  ------------------
  |  Branch (30933:13): [True: 19.6k, False: 727M]
  ------------------
30934|  29.5k|            case value_t::number_unsigned:
  ------------------
  |  Branch (30934:13): [True: 9.87k, False: 727M]
  ------------------
30935|  29.5k|            {
30936|  29.5k|                if (j.m_data.m_type == value_t::number_integer)
  ------------------
  |  Branch (30936:21): [True: 19.6k, False: 9.87k]
  ------------------
30937|  19.6k|                {
30938|  19.6k|                    write_number_with_ubjson_prefix(j.m_data.m_value.number_integer, add_prefix, use_bjdata);
30939|  19.6k|                }
30940|  9.87k|                else
30941|  9.87k|                {
30942|  9.87k|                    write_number_with_ubjson_prefix(j.m_data.m_value.number_unsigned, add_prefix, use_bjdata);
30943|  9.87k|                }
30944|  29.5k|                break;
30945|  19.6k|            }
30946|       |
30947|  14.3k|            case value_t::number_float:
  ------------------
  |  Branch (30947:13): [True: 14.3k, False: 727M]
  ------------------
30948|  14.3k|            {
30949|  14.3k|                write_number_with_ubjson_prefix(j.m_data.m_value.number_float, add_prefix, use_bjdata);
30950|  14.3k|                break;
30951|  19.6k|            }
30952|       |
30953|  31.1k|            case value_t::string:
  ------------------
  |  Branch (30953:13): [True: 31.1k, False: 727M]
  ------------------
30954|  31.1k|            {
30955|  31.1k|                write_ubjson_text(*j.m_data.m_value.string, j, add_prefix, use_bjdata);
30956|  31.1k|                break;
30957|  19.6k|            }
30958|       |
30959|   164k|            case value_t::array:
  ------------------
  |  Branch (30959:13): [True: 164k, False: 727M]
  ------------------
30960|   164k|            {
30961|   164k|                bool prefix_required = true;
30962|   164k|                const bool write_closer = write_ubjson_start_container<true>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
30963|       |
30964|   164k|                {
30965|   164k|                    const auto& array = *j.m_data.m_value.array;
30966|   164k|                    if (starts_with_ubjson_number(array, use_bjdata, std::integral_constant<bool, ubjson_integers_fit_64_bits()>()))
  ------------------
  |  Branch (30966:25): [True: 10.3k, False: 153k]
  ------------------
30967|  10.3k|                    {
30968|  10.3k|                        write_ubjson_array_elements(array, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth);
30969|  10.3k|                    }
30970|   153k|                    else
30971|   153k|                    {
30972|   153k|                        for (const auto& el : array)
  ------------------
  |  Branch (30972:45): [True: 726M, False: 153k]
  ------------------
30973|   726M|                        {
30974|   726M|                            write_ubjson(el, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
30975|   726M|                        }
30976|   153k|                    }
30977|   164k|                }
30978|       |
30979|   164k|                if (write_closer)
  ------------------
  |  Branch (30979:21): [True: 54.7k, False: 109k]
  ------------------
30980|  54.7k|                {
30981|  54.7k|                    oa.write_character(to_char_type(']'));
30982|  54.7k|                }
30983|       |
30984|   164k|                break;
30985|  19.6k|            }
30986|       |
30987|      0|            case value_t::binary:
  ------------------
  |  Branch (30987:13): [True: 0, False: 727M]
  ------------------
30988|      0|            {
30989|      0|                if (add_prefix)
  ------------------
  |  Branch (30989:21): [True: 0, False: 0]
  ------------------
30990|      0|                {
30991|      0|                    oa.write_character(to_char_type('['));
30992|      0|                }
30993|       |
30994|      0|                if (use_type && (bjdata_draft3 || !j.m_data.m_value.binary->empty()))
  ------------------
  |  Branch (30994:21): [True: 0, False: 0]
  |  Branch (30994:34): [True: 0, False: 0]
  |  Branch (30994:51): [True: 0, False: 0]
  ------------------
30995|      0|                {
30996|      0|                    if (!use_count)
  ------------------
  |  Branch (30996:25): [True: 0, False: 0]
  ------------------
30997|      0|                    {
30998|      0|                        throw_size_marker_required(j);
30999|      0|                    }
31000|      0|                    oa.write_character(to_char_type('$'));
31001|      0|                    oa.write_character(bjdata_draft3 ? 'B' : 'U');
  ------------------
  |  Branch (31001:40): [True: 0, False: 0]
  ------------------
31002|      0|                }
31003|       |
31004|      0|                if (use_count)
  ------------------
  |  Branch (31004:21): [True: 0, False: 0]
  ------------------
31005|      0|                {
31006|      0|                    oa.write_character(to_char_type('#'));
31007|      0|                    write_number_with_ubjson_prefix(j.m_data.m_value.binary->size(), true, use_bjdata);
31008|      0|                }
31009|       |
31010|      0|                if (use_type)
  ------------------
  |  Branch (31010:21): [True: 0, False: 0]
  ------------------
31011|      0|                {
31012|      0|                    write_bytes(j.m_data.m_value.binary->data(), j.m_data.m_value.binary->size());
31013|      0|                }
31014|      0|                else
31015|      0|                {
31016|      0|                    write_ubjson_binary_bytes(*j.m_data.m_value.binary, bjdata_draft3);
31017|      0|                }
31018|       |
31019|      0|                if (!use_count)
  ------------------
  |  Branch (31019:21): [True: 0, False: 0]
  ------------------
31020|      0|                {
31021|      0|                    oa.write_character(to_char_type(']'));
31022|      0|                }
31023|       |
31024|      0|                break;
31025|  19.6k|            }
31026|       |
31027|  30.8k|            case value_t::object:
  ------------------
  |  Branch (31027:13): [True: 30.8k, False: 727M]
  ------------------
31028|  30.8k|            {
31029|  30.8k|                if (use_bjdata && is_bjdata_ndarray(j))
  ------------------
  |  Branch (31029:21): [True: 0, False: 30.8k]
  |  Branch (31029:35): [True: 0, False: 0]
  ------------------
31030|      0|                {
31031|      0|                    if (!write_bjdata_ndarray(*j.m_data.m_value.object, use_count, use_type, bjdata_version))  // decode bjdata ndarray in the JData format (https://github.com/NeuroJSON/jdata)
  ------------------
  |  Branch (31031:25): [True: 0, False: 0]
  ------------------
31032|      0|                    {
31033|      0|                        break;
31034|      0|                    }
31035|      0|                }
31036|       |
31037|  30.8k|                bool prefix_required = true;
31038|  30.8k|                const bool write_closer = write_ubjson_start_container<false>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31039|       |
31040|  30.8k|                write_ubjson_members(j, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth);
31041|       |
31042|  30.8k|                if (write_closer)
  ------------------
  |  Branch (31042:21): [True: 10.2k, False: 20.5k]
  ------------------
31043|  10.2k|                {
31044|  10.2k|                    oa.write_character(to_char_type('}'));
31045|  10.2k|                }
31046|       |
31047|  30.8k|                break;
31048|  30.8k|            }
31049|       |
31050|      0|            case value_t::discarded:
  ------------------
  |  Branch (31050:13): [True: 0, False: 727M]
  ------------------
31051|      0|            default:
  ------------------
  |  Branch (31051:13): [True: 0, False: 727M]
  ------------------
31052|      0|                throw_on_discarded(j, use_bjdata ? input_format_t::bjdata : input_format_t::ubjson);
  ------------------
  |  Branch (31052:39): [True: 0, False: 0]
  ------------------
31053|   727M|        }
31054|   727M|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22write_ubjson_iterativeERKSG_bbbbNS1_16bjdata_version_tE:
31690|  3.44k|    {
31691|  3.44k|        std::vector<ubjson_frame> stack;
31692|  3.44k|        write_ubjson_value_or_push(root, add_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31693|       |
31694|   922k|        while (!stack.empty())
  ------------------
  |  Branch (31694:16): [True: 919k, False: 3.44k]
  ------------------
31695|   919k|        {
31696|   919k|            const ubjson_frame current = stack.back();
31697|   919k|            const BasicJsonType& j = *current.value;
31698|       |
31699|   919k|            if (j.is_array())
  ------------------
  |  Branch (31699:17): [True: 917k, False: 2.46k]
  ------------------
31700|   917k|            {
31701|   917k|                const auto& array = *j.m_data.m_value.array;
31702|   917k|                if (current.array_it == array.cend())
  ------------------
  |  Branch (31702:21): [True: 8.01k, False: 909k]
  ------------------
31703|  8.01k|                {
31704|  8.01k|                    if (!use_count)
  ------------------
  |  Branch (31704:25): [True: 2.67k, False: 5.34k]
  ------------------
31705|  2.67k|                    {
31706|  2.67k|                        oa.write_character(to_char_type(']'));
31707|  2.67k|                    }
31708|  8.01k|                    stack.pop_back();
31709|  8.01k|                    continue;
31710|  8.01k|                }
31711|       |
31712|   909k|                const BasicJsonType* child = &(*current.array_it);
31713|   909k|                const bool child_prefix = current.prefix_required;
31714|   909k|                ++stack.back().array_it;
31715|   909k|                write_ubjson_value_or_push(*child, child_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31716|   909k|            }
31717|  2.46k|            else
31718|  2.46k|            {
31719|  2.46k|                const auto& object = *j.m_data.m_value.object;
31720|  2.46k|                if (current.object_it == object.cend())
  ------------------
  |  Branch (31720:21): [True: 936, False: 1.53k]
  ------------------
31721|    936|                {
31722|    936|                    if (!use_count)
  ------------------
  |  Branch (31722:25): [True: 312, False: 624]
  ------------------
31723|    312|                    {
31724|    312|                        oa.write_character(to_char_type('}'));
31725|    312|                    }
31726|    936|                    stack.pop_back();
31727|    936|                    continue;
31728|    936|                }
31729|       |
31730|       |                // a converted key must outlive the reference returned by sanitize_utf8_for_write
31731|  1.53k|                const object_key_string_t key_string = current.object_it->first;
31732|  1.53k|                write_ubjson_text(key_string, j, false, use_bjdata);
31733|  1.53k|                const BasicJsonType* child = &(current.object_it->second);
31734|  1.53k|                const bool child_prefix = current.prefix_required;
31735|  1.53k|                ++stack.back().object_it;
31736|  1.53k|                write_ubjson_value_or_push(*child, child_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31737|  1.53k|            }
31738|   919k|        }
31739|  3.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_ubjson_value_or_pushERKSG_bbbbNS1_16bjdata_version_tERNS6_INSJ_12ubjson_frameENSA_ISN_EEEE:
31642|   914k|    {
31643|   914k|        if (!j.is_array() && !j.is_object())
  ------------------
  |  Branch (31643:13): [True: 901k, False: 12.0k]
  |  Branch (31643:30): [True: 899k, False: 2.11k]
  ------------------
31644|   899k|        {
31645|   899k|            write_ubjson(j, use_count, use_type, add_prefix, use_bjdata, bjdata_version);
31646|   899k|            return;
31647|   899k|        }
31648|       |
31649|  14.2k|        if (use_bjdata && j.is_object() && is_bjdata_ndarray(j)
  ------------------
  |  Branch (31649:13): [True: 0, False: 14.2k]
  |  Branch (31649:27): [True: 0, False: 0]
  |  Branch (31649:44): [True: 0, False: 0]
  ------------------
31650|      0|                && !write_bjdata_ndarray(*j.m_data.m_value.object, use_count, use_type, bjdata_version))
  ------------------
  |  Branch (31650:20): [True: 0, False: 0]
  ------------------
31651|      0|        {
31652|       |            // fully written as an ND-array: nothing below it to come back to
31653|      0|            return;
31654|      0|        }
31655|       |
31656|  14.2k|        const bool is_array = j.is_array();
31657|  14.2k|        bool prefix_required = true;
31658|  14.2k|        if (is_array)
  ------------------
  |  Branch (31658:13): [True: 12.0k, False: 2.11k]
  ------------------
31659|  12.0k|        {
31660|  12.0k|            write_ubjson_start_container<true>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31661|  12.0k|        }
31662|  2.11k|        else
31663|  2.11k|        {
31664|  2.11k|            write_ubjson_start_container<false>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31665|  2.11k|        }
31666|       |
31667|  14.2k|        const bool empty = is_array ? j.m_data.m_value.array->empty() : j.m_data.m_value.object->empty();
  ------------------
  |  Branch (31667:28): [True: 12.0k, False: 2.11k]
  ------------------
31668|  14.2k|        if (!empty)
  ------------------
  |  Branch (31668:13): [True: 8.94k, False: 5.26k]
  ------------------
31669|  8.94k|        {
31670|  8.94k|            stack.emplace_back(&j, prefix_required);
31671|  8.94k|            return;
31672|  8.94k|        }
31673|       |
31674|       |        // write_ubjson_start_container returns !use_count, i.e. whether a
31675|       |        // closer still has to be written; use_count is constant for the whole
31676|       |        // document, so that is recomputed here instead of being carried along
31677|  5.26k|        if (!use_count)
  ------------------
  |  Branch (31677:13): [True: 1.75k, False: 3.50k]
  ------------------
31678|  1.75k|        {
31679|  1.75k|            oa.write_character(to_char_type(is_array ? ']' : '}'));
  ------------------
  |  Branch (31679:45): [True: 1.36k, False: 392]
  ------------------
31680|  1.75k|        }
31681|  5.26k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12ubjson_frameC2EPKSG_b:
31610|  8.94k|            : binary_container_frame(value_)
31611|  8.94k|            , prefix_required(prefix_required_)
31612|  8.94k|        {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22binary_container_frameC2EPKSG_:
31315|  8.94k|            : value(value_)
31316|  8.94k|        {
31317|  8.94k|            if (value->is_object())
  ------------------
  |  Branch (31317:17): [True: 936, False: 8.01k]
  ------------------
31318|    936|            {
31319|    936|                object_it = value->m_data.m_value.object->cbegin();
31320|    936|            }
31321|  8.01k|            else
31322|  8.01k|            {
31323|  8.01k|                array_it = value->m_data.m_value.array->cbegin();
31324|  8.01k|            }
31325|  8.94k|        }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4typeEv:
42997|   970M|    {
42998|   970M|        return m_data.m_type;
42999|   970M|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE15write_characterEh:
29886|   507M|    {
29887|   507M|        if (JSON_HEDLEY_UNLIKELY(cursor == limit))
  ------------------
  |  | 1697|   507M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 56.4k, False: 507M]
  |  |  ------------------
  ------------------
29888|  56.4k|        {
29889|  56.4k|            grow(1);
29890|  56.4k|        }
29891|   507M|        *cursor++ = c;
29892|   507M|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE4growEm:
29993|  72.6k|    {
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|  72.6k|        const std::size_t written = position();
29998|  72.6k|        const std::size_t needed = written + length;
29999|  72.6k|        const std::size_t capacity = (std::max)(min_vector_sink_capacity, needed <= v->capacity()
  ------------------
  |  Branch (29999:75): [True: 41.5k, False: 31.0k]
  ------------------
30000|  72.6k|                                                ? v->capacity()
30001|  72.6k|                                                : (std::max)(needed, v->capacity() * 2));
30002|  72.6k|        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|  72.6k|        v->resize((std::min)(capacity, (std::max)(needed, written + vector_sink_window)));
30010|  72.6k|        cursor = v->data() + written;
30011|  72.6k|        limit = v->data() + v->size();
30012|  72.6k|    }
_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|   788M|    {
35773|   788M|        return x;
35774|   788M|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE31write_number_with_ubjson_prefixIlTnNS4_9enable_ifIXsr11is_integralIT_EE5valueEiE4typeELi0EEEvSM_bb:
33847|  26.0k|    {
33848|  26.0k|        const CharType prefix = ubjson_integer_prefix(n, use_bjdata);
33849|  26.0k|        if (add_prefix)
  ------------------
  |  Branch (33849:13): [True: 23.7k, False: 2.35k]
  ------------------
33850|  23.7k|        {
33851|  23.7k|            oa.write_character(prefix);
33852|  23.7k|        }
33853|  26.0k|        write_ubjson_integer_payload(prefix, n, use_bjdata);
33854|  26.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE21ubjson_integer_prefixIlEEhT_b:
34241|  37.7k|    {
34242|  37.7k|        if (value_in_range_of<std::int8_t>(n))
  ------------------
  |  Branch (34242:13): [True: 16.0k, False: 21.6k]
  ------------------
34243|  16.0k|        {
34244|  16.0k|            return 'i';
34245|  16.0k|        }
34246|  21.6k|        if (value_in_range_of<std::uint8_t>(n))
  ------------------
  |  Branch (34246:13): [True: 898, False: 20.7k]
  ------------------
34247|    898|        {
34248|    898|            return 'U';
34249|    898|        }
34250|  20.7k|        if (value_in_range_of<std::int16_t>(n))
  ------------------
  |  Branch (34250:13): [True: 7.44k, False: 13.2k]
  ------------------
34251|  7.44k|        {
34252|  7.44k|            return 'I';
34253|  7.44k|        }
34254|  13.2k|        if (use_bjdata && value_in_range_of<std::uint16_t>(n))
  ------------------
  |  Branch (34254:13): [True: 0, False: 13.2k]
  |  Branch (34254:27): [True: 0, False: 0]
  ------------------
34255|      0|        {
34256|      0|            return 'u';
34257|      0|        }
34258|  13.2k|        if (value_in_range_of<std::int32_t>(n))
  ------------------
  |  Branch (34258:13): [True: 5.66k, False: 7.61k]
  ------------------
34259|  5.66k|        {
34260|  5.66k|            return 'l';
34261|  5.66k|        }
34262|  7.61k|        if (use_bjdata && value_in_range_of<std::uint32_t>(n))
  ------------------
  |  Branch (34262:13): [True: 0, False: 7.61k]
  |  Branch (34262:27): [True: 0, False: 0]
  ------------------
34263|      0|        {
34264|      0|            return 'm';
34265|      0|        }
34266|  7.61k|        if (value_in_range_of<std::int64_t>(n))
  ------------------
  |  Branch (34266:13): [True: 7.61k, False: 0]
  ------------------
34267|  7.61k|        {
34268|  7.61k|            return 'L';
34269|  7.61k|        }
34270|      0|        if (use_bjdata && std::is_unsigned<NumberType>::value && integer_fits_max<std::uint64_t>(n))
  ------------------
  |  Branch (34270:13): [True: 0, False: 0]
  |  Branch (34270:27): [Folded, False: 0]
  |  Branch (34270:66): [True: 0, False: 0]
  ------------------
34271|      0|        {
34272|      0|            return 'M';
34273|      0|        }
34274|       |        // anything else is treated as a high-precision number
34275|      0|        return 'H';
34276|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIalEEbT0_:
 5316|  37.7k|{
 5317|  37.7k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  37.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IalLb0EvE4testEl:
 5300|  37.7k|    {
 5301|  37.7k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  37.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IalLb1ELb1EE4testEl:
 5284|  37.7k|    {
 5285|  37.7k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  37.7k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 31.1k, False: 6.57k]
  ------------------
 5287|  31.1k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 16.0k, False: 15.0k]
  ------------------
 5288|  37.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIhlEEbT0_:
 5316|  21.6k|{
 5317|  21.6k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  21.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IhlLb0EvE4testEl:
 5300|  21.6k|    {
 5301|  21.6k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  21.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IhlLb0ELb1EE4testEl:
 5274|  21.6k|    {
 5275|  21.6k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  21.6k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 15.0k, False: 6.57k]
  |  Branch (5276:28): [True: 898, False: 14.1k]
  ------------------
 5277|  21.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIslEEbT0_:
 5316|  20.7k|{
 5317|  20.7k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  20.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IslLb0EvE4testEl:
 5300|  20.7k|    {
 5301|  20.7k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  20.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IslLb1ELb1EE4testEl:
 5284|  20.7k|    {
 5285|  20.7k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  20.7k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 15.5k, False: 5.19k]
  ------------------
 5287|  15.5k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 7.44k, False: 8.08k]
  ------------------
 5288|  20.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIilEEbT0_:
 5316|  13.2k|{
 5317|  13.2k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  13.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IilLb0EvE4testEl:
 5300|  13.2k|    {
 5301|  13.2k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  13.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IilLb1ELb1EE4testEl:
 5284|  13.2k|    {
 5285|  13.2k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  13.2k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 9.63k, False: 3.64k]
  ------------------
 5287|  9.63k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 5.66k, False: 3.97k]
  ------------------
 5288|  13.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_integer_payloadIlEEvhT_b:
34284|  26.0k|    {
34285|  26.0k|        switch (prefix)
34286|  26.0k|        {
34287|  10.2k|            case 'i':
  ------------------
  |  Branch (34287:13): [True: 10.2k, False: 15.8k]
  ------------------
34288|  10.2k|                write_number(static_cast<std::int8_t>(n), use_bjdata);
34289|  10.2k|                break;
34290|    621|            case 'U':
  ------------------
  |  Branch (34290:13): [True: 621, False: 25.4k]
  ------------------
34291|    621|                write_number(static_cast<std::uint8_t>(n), use_bjdata);
34292|    621|                break;
34293|  5.77k|            case 'I':
  ------------------
  |  Branch (34293:13): [True: 5.77k, False: 20.2k]
  ------------------
34294|  5.77k|                write_number(static_cast<std::int16_t>(n), use_bjdata);
34295|  5.77k|                break;
34296|      0|            case 'u':
  ------------------
  |  Branch (34296:13): [True: 0, False: 26.0k]
  ------------------
34297|      0|                write_number(static_cast<std::uint16_t>(n), use_bjdata);
34298|      0|                break;
34299|  3.89k|            case 'l':
  ------------------
  |  Branch (34299:13): [True: 3.89k, False: 22.1k]
  ------------------
34300|  3.89k|                write_number(static_cast<std::int32_t>(n), use_bjdata);
34301|  3.89k|                break;
34302|      0|            case 'm':
  ------------------
  |  Branch (34302:13): [True: 0, False: 26.0k]
  ------------------
34303|      0|                write_number(static_cast<std::uint32_t>(n), use_bjdata);
34304|      0|                break;
34305|  5.52k|            case 'L':
  ------------------
  |  Branch (34305:13): [True: 5.52k, False: 20.5k]
  ------------------
34306|  5.52k|                write_number(static_cast<std::int64_t>(n), use_bjdata);
34307|  5.52k|                break;
34308|      0|            case 'M':
  ------------------
  |  Branch (34308:13): [True: 0, False: 26.0k]
  ------------------
34309|      0|                write_number(static_cast<std::uint64_t>(n), use_bjdata);
34310|      0|                break;
34311|      0|            default:
  ------------------
  |  Branch (34311:13): [True: 0, False: 26.0k]
  ------------------
34312|      0|            {
34313|      0|                JSON_ASSERT(prefix == 'H');
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (34313:17): [True: 0, False: 0]
  ------------------
34314|      0|                write_ubjson_high_precision(n, use_bjdata);
34315|      0|                break;
34316|      0|            }
34317|  26.0k|        }
34318|  26.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIaEEvT_b:
35638|  17.8k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  17.8k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  17.8k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  17.8k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 17.8k, False: 0]
  ------------------
35645|  17.8k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  17.8k|            reverse_bytes(vec);
35648|  17.8k|        }
35649|       |
35650|  17.8k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  17.8k|    }
_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|  23.9k|    {
35620|  23.9k|        std::reverse(a.begin(), a.end());
35621|  23.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE16write_charactersEPKhm:
29899|  61.9k|    {
29900|  61.9k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|  61.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.41k, False: 60.5k]
  |  |  ------------------
  ------------------
29901|  1.41k|        {
29902|  1.41k|            if (length >= max_reserve_size)
  ------------------
  |  Branch (29902:17): [True: 310, False: 1.10k]
  ------------------
29903|    310|            {
29904|    310|                append(s, length);
29905|    310|                return;
29906|    310|            }
29907|  1.10k|            grow(length);
29908|  1.10k|        }
29909|  61.6k|        if (length <= 32)
  ------------------
  |  Branch (29909:13): [True: 61.3k, False: 272]
  ------------------
29910|  61.3k|        {
29911|  61.3k|            copy_short(cursor, s, length, std::integral_constant<bool, sizeof(CharType) == 1>());
29912|  61.3k|            cursor += length;
29913|  61.3k|        }
29914|    272|        else
29915|    272|        {
29916|    272|            std::memcpy(cursor, s, length * sizeof(CharType));
29917|    272|            cursor += length;
29918|    272|        }
29919|  61.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE5spaceEv:
29984|   296k|    {
29985|   296k|        return static_cast<std::size_t>(limit - cursor);
29986|   296k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6appendEPKhm:
30020|    310|    {
30021|    310|        const std::size_t written = position();
30022|    310|        v->resize(written);
30023|    310|        if (v->capacity() - written < length)
  ------------------
  |  Branch (30023:13): [True: 310, False: 0]
  ------------------
30024|    310|        {
30025|       |            // grow geometrically, with room for the writes that follow, so
30026|       |            // that the next grow() need not reallocate right away
30027|    310|            v->reserve((std::max)(v->capacity() * 2, written + length + max_reserve_size));
30028|    310|        }
30029|    310|        v->insert(v->end(), s, s + length);
30030|    310|        cursor = v->data() + v->size();
30031|    310|        limit = cursor;
30032|    310|    }
_ZN8nlohmann16json_abi_v3_12_06detail10copy_shortIhEEvPT_PKS3_mNSt3__117integral_constantIbLb1EEE:
29782|   144k|{
29783|   144k|    JSON_ASSERT(length <= 32);
  ------------------
  |  | 2653|   144k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29783:5): [True: 144k, False: 0]
  ------------------
29784|   144k|    if (length >= 16)
  ------------------
  |  Branch (29784:9): [True: 3.35k, False: 141k]
  ------------------
29785|  3.35k|    {
29786|  3.35k|        std::array<char, 16> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29787|  3.35k|        std::array<char, 16> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29788|  3.35k|        std::memcpy(first.data(), src, 16);
29789|  3.35k|        std::memcpy(last.data(), src + (length - 16), 16);
29790|  3.35k|        std::memcpy(dst, first.data(), 16);
29791|  3.35k|        std::memcpy(dst + (length - 16), last.data(), 16);
29792|  3.35k|    }
29793|   141k|    else if (length >= 8)
  ------------------
  |  Branch (29793:14): [True: 24.3k, False: 116k]
  ------------------
29794|  24.3k|    {
29795|  24.3k|        std::array<char, 8> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29796|  24.3k|        std::array<char, 8> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29797|  24.3k|        std::memcpy(first.data(), src, 8);
29798|  24.3k|        std::memcpy(last.data(), src + (length - 8), 8);
29799|  24.3k|        std::memcpy(dst, first.data(), 8);
29800|  24.3k|        std::memcpy(dst + (length - 8), last.data(), 8);
29801|  24.3k|    }
29802|   116k|    else if (length >= 4)
  ------------------
  |  Branch (29802:14): [True: 10.1k, False: 106k]
  ------------------
29803|  10.1k|    {
29804|  10.1k|        std::array<char, 4> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29805|  10.1k|        std::array<char, 4> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29806|  10.1k|        std::memcpy(first.data(), src, 4);
29807|  10.1k|        std::memcpy(last.data(), src + (length - 4), 4);
29808|  10.1k|        std::memcpy(dst, first.data(), 4);
29809|  10.1k|        std::memcpy(dst + (length - 4), last.data(), 4);
29810|  10.1k|    }
29811|   106k|    else if (length != 0)
  ------------------
  |  Branch (29811:14): [True: 87.8k, False: 18.7k]
  ------------------
29812|  87.8k|    {
29813|       |        // 1 to 3: the first, the middle, and the last character
29814|  87.8k|        const CharType a = src[0];
29815|  87.8k|        const CharType b = src[length >> 1];
29816|  87.8k|        const CharType c = src[length - 1];
29817|  87.8k|        dst[0] = a;
29818|  87.8k|        dst[length >> 1] = b;
29819|  87.8k|        dst[length - 1] = c;
29820|  87.8k|    }
29821|   144k|}
_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|  6.08k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  6.08k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  6.08k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  6.08k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 6.08k, False: 0]
  ------------------
35645|  6.08k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  6.08k|            reverse_bytes(vec);
35648|  6.08k|        }
35649|       |
35650|  6.08k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  6.08k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIsEEvT_b:
35638|  9.29k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  9.29k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  9.29k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  9.29k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 9.29k, False: 0]
  ------------------
35645|  9.29k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  9.29k|            reverse_bytes(vec);
35648|  9.29k|        }
35649|       |
35650|  9.29k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  9.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE13reverse_bytesERNS4_5arrayIhLm2EEE:
35603|  9.29k|    {
35604|  9.29k|        byte_swap_buffer<std::uint16_t>(a);
35605|  9.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16byte_swap_bufferItLm2EEEvRNS4_5arrayIhXT0_EEE:
35592|  9.29k|    {
35593|  9.29k|        static_assert(sizeof(UIntType) == N, "swap width must match the buffer size");
35594|  9.29k|        UIntType v{};
35595|  9.29k|        std::memcpy(&v, a.data(), sizeof(v));
35596|  9.29k|        v = byteswap(v);
35597|  9.29k|        std::memcpy(a.data(), &v, sizeof(v));
35598|  9.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail8byteswapEt:
 9143|  9.29k|{
 9144|  9.29k|#if defined(__GNUC__) || defined(__clang__)
 9145|  9.29k|    return __builtin_bswap16(x);
 9146|       |#elif defined(_MSC_VER)
 9147|       |    return _byteswap_ushort(x);
 9148|       |#elif defined(__cpp_lib_byteswap)
 9149|       |    return std::byteswap(x);
 9150|       |#else
 9151|       |    return static_cast<std::uint16_t>((x >> 8u) | (x << 8u));
 9152|       |#endif
 9153|  9.29k|}
_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|  5.60k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  5.60k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  5.60k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  5.60k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 5.60k, False: 0]
  ------------------
35645|  5.60k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  5.60k|            reverse_bytes(vec);
35648|  5.60k|        }
35649|       |
35650|  5.60k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  5.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE13reverse_bytesERNS4_5arrayIhLm4EEE:
35608|  5.60k|    {
35609|  5.60k|        byte_swap_buffer<std::uint32_t>(a);
35610|  5.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16byte_swap_bufferIjLm4EEEvRNS4_5arrayIhXT0_EEE:
35592|  5.60k|    {
35593|  5.60k|        static_assert(sizeof(UIntType) == N, "swap width must match the buffer size");
35594|  5.60k|        UIntType v{};
35595|  5.60k|        std::memcpy(&v, a.data(), sizeof(v));
35596|  5.60k|        v = byteswap(v);
35597|  5.60k|        std::memcpy(a.data(), &v, sizeof(v));
35598|  5.60k|    }
_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|  6.54k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  6.54k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  6.54k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  6.54k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 6.54k, False: 0]
  ------------------
35645|  6.54k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  6.54k|            reverse_bytes(vec);
35648|  6.54k|        }
35649|       |
35650|  6.54k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  6.54k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE13reverse_bytesERNS4_5arrayIhLm8EEE:
35613|  37.7k|    {
35614|  37.7k|        byte_swap_buffer<std::uint64_t>(a);
35615|  37.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16byte_swap_bufferImLm8EEEvRNS4_5arrayIhXT0_EEE:
35592|  37.7k|    {
35593|  37.7k|        static_assert(sizeof(UIntType) == N, "swap width must match the buffer size");
35594|  37.7k|        UIntType v{};
35595|  37.7k|        std::memcpy(&v, a.data(), sizeof(v));
35596|  37.7k|        v = byteswap(v);
35597|  37.7k|        std::memcpy(a.data(), &v, sizeof(v));
35598|  37.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE31write_number_with_ubjson_prefixImTnNS4_9enable_ifIXsr11is_integralIT_EE5valueEiE4typeELi0EEEvSM_bb:
33847|  21.6k|    {
33848|  21.6k|        const CharType prefix = ubjson_integer_prefix(n, use_bjdata);
33849|  21.6k|        if (add_prefix)
  ------------------
  |  Branch (33849:13): [True: 20.2k, False: 1.42k]
  ------------------
33850|  20.2k|        {
33851|  20.2k|            oa.write_character(prefix);
33852|  20.2k|        }
33853|  21.6k|        write_ubjson_integer_payload(prefix, n, use_bjdata);
33854|  21.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE21ubjson_integer_prefixImEEhT_b:
34241|  27.0k|    {
34242|  27.0k|        if (value_in_range_of<std::int8_t>(n))
  ------------------
  |  Branch (34242:13): [True: 9.02k, False: 18.0k]
  ------------------
34243|  9.02k|        {
34244|  9.02k|            return 'i';
34245|  9.02k|        }
34246|  18.0k|        if (value_in_range_of<std::uint8_t>(n))
  ------------------
  |  Branch (34246:13): [True: 7.90k, False: 10.1k]
  ------------------
34247|  7.90k|        {
34248|  7.90k|            return 'U';
34249|  7.90k|        }
34250|  10.1k|        if (value_in_range_of<std::int16_t>(n))
  ------------------
  |  Branch (34250:13): [True: 3.66k, False: 6.44k]
  ------------------
34251|  3.66k|        {
34252|  3.66k|            return 'I';
34253|  3.66k|        }
34254|  6.44k|        if (use_bjdata && value_in_range_of<std::uint16_t>(n))
  ------------------
  |  Branch (34254:13): [True: 0, False: 6.44k]
  |  Branch (34254:27): [True: 0, False: 0]
  ------------------
34255|      0|        {
34256|      0|            return 'u';
34257|      0|        }
34258|  6.44k|        if (value_in_range_of<std::int32_t>(n))
  ------------------
  |  Branch (34258:13): [True: 1.99k, False: 4.45k]
  ------------------
34259|  1.99k|        {
34260|  1.99k|            return 'l';
34261|  1.99k|        }
34262|  4.45k|        if (use_bjdata && value_in_range_of<std::uint32_t>(n))
  ------------------
  |  Branch (34262:13): [True: 0, False: 4.45k]
  |  Branch (34262:27): [True: 0, False: 0]
  ------------------
34263|      0|        {
34264|      0|            return 'm';
34265|      0|        }
34266|  4.45k|        if (value_in_range_of<std::int64_t>(n))
  ------------------
  |  Branch (34266:13): [True: 1.38k, False: 3.07k]
  ------------------
34267|  1.38k|        {
34268|  1.38k|            return 'L';
34269|  1.38k|        }
34270|  3.07k|        if (use_bjdata && std::is_unsigned<NumberType>::value && integer_fits_max<std::uint64_t>(n))
  ------------------
  |  Branch (34270:13): [True: 0, False: 3.07k]
  |  Branch (34270:27): [True: 0, Folded]
  |  Branch (34270:66): [True: 0, False: 0]
  ------------------
34271|      0|        {
34272|      0|            return 'M';
34273|      0|        }
34274|       |        // anything else is treated as a high-precision number
34275|  3.07k|        return 'H';
34276|  3.07k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIamEEbT0_:
 5316|  27.0k|{
 5317|  27.0k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  27.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IamLb0EvE4testEm:
 5300|  27.0k|    {
 5301|  27.0k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  27.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IamLb1ELb0EE4testEm:
 5264|  27.0k|    {
 5265|  27.0k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  27.0k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  27.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIhmEEbT0_:
 5316|  18.0k|{
 5317|  18.0k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  18.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IhmLb0EvE4testEm:
 5300|  18.0k|    {
 5301|  18.0k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  18.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IhmLb0ELb0EE4testEm:
 5254|  18.0k|    {
 5255|  18.0k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  18.0k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  18.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIsmEEbT0_:
 5316|  10.1k|{
 5317|  10.1k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  10.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IsmLb0EvE4testEm:
 5300|  10.1k|    {
 5301|  10.1k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  10.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IsmLb1ELb0EE4testEm:
 5264|  10.1k|    {
 5265|  10.1k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  10.1k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  10.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIimEEbT0_:
 5316|  6.44k|{
 5317|  6.44k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  6.44k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IimLb0EvE4testEm:
 5300|  6.44k|    {
 5301|  6.44k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  6.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IimLb1ELb0EE4testEm:
 5264|  6.44k|    {
 5265|  6.44k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  6.44k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  6.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_integer_payloadImEEvhT_b:
34284|  21.6k|    {
34285|  21.6k|        switch (prefix)
34286|  21.6k|        {
34287|  7.60k|            case 'i':
  ------------------
  |  Branch (34287:13): [True: 7.60k, False: 14.0k]
  ------------------
34288|  7.60k|                write_number(static_cast<std::int8_t>(n), use_bjdata);
34289|  7.60k|                break;
34290|  5.45k|            case 'U':
  ------------------
  |  Branch (34290:13): [True: 5.45k, False: 16.1k]
  ------------------
34291|  5.45k|                write_number(static_cast<std::uint8_t>(n), use_bjdata);
34292|  5.45k|                break;
34293|  3.51k|            case 'I':
  ------------------
  |  Branch (34293:13): [True: 3.51k, False: 18.1k]
  ------------------
34294|  3.51k|                write_number(static_cast<std::int16_t>(n), use_bjdata);
34295|  3.51k|                break;
34296|      0|            case 'u':
  ------------------
  |  Branch (34296:13): [True: 0, False: 21.6k]
  ------------------
34297|      0|                write_number(static_cast<std::uint16_t>(n), use_bjdata);
34298|      0|                break;
34299|  1.70k|            case 'l':
  ------------------
  |  Branch (34299:13): [True: 1.70k, False: 19.9k]
  ------------------
34300|  1.70k|                write_number(static_cast<std::int32_t>(n), use_bjdata);
34301|  1.70k|                break;
34302|      0|            case 'm':
  ------------------
  |  Branch (34302:13): [True: 0, False: 21.6k]
  ------------------
34303|      0|                write_number(static_cast<std::uint32_t>(n), use_bjdata);
34304|      0|                break;
34305|  1.02k|            case 'L':
  ------------------
  |  Branch (34305:13): [True: 1.02k, False: 20.6k]
  ------------------
34306|  1.02k|                write_number(static_cast<std::int64_t>(n), use_bjdata);
34307|  1.02k|                break;
34308|      0|            case 'M':
  ------------------
  |  Branch (34308:13): [True: 0, False: 21.6k]
  ------------------
34309|      0|                write_number(static_cast<std::uint64_t>(n), use_bjdata);
34310|      0|                break;
34311|  2.32k|            default:
  ------------------
  |  Branch (34311:13): [True: 2.32k, False: 19.3k]
  ------------------
34312|  2.32k|            {
34313|  2.32k|                JSON_ASSERT(prefix == 'H');
  ------------------
  |  | 2653|  2.32k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (34313:17): [True: 2.32k, False: 0]
  ------------------
34314|  2.32k|                write_ubjson_high_precision(n, use_bjdata);
34315|  2.32k|                break;
34316|  2.32k|            }
34317|  21.6k|        }
34318|  21.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27write_ubjson_high_precisionImEEvT_b:
34326|  2.32k|    {
34327|  2.32k|        write_ubjson_high_precision(n, use_bjdata, std::integral_constant < bool, std::is_unsigned<NumberType>::value && sizeof(NumberType) <= sizeof(std::uint64_t) > ());
34328|  2.32k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27write_ubjson_high_precisionImEEvT_bNS4_17integral_constantIbLb1EEE:
34333|  2.32k|    {
34334|  2.32k|        std::array<char, 20> digits; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
34335|  2.32k|        std::size_t first = digits.size();
34336|  2.32k|        auto value = static_cast<std::uint64_t>(n);
34337|  2.32k|        do
34338|  45.7k|        {
34339|  45.7k|            digits[--first] = static_cast<char>('0' + (value % 10));
34340|  45.7k|            value /= 10;
34341|  45.7k|        }
34342|  45.7k|        while (value != 0);
  ------------------
  |  Branch (34342:16): [True: 43.4k, False: 2.32k]
  ------------------
34343|  2.32k|        const std::size_t length = digits.size() - first;
34344|  2.32k|        write_number_with_ubjson_prefix(length, true, use_bjdata);
34345|  2.32k|        CharType* const out = oa.reserve(digits.size());
34346|  48.0k|        for (std::size_t i = 0; i < length; ++i)
  ------------------
  |  Branch (34346:33): [True: 45.7k, False: 2.32k]
  ------------------
34347|  45.7k|        {
34348|  45.7k|            out[i] = to_char_type(static_cast<std::uint8_t>(digits[first + i]));
34349|  45.7k|        }
34350|  2.32k|        oa.commit(length);
34351|  2.32k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE7reserveEm:
29930|   234k|    {
29931|   234k|        JSON_ASSERT(length <= max_reserve_size);
  ------------------
  |  | 2653|   234k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29931:9): [True: 234k, False: 0]
  ------------------
29932|   234k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|   234k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 15.0k, False: 219k]
  |  |  ------------------
  ------------------
29933|  15.0k|        {
29934|  15.0k|            grow(length);
29935|  15.0k|        }
29936|   234k|        return cursor;
29937|   234k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6commitEm:
29942|   234k|    {
29943|   234k|        cursor += length;
29944|   234k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE31write_number_with_ubjson_prefixIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEvSM_bb:
33833|  15.9k|    {
33834|  15.9k|        if (add_prefix)
  ------------------
  |  Branch (33834:13): [True: 15.3k, False: 624]
  ------------------
33835|  15.3k|        {
33836|  15.3k|            oa.write_character(get_ubjson_float_prefix<NumberType>());
33837|  15.3k|        }
33838|  15.9k|        write_number(n, use_bjdata);
33839|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE23get_ubjson_float_prefixIdEEhv:
34424|  32.3k|    {
34425|  32.3k|        static_assert(std::is_same<FloatType, float>::value || std::is_same<FloatType, double>::value,
34426|  32.3k|                      "number_float_t must be float or double for the UBJSON/BJData writer");
34427|  32.3k|        return std::is_same<FloatType, float>::value ? 'd' : 'D';  // float 32 / float 64
  ------------------
  |  Branch (34427:16): [Folded, False: 32.3k]
  ------------------
34428|  32.3k|    }
_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|  15.9k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  15.9k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  15.9k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  15.9k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 15.9k, False: 0]
  ------------------
35645|  15.9k|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|  15.9k|            reverse_bytes(vec);
35648|  15.9k|        }
35649|       |
35650|  15.9k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17write_ubjson_textERKSC_RKSG_bb:
34071|  85.1k|    {
34072|  85.1k|        const std::size_t size = value.size();
34073|  85.1k|        if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep) && JSON_HEDLEY_LIKELY(size <= max_text_in_reservation - 1))
  ------------------
  |  | 1696|   170k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 85.1k, False: 0]
  |  |  ------------------
  ------------------
                      if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep) && JSON_HEDLEY_LIKELY(size <= max_text_in_reservation - 1))
  ------------------
  |  | 1696|  85.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 84.5k, False: 582]
  |  |  ------------------
  ------------------
34074|  84.5k|        {
34075|  84.5k|            CharType* const out = oa.reserve(size + 3);
34076|  84.5k|            CharType* p = out;
34077|  84.5k|            if (add_marker)
  ------------------
  |  Branch (34077:17): [True: 28.0k, False: 56.4k]
  ------------------
34078|  28.0k|            {
34079|  28.0k|                *p++ = to_char_type('S');
34080|  28.0k|            }
34081|  84.5k|            *p++ = to_char_type(size <= 127 ? 'i' : 'U');
  ------------------
  |  Branch (34081:33): [True: 84.1k, False: 396]
  ------------------
34082|  84.5k|            *p++ = to_char_type(static_cast<std::uint8_t>(size));
34083|  84.5k|            copy_characters(p, reinterpret_cast<const CharType*>(value.data()), size);
34084|  84.5k|            oa.commit(static_cast<std::size_t>(p - out) + size);
34085|  84.5k|            return;
34086|  84.5k|        }
34087|       |
34088|    582|        write_ubjson_checked_text(value, context, add_marker, use_bjdata);
34089|    582|    }
_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|  84.5k|    {
33647|  84.5k|        if (length <= 32)
  ------------------
  |  Branch (33647:13): [True: 83.1k, False: 1.42k]
  ------------------
33648|  83.1k|        {
33649|  83.1k|            copy_short(dst, src, length, std::integral_constant<bool, sizeof(CharType) == 1>());
33650|  83.1k|        }
33651|  1.42k|        else
33652|  1.42k|        {
33653|  1.42k|            std::memcpy(dst, src, length * sizeof(CharType));
33654|  1.42k|        }
33655|  84.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE25write_ubjson_checked_textERKSC_RKSG_bb:
34095|    582|    {
34096|    582|        string_t storage;
34097|    582|        const string_t& sanitized = sanitize_utf8_for_write(value, context, storage);
34098|    582|        if (add_marker)
  ------------------
  |  Branch (34098:13): [True: 474, False: 108]
  ------------------
34099|    474|        {
34100|    474|            oa.write_character(to_char_type('S'));
34101|    474|        }
34102|    582|        write_number_with_ubjson_prefix(sanitized.size(), true, use_bjdata);
34103|    582|        write_bytes(sanitized.data(), sanitized.size());
34104|    582|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE23sanitize_utf8_for_writeERKSC_RKSG_RSC_:
35414|    582|    {
35415|    582|        switch (error_handler)
35416|    582|        {
35417|    582|            case error_handler_t::keep:
  ------------------
  |  Branch (35417:13): [True: 582, False: 0]
  ------------------
35418|    582|                return s; // NOLINT(bugprone-return-const-ref-from-parameter): callers pass lvalues that outlive the call
35419|       |
35420|      0|            case error_handler_t::strict:
  ------------------
  |  Branch (35420:13): [True: 0, False: 582]
  ------------------
35421|      0|                check_utf8(s, context);
35422|      0|                return s; // NOLINT(bugprone-return-const-ref-from-parameter): callers pass lvalues that outlive the call
35423|       |
35424|      0|            case error_handler_t::replace:
  ------------------
  |  Branch (35424:13): [True: 0, False: 582]
  ------------------
35425|      0|            case error_handler_t::ignore:
  ------------------
  |  Branch (35425:13): [True: 0, False: 582]
  ------------------
35426|      0|            default:
  ------------------
  |  Branch (35426:13): [True: 0, False: 582]
  ------------------
35427|      0|                if (is_valid_utf8(s))
  ------------------
  |  Branch (35427:21): [True: 0, False: 0]
  ------------------
35428|      0|                {
35429|      0|                    return s; // NOLINT(bugprone-return-const-ref-from-parameter): callers pass lvalues that outlive the call
35430|      0|                }
35431|      0|                storage = sanitize_utf8(s, error_handler);
35432|      0|                return storage;
35433|    582|        }
35434|    582|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_start_containerILb1EEEbRKSG_bbbbRb:
31526|   176k|    {
31527|   176k|        prefix_required = true;
31528|   176k|        if (add_prefix)
  ------------------
  |  Branch (31528:13): [True: 129k, False: 47.1k]
  ------------------
31529|   129k|        {
31530|   129k|            oa.write_character(to_char_type(IsArray ? '[' : '{'));
  ------------------
  |  Branch (31530:45): [True: 129k, Folded]
  ------------------
31531|   129k|        }
31532|       |
31533|   176k|        const std::size_t size = IsArray ? j.m_data.m_value.array->size() : j.m_data.m_value.object->size();
  ------------------
  |  Branch (31533:34): [True: 176k, Folded]
  ------------------
31534|       |
31535|   176k|        if (use_type && size != 0)
  ------------------
  |  Branch (31535:13): [True: 58.7k, False: 117k]
  |  Branch (31535:25): [True: 53.7k, False: 5.04k]
  ------------------
31536|  53.7k|        {
31537|  53.7k|            if (!use_count)
  ------------------
  |  Branch (31537:17): [True: 0, False: 53.7k]
  ------------------
31538|      0|            {
31539|      0|                throw_size_marker_required(j);
31540|      0|            }
31541|  53.7k|            const CharType first_prefix = ubjson_prefix(j.front(), use_bjdata);
31542|       |            // the first element of an array has been compared with itself
31543|  53.7k|            const bool same_prefix = std::all_of(IsArray ? j.begin() + 1 : j.begin(), j.end(),
  ------------------
  |  Branch (31543:50): [True: 53.7k, Folded]
  ------------------
31544|  53.7k|                                                 [this, first_prefix, use_bjdata](const BasicJsonType & v)
31545|  53.7k|            {
31546|  53.7k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  53.7k|            });
31548|       |
31549|       |            // an optimized array of a valueless type carries no payload, so a
31550|       |            // reader has nothing but the declared count to bound the allocation
31551|       |            // by. It refuses one array of more than max_valueless_container_size
31552|       |            // elements, and all such arrays of one input together when they add
31553|       |            // up to more than valueless_elements_base plus
31554|       |            // JSON_UBJSON_VALUELESS_ELEMENTS_PER_BYTE per byte read. Write the
31555|       |            // unoptimized form, at one byte per element, for an array that
31556|       |            // would exceed the base with the arrays written so far, so that the
31557|       |            // result can be read back: the limit of a reader is never below the
31558|       |            // base, whatever the macro is set to, so the writer does not use
31559|       |            // it (and a reader with a larger rate reads this output as well).
31560|       |            // Objects are not affected: every element is preceded by its key.
31561|  53.7k|            if (same_prefix && !(use_bjdata && is_bjdata_excluded_type_marker(first_prefix)))
  ------------------
  |  Branch (31561:17): [True: 49.5k, False: 4.20k]
  |  Branch (31561:34): [True: 0, False: 49.5k]
  |  Branch (31561:48): [True: 0, False: 0]
  ------------------
31562|  49.5k|            {
31563|  49.5k|                const bool valueless_type = IsArray && (first_prefix == 'Z' || first_prefix == 'T' || first_prefix == 'F');
  ------------------
  |  Branch (31563:45): [True: 49.5k, Folded]
  |  Branch (31563:57): [True: 1.97k, False: 47.5k]
  |  Branch (31563:80): [True: 1.34k, False: 46.2k]
  |  Branch (31563:103): [True: 790, False: 45.4k]
  ------------------
31564|  49.5k|                if (valueless_array_fits(valueless_type, size, valueless_elements_written))
  ------------------
  |  Branch (31564:21): [True: 49.2k, False: 246]
  ------------------
31565|  49.2k|                {
31566|  49.2k|                    prefix_required = false;
31567|  49.2k|                    oa.write_character(to_char_type('$'));
31568|  49.2k|                    oa.write_character(first_prefix);
31569|  49.2k|                    if (valueless_type)
  ------------------
  |  Branch (31569:25): [True: 3.85k, False: 45.4k]
  ------------------
31570|  3.85k|                    {
31571|  3.85k|                        valueless_elements_written += size;
31572|  3.85k|                    }
31573|  49.2k|                }
31574|  49.5k|            }
31575|  53.7k|        }
31576|       |
31577|   176k|        if (use_count)
  ------------------
  |  Branch (31577:13): [True: 117k, False: 58.7k]
  ------------------
31578|   117k|        {
31579|   117k|            write_ubjson_count(size, use_bjdata);
31580|   117k|        }
31581|       |
31582|   176k|        return !use_count;
31583|   176k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE13ubjson_prefixERKSG_b:
34369|   242M|    {
34370|   242M|        switch (j.type())
34371|   242M|        {
34372|   110M|            case value_t::null:
  ------------------
  |  Branch (34372:13): [True: 110M, False: 131M]
  ------------------
34373|   110M|                return 'Z';
34374|       |
34375|   131M|            case value_t::boolean:
  ------------------
  |  Branch (34375:13): [True: 131M, False: 110M]
  ------------------
34376|   131M|                return j.m_data.m_value.boolean ? 'T' : 'F';
  ------------------
  |  Branch (34376:24): [True: 14.8M, False: 116M]
  ------------------
34377|       |
34378|  11.6k|            case value_t::number_integer:
  ------------------
  |  Branch (34378:13): [True: 11.6k, False: 242M]
  ------------------
34379|  11.6k|                return ubjson_integer_prefix(j.m_data.m_value.number_integer, use_bjdata);
34380|       |
34381|  5.40k|            case value_t::number_unsigned:
  ------------------
  |  Branch (34381:13): [True: 5.40k, False: 242M]
  ------------------
34382|  5.40k|                return ubjson_integer_prefix(j.m_data.m_value.number_unsigned, use_bjdata);
34383|       |
34384|  5.45k|            case value_t::number_float:
  ------------------
  |  Branch (34384:13): [True: 5.45k, False: 242M]
  ------------------
34385|  5.45k|                return get_ubjson_float_prefix<number_float_t>();
34386|       |
34387|  7.04k|            case value_t::string:
  ------------------
  |  Branch (34387:13): [True: 7.04k, False: 242M]
  ------------------
34388|  7.04k|                return 'S';
34389|       |
34390|  50.8k|            case value_t::array: // fallthrough
  ------------------
  |  Branch (34390:13): [True: 50.8k, False: 242M]
  ------------------
34391|  50.8k|            case value_t::binary:
  ------------------
  |  Branch (34391:13): [True: 0, False: 242M]
  ------------------
34392|  50.8k|                return '[';
34393|       |
34394|  8.88k|            case value_t::object:
  ------------------
  |  Branch (34394:13): [True: 8.88k, False: 242M]
  ------------------
34395|  8.88k|                return '{';
34396|       |
34397|      0|            case value_t::discarded:
  ------------------
  |  Branch (34397:13): [True: 0, False: 242M]
  ------------------
34398|      0|            default:  // discarded values
  ------------------
  |  Branch (34398:13): [True: 0, False: 242M]
  ------------------
34399|      0|                return 'N';
34400|   242M|        }
34401|   242M|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE5frontEv:
44362|  61.4k|    {
44363|  61.4k|        return *cbegin();
44364|  61.4k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6cbeginEv:
44737|   122k|    {
44738|   122k|        const_iterator result(this);
44739|   122k|        result.set_begin();
44740|   122k|        return result;
44741|   122k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2EPSH_:
26197|   184k|    explicit iter_impl(pointer object) noexcept : m_object(object)
26198|   184k|    {
26199|   184k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   184k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26199:9): [True: 184k, False: 0]
  ------------------
26200|       |
26201|       |        // m_it is already value-initialized, so this is not needed for
26202|       |        // correctness; it is kept because GCC generates faster loops with it
26203|       |        // (iterating a parsed document is 0.5-2.7 % slower without it, #6005)
26204|   184k|        if (m_object->is_object())
  ------------------
  |  Branch (26204:13): [True: 22.9k, False: 161k]
  ------------------
26205|  22.9k|        {
26206|  22.9k|            m_it.object_iterator = typename object_t::iterator();
26207|  22.9k|        }
26208|   161k|        else if (m_object->is_array())
  ------------------
  |  Branch (26208:18): [True: 161k, False: 0]
  ------------------
26209|   161k|        {
26210|   161k|            m_it.array_iterator = typename array_t::iterator();
26211|   161k|        }
26212|      0|        else
26213|      0|        {
26214|       |            // primitive (is_primitive(), including discarded)
26215|      0|            m_it.primitive_iterator = primitive_iterator_t();
26216|      0|        }
26217|   184k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9set_beginEv:
26283|   122k|    {
26284|   122k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   122k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26284:9): [True: 122k, False: 0]
  ------------------
26285|       |
26286|   122k|        switch (m_object->m_data.m_type)
26287|   122k|        {
26288|  15.3k|            case value_t::object:
  ------------------
  |  Branch (26288:13): [True: 15.3k, False: 107k]
  ------------------
26289|  15.3k|            {
26290|  15.3k|                m_it.object_iterator = m_object->m_data.m_value.object->begin();
26291|  15.3k|                break;
26292|      0|            }
26293|       |
26294|   107k|            case value_t::array:
  ------------------
  |  Branch (26294:13): [True: 107k, False: 15.3k]
  ------------------
26295|   107k|            {
26296|   107k|                m_it.array_iterator = m_object->m_data.m_value.array->begin();
26297|   107k|                break;
26298|      0|            }
26299|       |
26300|      0|            case value_t::null:
  ------------------
  |  Branch (26300:13): [True: 0, False: 122k]
  ------------------
26301|      0|            {
26302|       |                // set to end so begin()==end() is true: null is empty
26303|      0|                m_it.primitive_iterator.set_end();
26304|      0|                break;
26305|      0|            }
26306|       |
26307|      0|            case value_t::string:
  ------------------
  |  Branch (26307:13): [True: 0, False: 122k]
  ------------------
26308|      0|            case value_t::boolean:
  ------------------
  |  Branch (26308:13): [True: 0, False: 122k]
  ------------------
26309|      0|            case value_t::number_integer:
  ------------------
  |  Branch (26309:13): [True: 0, False: 122k]
  ------------------
26310|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (26310:13): [True: 0, False: 122k]
  ------------------
26311|      0|            case value_t::number_float:
  ------------------
  |  Branch (26311:13): [True: 0, False: 122k]
  ------------------
26312|      0|            case value_t::binary:
  ------------------
  |  Branch (26312:13): [True: 0, False: 122k]
  ------------------
26313|      0|            case value_t::discarded:
  ------------------
  |  Branch (26313:13): [True: 0, False: 122k]
  ------------------
26314|      0|            default:
  ------------------
  |  Branch (26314:13): [True: 0, False: 122k]
  ------------------
26315|      0|            {
26316|      0|                m_it.primitive_iterator.set_begin();
26317|      0|                break;
26318|      0|            }
26319|   122k|        }
26320|   122k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEdeEv:
26367|   242M|    {
26368|   242M|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   242M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26368:9): [True: 242M, False: 0]
  ------------------
26369|       |
26370|       |        // objects are tested before arrays here and in the other operators:
26371|       |        // with arrays first, walking a document of objects such as
26372|       |        // twitter.json took 14% more cycles than with 3.12.0's switch; with
26373|       |        // objects first, no document walks slower than with 3.12.0
26374|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 20.8k, False: 242M]
  |  |  ------------------
  ------------------
26375|  20.8k|        {
26376|  20.8k|            JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end());
  ------------------
  |  | 2653|  20.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26376:13): [True: 20.8k, False: 0]
  ------------------
26377|  20.8k|            return m_it.object_iterator->second;
26378|  20.8k|        }
26379|       |
26380|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 242M, False: 0]
  |  |  ------------------
  ------------------
26381|   242M|        {
26382|   242M|            JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end());
  ------------------
  |  | 2653|   242M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26382:13): [True: 242M, False: 0]
  ------------------
26383|   242M|            return *m_it.array_iterator;
26384|   242M|        }
26385|       |
26386|       |        // neither array nor object: a primitive value (null has no value to point to)
26387|      0|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type != value_t::null && m_it.primitive_iterator.is_begin()))
  ------------------
  |  | 1696|      0|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 0, False: 0]
  |  |  |  Branch (1696:94): [True: 0, False: 0]
  |  |  |  Branch (1696:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
26388|      0|        {
26389|      0|            return *m_object;
26390|      0|        }
26391|       |
26392|      0|        throw_cannot_get_value();
26393|      0|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEneISI_TnNS4_9enable_ifIXoosr3std7is_sameIT_SI_EE5valuesr3std7is_sameISL_NS2_ISG_EEEE5valueEDnE4typeELDn0EEEbRKSL_:
26532|   242M|    {
26533|   242M|        return !operator==(other);
26534|   242M|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEeqISI_TnNS4_9enable_ifIXoosr3std7is_sameIT_SI_EE5valuesr3std7is_sameISL_NS2_ISG_EEEE5valueEDnE4typeELDn0EEEbRKSL_:
26502|   242M|    {
26503|       |        // if objects are not the same, the comparison is undefined
26504|   242M|        check_same_container(other);
26505|       |
26506|       |        // value-initialized forward iterators can be compared, and must compare equal to other value-initialized iterators of the same type #4493
26507|   242M|        if (m_object == nullptr)
  ------------------
  |  Branch (26507:13): [True: 0, False: 242M]
  ------------------
26508|      0|        {
26509|      0|            return true;
26510|      0|        }
26511|       |
26512|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 19.5k, False: 242M]
  |  |  ------------------
  ------------------
26513|  19.5k|        {
26514|  19.5k|            return (m_it.object_iterator == other.m_it.object_iterator);
26515|  19.5k|        }
26516|       |
26517|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 242M, False: 0]
  |  |  ------------------
  ------------------
26518|   242M|        {
26519|   242M|            return (m_it.array_iterator == other.m_it.array_iterator);
26520|   242M|        }
26521|       |
26522|       |        // neither array nor object: a primitive value
26523|      0|        return (m_it.primitive_iterator == other.m_it.primitive_iterator);
26524|   242M|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20check_same_containerISI_EEvRKT_:
26348|   242M|    {
26349|   242M|        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
  ------------------
  |  | 1697|   242M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 242M]
  |  |  ------------------
  ------------------
26350|      0|        {
26351|      0|            throw_literal<invalid_iterator>(exception_id::iterators_compare_different_values, "cannot compare iterators of different containers", m_object);
26352|      0|        }
26353|   242M|    }
_ZZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_start_containerILb1EEEbRKSG_bbbbRbENKUlSM_E_clESM_:
31545|   242M|            {
31546|   242M|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|   242M|            });
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEppEv:
26440|   242M|    {
26441|   242M|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   242M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26441:9): [True: 242M, False: 0]
  ------------------
26442|       |
26443|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.9k, False: 242M]
  |  |  ------------------
  ------------------
26444|  11.9k|        {
26445|  11.9k|            std::advance(m_it.object_iterator, 1);
26446|  11.9k|            return *this;
26447|  11.9k|        }
26448|       |
26449|   242M|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   242M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 242M, False: 0]
  |  |  ------------------
  ------------------
26450|   242M|        {
26451|   242M|            ++m_it.array_iterator;
26452|   242M|            return *this;
26453|   242M|        }
26454|       |
26455|       |        // neither array nor object: a primitive value
26456|      0|        ++m_it.primitive_iterator;
26457|      0|        return *this;
26458|   242M|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2ERKSI_:
26236|   176k|        : m_object(other.m_object), m_it(other.m_it)
26237|   176k|    {}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE5beginEv:
44730|  61.4k|    {
44731|  61.4k|        return cbegin();
44732|  61.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEplEl:
26633|  53.7k|    {
26634|  53.7k|        auto result = *this;
26635|  53.7k|        result += i;
26636|  53.7k|        return result;
26637|  53.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEpLEl:
26598|  53.7k|    {
26599|  53.7k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|  53.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26599:9): [True: 53.7k, False: 0]
  ------------------
26600|       |
26601|  53.7k|        if (m_object->is_object())
  ------------------
  |  Branch (26601:13): [True: 0, False: 53.7k]
  ------------------
26602|      0|        {
26603|      0|            throw_literal<invalid_iterator>(exception_id::iterator_arithmetic_on_object, "cannot use offsets with object iterators", m_object);
26604|      0|        }
26605|       |
26606|  53.7k|        if (m_object->is_array())
  ------------------
  |  Branch (26606:13): [True: 53.7k, False: 0]
  ------------------
26607|  53.7k|        {
26608|  53.7k|            std::advance(m_it.array_iterator, i);
26609|  53.7k|        }
26610|      0|        else
26611|      0|        {
26612|       |            // primitive (is_primitive(), including discarded)
26613|      0|            m_it.primitive_iterator += i;
26614|      0|        }
26615|       |
26616|  53.7k|        return *this;
26617|  53.7k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE3endEv:
44755|  61.4k|    {
44756|  61.4k|        return cend();
44757|  61.4k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4cendEv:
44762|  61.4k|    {
44763|  61.4k|        const_iterator result(this);
44764|  61.4k|        result.set_end();
44765|  61.4k|        return result;
44766|  61.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE7set_endEv:
26327|  61.4k|    {
26328|  61.4k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|  61.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26328:9): [True: 61.4k, False: 0]
  ------------------
26329|       |
26330|  61.4k|        if (m_object->is_object())
  ------------------
  |  Branch (26330:13): [True: 7.66k, False: 53.7k]
  ------------------
26331|  7.66k|        {
26332|  7.66k|            m_it.object_iterator = m_object->m_data.m_value.object->end();
26333|  7.66k|        }
26334|  53.7k|        else if (m_object->is_array())
  ------------------
  |  Branch (26334:18): [True: 53.7k, False: 0]
  ------------------
26335|  53.7k|        {
26336|  53.7k|            m_it.array_iterator = m_object->m_data.m_value.array->end();
26337|  53.7k|        }
26338|      0|        else
26339|      0|        {
26340|       |            // primitive (is_primitive(), including discarded)
26341|      0|            m_it.primitive_iterator.set_end();
26342|      0|        }
26343|  61.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20valueless_array_fitsEbmm:
31512|  55.9k|    {
31513|  55.9k|        return !valueless_type || size <= detail::valueless_elements_base - written;
  ------------------
  |  Branch (31513:16): [True: 51.8k, False: 4.10k]
  |  Branch (31513:35): [True: 3.85k, False: 246]
  ------------------
31514|  55.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE18write_ubjson_countEmb:
34044|   139k|    {
34045|   139k|        if (JSON_HEDLEY_LIKELY(count <= 127))
  ------------------
  |  | 1696|   139k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 134k, False: 5.22k]
  |  |  ------------------
  ------------------
34046|   134k|        {
34047|   134k|            CharType* const out = oa.reserve(3);
34048|   134k|            out[0] = to_char_type('#');
34049|   134k|            out[1] = to_char_type('i');
34050|   134k|            out[2] = to_char_type(static_cast<std::uint8_t>(count));
34051|   134k|            oa.commit(3);
34052|   134k|            return;
34053|   134k|        }
34054|  5.22k|        oa.write_character(to_char_type('#'));
34055|  5.22k|        write_number_with_ubjson_prefix(count, true, use_bjdata);
34056|  5.22k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE25starts_with_ubjson_numberINS6_ISG_NSA_ISG_EEEEEEbRKT_bNS4_17integral_constantIbLb1EEE:
34125|   164k|    {
34126|   164k|        if (array.empty() || !array.front().is_number())
  ------------------
  |  Branch (34126:13): [True: 11.0k, False: 153k]
  |  Branch (34126:30): [True: 142k, False: 10.8k]
  ------------------
34127|   153k|        {
34128|   153k|            return false;
34129|   153k|        }
34130|  10.8k|        const BasicJsonType& first = array.front();
34131|  10.8k|        return use_bjdata || first.m_data.m_type != value_t::number_unsigned
  ------------------
  |  Branch (34131:16): [True: 0, False: 10.8k]
  |  Branch (34131:30): [True: 6.93k, False: 3.95k]
  ------------------
34132|  3.95k|               || (static_cast<std::uint64_t>(first.m_data.m_value.number_unsigned) >> 63u) == 0;
  ------------------
  |  Branch (34132:19): [True: 3.41k, False: 540]
  ------------------
34133|   164k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_numberEv:
43037|   233k|    {
43038|   233k|        return is_number_integer() || is_number_float();
  ------------------
  |  Branch (43038:16): [True: 58.5k, False: 174k]
  |  Branch (43038:39): [True: 19.4k, False: 155k]
  ------------------
43039|   233k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE17is_number_integerEv:
43045|   233k|    {
43046|   233k|        return m_data.m_type == value_t::number_integer || m_data.m_type == value_t::number_unsigned;
  ------------------
  |  Branch (43046:16): [True: 35.8k, False: 197k]
  |  Branch (43046:60): [True: 22.6k, False: 174k]
  ------------------
43047|   233k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE15is_number_floatEv:
43061|   228k|    {
43062|   228k|        return m_data.m_type == value_t::number_float;
43063|   228k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27write_ubjson_array_elementsINS6_ISG_NSA_ISG_EEEEEEvRKT_bbbbNS1_16bjdata_version_tEm:
34157|  10.3k|    {
34158|  10.3k|        constexpr std::size_t max_run = max_reserve_size / ubjson_integer_encoding_space;
34159|  10.3k|        const char* const table = ubjson_integer_table(use_bjdata);
34160|  10.3k|        auto it = array.begin();
34161|  10.3k|        const auto end = array.end();
34162|  33.0k|        while (it != end)
  ------------------
  |  Branch (34162:16): [True: 22.6k, False: 10.3k]
  ------------------
34163|  22.6k|        {
34164|  22.6k|            if (!it->is_number())
  ------------------
  |  Branch (34164:17): [True: 9.38k, False: 13.3k]
  ------------------
34165|  9.38k|            {
34166|  9.38k|                write_ubjson(*it, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34167|  9.38k|                ++it;
34168|  9.38k|                continue;
34169|  9.38k|            }
34170|       |
34171|  13.3k|            CharType* const start = oa.reserve(max_run * ubjson_integer_encoding_space);
34172|  13.3k|            CharType* out = start;
34173|  13.3k|            bool unencodable = false;
34174|  67.0k|            for (std::size_t n = 0; n < max_run && it != end && it->is_number(); ++n)
  ------------------
  |  Branch (34174:37): [True: 66.1k, False: 888]
  |  Branch (34174:52): [True: 57.5k, False: 8.64k]
  |  Branch (34174:65): [True: 53.8k, False: 3.68k]
  ------------------
34175|  53.8k|            {
34176|  53.8k|                CharType* next = nullptr;
34177|  53.8k|                if (it->is_number_float())
  ------------------
  |  Branch (34177:21): [True: 15.2k, False: 38.5k]
  ------------------
34178|  15.2k|                {
34179|  15.2k|                    next = encode_ubjson_float(out, it->m_data.m_value.number_float, prefix_required, use_bjdata);
34180|  15.2k|                }
34181|  38.5k|                else
34182|  38.5k|                {
34183|  38.5k|                    std::uint64_t sign_mask = 0;
34184|  38.5k|                    const std::uint64_t raw = integer_bits(*it, sign_mask);
34185|  38.5k|                    next = encode_ubjson_integer(out, raw, sign_mask, prefix_required, use_bjdata, table);
34186|  38.5k|                }
34187|  53.8k|                if (JSON_HEDLEY_UNLIKELY(next == nullptr))
  ------------------
  |  | 1697|  53.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 84, False: 53.7k]
  |  |  ------------------
  ------------------
34188|     84|                {
34189|     84|                    unencodable = true;
34190|     84|                    break;
34191|     84|                }
34192|  53.7k|                out = next;
34193|  53.7k|                ++it;
34194|  53.7k|            }
34195|  13.3k|            oa.commit(static_cast<std::size_t>(out - start));
34196|       |
34197|  13.3k|            if (unencodable)
  ------------------
  |  Branch (34197:17): [True: 84, False: 13.2k]
  ------------------
34198|     84|            {
34199|     84|                write_ubjson(*it, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34200|     84|                ++it;
34201|     84|            }
34202|  13.3k|        }
34203|  10.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20ubjson_integer_tableEb:
33873|  10.3k|    {
33874|       |        // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays): initialized from string literals
33875|  10.3k|        static constexpr char ubjson_table[] =
33876|       |            // the markers for n >= 0, then n < 0
33877|  10.3k|            "i" "iiiiiii" "U" "IIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "H"
33878|  10.3k|            "i" "iiiiiii" "IIIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "L"
33879|       |            // the size classes
33880|  10.3k|            "000000000" "1111111" "2222222222222222" "333333333333333333333333333333333"
33881|  10.3k|            "00000000" "11111111" "2222222222222222" "333333333333333333333333333333333";
33882|       |        // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays): initialized from string literals
33883|  10.3k|        static constexpr char bjdata_table[] =
33884|  10.3k|            "i" "iiiiiii" "U" "IIIIIII" "u" "lllllllllllllll" "m" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "M"
33885|  10.3k|            "i" "iiiiiii" "IIIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "L"
33886|  10.3k|            "000000000" "11111111" "2222222222222222" "33333333333333333333333333333333"
33887|  10.3k|            "00000000" "11111111" "2222222222222222" "333333333333333333333333333333333";
33888|  10.3k|        static_assert(sizeof(ubjson_table) == 261 && sizeof(bjdata_table) == 261, "two tables of 130 markers and 130 size classes");
33889|  10.3k|        return use_bjdata ? bjdata_table : ubjson_table;
  ------------------
  |  Branch (33889:16): [True: 0, False: 10.3k]
  ------------------
33890|  10.3k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19encode_ubjson_floatEPhdbb:
34112|  15.2k|    {
34113|  15.2k|        if (add_prefix)
  ------------------
  |  Branch (34113:13): [True: 11.5k, False: 3.73k]
  ------------------
34114|  11.5k|        {
34115|  11.5k|            *out++ = get_ubjson_float_prefix<number_float_t>();
34116|  11.5k|        }
34117|  15.2k|        return store_number(out, n, use_bjdata);
34118|  15.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIdEEPhSL_T_b:
34212|  15.2k|    {
34213|  15.2k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  15.2k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  15.2k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 15.2k, False: 0]
  ------------------
34216|  15.2k|        {
34217|  15.2k|            reverse_bytes(vec);
34218|  15.2k|        }
34219|  15.2k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  15.2k|        return out + sizeof(NumberType);
34221|  15.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12integer_bitsERKSG_Rm:
33140|  38.5k|    {
33141|  38.5k|        const bool is_signed = j.m_data.m_type == value_t::number_integer;
33142|  38.5k|        const std::uint64_t raw = is_signed
  ------------------
  |  Branch (33142:35): [True: 23.8k, False: 14.7k]
  ------------------
33143|  38.5k|                                  ? static_cast<std::uint64_t>(j.m_data.m_value.number_integer)
33144|  38.5k|                                  : static_cast<std::uint64_t>(j.m_data.m_value.number_unsigned);
33145|  38.5k|        sign_mask = (std::uint64_t{0} - static_cast<std::uint64_t>(is_signed)) & (std::uint64_t{0} - (raw >> 63u));
33146|  38.5k|        return raw;
33147|  38.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE21encode_ubjson_integerEPhmmbbPKc:
33912|  38.5k|    {
33913|  38.5k|        const std::size_t index = ubjson_integer_index(raw, sign_mask);
33914|  38.5k|        const char marker = table[index];
33915|  38.5k|        if (JSON_HEDLEY_UNLIKELY(marker == 'H'))
  ------------------
  |  | 1697|  38.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 84, False: 38.4k]
  |  |  ------------------
  ------------------
33916|     84|        {
33917|     84|            return nullptr;
33918|     84|        }
33919|  38.4k|        const unsigned size_class = static_cast<unsigned>(table[index + 130]) & 3u;
33920|       |
33921|       |        // the marker (or its place, if not written) and one 8-byte word, whose
33922|       |        // bytes after the integer are scratch that the caller drops
33923|  38.4k|        out[0] = to_char_type(static_cast<std::uint8_t>(marker));
33924|  38.4k|        out += add_prefix ? 1 : 0;
  ------------------
  |  Branch (33924:16): [True: 30.5k, False: 7.91k]
  ------------------
33925|  38.4k|        const unsigned unused_bits = 64u - (8u << size_class);
33926|       |        // UBJSON in network order, BJData in little-endian
33927|  38.4k|        std::uint64_t tail = 0;
33928|  38.4k|        if (use_bjdata)
  ------------------
  |  Branch (33928:13): [True: 0, False: 38.4k]
  ------------------
33929|      0|        {
33930|      0|            tail = is_little_endian ? raw : byteswap(raw);
  ------------------
  |  Branch (33930:20): [True: 0, False: 0]
  ------------------
33931|      0|        }
33932|  38.4k|        else
33933|  38.4k|        {
33934|  38.4k|            tail = is_little_endian ? byteswap(raw) >> unused_bits : raw << unused_bits;
  ------------------
  |  Branch (33934:20): [True: 38.4k, False: 0]
  ------------------
33935|  38.4k|        }
33936|  38.4k|        std::memcpy(out, &tail, sizeof(tail));
33937|  38.4k|        return out + (std::size_t{1} << size_class);
33938|  38.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20ubjson_integer_indexEmm:
33895|  38.5k|    {
33896|  38.5k|        const std::size_t sign_offset = sign_mask != 0 ? std::size_t{65} :
  ------------------
  |  Branch (33896:41): [True: 5.25k, False: 33.3k]
  ------------------
33897|  38.5k|                                        std::size_t{0};
33898|  38.5k|        return static_cast<std::size_t>(64 - count_leading_zeros((raw ^ sign_mask) | 1u)) + sign_offset;
33899|  38.5k|    }
_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|    582|    {
31266|    582|        oa.write_characters(static_cast<const CharType*>(data), size);
31267|    582|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_start_containerILb0EEEbRKSG_bbbbRb:
31526|  32.9k|    {
31527|  32.9k|        prefix_required = true;
31528|  32.9k|        if (add_prefix)
  ------------------
  |  Branch (31528:13): [True: 26.6k, False: 6.33k]
  ------------------
31529|  26.6k|        {
31530|  26.6k|            oa.write_character(to_char_type(IsArray ? '[' : '{'));
  ------------------
  |  Branch (31530:45): [Folded, False: 26.6k]
  ------------------
31531|  26.6k|        }
31532|       |
31533|  32.9k|        const std::size_t size = IsArray ? j.m_data.m_value.array->size() : j.m_data.m_value.object->size();
  ------------------
  |  Branch (31533:34): [Folded, False: 32.9k]
  ------------------
31534|       |
31535|  32.9k|        if (use_type && size != 0)
  ------------------
  |  Branch (31535:13): [True: 10.9k, False: 21.9k]
  |  Branch (31535:25): [True: 7.66k, False: 3.32k]
  ------------------
31536|  7.66k|        {
31537|  7.66k|            if (!use_count)
  ------------------
  |  Branch (31537:17): [True: 0, False: 7.66k]
  ------------------
31538|      0|            {
31539|      0|                throw_size_marker_required(j);
31540|      0|            }
31541|  7.66k|            const CharType first_prefix = ubjson_prefix(j.front(), use_bjdata);
31542|       |            // the first element of an array has been compared with itself
31543|  7.66k|            const bool same_prefix = std::all_of(IsArray ? j.begin() + 1 : j.begin(), j.end(),
  ------------------
  |  Branch (31543:50): [Folded, False: 7.66k]
  ------------------
31544|  7.66k|                                                 [this, first_prefix, use_bjdata](const BasicJsonType & v)
31545|  7.66k|            {
31546|  7.66k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  7.66k|            });
31548|       |
31549|       |            // an optimized array of a valueless type carries no payload, so a
31550|       |            // reader has nothing but the declared count to bound the allocation
31551|       |            // by. It refuses one array of more than max_valueless_container_size
31552|       |            // elements, and all such arrays of one input together when they add
31553|       |            // up to more than valueless_elements_base plus
31554|       |            // JSON_UBJSON_VALUELESS_ELEMENTS_PER_BYTE per byte read. Write the
31555|       |            // unoptimized form, at one byte per element, for an array that
31556|       |            // would exceed the base with the arrays written so far, so that the
31557|       |            // result can be read back: the limit of a reader is never below the
31558|       |            // base, whatever the macro is set to, so the writer does not use
31559|       |            // it (and a reader with a larger rate reads this output as well).
31560|       |            // Objects are not affected: every element is preceded by its key.
31561|  7.66k|            if (same_prefix && !(use_bjdata && is_bjdata_excluded_type_marker(first_prefix)))
  ------------------
  |  Branch (31561:17): [True: 6.36k, False: 1.30k]
  |  Branch (31561:34): [True: 0, False: 6.36k]
  |  Branch (31561:48): [True: 0, False: 0]
  ------------------
31562|  6.36k|            {
31563|  6.36k|                const bool valueless_type = IsArray && (first_prefix == 'Z' || first_prefix == 'T' || first_prefix == 'F');
  ------------------
  |  Branch (31563:45): [Folded, False: 6.36k]
  |  Branch (31563:57): [True: 0, False: 0]
  |  Branch (31563:80): [True: 0, False: 0]
  |  Branch (31563:103): [True: 0, False: 0]
  ------------------
31564|  6.36k|                if (valueless_array_fits(valueless_type, size, valueless_elements_written))
  ------------------
  |  Branch (31564:21): [True: 6.36k, False: 0]
  ------------------
31565|  6.36k|                {
31566|  6.36k|                    prefix_required = false;
31567|  6.36k|                    oa.write_character(to_char_type('$'));
31568|  6.36k|                    oa.write_character(first_prefix);
31569|  6.36k|                    if (valueless_type)
  ------------------
  |  Branch (31569:25): [Folded, False: 6.36k]
  ------------------
31570|      0|                    {
31571|      0|                        valueless_elements_written += size;
31572|      0|                    }
31573|  6.36k|                }
31574|  6.36k|            }
31575|  7.66k|        }
31576|       |
31577|  32.9k|        if (use_count)
  ------------------
  |  Branch (31577:13): [True: 21.9k, False: 10.9k]
  ------------------
31578|  21.9k|        {
31579|  21.9k|            write_ubjson_count(size, use_bjdata);
31580|  21.9k|        }
31581|       |
31582|  32.9k|        return !use_count;
31583|  32.9k|    }
_ZZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28write_ubjson_start_containerILb0EEEbRKSG_bbbbRbENKUlSM_E_clESM_:
31545|  13.2k|            {
31546|  13.2k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  13.2k|            });
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20write_ubjson_membersERKSG_bbbbNS1_16bjdata_version_tEm:
33990|  30.8k|    {
33991|  30.8k|        for (const auto& el : *j.m_data.m_value.object)
  ------------------
  |  Branch (33991:29): [True: 50.5k, False: 30.8k]
  ------------------
33992|  50.5k|        {
33993|       |            // a converted key must outlive the reference returned by sanitize_utf8_for_write
33994|  50.5k|            const object_key_string_t key_string = el.first;
33995|  50.5k|            write_ubjson_text(key_string, j, false, use_bjdata);
33996|       |
33997|  50.5k|            const BasicJsonType& value = el.second;
33998|  50.5k|            switch (value.type())
33999|  50.5k|            {
34000|  24.5k|                case value_t::null:
  ------------------
  |  Branch (34000:17): [True: 24.5k, False: 26.0k]
  ------------------
34001|  24.5k|                    if (prefix_required)
  ------------------
  |  Branch (34001:25): [True: 22.2k, False: 2.30k]
  ------------------
34002|  22.2k|                    {
34003|  22.2k|                        oa.write_character(to_char_type('Z'));
34004|  22.2k|                    }
34005|  24.5k|                    break;
34006|       |
34007|  8.56k|                case value_t::boolean:
  ------------------
  |  Branch (34007:17): [True: 8.56k, False: 42.0k]
  ------------------
34008|  8.56k|                    if (prefix_required)
  ------------------
  |  Branch (34008:25): [True: 7.15k, False: 1.41k]
  ------------------
34009|  7.15k|                    {
34010|  7.15k|                        oa.write_character(value.m_data.m_value.boolean ? to_char_type('T') : to_char_type('F'));
  ------------------
  |  Branch (34010:44): [True: 5.71k, False: 1.43k]
  ------------------
34011|  7.15k|                    }
34012|  8.56k|                    break;
34013|       |
34014|  6.43k|                case value_t::number_integer:
  ------------------
  |  Branch (34014:17): [True: 6.43k, False: 44.1k]
  ------------------
34015|  6.43k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_integer, prefix_required, use_bjdata);
34016|  6.43k|                    break;
34017|       |
34018|  3.61k|                case value_t::number_unsigned:
  ------------------
  |  Branch (34018:17): [True: 3.61k, False: 46.9k]
  ------------------
34019|  3.61k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_unsigned, prefix_required, use_bjdata);
34020|  3.61k|                    break;
34021|       |
34022|  1.58k|                case value_t::number_float:
  ------------------
  |  Branch (34022:17): [True: 1.58k, False: 49.0k]
  ------------------
34023|  1.58k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_float, prefix_required, use_bjdata);
34024|  1.58k|                    break;
34025|       |
34026|  1.83k|                case value_t::string:
  ------------------
  |  Branch (34026:17): [True: 1.83k, False: 48.7k]
  ------------------
34027|  1.83k|                    write_ubjson_text(*value.m_data.m_value.string, value, prefix_required, use_bjdata);
34028|  1.83k|                    break;
34029|       |
34030|  3.34k|                case value_t::object:
  ------------------
  |  Branch (34030:17): [True: 3.34k, False: 47.2k]
  ------------------
34031|  4.06k|                case value_t::array:
  ------------------
  |  Branch (34031:17): [True: 714, False: 49.8k]
  ------------------
34032|  4.06k|                case value_t::binary:
  ------------------
  |  Branch (34032:17): [True: 0, False: 50.5k]
  ------------------
34033|  4.06k|                case value_t::discarded:
  ------------------
  |  Branch (34033:17): [True: 0, False: 50.5k]
  ------------------
34034|  4.06k|                default:
  ------------------
  |  Branch (34034:17): [True: 0, False: 50.5k]
  ------------------
34035|  4.06k|                    write_ubjson(value, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34036|  4.06k|                    break;
34037|  50.5k|            }
34038|  50.5k|        }
34039|  30.8k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_ubjsonIPKhSH_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SJ_SK_bbNS0_6detail15error_handler_tE:
46917|  11.8k|    {
46918|  11.8k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::ubjson, strict, allow_exceptions, error_handler);
46919|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_ubjsonIRNS2_19basic_istringstreamIcS7_S9_EEEESE_OT_bbNS0_6detail15error_handler_tE:
46904|  11.8k|    {
46905|  11.8k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::ubjson, strict, allow_exceptions, error_handler);
46906|  11.8k|    }
_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|  11.8k|    {
46576|  11.8k|        basic_json result;
46577|  11.8k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  11.8k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  11.8k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 11.8k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  11.8k|        return result;
46584|  11.8k|    }
_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|  11.8k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  11.8k|    {}
_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|  11.8k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  11.8k|    {
18994|  11.8k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2EOS2_:
 9815|  11.8k|        : 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|  11.8k|        , token_carry(std::move(rhs.token_carry))
 9821|  11.8k|        , token_segment(rhs.token_segment)
 9822|  11.8k|        , current_in_get_area(rhs.current_in_get_area)
 9823|  11.8k|        , tracking_token(rhs.tracking_token)
 9824|  11.8k|        , no_get_area(rhs.no_get_area)
 9825|       |#endif
 9826|  11.8k|    {
 9827|  11.8k|        rhs.is = nullptr;
 9828|  11.8k|        rhs.sb = nullptr;
 9829|       |#if JSON_PRECISE_STREAM_POSITION
 9830|       |        rhs.lookahead = false;
 9831|       |#endif
 9832|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2EOS3_:
 9404|  23.7k|        : m_data(std::move(rhs.m_data)), m_end(rhs.m_end), m_capacity_end(rhs.m_capacity_end)
 9405|  23.7k|    {
 9406|  23.7k|        rhs.m_end = rhs.m_capacity_end = nullptr;
 9407|  23.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_EEE9sax_parseEPSJ_bNS1_18cbor_tag_handler_tE:
19017|  11.8k|    {
19018|  11.8k|        sax = sax_;
19019|  11.8k|        container_stack.clear();
19020|  11.8k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  11.8k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  11.8k|        bool result = false;
19024|       |
19025|  11.8k|        switch (input_format)
19026|  11.8k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 11.8k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|  11.8k|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 11.8k, False: 0]
  ------------------
19040|  11.8k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 11.8k]
  ------------------
19041|  11.8k|                result = parse_ubjson_internal();
19042|  11.8k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 11.8k]
  ------------------
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|  11.8k|        }
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|  6.19k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 6.19k, False: 0]
  |  Branch (19058:23): [True: 0, False: 6.19k]
  |  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|  6.19k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 6.19k, False: 0]
  |  Branch (19065:23): [True: 6.19k, False: 0]
  ------------------
19066|  6.19k|        {
19067|  6.19k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 6.19k, False: 0]
  |  Branch (19067:59): [True: 0, False: 0]
  ------------------
19068|  6.19k|            {
19069|  6.19k|                get_ignore_noop();
19070|  6.19k|            }
19071|      0|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 0]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|      0|            else
19077|      0|            {
19078|      0|                get();
19079|      0|            }
19080|       |
19081|  6.19k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  6.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 152, False: 6.03k]
  |  |  ------------------
  ------------------
19082|    152|            {
19083|    152|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    152|            }
19085|  6.19k|        }
19086|       |
19087|  6.03k|        return result;
19088|  6.19k|    }
_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|  11.8k|    {
19097|  11.8k|        return s;
19098|  11.8k|    }
_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|  11.8k|            : parser(parser_), saved()
19120|  11.8k|        {
19121|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 11.8k, False: 0]
  ------------------
19122|  11.8k|            {
19123|  11.8k|                saved = parser->get_reserve_state();
19124|  11.8k|                parser->set_input_position(position);
19125|  11.8k|            }
19126|  11.8k|        }
_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|  2.22k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.22k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.22k|        chars_read += new_chars_read;
23508|  2.22k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.22k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 112, False: 2.10k]
  |  |  ------------------
  ------------------
23509|    112|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    112|            ++chars_read;
23512|    112|            static_cast<void>(report_eof(context));
23513|    112|            return false;
23514|    112|        }
23515|  2.10k|        return true;
23516|  2.22k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIiEEmPT_m:
 9930|  2.22k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.22k|#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|  2.22k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.22k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.22k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  4.32k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.10k, False: 112]
  |  |  |  Branch (1696:94): [True: 2.10k, False: 112]
  |  |  |  Branch (1696:94): [True: 2.10k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.10k|        {
 9941|  2.10k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.10k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.10k|            return count * sizeof(T);
 9944|  2.10k|        }
 9945|    112|#endif
 9946|    112|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    112|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    112|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 112, False: 0]
  |  |  ------------------
  ------------------
 9948|    112|        {
 9949|    112|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    112|        }
 9951|    112|        return res;
 9952|  2.22k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_ptrEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10087|   438k|        {
10088|   438k|            return (s->*(&streambuf_access::gptr))();
10089|   438k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_endEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10091|   425k|        {
10092|   425k|            return (s->*(&streambuf_access::egptr))();
10093|   425k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access4bumpEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEEi:
10099|   401k|        {
10100|   401k|            (s->*(&streambuf_access::gbump))(n);
10101|   401k|        }
_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|  2.79k|    {
23992|  2.79k|        return sax->parse_error(chars_read, "<end of file>",
23993|  2.79k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  2.79k|    }
_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|  5.50k|    {
24103|  5.50k|        std::string error_msg = "syntax error while parsing ";
24104|  5.50k|        error_msg += input_format_name(input_format);
24105|       |
24106|  5.50k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  5.50k|    }
_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_swapIiEEvRT_:
23555|  2.72k|    {
23556|  2.72k|        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|  2.72k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  8.17k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.45k, False: 2.72k]
  ------------------
23572|  5.45k|            {
23573|  5.45k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.45k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.72k|    }
_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|  74.5k|    {
19202|  74.5k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   149k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 74.5k]
  |  |  |  Branch (1697:94): [True: 10.4k, False: 64.0k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  74.5k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  74.5k|        return true;
19209|  74.5k|    }
_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|  10.4k|    {
17879|  10.4k|        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|  10.4k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  10.4k|    }
_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|  74.5k|    {
17962|  74.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 6.31k, False: 68.1k]
  ------------------
17963|  6.31k|        {
17964|  6.31k|            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|  6.31k|            return &root;
17971|  6.31k|        }
17972|       |
17973|  68.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  68.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 63.9k, False: 4.22k]
  |  Branch (17973:9): [True: 4.22k, False: 0]
  |  Branch (17973:9): [True: 68.1k, False: 0]
  ------------------
17974|       |
17975|  68.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 63.9k, False: 4.22k]
  ------------------
17976|  63.9k|        {
17977|  63.9k|            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|  63.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  63.9k|        }
17985|       |
17986|  4.22k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.22k, False: 0]
  ------------------
17987|  4.22k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.22k, False: 0]
  ------------------
17988|  4.22k|        *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.22k|        return object_element;
17995|  4.22k|    }
_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|  74.5k|{
16470|  74.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 157, False: 74.3k]
  |  |  |  Branch (1697:94): [True: 7.91k, False: 66.5k]
  |  |  |  Branch (1697:94): [True: 157, False: 7.75k]
  |  |  ------------------
  ------------------
16471|    157|    {
16472|    157|        return container_too_large_error(sax, len, kind, ref);
16473|    157|    }
16474|  74.3k|    return true;
16475|  74.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail25container_too_large_errorINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_20input_stream_adapterEEESH_EEbRT_mPKcPT0_:
16463|    157|{
16464|    157|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    157|}
_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|  64.0k|    {
17916|  64.0k|        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|  64.0k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  64.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.0k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  64.0k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 6.72k, False: 57.3k]
  ------------------
17929|  6.72k|        {
17930|  6.72k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  6.72k|        }
17932|       |
17933|  64.0k|        return true;
17934|  64.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_EEE15container_frameC2Embi:
19167|  74.3k|            : 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_EEE15leave_containerEv:
19233|  40.7k|    {
19234|  40.7k|        const bool is_object = container_stack.back().is_object;
19235|  40.7k|        container_stack.pop_back();
19236|  40.7k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 6.96k, False: 33.8k]
  ------------------
19237|  40.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_adapterEE10end_objectEv:
17901|  6.96k|    {
17902|  6.96k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 6.96k, False: 0]
  ------------------
17903|  6.96k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 6.96k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  6.96k|        ref_stack.back()->set_parents();
17910|  6.96k|        ref_stack.pop_back();
17911|  6.96k|        return true;
17912|  6.96k|    }
_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|  33.8k|    {
17938|  33.8k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 33.8k, False: 0]
  ------------------
17939|  33.8k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 33.8k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  33.8k|        ref_stack.back()->set_parents();
17946|  33.8k|        ref_stack.pop_back();
17947|  33.8k|        return true;
17948|  33.8k|    }
_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|   153k|    {
23975|   153k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   153k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.06k, False: 151k]
  |  |  ------------------
  ------------------
23976|  2.06k|        {
23977|  2.06k|            return report_eof(context);
23978|  2.06k|        }
23979|   151k|        return true;
23980|   153k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter14bulk_remainingEv:
 9974|  27.4k|    {
 9975|  27.4k|        if (!current_in_get_area)
  ------------------
  |  Branch (9975:13): [True: 0, False: 27.4k]
  ------------------
 9976|      0|        {
 9977|      0|            return 0;
 9978|      0|        }
 9979|  27.4k|        return static_cast<std::size_t>(streambuf_access::get_end(sb) - current_end());
 9980|  27.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter11current_endEv:
10112|  40.2k|    {
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|  40.2k|        return streambuf_access::get_ptr(sb);
10119|  40.2k|#endif
10120|  40.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_dataEv:
 9968|  12.8k|    {
 9969|  12.8k|        return current_end();
 9970|  12.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_skipEm:
 9985|  12.8k|    {
 9986|  12.8k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  12.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9986:9): [True: 12.8k, False: 0]
  ------------------
 9987|       |        // gbump() takes an int, but a get area (e.g., of a std::stringbuf) can
 9988|       |        // be larger
 9989|  12.8k|        constexpr auto max_bump = static_cast<std::size_t>((std::numeric_limits<int>::max)());
 9990|  12.8k|        for (; n > max_bump; n -= max_bump)
  ------------------
  |  Branch (9990:16): [True: 0, False: 12.8k]
  ------------------
 9991|      0|        {
 9992|      0|            streambuf_access::bump(sb, static_cast<int>(max_bump));
 9993|      0|        }
 9994|  12.8k|        streambuf_access::bump(sb, static_cast<int>(n));
 9995|  12.8k|    }
_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|  21.5k|    {
23812|  21.5k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 21.5k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  21.5k|    }
_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|  19.1k|    {
17891|  19.1k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 19.1k, False: 0]
  ------------------
17892|  19.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 19.1k, 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|  19.1k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  19.1k|        return true;
17898|  19.1k|    }
_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|    818|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    818|        auto new_chars_read = ia.get_elements(&dest);
23507|    818|        chars_read += new_chars_read;
23508|    818|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 741]
  |  |  ------------------
  ------------------
23509|     77|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     77|            ++chars_read;
23512|     77|            static_cast<void>(report_eof(context));
23513|     77|            return false;
23514|     77|        }
23515|    741|        return true;
23516|    818|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIdEEmPT_m:
 9930|    818|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    818|#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|    818|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    818|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    818|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  1.55k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 741, False: 77]
  |  |  |  Branch (1696:94): [True: 741, False: 77]
  |  |  |  Branch (1696:94): [True: 741, False: 0]
  |  |  ------------------
  ------------------
 9940|    741|        {
 9941|    741|            std::memcpy(dest, first, count * sizeof(T));
 9942|    741|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|    741|            return count * sizeof(T);
 9944|    741|        }
 9945|     77|#endif
 9946|     77|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     77|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     77|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 0]
  |  |  ------------------
  ------------------
 9948|     77|        {
 9949|     77|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     77|        }
 9951|     77|        return res;
 9952|    818|    }
_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_swapERd:
23535|  1.20k|    {
23536|  1.20k|        static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
23537|  1.20k|        std::uint64_t bits{};
23538|  1.20k|        std::memcpy(&bits, &number, sizeof(bits));
23539|  1.20k|        bits = byteswap(bits);
23540|  1.20k|        std::memcpy(&number, &bits, sizeof(bits));
23541|  1.20k|    }
_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.20k|    {
23683|  1.20k|        const auto result = static_cast<number_float_t>(number);
23684|  1.20k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.20k]
  |  |  |  Branch (1697:94): [True: 1.18k, False: 26]
  |  |  |  Branch (1697:94): [True: 0, False: 1.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.20k|        return sax->number_float(result, no_source);
23689|  1.20k|    }
_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_EEE18out_of_range_errorENS1_12exception_idEPKcSN_:
24001|     62|    {
24002|     62|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     62|    }
_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|  1.36k|    {
24092|  1.36k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.36k|    }
_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|  8.68k|    {
17857|  8.68k|        handle_value(val);
17858|  8.68k|        return true;
17859|  8.68k|    }
_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|  8.68k|    {
17962|  8.68k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.71k, False: 6.96k]
  ------------------
17963|  1.71k|        {
17964|  1.71k|            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|  1.71k|            return &root;
17971|  1.71k|        }
17972|       |
17973|  6.96k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.53k, False: 430]
  |  Branch (17973:9): [True: 430, False: 0]
  |  Branch (17973:9): [True: 6.96k, False: 0]
  ------------------
17974|       |
17975|  6.96k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.53k, False: 430]
  ------------------
17976|  6.53k|        {
17977|  6.53k|            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.53k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.53k|        }
17985|       |
17986|    430|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 430, False: 0]
  ------------------
17987|    430|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 430, False: 0]
  ------------------
17988|    430|        *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|    430|        return object_element;
17995|    430|    }
_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|    492|    {
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|    492|        return get_bytes(len, "string", result);
23778|    492|    }
_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|    492|    {
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|    492|        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|    492|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 219, False: 273]
  ------------------
23898|    219|        {
23899|    219|            return true;
23900|    219|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    273|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    273|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 90, False: 183]
  ------------------
23906|     90|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     90|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 52]
  ------------------
23910|     90|                                       ? static_cast<std::size_t>(len)
23911|     90|                                       : chunk_size;
23912|     90|            const std::size_t old_size = result.size();
23913|     90|            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|     90|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     90|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 90, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     90|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     90|            chars_read += bytes_read;
23921|     90|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     90|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 90, False: 0]
  |  |  ------------------
  ------------------
23922|     90|            {
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|     90|                result.resize(old_size + bytes_read);
23927|     90|                ++chars_read;
23928|     90|                current = char_traits<char_type>::eof();
23929|     90|                return unexpect_eof(context);
23930|     90|            }
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|    183|        return true;
23936|    273|    }
_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|    492|    {
23943|    492|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 183, False: 309]
  ------------------
23944|    183|        {
23945|    183|            return false;
23946|    183|        }
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|    309|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    309|        const std::size_t remaining = ia.bulk_remaining();
23951|    309|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 90, False: 219]
  ------------------
23952|     90|        {
23953|     90|            return false; // (the loop reports the premature end)
23954|     90|        }
23955|    219|        const auto n = static_cast<std::size_t>(ulen);
23956|    219|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    219|        ia.bulk_skip(n);
23958|    219|        chars_read += n;
23959|    219|        return true;
23960|    309|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIcEEmPT_m:
 9930|    392|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    392|#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|    392|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    392|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    392|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|    392|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 0, False: 392]
  |  |  |  Branch (1696:94): [True: 0, False: 392]
  |  |  |  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|    392|#endif
 9946|    392|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    392|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    392|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 392, False: 0]
  |  |  ------------------
  ------------------
 9948|    392|        {
 9949|    392|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    392|        }
 9951|    392|        return res;
 9952|    392|    }
_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|  7.77k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  7.77k|        handle_value(std::move(val));
17866|  7.77k|        return true;
17867|  7.77k|    }
_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|  7.77k|    {
17962|  7.77k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 455, False: 7.31k]
  ------------------
17963|    455|        {
17964|    455|            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|    455|            return &root;
17971|    455|        }
17972|       |
17973|  7.31k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  7.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 5.84k, False: 1.47k]
  |  Branch (17973:9): [True: 1.47k, False: 0]
  |  Branch (17973:9): [True: 7.31k, False: 0]
  ------------------
17974|       |
17975|  7.31k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 5.84k, False: 1.47k]
  ------------------
17976|  5.84k|        {
17977|  5.84k|            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|  5.84k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  5.84k|        }
17985|       |
17986|  1.47k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.47k, False: 0]
  ------------------
17987|  1.47k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.47k, False: 0]
  ------------------
17988|  1.47k|        *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.47k|        return object_element;
17995|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIhEEmPT_m:
 9930|  33.3k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  33.3k|#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|  33.3k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  33.3k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  33.3k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  66.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 33.1k, False: 114]
  |  |  |  Branch (1696:94): [True: 33.1k, False: 114]
  |  |  |  Branch (1696:94): [True: 33.1k, False: 0]
  |  |  ------------------
  ------------------
 9940|  33.1k|        {
 9941|  33.1k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  33.1k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  33.1k|            return count * sizeof(T);
 9944|  33.1k|        }
 9945|    114|#endif
 9946|    114|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    114|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    114|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 0]
  |  |  ------------------
  ------------------
 9948|    114|        {
 9949|    114|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    114|        }
 9951|    114|        return res;
 9952|  33.3k|    }
_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|  33.3k|    {
23597|       |        // read in the original format
23598|       |
23599|  33.3k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  33.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.3k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  33.3k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 33.1k, False: 114]
  |  Branch (23603:34): [Folded, False: 33.1k]
  |  Branch (23603:57): [True: 0, False: 33.1k]
  ------------------
23604|  33.1k|        {
23605|  33.1k|            byte_swap(result);
23606|  33.1k|        }
23607|  33.3k|        return true;
23608|  33.3k|    }
_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|  33.3k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  33.3k|        auto new_chars_read = ia.get_elements(&dest);
23507|  33.3k|        chars_read += new_chars_read;
23508|  33.3k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  33.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 33.1k]
  |  |  ------------------
  ------------------
23509|    114|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    114|            ++chars_read;
23512|    114|            static_cast<void>(report_eof(context));
23513|    114|            return false;
23514|    114|        }
23515|  33.1k|        return true;
23516|  33.3k|    }
_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|  37.4k|    {
23556|  37.4k|        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|  37.4k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  37.4k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 37.4k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  37.4k|    }
_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|  69.1M|    {
17839|  69.1M|        handle_value(val);
17840|  69.1M|        return true;
17841|  69.1M|    }
_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|  69.1M|    {
17962|  69.1M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 23, False: 69.1M]
  ------------------
17963|     23|        {
17964|     23|            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|     23|            return &root;
17971|     23|        }
17972|       |
17973|  69.1M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  69.1M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 69.1M, False: 3.15k]
  |  Branch (17973:9): [True: 3.15k, False: 0]
  |  Branch (17973:9): [True: 69.1M, False: 0]
  ------------------
17974|       |
17975|  69.1M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 69.1M, False: 3.15k]
  ------------------
17976|  69.1M|        {
17977|  69.1M|            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|  69.1M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  69.1M|        }
17985|       |
17986|  3.15k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.15k, False: 0]
  ------------------
17987|  3.15k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.15k, False: 0]
  ------------------
17988|  3.15k|        *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.15k|        return object_element;
17995|  3.15k|    }
_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|  65.0M|    {
17833|  65.0M|        handle_value(nullptr);
17834|  65.0M|        return true;
17835|  65.0M|    }
_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|  65.0M|    {
17962|  65.0M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10, False: 65.0M]
  ------------------
17963|     10|        {
17964|     10|            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|     10|            return &root;
17971|     10|        }
17972|       |
17973|  65.0M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  65.0M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 65.0M, False: 6.98k]
  |  Branch (17973:9): [True: 6.98k, False: 0]
  |  Branch (17973:9): [True: 65.0M, False: 0]
  ------------------
17974|       |
17975|  65.0M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 65.0M, False: 6.98k]
  ------------------
17976|  65.0M|        {
17977|  65.0M|            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|  65.0M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  65.0M|        }
17985|       |
17986|  6.98k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.98k, False: 0]
  ------------------
17987|  6.98k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.98k, False: 0]
  ------------------
17988|  6.98k|        *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.98k|        return object_element;
17995|  6.98k|    }
_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.51k|    {
23629|  1.51k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.51k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.51k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.51k|        {
23631|  1.51k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.51k|        }
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|  12.6k|    {
17845|  12.6k|        handle_value(val);
17846|  12.6k|        return true;
17847|  12.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_adapterEE12handle_valueIRlEEPSG_OT_:
17961|  12.6k|    {
17962|  12.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 506, False: 12.1k]
  ------------------
17963|    506|        {
17964|    506|            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|    506|            return &root;
17971|    506|        }
17972|       |
17973|  12.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  12.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.7k, False: 1.42k]
  |  Branch (17973:9): [True: 1.42k, False: 0]
  |  Branch (17973:9): [True: 12.1k, False: 0]
  ------------------
17974|       |
17975|  12.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.7k, False: 1.42k]
  ------------------
17976|  10.7k|        {
17977|  10.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|  10.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.7k|        }
17985|       |
17986|  1.42k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.42k, False: 0]
  ------------------
17987|  1.42k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.42k, False: 0]
  ------------------
17988|  1.42k|        *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.42k|        return object_element;
17995|  1.42k|    }
_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|  11.6k|    {
17851|  11.6k|        handle_value(val);
17852|  11.6k|        return true;
17853|  11.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_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  11.6k|    {
17962|  11.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 341, False: 11.3k]
  ------------------
17963|    341|        {
17964|    341|            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|    341|            return &root;
17971|    341|        }
17972|       |
17973|  11.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.1k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 11.3k, False: 0]
  ------------------
17974|       |
17975|  11.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.1k, False: 1.17k]
  ------------------
17976|  10.1k|        {
17977|  10.1k|            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|  10.1k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.1k|        }
17985|       |
17986|  1.17k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.17k, False: 0]
  ------------------
17987|  1.17k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.17k, False: 0]
  ------------------
17988|  1.17k|        *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.17k|        return object_element;
17995|  1.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_EEE6get_toIlEEbRT_PKc:
23503|  2.65k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.65k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.65k|        chars_read += new_chars_read;
23508|  2.65k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 121, False: 2.53k]
  |  |  ------------------
  ------------------
23509|    121|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    121|            ++chars_read;
23512|    121|            static_cast<void>(report_eof(context));
23513|    121|            return false;
23514|    121|        }
23515|  2.53k|        return true;
23516|  2.65k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIlEEmPT_m:
 9930|  2.65k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.65k|#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|  2.65k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.65k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.65k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  5.18k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.53k, False: 121]
  |  |  |  Branch (1696:94): [True: 2.53k, False: 121]
  |  |  |  Branch (1696:94): [True: 2.53k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.53k|        {
 9941|  2.53k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.53k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.53k|            return count * sizeof(T);
 9944|  2.53k|        }
 9945|    121|#endif
 9946|    121|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    121|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    121|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 121, False: 0]
  |  |  ------------------
  ------------------
 9948|    121|        {
 9949|    121|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    121|        }
 9951|    121|        return res;
 9952|  2.65k|    }
_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_swapIlEEvRT_:
23555|  2.94k|    {
23556|  2.94k|        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|  2.94k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  14.7k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 11.7k, False: 2.94k]
  ------------------
23572|  11.7k|            {
23573|  11.7k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  11.7k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.94k|    }
_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|  1.48k|    {
23629|  1.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.48k|        {
23631|  1.48k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.48k|        }
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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  17.5k|    {
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|  17.5k|        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|  17.5k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 9.56k, False: 7.94k]
  ------------------
23898|  9.56k|        {
23899|  9.56k|            return true;
23900|  9.56k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  7.94k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  7.94k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 48, False: 7.89k]
  ------------------
23906|     48|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     48|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 48, False: 0]
  ------------------
23910|     48|                                       ? static_cast<std::size_t>(len)
23911|     48|                                       : chunk_size;
23912|     48|            const std::size_t old_size = result.size();
23913|     48|            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|     48|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     48|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 48, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     48|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     48|            chars_read += bytes_read;
23921|     48|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     48|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 0]
  |  |  ------------------
  ------------------
23922|     48|            {
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|     48|                result.resize(old_size + bytes_read);
23927|     48|                ++chars_read;
23928|     48|                current = char_traits<char_type>::eof();
23929|     48|                return unexpect_eof(context);
23930|     48|            }
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|  7.89k|        return true;
23936|  7.94k|    }
_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_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  17.5k|    {
23943|  17.5k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 7.89k, False: 9.60k]
  ------------------
23944|  7.89k|        {
23945|  7.89k|            return false;
23946|  7.89k|        }
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|  9.60k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  9.60k|        const std::size_t remaining = ia.bulk_remaining();
23951|  9.60k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 48, False: 9.56k]
  ------------------
23952|     48|        {
23953|     48|            return false; // (the loop reports the premature end)
23954|     48|        }
23955|  9.56k|        const auto n = static_cast<std::size_t>(ulen);
23956|  9.56k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  9.56k|        ia.bulk_skip(n);
23958|  9.56k|        chars_read += n;
23959|  9.56k|        return true;
23960|  9.60k|    }
_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_unsignedIhEEbT_:
23656|  8.48k|    {
23657|  8.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  8.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.48k, False: 0]
  |  |  ------------------
  ------------------
23658|  8.48k|        {
23659|  8.48k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  8.48k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  8.48k|    }
_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_floatIfEEbT_:
23682|  4.32k|    {
23683|  4.32k|        const auto result = static_cast<number_float_t>(number);
23684|  4.32k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  8.51k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.32k]
  |  |  |  Branch (1697:94): [True: 4.18k, False: 136]
  |  |  |  Branch (1697:94): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  4.32k|        return sax->number_float(result, no_source);
23689|  4.32k|    }
_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_swapERf:
23545|  4.32k|    {
23546|  4.32k|        static_assert(sizeof(float) == sizeof(std::uint32_t), "float must have 32 bits");
23547|  4.32k|        std::uint32_t bits{};
23548|  4.32k|        std::memcpy(&bits, &number, sizeof(bits));
23549|  4.32k|        bits = byteswap(bits);
23550|  4.32k|        std::memcpy(&number, &bits, sizeof(bits));
23551|  4.32k|    }
_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_EEE11enter_arrayEmi:
19213|  64.0k|    {
19214|  64.0k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  64.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_EEE12enter_objectEmi:
19219|  10.4k|    {
19220|  10.4k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  10.4k|    }
_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_EEE15unexpected_byteEPKcSM_:
24069|    205|    {
24070|    205|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|    205|    }
_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_numberIfLb0EEEbRT_:
23596|  2.46k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.46k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.46k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.46k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.36k, False: 97]
  |  Branch (23603:34): [Folded, False: 2.36k]
  |  Branch (23603:57): [True: 0, False: 2.36k]
  ------------------
23604|  2.36k|        {
23605|  2.36k|            byte_swap(result);
23606|  2.36k|        }
23607|  2.46k|        return true;
23608|  2.46k|    }
_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_toIfEEbRT_PKc:
23503|  2.46k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.46k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.46k|        chars_read += new_chars_read;
23508|  2.46k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 2.36k]
  |  |  ------------------
  ------------------
23509|     97|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     97|            ++chars_read;
23512|     97|            static_cast<void>(report_eof(context));
23513|     97|            return false;
23514|     97|        }
23515|  2.36k|        return true;
23516|  2.46k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIfEEmPT_m:
 9930|  2.46k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.46k|#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|  2.46k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.46k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.46k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  4.83k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.36k, False: 97]
  |  |  |  Branch (1696:94): [True: 2.36k, False: 97]
  |  |  |  Branch (1696:94): [True: 2.36k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.36k|        {
 9941|  2.36k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.36k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.36k|            return count * sizeof(T);
 9944|  2.36k|        }
 9945|     97|#endif
 9946|     97|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     97|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     97|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 0]
  |  |  ------------------
  ------------------
 9948|     97|        {
 9949|     97|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     97|        }
 9951|     97|        return res;
 9952|  2.46k|    }
_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_numberIdLb0EEEbRT_:
23596|    818|    {
23597|       |        // read in the original format
23598|       |
23599|    818|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 818]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    818|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 741, False: 77]
  |  Branch (23603:34): [Folded, False: 741]
  |  Branch (23603:57): [True: 0, False: 741]
  ------------------
23604|    741|        {
23605|    741|            byte_swap(result);
23606|    741|        }
23607|    818|        return true;
23608|    818|    }
_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_EEE22get_string_with_lengthIhEEbRSC_PKc:
23846|  17.5k|    {
23847|  17.5k|        NumberType len{};
23848|  17.5k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 17.5k, False: 10]
  |  Branch (23848:35): [True: 17.4k, False: 48]
  |  Branch (23848:62): [True: 17.4k, False: 0]
  ------------------
23849|  17.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_stringIhEEbT_RSC_:
23767|  17.5k|    {
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|  17.5k|        return get_bytes(len, "string", result);
23778|  17.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_EEE9byte_swapIsEEvRT_:
23555|  5.49k|    {
23556|  5.49k|        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|  5.49k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  10.9k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.49k, False: 5.49k]
  ------------------
23572|  5.49k|            {
23573|  5.49k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.49k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  5.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_EEE10get_numberIaLb0EEEbRT_:
23596|  7.19k|    {
23597|       |        // read in the original format
23598|       |
23599|  7.19k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  7.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.19k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  7.19k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 7.10k, False: 99]
  |  Branch (23603:34): [Folded, False: 7.10k]
  |  Branch (23603:57): [True: 0, False: 7.10k]
  ------------------
23604|  7.10k|        {
23605|  7.10k|            byte_swap(result);
23606|  7.10k|        }
23607|  7.19k|        return true;
23608|  7.19k|    }
_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_toIaEEbRT_PKc:
23503|  7.19k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  7.19k|        auto new_chars_read = ia.get_elements(&dest);
23507|  7.19k|        chars_read += new_chars_read;
23508|  7.19k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  7.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 7.10k]
  |  |  ------------------
  ------------------
23509|     99|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     99|            ++chars_read;
23512|     99|            static_cast<void>(report_eof(context));
23513|     99|            return false;
23514|     99|        }
23515|  7.10k|        return true;
23516|  7.19k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIaEEmPT_m:
 9930|  7.19k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  7.19k|#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.19k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  7.19k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  7.19k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  14.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 7.10k, False: 99]
  |  |  |  Branch (1696:94): [True: 7.10k, False: 99]
  |  |  |  Branch (1696:94): [True: 7.10k, False: 0]
  |  |  ------------------
  ------------------
 9940|  7.10k|        {
 9941|  7.10k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  7.10k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  7.10k|            return count * sizeof(T);
 9944|  7.10k|        }
 9945|     99|#endif
 9946|     99|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     99|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     99|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 0]
  |  |  ------------------
  ------------------
 9948|     99|        {
 9949|     99|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     99|        }
 9951|     99|        return res;
 9952|  7.19k|    }
_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_swapIaEEvRT_:
23555|  11.1k|    {
23556|  11.1k|        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|  11.1k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  11.1k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 11.1k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  11.1k|    }
_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_signedIaEEbT_:
23628|  6.16k|    {
23629|  6.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  6.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  6.16k|        {
23631|  6.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  6.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_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_numberIsLb0EEEbRT_:
23596|  4.18k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.18k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.18k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 4.07k, False: 109]
  |  Branch (23603:34): [Folded, False: 4.07k]
  |  Branch (23603:57): [True: 0, False: 4.07k]
  ------------------
23604|  4.07k|        {
23605|  4.07k|            byte_swap(result);
23606|  4.07k|        }
23607|  4.18k|        return true;
23608|  4.18k|    }
_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_toIsEEbRT_PKc:
23503|  4.18k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.18k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.18k|        chars_read += new_chars_read;
23508|  4.18k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 4.07k]
  |  |  ------------------
  ------------------
23509|    109|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    109|            ++chars_read;
23512|    109|            static_cast<void>(report_eof(context));
23513|    109|            return false;
23514|    109|        }
23515|  4.07k|        return true;
23516|  4.18k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIsEEmPT_m:
 9930|  4.18k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  4.18k|#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|  4.18k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  4.18k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  4.18k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  8.25k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.07k, False: 109]
  |  |  |  Branch (1696:94): [True: 4.07k, False: 109]
  |  |  |  Branch (1696:94): [True: 4.07k, False: 0]
  |  |  ------------------
  ------------------
 9940|  4.07k|        {
 9941|  4.07k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  4.07k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  4.07k|            return count * sizeof(T);
 9944|  4.07k|        }
 9945|    109|#endif
 9946|    109|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    109|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    109|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 0]
  |  |  ------------------
  ------------------
 9948|    109|        {
 9949|    109|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    109|        }
 9951|    109|        return res;
 9952|  4.18k|    }
_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_signedIsEEbT_:
23628|  3.04k|    {
23629|  3.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.04k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.04k|        {
23631|  3.04k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.04k|        }
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_numberIiLb0EEEbRT_:
23596|  2.22k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.22k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.22k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.22k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.22k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.10k, False: 112]
  |  Branch (23603:34): [Folded, False: 2.10k]
  |  Branch (23603:57): [True: 0, False: 2.10k]
  ------------------
23604|  2.10k|        {
23605|  2.10k|            byte_swap(result);
23606|  2.10k|        }
23607|  2.22k|        return true;
23608|  2.22k|    }
_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_numberIlLb0EEEbRT_:
23596|  2.65k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.65k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.65k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.65k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.53k, False: 121]
  |  Branch (23603:34): [Folded, False: 2.53k]
  |  Branch (23603:57): [True: 0, False: 2.53k]
  ------------------
23604|  2.53k|        {
23605|  2.53k|            byte_swap(result);
23606|  2.53k|        }
23607|  2.65k|        return true;
23608|  2.65k|    }
_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_EEE21parse_ubjson_internalEv:
21807|  11.8k|    {
21808|       |        // the key currently being read; hoisted out of the loop so that its
21809|       |        // capacity is reused across elements and across nesting levels
21810|  11.8k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  11.8k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   134M|        while (true)
  ------------------
  |  Branch (21815:16): [True: 134M, Folded]
  ------------------
21816|   134M|        {
21817|   134M|            const std::size_t depth = container_stack.size();
21818|       |
21819|   134M|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   134M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 134M]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   134M|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.04k, False: 134M]
  ------------------
21826|  3.04k|            {
21827|  3.04k|                return true;
21828|  3.04k|            }
21829|       |
21830|       |            // a value was completed rather than a container opened; a
21831|       |            // container that ends at a marker needs the next byte to test
21832|   134M|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 134M, False: 79.2k]
  |  Branch (21832:52): [True: 35.7k, False: 134M]
  ------------------
21833|  35.7k|            {
21834|  35.7k|                get_ignore_noop();
21835|  35.7k|            }
21836|       |
21837|       |            // advance to the next element, closing the containers that ended.
21838|       |            // top is a copy, not a reference: it must stay valid across the
21839|       |            // pop_back() below, which destroys the container_stack element it
21840|       |            // would otherwise alias.
21841|   134M|            for (;;)
21842|   134M|            {
21843|   134M|                const container_frame top = container_stack.back();
21844|       |
21845|   134M|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 134M, False: 135k]
  ------------------
21846|   134M|                {
21847|   134M|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 134M, False: 5.55k]
  ------------------
21848|   134M|                    {
21849|   134M|                        --container_stack.back().remaining;
21850|   134M|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 3.70k, False: 134M]
  ------------------
21851|  3.70k|                        {
21852|  3.70k|                            key.clear();
21853|  3.70k|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  7.27k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.70k]
  |  |  |  Branch (1697:94): [True: 131, False: 3.57k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.57k]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|  3.70k|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|   134M|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 134M, False: 2.80k]
  ------------------
21860|   134M|                        break;
21861|   134M|                    }
21862|   134M|                }
21863|       |                // the end marker is compared against a literal rather than
21864|       |                // against a conditional expression, because char_int_type is
21865|       |                // unsigned for some input adapters and MSVC then reports the
21866|       |                // comparison as a signed/unsigned mismatch
21867|   135k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 22.3k, False: 113k]
  |  Branch (21867:26): [True: 100k, False: 35.2k]
  ------------------
21868|   100k|                {
21869|       |                    // a container that ends at a marker is never optimized, so
21870|       |                    // every element carries its own marker; for an object the
21871|       |                    // byte tested above is the first byte of the key
21872|   100k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 16.2k, False: 83.9k]
  ------------------
21873|  16.2k|                    {
21874|  16.2k|                        key.clear();
21875|  16.2k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  31.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 16.2k]
  |  |  |  Branch (1697:94): [True: 651, False: 15.5k]
  |  |  |  Branch (1697:94): [True: 0, False: 15.5k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  16.2k|                        prefix = get_ignore_noop();
21880|  16.2k|                    }
21881|  83.9k|                    else
21882|  83.9k|                    {
21883|  83.9k|                        prefix = current;
21884|  83.9k|                    }
21885|   100k|                    break;
21886|   100k|                }
21887|       |
21888|  40.7k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  40.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.7k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  40.7k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 3.14k, False: 37.6k]
  ------------------
21893|  3.14k|                {
21894|  3.14k|                    return true;
21895|  3.14k|                }
21896|       |                // the container that just ended was an element of the one
21897|       |                // below it, which may need the next byte for its own test
21898|  37.6k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 33.1k, False: 4.51k]
  ------------------
21899|  33.1k|                {
21900|  33.1k|                    get_ignore_noop();
21901|  33.1k|                }
21902|  37.6k|            }
21903|   134M|        }
21904|  11.8k|    }
_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_EEE16get_ubjson_valueEi:
22404|   134M|    {
22405|   134M|        switch (prefix)
22406|   134M|        {
22407|  1.10k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.10k, False: 134M]
  ------------------
22408|  1.10k|                return unexpect_eof("value");
22409|       |
22410|  8.52M|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 8.52M, False: 125M]
  ------------------
22411|  8.52M|                return sax->boolean(true);
22412|  60.6M|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 60.6M, False: 73.6M]
  ------------------
22413|  60.6M|                return sax->boolean(false);
22414|       |
22415|  65.0M|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 65.0M, False: 69.2M]
  ------------------
22416|  65.0M|                return sax->null();
22417|       |
22418|      1|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1, False: 134M]
  ------------------
22419|      1|            {
22420|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 1, False: 0]
  ------------------
22421|      1|                {
22422|      1|                    break;
22423|      1|                }
22424|      0|                std::uint8_t number{};
22425|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 0, False: 0]
  |  Branch (22425:46): [True: 0, False: 0]
  ------------------
22426|      1|            }
22427|       |
22428|  4.27k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 4.27k, False: 134M]
  ------------------
22429|  4.27k|            {
22430|  4.27k|                std::uint8_t number{};
22431|  4.27k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 4.18k, False: 97]
  |  Branch (22431:46): [True: 4.18k, False: 0]
  ------------------
22432|      1|            }
22433|       |
22434|  2.19k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 2.19k, False: 134M]
  ------------------
22435|  2.19k|            {
22436|  2.19k|                std::int8_t number{};
22437|  2.19k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 2.09k, False: 91]
  |  Branch (22437:46): [True: 2.09k, False: 0]
  ------------------
22438|      1|            }
22439|       |
22440|  1.71k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 1.71k, False: 134M]
  ------------------
22441|  1.71k|            {
22442|  1.71k|                std::int16_t number{};
22443|  1.71k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 1.62k, False: 92]
  |  Branch (22443:46): [True: 1.62k, False: 0]
  ------------------
22444|      1|            }
22445|       |
22446|    992|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 992, False: 134M]
  ------------------
22447|    992|            {
22448|    992|                std::int32_t number{};
22449|    992|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 901, False: 91]
  |  Branch (22449:46): [True: 901, False: 0]
  ------------------
22450|      1|            }
22451|       |
22452|  1.15k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 1.15k, False: 134M]
  ------------------
22453|  1.15k|            {
22454|  1.15k|                std::int64_t number{};
22455|  1.15k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 1.06k, False: 89]
  |  Branch (22455:46): [True: 1.06k, False: 0]
  ------------------
22456|      1|            }
22457|       |
22458|      1|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 1, False: 134M]
  ------------------
22459|      1|            {
22460|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 1, False: 0]
  ------------------
22461|      1|                {
22462|      1|                    break;
22463|      1|                }
22464|      0|                std::uint16_t number{};
22465|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 0, False: 0]
  |  Branch (22465:46): [True: 0, False: 0]
  ------------------
22466|      1|            }
22467|       |
22468|      2|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 2, False: 134M]
  ------------------
22469|      2|            {
22470|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 2, False: 0]
  ------------------
22471|      2|                {
22472|      2|                    break;
22473|      2|                }
22474|      0|                std::uint32_t number{};
22475|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 0, False: 0]
  |  Branch (22475:46): [True: 0, False: 0]
  ------------------
22476|      2|            }
22477|       |
22478|      2|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 2, False: 134M]
  ------------------
22479|      2|            {
22480|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 2, False: 0]
  ------------------
22481|      2|                {
22482|      2|                    break;
22483|      2|                }
22484|      0|                std::uint64_t number{};
22485|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 0, False: 0]
  |  Branch (22485:46): [True: 0, False: 0]
  ------------------
22486|      2|            }
22487|       |
22488|      2|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 2, False: 134M]
  ------------------
22489|      2|            {
22490|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 2, False: 0]
  ------------------
22491|      2|                {
22492|      2|                    break;
22493|      2|                }
22494|      0|                return get_half_float(true);
22495|      2|            }
22496|       |
22497|  2.46k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 2.46k, False: 134M]
  ------------------
22498|  2.46k|            {
22499|  2.46k|                float number{};
22500|  2.46k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 2.36k, False: 97]
  |  Branch (22500:46): [True: 2.36k, False: 0]
  ------------------
22501|      2|            }
22502|       |
22503|    818|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 818, False: 134M]
  ------------------
22504|    818|            {
22505|    818|                double number{};
22506|    818|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 741, False: 77]
  |  Branch (22506:46): [True: 741, False: 0]
  ------------------
22507|      2|            }
22508|       |
22509|  9.19k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 9.19k, False: 134M]
  ------------------
22510|  9.19k|            {
22511|  9.19k|                return get_ubjson_high_precision_number();
22512|      2|            }
22513|       |
22514|  5.38k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 5.38k, False: 134M]
  ------------------
22515|  5.38k|            {
22516|  5.38k|                get();
22517|  5.38k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.38k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  5.38k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.38k]
  |  |  ------------------
  ------------------
22522|      5|                {
22523|      5|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      5|                }
22525|  5.38k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  5.38k|                return sax->string(s);
22527|  5.38k|            }
22528|       |
22529|  2.53k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 2.53k, False: 134M]
  ------------------
22530|  2.53k|            {
22531|  2.53k|                string_t s;
22532|  2.53k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 2.39k, False: 140]
  |  Branch (22532:48): [True: 2.39k, False: 0]
  ------------------
22533|  5.38k|            }
22534|       |
22535|  64.2k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 64.2k, False: 134M]
  ------------------
22536|  64.2k|                return get_ubjson_array();
22537|       |
22538|  10.4k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 10.4k, False: 134M]
  ------------------
22539|  10.4k|                return get_ubjson_object();
22540|       |
22541|    197|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 197, False: 134M]
  ------------------
22542|    197|                break;
22543|   134M|        }
22544|    205|        return unexpected_byte("invalid byte", "value");
22545|   134M|    }
_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_EEE32get_ubjson_high_precision_numberEv:
22845|  9.19k|    {
22846|       |        // get the size of the following number string
22847|  9.19k|        std::size_t size{};
22848|  9.19k|        bool no_ndarray = true;
22849|  9.19k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  9.19k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.19k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  9.19k|        std::vector<char> number_vector;
22857|   127k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 118k, False: 9.19k]
  ------------------
22858|   118k|        {
22859|   118k|            get();
22860|   118k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 118k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|   118k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 118k]
  |  |  ------------------
  ------------------
22866|      1|            {
22867|      1|                return sax->parse_error(chars_read, "00", parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22868|      1|                                        exception_message("invalid number text; last byte: 0x00", "high-precision number"), nullptr));
22869|      1|            }
22870|   118k|            number_vector.push_back(static_cast<char>(current));
22871|   118k|        }
22872|       |
22873|       |        // parse number string
22874|  9.19k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  9.19k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  9.19k|        const auto result_number = number_lexer.scan();
22877|  9.19k|        const auto number_string = number_lexer.get_token_string();
22878|       |        // the number as the lexer read it, for SAX number_float(): unlike
22879|       |        // get_token_string(), which is meant for error messages and shortens
22880|       |        // long tokens, it is complete; the next scan() replaces it
22881|  9.19k|        const string_t number_text = number_lexer.get_string();
22882|  9.19k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  9.19k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  9.19k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.18k, False: 8.00k]
  |  |  ------------------
  ------------------
22887|  1.18k|        {
22888|  1.18k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.18k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.18k|        }
22891|       |
22892|  8.00k|        switch (result_number)
22893|  8.00k|        {
22894|    448|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 448, False: 7.55k]
  ------------------
22895|    448|                return sax->number_integer(number_lexer.get_number_integer());
22896|  3.18k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 3.18k, False: 4.82k]
  ------------------
22897|  3.18k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.33k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.33k, False: 4.66k]
  ------------------
22899|  3.33k|            {
22900|  3.33k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.33k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 190, False: 3.14k]
  |  |  ------------------
  ------------------
22902|    190|                {
22903|    190|                    return sax->parse_error(
22904|    190|                               chars_read,
22905|    190|                               number_string,
22906|    190|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    190|                }
22908|  3.14k|                return sax->number_float(parsed_float, number_text);
22909|  3.33k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 8.00k]
  ------------------
22911|      1|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 1, False: 8.00k]
  ------------------
22912|      2|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 8.00k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 0, False: 8.00k]
  ------------------
22914|      4|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 2, False: 8.00k]
  ------------------
22915|      9|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 5, False: 8.00k]
  ------------------
22916|     10|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 8.00k]
  ------------------
22917|     11|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 8.00k]
  ------------------
22918|     12|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 8.00k]
  ------------------
22919|     13|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 1, False: 8.00k]
  ------------------
22920|     14|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 8.00k]
  ------------------
22921|    662|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 648, False: 7.35k]
  ------------------
22922|    703|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 41, False: 7.96k]
  ------------------
22923|    703|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 8.00k]
  ------------------
22924|    703|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 8.00k]
  ------------------
22925|    703|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    703|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  8.00k|        }
22928|  8.00k|    }
_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_EEE21get_ubjson_size_valueERmRbii:
22148|  17.2k|    {
22149|  17.2k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 17.2k, False: 0]
  ------------------
22150|  17.2k|        {
22151|  17.2k|            prefix = get_ignore_noop();
22152|  17.2k|        }
22153|       |
22154|  17.2k|        switch (prefix)
22155|  17.2k|        {
22156|  11.5k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 11.5k, False: 5.68k]
  ------------------
22157|  11.5k|            {
22158|  11.5k|                std::uint8_t number{};
22159|  11.5k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  11.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.5k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  11.5k|                result = static_cast<std::size_t>(number);
22164|  11.5k|                return true;
22165|  11.5k|            }
22166|       |
22167|  2.36k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 2.36k, False: 14.8k]
  ------------------
22168|  2.36k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.65k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.65k, False: 15.5k]
  ------------------
22171|  1.65k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    694|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 694, False: 16.5k]
  ------------------
22174|    694|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    903|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 903, False: 16.2k]
  ------------------
22177|    903|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|      1|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 1, False: 17.2k]
  ------------------
22180|      1|            {
22181|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 1, False: 0]
  ------------------
22182|      1|                {
22183|      1|                    break;
22184|      1|                }
22185|      0|                std::uint16_t number{};
22186|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|      0|                result = static_cast<std::size_t>(number);
22191|      0|                return true;
22192|      0|            }
22193|       |
22194|      1|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 1, False: 17.2k]
  ------------------
22195|      1|            {
22196|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 1, False: 0]
  ------------------
22197|      1|                {
22198|      1|                    break;
22199|      1|                }
22200|      0|                std::uint32_t number{};
22201|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|      0|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|      0|            }
22207|       |
22208|      1|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1, False: 17.2k]
  ------------------
22209|      1|            {
22210|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 1, False: 0]
  ------------------
22211|      1|                {
22212|      1|                    break;
22213|      1|                }
22214|      0|                std::uint64_t number{};
22215|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|      0|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 0]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|      0|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|      0|            }
22225|       |
22226|      6|            case '[':
  ------------------
  |  Branch (22226:13): [True: 6, False: 17.1k]
  ------------------
22227|      6|            {
22228|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 6, False: 0]
  ------------------
22229|      6|                {
22230|      6|                    break;
22231|      6|                }
22232|      0|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 0, False: 0]
  ------------------
22233|      0|                {
22234|      0|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      0|                }
22236|      0|                std::vector<size_t> dim;
22237|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|      0|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 0, False: 0]
  |  Branch (22241:41): [True: 0, False: 0]
  |  Branch (22241:60): [True: 0, False: 0]
  ------------------
22242|      0|                {
22243|      0|                    result = dim.at(dim.size() - 1);
22244|      0|                    return true;
22245|      0|                }
22246|      0|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 0, False: 0]
  ------------------
22247|      0|                {
22248|      0|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 0, False: 0]
  ------------------
22249|      0|                    {
22250|      0|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 0, False: 0]
  ------------------
22251|      0|                        {
22252|      0|                            result = 0;
22253|      0|                            return true;
22254|      0|                        }
22255|      0|                    }
22256|       |
22257|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22258|      0|                    {
22259|      0|                        return false;
22260|      0|                    }
22261|       |
22262|       |                    // the element type precedes the dimension vector (see get_ubjson_size_type)
22263|       |                    // and is passed down as ndarray_dtype; emit it here so the annotation keys
22264|       |                    // follow the documented _ArrayType_, _ArraySize_, _ArrayData_ order
22265|      0|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 0, False: 0]
  ------------------
22266|      0|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|      0|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|      0|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 0, False: 0]
  ------------------
22270|       |
22271|      0|                        string_t type_key = "_ArrayType_";
22272|      0|                        string_t type = type_name; // sax->string() takes a reference
22273|      0|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|      0|                    }
22278|       |
22279|      0|                    string_t key = "_ArraySize_";
22280|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|      0|                    result = 1;
22285|      0|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 0, False: 0]
  ------------------
22286|      0|                    {
22287|       |                        // Pre-multiplication overflow check: since the loop above
22288|       |                        // already rejected any zero dimension, i is always > 0
22289|       |                        // here, so result > SIZE_MAX/i means result*i would
22290|       |                        // overflow. This check must happen before multiplication
22291|       |                        // since overflow detection after the fact is unreliable,
22292|       |                        // as modular arithmetic can produce any value, not just 0
22293|       |                        // or SIZE_MAX.
22294|      0|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22295|      0|                        {
22296|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|      0|                        }
22298|      0|                        result *= i;
22299|       |                        // the pre-check above already rules out result becoming 0
22300|       |                        // by overflow; the only value it cannot rule out is an
22301|       |                        // exact match with npos, the sentinel reserved for an
22302|       |                        // unknown-size container (see get_ubjson_size_type())
22303|      0|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 0, False: 0]
  ------------------
22304|      0|                        {
22305|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      0|                        }
22307|      0|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|      0|                    }
22312|      0|                    is_ndarray = true;
22313|      0|                    return sax->end_array();
22314|      0|                }
22315|      0|                result = 0;
22316|      0|                return true;
22317|      0|            }
22318|       |
22319|     54|            default:
  ------------------
  |  Branch (22319:13): [True: 54, False: 17.1k]
  ------------------
22320|     54|                break;
22321|  17.2k|        }
22322|     63|        return length_type_error(" after '#'", "size");
22323|  17.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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  2.36k|    {
22115|  2.36k|        SignedType number{};
22116|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  2.36k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2, False: 2.36k]
  |  |  ------------------
  ------------------
22121|      2|        {
22122|      2|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      2|        }
22124|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  2.36k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  2.36k|    }
_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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.65k|    {
22115|  1.65k|        SignedType number{};
22116|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.65k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.65k]
  |  |  ------------------
  ------------------
22121|      3|        {
22122|      3|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      3|        }
22124|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.65k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  1.65k|    }
_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_EEE23get_ubjson_signed_countIiEEbRm:
22114|    694|    {
22115|    694|        SignedType number{};
22116|    694|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 694]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    694|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 659]
  |  |  ------------------
  ------------------
22121|     35|        {
22122|     35|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     35|        }
22124|    659|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    659|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 659]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    659|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    659|    }
_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_EEE23get_ubjson_signed_countIlEEbRm:
22114|    903|    {
22115|    903|        SignedType number{};
22116|    903|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 903]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    903|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 837]
  |  |  ------------------
  ------------------
22121|     66|        {
22122|     66|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     66|        }
22124|    837|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    837|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 837]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    837|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    837|    }
_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_EEE18store_ubjson_countEmRm:
22089|  5.46k|    {
22090|  5.46k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  5.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.46k]
  |  |  ------------------
  ------------------
22091|      0|        {
22092|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      0|        }
22094|  5.46k|        result = count;
22095|  5.46k|        return true;
22096|  5.46k|    }
_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_EEE20get_ubjson_size_typeERNS4_4pairImiEEb:
22337|  74.7k|    {
22338|  74.7k|        result.first = npos; // size
22339|  74.7k|        result.second = 0; // type
22340|       |        // seed the flag with the caller's context: inside an ndarray dimension
22341|       |        // vector another ndarray is not allowed, and get_ubjson_size_value()
22342|       |        // rejects it up front instead of reading it and reporting afterwards.
22343|       |        // Seeding it with `false` made every '#' of a "[#[#[..." chain descend
22344|       |        // another level, which overflowed the stack (see #5104).
22345|  74.7k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|  74.7k|        get_ignore_noop();
22348|       |
22349|  74.7k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 5.69k, False: 69.0k]
  ------------------
22350|  5.69k|        {
22351|  5.69k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.69k]
  |  |  ------------------
  ------------------
22353|      0|            {
22354|      0|                return false;
22355|      0|            }
22356|       |
22357|       |            // validate the type marker up front: otherwise it would only be
22358|       |            // checked when an element is read, and a container with count 0
22359|       |            // would accept any marker
22360|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 5.68k]
  |  |  ------------------
  ------------------
22361|     12|            {
22362|     12|                return optimized_type_error();
22363|     12|            }
22364|       |
22365|  5.68k|            get_ignore_noop();
22366|  5.68k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  5.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 128, False: 5.55k]
  |  |  ------------------
  ------------------
22367|    128|            {
22368|    128|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    128|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 128]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    128|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    128|            }
22374|       |
22375|  5.55k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray, 0, result.second);
22376|       |            // an ndarray was read here only if the flag flipped; when it was
22377|       |            // seeded true, get_ubjson_size_value() already rejected the nested
22378|       |            // dimension vector
22379|  5.55k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 0, False: 5.55k]
  |  Branch (22379:31): [True: 0, False: 0]
  ------------------
22380|      0|            {
22381|      0|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|      0|            }
22383|  5.55k|            return is_error;
22384|  5.68k|        }
22385|       |
22386|  69.0k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 2.46k, False: 66.5k]
  ------------------
22387|  2.46k|        {
22388|  2.46k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  2.46k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 0, False: 2.46k]
  |  Branch (22389:31): [True: 0, False: 0]
  ------------------
22390|      0|            {
22391|      0|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|      0|            }
22393|  2.46k|            return is_error;
22394|  2.46k|        }
22395|       |
22396|  66.5k|        return true;
22397|  69.0k|    }
_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_EEE23is_valid_optimized_typeEi:
24157|  5.68k|    {
24158|  5.68k|        switch (marker)
24159|  5.68k|        {
24160|    452|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 452, False: 5.23k]
  ------------------
24161|    886|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 434, False: 5.25k]
  ------------------
24162|  1.26k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 376, False: 5.31k]
  ------------------
24163|  1.63k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 371, False: 5.31k]
  ------------------
24164|  1.94k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 314, False: 5.37k]
  ------------------
24165|  2.35k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 408, False: 5.27k]
  ------------------
24166|  2.62k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 267, False: 5.41k]
  ------------------
24167|  2.79k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 168, False: 5.51k]
  ------------------
24168|  2.79k|                return true;
24169|    931|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 931, False: 4.75k]
  ------------------
24170|  1.08k|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 154, False: 5.53k]
  ------------------
24171|  1.79k|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 711, False: 4.97k]
  ------------------
24172|  2.24k|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 444, False: 5.24k]
  ------------------
24173|  2.36k|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 128, False: 5.55k]
  ------------------
24174|  2.50k|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 140, False: 5.54k]
  ------------------
24175|  2.75k|            case '[':
  ------------------
  |  Branch (24175:13): [True: 245, False: 5.44k]
  ------------------
24176|  2.88k|            case '{':
  ------------------
  |  Branch (24176:13): [True: 131, False: 5.55k]
  ------------------
24177|  2.88k|                return input_format != input_format_t::bjdata;
24178|      2|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 2, False: 5.68k]
  ------------------
24179|      3|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 1, False: 5.68k]
  ------------------
24180|      4|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 1, False: 5.68k]
  ------------------
24181|      5|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 1, False: 5.68k]
  ------------------
24182|      6|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 1, False: 5.68k]
  ------------------
24183|      6|                return input_format == input_format_t::bjdata;
24184|      6|            default:
  ------------------
  |  Branch (24184:13): [True: 6, False: 5.68k]
  ------------------
24185|      6|                return false;
24186|  5.68k|        }
24187|  5.68k|    }
_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_EEE20optimized_type_errorEv:
24014|     12|    {
24015|     12|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     12|    }
_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_EEE17length_type_errorEPKcSM_:
24081|    144|    {
24082|    144|        const char* types = input_format == input_format_t::bjdata ? "U, i, u, I, m, l, M, L" : "U, i, I, l, L";
  ------------------
  |  Branch (24082:29): [True: 0, False: 144]
  ------------------
24083|    144|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    144|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    144|    }
_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_EEE16get_ubjson_arrayEv:
22707|  64.2k|    {
22708|  64.2k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  64.2k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  64.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.2k]
  |  |  ------------------
  ------------------
22710|      0|        {
22711|      0|            return false;
22712|      0|        }
22713|       |
22714|       |        // if bit-8 of size_and_type.second is set to 1, encode bjdata ndarray as an object in JData annotated array format (https://github.com/NeuroJSON/jdata):
22715|       |        // {"_ArrayType_" : "typeid", "_ArraySize_" : [n1, n2, ...], "_ArrayData_" : [v1, v2, ...]}
22716|       |
22717|  64.2k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 0, False: 64.2k]
  ------------------
22718|      0|        {
22719|      0|            size_and_type.second &= ~(static_cast<char_int_type>(1) << 8);  // use bit 8 to indicate ndarray, here we remove the bit to restore the type marker
22720|       |
22721|       |            // the "_ArrayType_" and "_ArraySize_" annotation keys were already emitted by
22722|       |            // get_ubjson_size_value() (the type marker is known before the dimension vector
22723|       |            // that determines size_and_type.first is read, so it is emitted first there to
22724|       |            // match the documented _ArrayType_, _ArraySize_, _ArrayData_ key order)
22725|       |            // 'C' elements are read as unsigned bytes, but BJData limits a char to 0..127
22726|      0|            const bool nd_is_char = size_and_type.second == 'C';
22727|      0|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 0, False: 0]
  |  Branch (22727:48): [True: 0, False: 0]
  ------------------
22728|      0|            {
22729|      0|                size_and_type.second = 'U';
22730|      0|            }
22731|       |
22732|      0|            string_t key = "_ArrayData_";
22733|      0|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22734|      0|            {
22735|      0|                return false;
22736|      0|            }
22737|       |
22738|       |            // the numbers that are in the input, in one loop; the rest (if
22739|       |            // the input ends early) one by one below
22740|      0|            std::size_t remaining = size_and_type.first;
22741|      0|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 0, False: 0]
  |  Branch (22741:17): [True: 0, False: 0]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|      0|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 0, False: 0]
  ------------------
22747|      0|            {
22748|      0|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 0, False: 0]
  ------------------
22749|      0|                {
22750|      0|                    get();
22751|      0|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|      0|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22756|      0|                    {
22757|      0|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      0|                    }
22759|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|      0|                    continue;
22764|      0|                }
22765|       |
22766|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|      0|            }
22771|       |
22772|      0|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 0, False: 0]
  |  Branch (22772:41): [True: 0, False: 0]
  ------------------
22773|      0|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  64.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 6.85k, False: 57.4k]
  |  Branch (22776:44): [True: 0, False: 6.85k]
  ------------------
22777|      0|        {
22778|      0|            binary_t result;
22779|      0|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 0, False: 0]
  |  Branch (22779:63): [True: 0, False: 0]
  ------------------
22780|      0|        }
22781|       |
22782|  64.2k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.85k, False: 57.4k]
  ------------------
22783|  6.85k|        {
22784|       |            // reading an element of a valueless type consumes no input, so the
22785|       |            // declared count alone decides how much is allocated; the check is
22786|       |            // made before the start event so that no container is opened that
22787|       |            // is then abandoned. See @ref max_valueless_container_size.
22788|  6.85k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  25.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.90k, False: 4.94k]
  |  |  |  Branch (1697:94): [True: 831, False: 6.02k]
  |  |  |  Branch (1697:94): [True: 638, False: 5.38k]
  |  |  |  Branch (1697:94): [True: 440, False: 4.94k]
  |  |  ------------------
  ------------------
22789|  1.90k|            {
22790|  1.90k|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 44, False: 1.86k]
  |  |  ------------------
  ------------------
22791|     44|                {
22792|     44|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|     44|                }
22794|  1.86k|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22795|     18|                {
22796|     18|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|     18|                }
22798|  1.86k|            }
22799|       |
22800|       |            // a no-op is not a value, so an array of them is empty whatever
22801|       |            // count it declares: the SAX parser is told so, instead of being
22802|       |            // made to reserve storage for a count that no input backs
22803|  6.79k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 145, False: 6.64k]
  ------------------
22804|  6.79k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.79k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.79k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 1.49k, False: 5.29k]
  ------------------
22810|  5.29k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 5.29k, False: 0]
  ------------------
22811|  6.79k|        }
22812|       |
22813|  57.4k|        return enter_array(detail::unknown_size());
22814|  64.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_EEE22parse_ubjson_typed_runERmiNS4_17integral_constantIbLb1EEE:
22562|  5.29k|    {
22563|  5.29k|        switch (type)
22564|  5.29k|        {
22565|    422|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 422, False: 4.87k]
  ------------------
22566|    422|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|    442|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 442, False: 4.85k]
  ------------------
22568|    442|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|    366|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 366, False: 4.93k]
  ------------------
22570|    366|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|    363|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 363, False: 4.93k]
  ------------------
22572|    363|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|    304|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 304, False: 4.99k]
  ------------------
22574|    304|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|      0|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 0, False: 5.29k]
  ------------------
22576|      0|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|      0|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 0, False: 5.29k]
  ------------------
22578|      0|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|      0|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 0, False: 5.29k]
  ------------------
22580|      0|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|    398|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 398, False: 4.89k]
  ------------------
22582|    398|                return parse_ubjson_typed_run<float>(remaining);
22583|    259|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 259, False: 5.03k]
  ------------------
22584|    259|                return parse_ubjson_typed_run<double>(remaining);
22585|  2.74k|            default:
  ------------------
  |  Branch (22585:13): [True: 2.74k, False: 2.55k]
  ------------------
22586|  2.74k|                return true;
22587|  5.29k|        }
22588|  5.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_EEE22parse_ubjson_typed_runIhEEbRm:
22598|    422|    {
22599|    422|        constexpr std::size_t size = sizeof(NumberType);
22600|    422|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    422|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 205, False: 217]
  ------------------
22602|    205|        {
22603|    205|            return true;
22604|    205|        }
22605|    217|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    217|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    217|        const std::size_t start = chars_read;
22609|    217|        std::size_t read = 0;
22610|    217|        bool accepted = true;
22611|  4.51k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.30k, False: 217]
  |  Branch (22611:32): [True: 4.30k, False: 0]
  ------------------
22612|  4.30k|        {
22613|  4.30k|            NumberType number{};
22614|  4.30k|            std::memcpy(&number, data + (read * size), size);
22615|  4.30k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 4.30k, False: 0]
  ------------------
22616|  4.30k|            {
22617|  4.30k|                byte_swap(number);
22618|  4.30k|            }
22619|  4.30k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  4.30k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.30k|            accepted = emit_ubjson_number(number);
22625|  4.30k|        }
22626|       |        // get_number() does not change current
22627|    217|        ia.bulk_skip(read * size);
22628|    217|        chars_read = start + (read * size);
22629|    217|        remaining -= read;
22630|    217|        return accepted;
22631|    422|    }
_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_EEE14set_chars_readEmNS4_17integral_constantIbLb0EEE:
22651|  13.2k|    void set_chars_read(const std::size_t /*position*/, std::false_type /*track*/) const noexcept {}
_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_EEE18emit_ubjson_numberIhTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|  4.30k|    {
22668|  4.30k|        return emit_unsigned(number);
22669|  4.30k|    }
_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_EEE22parse_ubjson_typed_runIaEEbRm:
22598|    442|    {
22599|    442|        constexpr std::size_t size = sizeof(NumberType);
22600|    442|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    442|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 253, False: 189]
  ------------------
22602|    253|        {
22603|    253|            return true;
22604|    253|        }
22605|    189|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    189|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    189|        const std::size_t start = chars_read;
22609|    189|        std::size_t read = 0;
22610|    189|        bool accepted = true;
22611|  4.25k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.06k, False: 189]
  |  Branch (22611:32): [True: 4.06k, False: 0]
  ------------------
22612|  4.06k|        {
22613|  4.06k|            NumberType number{};
22614|  4.06k|            std::memcpy(&number, data + (read * size), size);
22615|  4.06k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 4.06k, False: 0]
  ------------------
22616|  4.06k|            {
22617|  4.06k|                byte_swap(number);
22618|  4.06k|            }
22619|  4.06k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  4.06k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.06k|            accepted = emit_ubjson_number(number);
22625|  4.06k|        }
22626|       |        // get_number() does not change current
22627|    189|        ia.bulk_skip(read * size);
22628|    189|        chars_read = start + (read * size);
22629|    189|        remaining -= read;
22630|    189|        return accepted;
22631|    442|    }
_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_EEE18emit_ubjson_numberIaTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|  4.06k|    {
22662|  4.06k|        return emit_signed(number);
22663|  4.06k|    }
_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_EEE22parse_ubjson_typed_runIsEEbRm:
22598|    366|    {
22599|    366|        constexpr std::size_t size = sizeof(NumberType);
22600|    366|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    366|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 197, False: 169]
  ------------------
22602|    197|        {
22603|    197|            return true;
22604|    197|        }
22605|    169|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    169|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    169|        const std::size_t start = chars_read;
22609|    169|        std::size_t read = 0;
22610|    169|        bool accepted = true;
22611|  1.59k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.42k, False: 169]
  |  Branch (22611:32): [True: 1.42k, False: 0]
  ------------------
22612|  1.42k|        {
22613|  1.42k|            NumberType number{};
22614|  1.42k|            std::memcpy(&number, data + (read * size), size);
22615|  1.42k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 1.42k, False: 0]
  ------------------
22616|  1.42k|            {
22617|  1.42k|                byte_swap(number);
22618|  1.42k|            }
22619|  1.42k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  1.42k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.42k|            accepted = emit_ubjson_number(number);
22625|  1.42k|        }
22626|       |        // get_number() does not change current
22627|    169|        ia.bulk_skip(read * size);
22628|    169|        chars_read = start + (read * size);
22629|    169|        remaining -= read;
22630|    169|        return accepted;
22631|    366|    }
_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_EEE18emit_ubjson_numberIsTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|  1.42k|    {
22662|  1.42k|        return emit_signed(number);
22663|  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_EEE22parse_ubjson_typed_runIiEEbRm:
22598|    363|    {
22599|    363|        constexpr std::size_t size = sizeof(NumberType);
22600|    363|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    363|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 206, False: 157]
  ------------------
22602|    206|        {
22603|    206|            return true;
22604|    206|        }
22605|    157|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    157|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    157|        const std::size_t start = chars_read;
22609|    157|        std::size_t read = 0;
22610|    157|        bool accepted = true;
22611|    775|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 618, False: 157]
  |  Branch (22611:32): [True: 618, False: 0]
  ------------------
22612|    618|        {
22613|    618|            NumberType number{};
22614|    618|            std::memcpy(&number, data + (read * size), size);
22615|    618|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 618, False: 0]
  ------------------
22616|    618|            {
22617|    618|                byte_swap(number);
22618|    618|            }
22619|    618|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    618|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    618|            accepted = emit_ubjson_number(number);
22625|    618|        }
22626|       |        // get_number() does not change current
22627|    157|        ia.bulk_skip(read * size);
22628|    157|        chars_read = start + (read * size);
22629|    157|        remaining -= read;
22630|    157|        return accepted;
22631|    363|    }
_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_EEE18emit_ubjson_numberIiTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|    618|    {
22662|    618|        return emit_signed(number);
22663|    618|    }
_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_EEE22parse_ubjson_typed_runIlEEbRm:
22598|    304|    {
22599|    304|        constexpr std::size_t size = sizeof(NumberType);
22600|    304|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    304|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 219, False: 85]
  ------------------
22602|    219|        {
22603|    219|            return true;
22604|    219|        }
22605|     85|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|     85|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|     85|        const std::size_t start = chars_read;
22609|     85|        std::size_t read = 0;
22610|     85|        bool accepted = true;
22611|    503|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 418, False: 85]
  |  Branch (22611:32): [True: 418, False: 0]
  ------------------
22612|    418|        {
22613|    418|            NumberType number{};
22614|    418|            std::memcpy(&number, data + (read * size), size);
22615|    418|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 418, False: 0]
  ------------------
22616|    418|            {
22617|    418|                byte_swap(number);
22618|    418|            }
22619|    418|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    418|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    418|            accepted = emit_ubjson_number(number);
22625|    418|        }
22626|       |        // get_number() does not change current
22627|     85|        ia.bulk_skip(read * size);
22628|     85|        chars_read = start + (read * size);
22629|     85|        remaining -= read;
22630|     85|        return accepted;
22631|    304|    }
_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_EEE18emit_ubjson_numberIlTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|    418|    {
22662|    418|        return emit_signed(number);
22663|    418|    }
_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_EEE22parse_ubjson_typed_runIfEEbRm:
22598|    398|    {
22599|    398|        constexpr std::size_t size = sizeof(NumberType);
22600|    398|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    398|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 200, False: 198]
  ------------------
22602|    200|        {
22603|    200|            return true;
22604|    200|        }
22605|    198|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    198|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    198|        const std::size_t start = chars_read;
22609|    198|        std::size_t read = 0;
22610|    198|        bool accepted = true;
22611|  2.15k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.95k, False: 198]
  |  Branch (22611:32): [True: 1.95k, False: 0]
  ------------------
22612|  1.95k|        {
22613|  1.95k|            NumberType number{};
22614|  1.95k|            std::memcpy(&number, data + (read * size), size);
22615|  1.95k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 1.95k, False: 0]
  ------------------
22616|  1.95k|            {
22617|  1.95k|                byte_swap(number);
22618|  1.95k|            }
22619|  1.95k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  1.95k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.95k|            accepted = emit_ubjson_number(number);
22625|  1.95k|        }
22626|       |        // get_number() does not change current
22627|    198|        ia.bulk_skip(read * size);
22628|    198|        chars_read = start + (read * size);
22629|    198|        remaining -= read;
22630|    198|        return accepted;
22631|    398|    }
_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_EEE18emit_ubjson_numberIfTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|  1.95k|    {
22656|  1.95k|        return emit_float(number);
22657|  1.95k|    }
_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_EEE22parse_ubjson_typed_runIdEEbRm:
22598|    259|    {
22599|    259|        constexpr std::size_t size = sizeof(NumberType);
22600|    259|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    259|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 186, False: 73]
  ------------------
22602|    186|        {
22603|    186|            return true;
22604|    186|        }
22605|     73|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|     73|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|     73|        const std::size_t start = chars_read;
22609|     73|        std::size_t read = 0;
22610|     73|        bool accepted = true;
22611|    541|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 468, False: 73]
  |  Branch (22611:32): [True: 468, False: 0]
  ------------------
22612|    468|        {
22613|    468|            NumberType number{};
22614|    468|            std::memcpy(&number, data + (read * size), size);
22615|    468|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 468, False: 0]
  ------------------
22616|    468|            {
22617|    468|                byte_swap(number);
22618|    468|            }
22619|    468|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    468|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    468|            accepted = emit_ubjson_number(number);
22625|    468|        }
22626|       |        // get_number() does not change current
22627|     73|        ia.bulk_skip(read * size);
22628|     73|        chars_read = start + (read * size);
22629|     73|        remaining -= read;
22630|     73|        return accepted;
22631|    259|    }
_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_EEE18emit_ubjson_numberIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|    468|    {
22656|    468|        return emit_float(number);
22657|    468|    }
_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_EEE25charge_valueless_elementsEm:
22686|  1.86k|    {
22687|       |        // limit = base + rate * chars_read, saturating at the largest size_t
22688|       |        // instead of wrapping around, which would make a huge rate or input
22689|       |        // reject everything. valueless_elements never exceeds the limit of an
22690|       |        // earlier call, and the limit does not decrease, so the difference
22691|       |        // below cannot underflow.
22692|  1.86k|        const std::size_t limit = chars_read <= valueless_elements_saturation_chars
  ------------------
  |  Branch (22692:35): [True: 1.86k, False: 0]
  ------------------
22693|  1.86k|                                  ? valueless_elements_base + (valueless_elements_per_byte * chars_read)
22694|  1.86k|                                  : (std::numeric_limits<std::size_t>::max)();
22695|  1.86k|        if (JSON_HEDLEY_UNLIKELY(count > limit - valueless_elements))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22696|     18|        {
22697|     18|            return false;
22698|     18|        }
22699|  1.84k|        valueless_elements += count;
22700|  1.84k|        return true;
22701|  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_EEE17get_ubjson_objectEv:
22820|  10.4k|    {
22821|  10.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  10.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  10.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.4k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  10.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 0, False: 10.4k]
  ------------------
22829|      0|        {
22830|      0|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      0|        }
22832|       |
22833|  10.4k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 1.11k, False: 9.34k]
  ------------------
22834|  1.11k|        {
22835|  1.11k|            return enter_object(size_and_type.first, size_and_type.second);
22836|  1.11k|        }
22837|       |
22838|  9.34k|        return enter_object(detail::unknown_size());
22839|  10.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  22.4k|    {
21944|  22.4k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 6.24k, False: 16.2k]
  ------------------
21945|  6.24k|        {
21946|       |            // no get_ignore_noop() here: the byte read next must be a string
21947|       |            // length type specification, and a no-op ('N') is not valid in
21948|       |            // that position. No-ops at positions where a value may appear are
21949|       |            // already consumed by the callers via get_ignore_noop().
21950|  6.24k|            get();
21951|  6.24k|        }
21952|       |
21953|  22.4k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  22.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  22.4k|        switch (current)
21959|  22.4k|        {
21960|  17.5k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 17.5k, False: 4.96k]
  ------------------
21961|  17.5k|            {
21962|  17.5k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  2.64k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 2.64k, False: 19.8k]
  ------------------
21966|  2.64k|            {
21967|  2.64k|                std::int8_t len{};
21968|  2.64k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 2.63k, False: 4]
  |  Branch (21968:43): [True: 2.63k, False: 3]
  |  Branch (21968:78): [True: 2.59k, False: 42]
  |  Branch (21968:105): [True: 2.59k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    811|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 811, False: 21.6k]
  ------------------
21972|    811|            {
21973|    811|                std::int16_t len{};
21974|    811|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 804, False: 7]
  |  Branch (21974:43): [True: 800, False: 4]
  |  Branch (21974:78): [True: 742, False: 58]
  |  Branch (21974:105): [True: 742, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    534|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 534, False: 21.9k]
  ------------------
21978|    534|            {
21979|    534|                std::int32_t len{};
21980|    534|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 525, False: 9]
  |  Branch (21980:43): [True: 492, False: 33]
  |  Branch (21980:78): [True: 402, False: 90]
  |  Branch (21980:105): [True: 402, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    595|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 595, False: 21.8k]
  ------------------
21984|    595|            {
21985|    595|                std::int64_t len{};
21986|    595|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 582, False: 13]
  |  Branch (21986:43): [True: 513, False: 69]
  |  Branch (21986:78): [True: 359, False: 154]
  |  Branch (21986:105): [True: 359, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|      1|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 1, False: 22.4k]
  ------------------
21990|      1|            {
21991|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 1, False: 0]
  ------------------
21992|      1|                {
21993|      1|                    break;
21994|      1|                }
21995|      0|                return get_string_with_length<std::uint16_t>(result, context);
21996|      1|            }
21997|       |
21998|      2|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 2, False: 22.4k]
  ------------------
21999|      2|            {
22000|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 2, False: 0]
  ------------------
22001|      2|                {
22002|      2|                    break;
22003|      2|                }
22004|      0|                return get_string_with_length<std::uint32_t>(result, context);
22005|      2|            }
22006|       |
22007|      1|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 1, False: 22.4k]
  ------------------
22008|      1|            {
22009|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 1, False: 0]
  ------------------
22010|      1|                {
22011|      1|                    break;
22012|      1|                }
22013|      0|                return get_string_with_length<std::uint64_t>(result, context);
22014|      1|            }
22015|       |
22016|     77|            default:
  ------------------
  |  Branch (22016:13): [True: 77, False: 22.3k]
  ------------------
22017|     77|                break;
22018|  22.4k|        }
22019|     81|        return length_type_error("", "string");
22020|  22.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  2.63k|    {
21921|  2.63k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.63k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 2.63k]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|  2.63k|        return true;
21926|  2.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_EEE10get_stringIaEEbT_RSC_:
23767|  2.63k|    {
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.63k|        return get_bytes(len, "string", result);
23778|  2.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_EEE9get_bytesIaSC_EEbT_PKcRT0_:
23893|  2.63k|    {
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.63k|        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.63k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 1.34k, False: 1.28k]
  ------------------
23898|  1.34k|        {
23899|  1.34k|            return true;
23900|  1.34k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.28k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.28k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 42, False: 1.24k]
  ------------------
23906|     42|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     42|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 42, False: 0]
  ------------------
23910|     42|                                       ? static_cast<std::size_t>(len)
23911|     42|                                       : chunk_size;
23912|     42|            const std::size_t old_size = result.size();
23913|     42|            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|     42|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     42|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 42, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     42|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     42|            chars_read += bytes_read;
23921|     42|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     42|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 42, False: 0]
  |  |  ------------------
  ------------------
23922|     42|            {
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|     42|                result.resize(old_size + bytes_read);
23927|     42|                ++chars_read;
23928|     42|                current = char_traits<char_type>::eof();
23929|     42|                return unexpect_eof(context);
23930|     42|            }
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.24k|        return true;
23936|  1.28k|    }
_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_blockIaEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.63k|    {
23943|  2.63k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 1.24k, False: 1.39k]
  ------------------
23944|  1.24k|        {
23945|  1.24k|            return false;
23946|  1.24k|        }
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|  1.39k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.39k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.39k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 42, False: 1.34k]
  ------------------
23952|     42|        {
23953|     42|            return false; // (the loop reports the premature end)
23954|     42|        }
23955|  1.34k|        const auto n = static_cast<std::size_t>(ulen);
23956|  1.34k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  1.34k|        ia.bulk_skip(n);
23958|  1.34k|        chars_read += n;
23959|  1.34k|        return true;
23960|  1.39k|    }
_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_EEE26check_ubjson_string_lengthIsEEbT_:
21920|    804|    {
21921|    804|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    804|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 800]
  |  |  ------------------
  ------------------
21922|      4|        {
21923|      4|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      4|        }
21925|    800|        return true;
21926|    804|    }
_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_stringIsEEbT_RSC_:
23767|    800|    {
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|    800|        return get_bytes(len, "string", result);
23778|    800|    }
_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_bytesIsSC_EEbT_PKcRT0_:
23893|    800|    {
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|    800|        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|    800|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 432, False: 368]
  ------------------
23898|    432|        {
23899|    432|            return true;
23900|    432|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    368|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    368|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 58, False: 310]
  ------------------
23906|     58|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     58|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 44, False: 14]
  ------------------
23910|     58|                                       ? static_cast<std::size_t>(len)
23911|     58|                                       : chunk_size;
23912|     58|            const std::size_t old_size = result.size();
23913|     58|            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|     58|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     58|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 58, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     58|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     58|            chars_read += bytes_read;
23921|     58|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     58|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 58, False: 0]
  |  |  ------------------
  ------------------
23922|     58|            {
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|     58|                result.resize(old_size + bytes_read);
23927|     58|                ++chars_read;
23928|     58|                current = char_traits<char_type>::eof();
23929|     58|                return unexpect_eof(context);
23930|     58|            }
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|    310|        return true;
23936|    368|    }
_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_blockIsEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    800|    {
23943|    800|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 310, False: 490]
  ------------------
23944|    310|        {
23945|    310|            return false;
23946|    310|        }
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|    490|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    490|        const std::size_t remaining = ia.bulk_remaining();
23951|    490|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 58, False: 432]
  ------------------
23952|     58|        {
23953|     58|            return false; // (the loop reports the premature end)
23954|     58|        }
23955|    432|        const auto n = static_cast<std::size_t>(ulen);
23956|    432|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    432|        ia.bulk_skip(n);
23958|    432|        chars_read += n;
23959|    432|        return true;
23960|    490|    }
_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_EEE26check_ubjson_string_lengthIiEEbT_:
21920|    525|    {
21921|    525|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    525|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 33, False: 492]
  |  |  ------------------
  ------------------
21922|     33|        {
21923|     33|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     33|        }
21925|    492|        return true;
21926|    525|    }
_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_EEE26check_ubjson_string_lengthIlEEbT_:
21920|    582|    {
21921|    582|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    582|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 513]
  |  |  ------------------
  ------------------
21922|     69|        {
21923|     69|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     69|        }
21925|    513|        return true;
21926|    582|    }
_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_stringIlEEbT_RSC_:
23767|    513|    {
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|    513|        return get_bytes(len, "string", result);
23778|    513|    }
_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_bytesIlSC_EEbT_PKcRT0_:
23893|    513|    {
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|    513|        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|    513|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 158, False: 355]
  ------------------
23898|    158|        {
23899|    158|            return true;
23900|    158|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    355|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    355|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 154, False: 201]
  ------------------
23906|    154|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    154|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 116]
  ------------------
23910|    154|                                       ? static_cast<std::size_t>(len)
23911|    154|                                       : chunk_size;
23912|    154|            const std::size_t old_size = result.size();
23913|    154|            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|    154|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    154|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 154, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    154|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    154|            chars_read += bytes_read;
23921|    154|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    154|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 154, False: 0]
  |  |  ------------------
  ------------------
23922|    154|            {
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|    154|                result.resize(old_size + bytes_read);
23927|    154|                ++chars_read;
23928|    154|                current = char_traits<char_type>::eof();
23929|    154|                return unexpect_eof(context);
23930|    154|            }
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|    201|        return true;
23936|    355|    }
_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_blockIlEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    513|    {
23943|    513|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 201, False: 312]
  ------------------
23944|    201|        {
23945|    201|            return false;
23946|    201|        }
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|    312|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    312|        const std::size_t remaining = ia.bulk_remaining();
23951|    312|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 154, False: 158]
  ------------------
23952|    154|        {
23953|    154|            return false; // (the loop reports the premature end)
23954|    154|        }
23955|    158|        const auto n = static_cast<std::size_t>(ulen);
23956|    158|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    158|        ia.bulk_skip(n);
23958|    158|        chars_read += n;
23959|    158|        return true;
23960|    312|    }
_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|    759|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    759|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    759|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 576, False: 183]
  ------------------
24059|    759|    }
_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_ignore_noopEv:
23522|   202k|    {
23523|   202k|        do
23524|   209k|        {
23525|   209k|            get();
23526|   209k|        }
23527|   209k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 6.39k, False: 202k]
  ------------------
23528|       |
23529|   202k|        return current;
23530|   202k|    }
_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|   344k|    {
23489|   344k|        ++chars_read;
23490|   344k|        return current = ia.get_character();
23491|   344k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter13get_characterEv:
 9909|   344k|    {
 9910|   344k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9911|       |        // the character is in the get area: step over it, as sbumpc() does
 9912|   344k|        const char* const next = streambuf_access::get_ptr(sb);
 9913|   344k|        if (JSON_HEDLEY_LIKELY(next != streambuf_access::get_end(sb)))
  ------------------
  |  | 1696|   344k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 337k, False: 7.75k]
  |  |  ------------------
  ------------------
 9914|   337k|        {
 9915|   337k|            current_in_get_area = true;
 9916|   337k|            streambuf_access::bump(sb, 1);
 9917|   337k|            return std::char_traits<char>::to_int_type(*next);
 9918|   337k|        }
 9919|  7.75k|        if (no_get_area)
  ------------------
  |  Branch (9919:13): [True: 0, False: 7.75k]
  ------------------
 9920|      0|        {
 9921|      0|            return get_character_no_get_area();
 9922|      0|        }
 9923|  7.75k|#endif
 9924|  7.75k|        return get_character_slow();
 9925|  7.75k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18get_character_slowEv:
10051|  7.75k|    {
10052|  7.75k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10053|       |        // the get area is exhausted (get_character() handles the other case),
10054|       |        // so sbumpc() refills it
10055|  7.75k|        save_token_segment();
10056|  7.75k|#endif
10057|       |
10058|  7.75k|        auto res = sb->sbumpc();
10059|       |        // set eof manually, as we don't use the istream interface.
10060|  7.75k|        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
  ------------------
  |  | 1697|  7.75k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 7.75k, False: 0]
  |  |  ------------------
  ------------------
10061|  7.75k|        {
10062|  7.75k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10063|  7.75k|            current_in_get_area = false;
10064|  7.75k|#endif
10065|  7.75k|            is->clear(is->rdstate() | std::ios::eofbit);
10066|  7.75k|        }
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|  7.75k|#endif
10076|  7.75k|        return res;
10077|  7.75k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18save_token_segmentEv:
10124|  7.75k|    {
10125|  7.75k|        if (token_segment != nullptr)
  ------------------
  |  Branch (10125:13): [True: 0, False: 7.75k]
  ------------------
10126|      0|        {
10127|      0|            token_carry.append(token_segment, streambuf_access::get_end(sb));
10128|      0|            token_segment = nullptr;
10129|      0|        }
10130|  7.75k|    }
_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|  11.8k|        {
19135|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 11.8k, False: 0]
  ------------------
19136|  11.8k|            {
19137|  11.8k|                parser->set_reserve_state(saved);
19138|  11.8k|            }
19139|  11.8k|        }
_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|  11.8k|    ~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|  11.8k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterERNSt3__113basic_istreamIcNS2_11char_traitsIcEEEE:
10871|  11.8k|{
10872|  11.8k|    if (stream.rdbuf() == nullptr)
  ------------------
  |  Branch (10872:9): [True: 0, False: 11.8k]
  ------------------
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|  11.8k|    return input_stream_adapter(stream);
10877|  11.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2ERNSt3__113basic_istreamIcNS3_11char_traitsIcEEEE:
 9806|  11.8k|        : is(&i), sb(i.rdbuf())
 9807|  11.8k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterD2Ev:
 9785|  23.7k|    {
 9786|       |        // clear stream flags; we use underlying streambuf I/O, do not
 9787|       |        // maintain ifstream flags, except eof
 9788|  23.7k|        if (is != nullptr)
  ------------------
  |  Branch (9788:13): [True: 11.8k, False: 11.8k]
  ------------------
 9789|  11.8k|        {
 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|  11.8k|            if ((is->rdstate() & ~std::ios::eofbit) != 0)
  ------------------
  |  Branch (9798:17): [True: 0, False: 11.8k]
  ------------------
 9799|      0|            {
 9800|      0|                is->clear(is->rdstate() & std::ios::eofbit);
 9801|      0|            }
 9802|  11.8k|        }
 9803|  23.7k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_ubjsonINS2_21__list_const_iteratorIhPvEESI_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SK_SL_bbNS0_6detail15error_handler_tE:
46917|  11.8k|    {
46918|  11.8k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::ubjson, strict, allow_exceptions, error_handler);
46919|  11.8k|    }
_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|  11.8k|    {
46576|  11.8k|        basic_json result;
46577|  11.8k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  11.8k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  11.8k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 11.8k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  11.8k|        return result;
46584|  11.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_adapterINS4_21__list_const_iteratorIhPvEESK_EEEC2ERSG_bPNS1_5lexerISG_SL_Lb0EEE:
17821|  11.8k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  11.8k|    {}
_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|  11.8k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  11.8k|    {
18994|  11.8k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  11.8k|    }
_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|  11.8k|    {
19018|  11.8k|        sax = sax_;
19019|  11.8k|        container_stack.clear();
19020|  11.8k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  11.8k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  11.8k|        bool result = false;
19024|       |
19025|  11.8k|        switch (input_format)
19026|  11.8k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 11.8k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|  11.8k|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 11.8k, False: 0]
  ------------------
19040|  11.8k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 11.8k]
  ------------------
19041|  11.8k|                result = parse_ubjson_internal();
19042|  11.8k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 11.8k]
  ------------------
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|  11.8k|        }
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|  6.19k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 6.19k, False: 0]
  |  Branch (19058:23): [True: 0, False: 6.19k]
  |  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|  6.19k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 6.19k, False: 0]
  |  Branch (19065:23): [True: 6.19k, False: 0]
  ------------------
19066|  6.19k|        {
19067|  6.19k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 6.19k, False: 0]
  |  Branch (19067:59): [True: 0, False: 0]
  ------------------
19068|  6.19k|            {
19069|  6.19k|                get_ignore_noop();
19070|  6.19k|            }
19071|      0|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 0]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|      0|            else
19077|      0|            {
19078|      0|                get();
19079|      0|            }
19080|       |
19081|  6.19k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  6.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 152, False: 6.03k]
  |  |  ------------------
  ------------------
19082|    152|            {
19083|    152|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    152|            }
19085|  6.19k|        }
19086|       |
19087|  6.03k|        return result;
19088|  6.19k|    }
_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|  11.8k|    {
19097|  11.8k|        return s;
19098|  11.8k|    }
_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|  11.8k|            : parser(parser_), saved()
19120|  11.8k|        {
19121|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 11.8k, False: 0]
  ------------------
19122|  11.8k|            {
19123|  11.8k|                saved = parser->get_reserve_state();
19124|  11.8k|                parser->set_input_position(position);
19125|  11.8k|            }
19126|  11.8k|        }
_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|  2.83k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.83k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.83k|        chars_read += new_chars_read;
23508|  2.83k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 112, False: 2.72k]
  |  |  ------------------
  ------------------
23509|    112|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    112|            ++chars_read;
23512|    112|            static_cast<void>(report_eof(context));
23513|    112|            return false;
23514|    112|        }
23515|  2.72k|        return true;
23516|  2.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIiEEmPT_m:
10326|  2.83k|    {
10327|  2.83k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  2.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIiEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  2.83k|    {
10407|  2.83k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  13.7k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.0k, False: 2.72k]
  ------------------
10409|  11.0k|        {
10410|  11.0k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 10.9k, False: 112]
  |  |  ------------------
  ------------------
10411|  10.9k|            {
10412|  10.9k|                ptr[read_index] = static_cast<char>(*current);
10413|  10.9k|                std::advance(current, 1);
10414|  10.9k|            }
10415|    112|            else
10416|    112|            {
10417|    112|                return read_index;
10418|    112|            }
10419|  11.0k|        }
10420|  2.72k|        return count * sizeof(T);
10421|  2.83k|    }
_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|  2.79k|    {
23992|  2.79k|        return sax->parse_error(chars_read, "<end of file>",
23993|  2.79k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  2.79k|    }
_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|  5.50k|    {
24103|  5.50k|        std::string error_msg = "syntax error while parsing ";
24104|  5.50k|        error_msg += input_format_name(input_format);
24105|       |
24106|  5.50k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  5.50k|    }
_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_swapIiEEvRT_:
23555|  2.72k|    {
23556|  2.72k|        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|  2.72k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  8.17k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.45k, False: 2.72k]
  ------------------
23572|  5.45k|            {
23573|  5.45k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.45k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.72k|    }
_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|  74.5k|    {
19202|  74.5k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   149k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 74.5k]
  |  |  |  Branch (1697:94): [True: 10.4k, False: 64.0k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  74.5k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  74.5k|        return true;
19209|  74.5k|    }
_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|  10.4k|    {
17879|  10.4k|        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|  10.4k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  10.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_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  74.5k|    {
17962|  74.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 6.31k, False: 68.1k]
  ------------------
17963|  6.31k|        {
17964|  6.31k|            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|  6.31k|            return &root;
17971|  6.31k|        }
17972|       |
17973|  68.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  68.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 63.9k, False: 4.22k]
  |  Branch (17973:9): [True: 4.22k, False: 0]
  |  Branch (17973:9): [True: 68.1k, False: 0]
  ------------------
17974|       |
17975|  68.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 63.9k, False: 4.22k]
  ------------------
17976|  63.9k|        {
17977|  63.9k|            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|  63.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  63.9k|        }
17985|       |
17986|  4.22k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.22k, False: 0]
  ------------------
17987|  4.22k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.22k, False: 0]
  ------------------
17988|  4.22k|        *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.22k|        return object_element;
17995|  4.22k|    }
_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|  74.5k|{
16470|  74.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 157, False: 74.3k]
  |  |  |  Branch (1697:94): [True: 7.91k, False: 66.5k]
  |  |  |  Branch (1697:94): [True: 157, False: 7.75k]
  |  |  ------------------
  ------------------
16471|    157|    {
16472|    157|        return container_too_large_error(sax, len, kind, ref);
16473|    157|    }
16474|  74.3k|    return true;
16475|  74.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail25container_too_large_errorINS1_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_:
16463|    157|{
16464|    157|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    157|}
_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|  64.0k|    {
17916|  64.0k|        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|  64.0k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  64.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.0k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  64.0k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 6.72k, False: 57.3k]
  ------------------
17929|  6.72k|        {
17930|  6.72k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  6.72k|        }
17932|       |
17933|  64.0k|        return true;
17934|  64.0k|    }
_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|  74.3k|            : 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_EEE15leave_containerEv:
19233|  40.7k|    {
19234|  40.7k|        const bool is_object = container_stack.back().is_object;
19235|  40.7k|        container_stack.pop_back();
19236|  40.7k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 6.96k, False: 33.8k]
  ------------------
19237|  40.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_EEE10end_objectEv:
17901|  6.96k|    {
17902|  6.96k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 6.96k, False: 0]
  ------------------
17903|  6.96k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 6.96k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  6.96k|        ref_stack.back()->set_parents();
17910|  6.96k|        ref_stack.pop_back();
17911|  6.96k|        return true;
17912|  6.96k|    }
_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|  33.8k|    {
17938|  33.8k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 33.8k, False: 0]
  ------------------
17939|  33.8k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 33.8k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  33.8k|        ref_stack.back()->set_parents();
17946|  33.8k|        ref_stack.pop_back();
17947|  33.8k|        return true;
17948|  33.8k|    }
_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|   153k|    {
23975|   153k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   153k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.06k, False: 151k]
  |  |  ------------------
  ------------------
23976|  2.06k|        {
23977|  2.06k|            return report_eof(context);
23978|  2.06k|        }
23979|   151k|        return true;
23980|   153k|    }
_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|  21.5k|    {
23812|  21.5k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 21.5k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  21.5k|    }
_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|  19.1k|    {
17891|  19.1k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 19.1k, False: 0]
  ------------------
17892|  19.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 19.1k, 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|  19.1k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  19.1k|        return true;
17898|  19.1k|    }
_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.28k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.28k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.28k|        chars_read += new_chars_read;
23508|  1.28k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 1.20k]
  |  |  ------------------
  ------------------
23509|     77|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     77|            ++chars_read;
23512|     77|            static_cast<void>(report_eof(context));
23513|     77|            return false;
23514|     77|        }
23515|  1.20k|        return true;
23516|  1.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIdEEmPT_m:
10326|  1.28k|    {
10327|  1.28k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  1.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIdEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  1.28k|    {
10407|  1.28k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  10.9k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 9.78k, False: 1.20k]
  ------------------
10409|  9.78k|        {
10410|  9.78k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  9.78k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.70k, False: 77]
  |  |  ------------------
  ------------------
10411|  9.70k|            {
10412|  9.70k|                ptr[read_index] = static_cast<char>(*current);
10413|  9.70k|                std::advance(current, 1);
10414|  9.70k|            }
10415|     77|            else
10416|     77|            {
10417|     77|                return read_index;
10418|     77|            }
10419|  9.78k|        }
10420|  1.20k|        return count * sizeof(T);
10421|  1.28k|    }
_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_swapERd:
23535|  1.20k|    {
23536|  1.20k|        static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
23537|  1.20k|        std::uint64_t bits{};
23538|  1.20k|        std::memcpy(&bits, &number, sizeof(bits));
23539|  1.20k|        bits = byteswap(bits);
23540|  1.20k|        std::memcpy(&number, &bits, sizeof(bits));
23541|  1.20k|    }
_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.20k|    {
23683|  1.20k|        const auto result = static_cast<number_float_t>(number);
23684|  1.20k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.20k]
  |  |  |  Branch (1697:94): [True: 1.18k, False: 26]
  |  |  |  Branch (1697:94): [True: 0, False: 1.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.20k|        return sax->number_float(result, no_source);
23689|  1.20k|    }
_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_EEE18out_of_range_errorENS1_12exception_idEPKcSR_:
24001|     62|    {
24002|     62|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     62|    }
_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|  1.36k|    {
24092|  1.36k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.36k|    }
_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|  8.68k|    {
17857|  8.68k|        handle_value(val);
17858|  8.68k|        return true;
17859|  8.68k|    }
_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|  8.68k|    {
17962|  8.68k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.71k, False: 6.96k]
  ------------------
17963|  1.71k|        {
17964|  1.71k|            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|  1.71k|            return &root;
17971|  1.71k|        }
17972|       |
17973|  6.96k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.53k, False: 430]
  |  Branch (17973:9): [True: 430, False: 0]
  |  Branch (17973:9): [True: 6.96k, False: 0]
  ------------------
17974|       |
17975|  6.96k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.53k, False: 430]
  ------------------
17976|  6.53k|        {
17977|  6.53k|            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.53k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.53k|        }
17985|       |
17986|    430|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 430, False: 0]
  ------------------
17987|    430|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 430, False: 0]
  ------------------
17988|    430|        *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|    430|        return object_element;
17995|    430|    }
_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|    492|    {
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|    492|        return get_bytes(len, "string", result);
23778|    492|    }
_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|    492|    {
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|    492|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 492]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    492|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 492]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    492|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    711|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 309, False: 402]
  ------------------
23906|    309|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    309|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 257, False: 52]
  ------------------
23910|    309|                                       ? static_cast<std::size_t>(len)
23911|    309|                                       : chunk_size;
23912|    309|            const std::size_t old_size = result.size();
23913|    309|            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|    309|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    309|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 309, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    309|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    309|            chars_read += bytes_read;
23921|    309|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    309|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 90, False: 219]
  |  |  ------------------
  ------------------
23922|     90|            {
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|     90|                result.resize(old_size + bytes_read);
23927|     90|                ++chars_read;
23928|     90|                current = char_traits<char_type>::eof();
23929|     90|                return unexpect_eof(context);
23930|     90|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    219|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    219|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 219, False: 0]
  ------------------
23933|    219|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    219|        }
23935|    402|        return true;
23936|    492|    }
_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|    492|    {
23965|    492|        return false;
23966|    492|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIcEEmPT_m:
10326|  12.1k|    {
10327|  12.1k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  12.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIcEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  12.1k|    {
10407|  12.1k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|   104k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 93.1k, False: 11.7k]
  ------------------
10409|  93.1k|        {
10410|  93.1k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  93.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 92.7k, False: 392]
  |  |  ------------------
  ------------------
10411|  92.7k|            {
10412|  92.7k|                ptr[read_index] = static_cast<char>(*current);
10413|  92.7k|                std::advance(current, 1);
10414|  92.7k|            }
10415|    392|            else
10416|    392|            {
10417|    392|                return read_index;
10418|    392|            }
10419|  93.1k|        }
10420|  11.7k|        return count * sizeof(T);
10421|  12.1k|    }
_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|  7.77k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  7.77k|        handle_value(std::move(val));
17866|  7.77k|        return true;
17867|  7.77k|    }
_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|  7.77k|    {
17962|  7.77k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 455, False: 7.31k]
  ------------------
17963|    455|        {
17964|    455|            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|    455|            return &root;
17971|    455|        }
17972|       |
17973|  7.31k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  7.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 5.84k, False: 1.47k]
  |  Branch (17973:9): [True: 1.47k, False: 0]
  |  Branch (17973:9): [True: 7.31k, False: 0]
  ------------------
17974|       |
17975|  7.31k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 5.84k, False: 1.47k]
  ------------------
17976|  5.84k|        {
17977|  5.84k|            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|  5.84k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  5.84k|        }
17985|       |
17986|  1.47k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.47k, False: 0]
  ------------------
17987|  1.47k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.47k, False: 0]
  ------------------
17988|  1.47k|        *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.47k|        return object_element;
17995|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIhEEmPT_m:
10326|  37.6k|    {
10327|  37.6k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  37.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIhEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  37.6k|    {
10407|  37.6k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  75.1k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 37.6k, False: 37.4k]
  ------------------
10409|  37.6k|        {
10410|  37.6k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  37.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 37.4k, False: 114]
  |  |  ------------------
  ------------------
10411|  37.4k|            {
10412|  37.4k|                ptr[read_index] = static_cast<char>(*current);
10413|  37.4k|                std::advance(current, 1);
10414|  37.4k|            }
10415|    114|            else
10416|    114|            {
10417|    114|                return read_index;
10418|    114|            }
10419|  37.6k|        }
10420|  37.4k|        return count * sizeof(T);
10421|  37.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_EEE10get_numberIhLb0EEEbRT_:
23596|  37.6k|    {
23597|       |        // read in the original format
23598|       |
23599|  37.6k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  37.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 37.6k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  37.6k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 37.4k, False: 114]
  |  Branch (23603:34): [Folded, False: 37.4k]
  |  Branch (23603:57): [True: 0, False: 37.4k]
  ------------------
23604|  37.4k|        {
23605|  37.4k|            byte_swap(result);
23606|  37.4k|        }
23607|  37.6k|        return true;
23608|  37.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_EEE6get_toIhEEbRT_PKc:
23503|  37.6k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  37.6k|        auto new_chars_read = ia.get_elements(&dest);
23507|  37.6k|        chars_read += new_chars_read;
23508|  37.6k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  37.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 37.4k]
  |  |  ------------------
  ------------------
23509|    114|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    114|            ++chars_read;
23512|    114|            static_cast<void>(report_eof(context));
23513|    114|            return false;
23514|    114|        }
23515|  37.4k|        return true;
23516|  37.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_EEE9byte_swapIhEEvRT_:
23555|  37.4k|    {
23556|  37.4k|        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|  37.4k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  37.4k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 37.4k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  37.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_adapterINS4_21__list_const_iteratorIhPvEESK_EEE7booleanEb:
17838|  69.1M|    {
17839|  69.1M|        handle_value(val);
17840|  69.1M|        return true;
17841|  69.1M|    }
_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|  69.1M|    {
17962|  69.1M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 23, False: 69.1M]
  ------------------
17963|     23|        {
17964|     23|            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|     23|            return &root;
17971|     23|        }
17972|       |
17973|  69.1M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  69.1M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 69.1M, False: 3.15k]
  |  Branch (17973:9): [True: 3.15k, False: 0]
  |  Branch (17973:9): [True: 69.1M, False: 0]
  ------------------
17974|       |
17975|  69.1M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 69.1M, False: 3.15k]
  ------------------
17976|  69.1M|        {
17977|  69.1M|            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|  69.1M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  69.1M|        }
17985|       |
17986|  3.15k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.15k, False: 0]
  ------------------
17987|  3.15k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.15k, False: 0]
  ------------------
17988|  3.15k|        *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.15k|        return object_element;
17995|  3.15k|    }
_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|  65.0M|    {
17833|  65.0M|        handle_value(nullptr);
17834|  65.0M|        return true;
17835|  65.0M|    }
_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|  65.0M|    {
17962|  65.0M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10, False: 65.0M]
  ------------------
17963|     10|        {
17964|     10|            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|     10|            return &root;
17971|     10|        }
17972|       |
17973|  65.0M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  65.0M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 65.0M, False: 6.98k]
  |  Branch (17973:9): [True: 6.98k, False: 0]
  |  Branch (17973:9): [True: 65.0M, False: 0]
  ------------------
17974|       |
17975|  65.0M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 65.0M, False: 6.98k]
  ------------------
17976|  65.0M|        {
17977|  65.0M|            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|  65.0M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  65.0M|        }
17985|       |
17986|  6.98k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.98k, False: 0]
  ------------------
17987|  6.98k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.98k, False: 0]
  ------------------
17988|  6.98k|        *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.98k|        return object_element;
17995|  6.98k|    }
_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.51k|    {
23629|  1.51k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.51k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.51k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.51k|        {
23631|  1.51k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.51k|        }
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|  12.6k|    {
17845|  12.6k|        handle_value(val);
17846|  12.6k|        return true;
17847|  12.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_EEE12handle_valueIRlEEPSG_OT_:
17961|  12.6k|    {
17962|  12.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 506, False: 12.1k]
  ------------------
17963|    506|        {
17964|    506|            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|    506|            return &root;
17971|    506|        }
17972|       |
17973|  12.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  12.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.7k, False: 1.42k]
  |  Branch (17973:9): [True: 1.42k, False: 0]
  |  Branch (17973:9): [True: 12.1k, False: 0]
  ------------------
17974|       |
17975|  12.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.7k, False: 1.42k]
  ------------------
17976|  10.7k|        {
17977|  10.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|  10.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.7k|        }
17985|       |
17986|  1.42k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.42k, False: 0]
  ------------------
17987|  1.42k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.42k, False: 0]
  ------------------
17988|  1.42k|        *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.42k|        return object_element;
17995|  1.42k|    }
_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|  11.6k|    {
17851|  11.6k|        handle_value(val);
17852|  11.6k|        return true;
17853|  11.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_EEE12handle_valueIRmEEPSG_OT_:
17961|  11.6k|    {
17962|  11.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 341, False: 11.3k]
  ------------------
17963|    341|        {
17964|    341|            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|    341|            return &root;
17971|    341|        }
17972|       |
17973|  11.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.1k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 11.3k, False: 0]
  ------------------
17974|       |
17975|  11.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.1k, False: 1.17k]
  ------------------
17976|  10.1k|        {
17977|  10.1k|            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|  10.1k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.1k|        }
17985|       |
17986|  1.17k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.17k, False: 0]
  ------------------
17987|  1.17k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.17k, False: 0]
  ------------------
17988|  1.17k|        *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.17k|        return object_element;
17995|  1.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_EEE6get_toIlEEbRT_PKc:
23503|  3.06k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.06k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.06k|        chars_read += new_chars_read;
23508|  3.06k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.06k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 121, False: 2.94k]
  |  |  ------------------
  ------------------
23509|    121|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    121|            ++chars_read;
23512|    121|            static_cast<void>(report_eof(context));
23513|    121|            return false;
23514|    121|        }
23515|  2.94k|        return true;
23516|  3.06k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIlEEmPT_m:
10326|  3.06k|    {
10327|  3.06k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  3.06k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIlEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  3.06k|    {
10407|  3.06k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  26.7k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 23.8k, False: 2.94k]
  ------------------
10409|  23.8k|        {
10410|  23.8k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  23.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 23.6k, False: 121]
  |  |  ------------------
  ------------------
10411|  23.6k|            {
10412|  23.6k|                ptr[read_index] = static_cast<char>(*current);
10413|  23.6k|                std::advance(current, 1);
10414|  23.6k|            }
10415|    121|            else
10416|    121|            {
10417|    121|                return read_index;
10418|    121|            }
10419|  23.8k|        }
10420|  2.94k|        return count * sizeof(T);
10421|  3.06k|    }
_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_swapIlEEvRT_:
23555|  2.94k|    {
23556|  2.94k|        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|  2.94k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  14.7k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 11.7k, False: 2.94k]
  ------------------
23572|  11.7k|            {
23573|  11.7k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  11.7k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.94k|    }
_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|  1.48k|    {
23629|  1.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.48k|        {
23631|  1.48k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.48k|        }
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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  17.5k|    {
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|  17.5k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 17.5k]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  17.5k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 17.5k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  17.5k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  27.0k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 9.60k, False: 17.4k]
  ------------------
23906|  9.60k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  9.60k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 9.60k, False: 0]
  ------------------
23910|  9.60k|                                       ? static_cast<std::size_t>(len)
23911|  9.60k|                                       : chunk_size;
23912|  9.60k|            const std::size_t old_size = result.size();
23913|  9.60k|            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|  9.60k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  9.60k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 9.60k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  9.60k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  9.60k|            chars_read += bytes_read;
23921|  9.60k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  9.60k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 9.56k]
  |  |  ------------------
  ------------------
23922|     48|            {
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|     48|                result.resize(old_size + bytes_read);
23927|     48|                ++chars_read;
23928|     48|                current = char_traits<char_type>::eof();
23929|     48|                return unexpect_eof(context);
23930|     48|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  9.56k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  9.56k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 9.56k, False: 0]
  ------------------
23933|  9.56k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  9.56k|        }
23935|  17.4k|        return true;
23936|  17.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_EEE17append_from_blockIhSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  17.5k|    {
23965|  17.5k|        return false;
23966|  17.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_EEE13emit_unsignedIhEEbT_:
23656|  8.48k|    {
23657|  8.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  8.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.48k, False: 0]
  |  |  ------------------
  ------------------
23658|  8.48k|        {
23659|  8.48k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  8.48k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  8.48k|    }
_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_EEE11enter_arrayEmm:
19213|  64.0k|    {
19214|  64.0k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  64.0k|    }
_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_EEE12enter_objectEmm:
19219|  10.4k|    {
19220|  10.4k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  10.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_EEE15unexpected_byteEPKcSQ_:
24069|    205|    {
24070|    205|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|    205|    }
_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_numberIfLb0EEEbRT_:
23596|  4.42k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.42k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.42k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.42k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.42k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 4.32k, False: 97]
  |  Branch (23603:34): [Folded, False: 4.32k]
  |  Branch (23603:57): [True: 0, False: 4.32k]
  ------------------
23604|  4.32k|        {
23605|  4.32k|            byte_swap(result);
23606|  4.32k|        }
23607|  4.42k|        return true;
23608|  4.42k|    }
_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_toIfEEbRT_PKc:
23503|  4.42k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.42k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.42k|        chars_read += new_chars_read;
23508|  4.42k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.42k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 4.32k]
  |  |  ------------------
  ------------------
23509|     97|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     97|            ++chars_read;
23512|     97|            static_cast<void>(report_eof(context));
23513|     97|            return false;
23514|     97|        }
23515|  4.32k|        return true;
23516|  4.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIfEEmPT_m:
10326|  4.42k|    {
10327|  4.42k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  4.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIfEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  4.42k|    {
10407|  4.42k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  21.7k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 17.4k, False: 4.32k]
  ------------------
10409|  17.4k|        {
10410|  17.4k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  17.4k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 17.3k, False: 97]
  |  |  ------------------
  ------------------
10411|  17.3k|            {
10412|  17.3k|                ptr[read_index] = static_cast<char>(*current);
10413|  17.3k|                std::advance(current, 1);
10414|  17.3k|            }
10415|     97|            else
10416|     97|            {
10417|     97|                return read_index;
10418|     97|            }
10419|  17.4k|        }
10420|  4.32k|        return count * sizeof(T);
10421|  4.42k|    }
_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_swapERf:
23545|  4.32k|    {
23546|  4.32k|        static_assert(sizeof(float) == sizeof(std::uint32_t), "float must have 32 bits");
23547|  4.32k|        std::uint32_t bits{};
23548|  4.32k|        std::memcpy(&bits, &number, sizeof(bits));
23549|  4.32k|        bits = byteswap(bits);
23550|  4.32k|        std::memcpy(&number, &bits, sizeof(bits));
23551|  4.32k|    }
_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_floatIfEEbT_:
23682|  4.32k|    {
23683|  4.32k|        const auto result = static_cast<number_float_t>(number);
23684|  4.32k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  8.51k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.32k]
  |  |  |  Branch (1697:94): [True: 4.18k, False: 136]
  |  |  |  Branch (1697:94): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  4.32k|        return sax->number_float(result, no_source);
23689|  4.32k|    }
_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_numberIdLb0EEEbRT_:
23596|  1.28k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.28k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.28k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.28k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 1.20k, False: 77]
  |  Branch (23603:34): [Folded, False: 1.20k]
  |  Branch (23603:57): [True: 0, False: 1.20k]
  ------------------
23604|  1.20k|        {
23605|  1.20k|            byte_swap(result);
23606|  1.20k|        }
23607|  1.28k|        return true;
23608|  1.28k|    }
_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_EEE22get_string_with_lengthIhEEbRSC_PKc:
23846|  17.5k|    {
23847|  17.5k|        NumberType len{};
23848|  17.5k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 17.5k, False: 10]
  |  Branch (23848:35): [True: 17.4k, False: 48]
  |  Branch (23848:62): [True: 17.4k, False: 0]
  ------------------
23849|  17.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_stringIhEEbT_RSC_:
23767|  17.5k|    {
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|  17.5k|        return get_bytes(len, "string", result);
23778|  17.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_numberIaLb0EEEbRT_:
23596|  11.2k|    {
23597|       |        // read in the original format
23598|       |
23599|  11.2k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  11.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.2k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  11.2k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 11.1k, False: 99]
  |  Branch (23603:34): [Folded, False: 11.1k]
  |  Branch (23603:57): [True: 0, False: 11.1k]
  ------------------
23604|  11.1k|        {
23605|  11.1k|            byte_swap(result);
23606|  11.1k|        }
23607|  11.2k|        return true;
23608|  11.2k|    }
_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_toIaEEbRT_PKc:
23503|  11.2k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  11.2k|        auto new_chars_read = ia.get_elements(&dest);
23507|  11.2k|        chars_read += new_chars_read;
23508|  11.2k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  11.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 11.1k]
  |  |  ------------------
  ------------------
23509|     99|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     99|            ++chars_read;
23512|     99|            static_cast<void>(report_eof(context));
23513|     99|            return false;
23514|     99|        }
23515|  11.1k|        return true;
23516|  11.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIaEEmPT_m:
10326|  11.2k|    {
10327|  11.2k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  11.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIaEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  11.2k|    {
10407|  11.2k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  22.4k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.2k, False: 11.1k]
  ------------------
10409|  11.2k|        {
10410|  11.2k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.1k, False: 99]
  |  |  ------------------
  ------------------
10411|  11.1k|            {
10412|  11.1k|                ptr[read_index] = static_cast<char>(*current);
10413|  11.1k|                std::advance(current, 1);
10414|  11.1k|            }
10415|     99|            else
10416|     99|            {
10417|     99|                return read_index;
10418|     99|            }
10419|  11.2k|        }
10420|  11.1k|        return count * sizeof(T);
10421|  11.2k|    }
_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_swapIaEEvRT_:
23555|  11.1k|    {
23556|  11.1k|        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|  11.1k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  11.1k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 11.1k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  11.1k|    }
_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_signedIaEEbT_:
23628|  6.16k|    {
23629|  6.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  6.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  6.16k|        {
23631|  6.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  6.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_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_numberIsLb0EEEbRT_:
23596|  5.60k|    {
23597|       |        // read in the original format
23598|       |
23599|  5.60k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  5.60k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.60k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  5.60k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 5.49k, False: 109]
  |  Branch (23603:34): [Folded, False: 5.49k]
  |  Branch (23603:57): [True: 0, False: 5.49k]
  ------------------
23604|  5.49k|        {
23605|  5.49k|            byte_swap(result);
23606|  5.49k|        }
23607|  5.60k|        return true;
23608|  5.60k|    }
_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_toIsEEbRT_PKc:
23503|  5.60k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  5.60k|        auto new_chars_read = ia.get_elements(&dest);
23507|  5.60k|        chars_read += new_chars_read;
23508|  5.60k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  5.60k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 5.49k]
  |  |  ------------------
  ------------------
23509|    109|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    109|            ++chars_read;
23512|    109|            static_cast<void>(report_eof(context));
23513|    109|            return false;
23514|    109|        }
23515|  5.49k|        return true;
23516|  5.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIsEEmPT_m:
10326|  5.60k|    {
10327|  5.60k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  5.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIsEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  5.60k|    {
10407|  5.60k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  16.6k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.1k, False: 5.49k]
  ------------------
10409|  11.1k|        {
10410|  11.1k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.0k, False: 109]
  |  |  ------------------
  ------------------
10411|  11.0k|            {
10412|  11.0k|                ptr[read_index] = static_cast<char>(*current);
10413|  11.0k|                std::advance(current, 1);
10414|  11.0k|            }
10415|    109|            else
10416|    109|            {
10417|    109|                return read_index;
10418|    109|            }
10419|  11.1k|        }
10420|  5.49k|        return count * sizeof(T);
10421|  5.60k|    }
_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_swapIsEEvRT_:
23555|  5.49k|    {
23556|  5.49k|        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|  5.49k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  10.9k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.49k, False: 5.49k]
  ------------------
23572|  5.49k|            {
23573|  5.49k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.49k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  5.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_EEE11emit_signedIsEEbT_:
23628|  3.04k|    {
23629|  3.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.04k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.04k|        {
23631|  3.04k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.04k|        }
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_numberIiLb0EEEbRT_:
23596|  2.83k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.83k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.83k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.83k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.72k, False: 112]
  |  Branch (23603:34): [Folded, False: 2.72k]
  |  Branch (23603:57): [True: 0, False: 2.72k]
  ------------------
23604|  2.72k|        {
23605|  2.72k|            byte_swap(result);
23606|  2.72k|        }
23607|  2.83k|        return true;
23608|  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_EEE10get_numberIlLb0EEEbRT_:
23596|  3.06k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.06k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.06k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.06k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.06k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.94k, False: 121]
  |  Branch (23603:34): [Folded, False: 2.94k]
  |  Branch (23603:57): [True: 0, False: 2.94k]
  ------------------
23604|  2.94k|        {
23605|  2.94k|            byte_swap(result);
23606|  2.94k|        }
23607|  3.06k|        return true;
23608|  3.06k|    }
_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_EEE21parse_ubjson_internalEv:
21807|  11.8k|    {
21808|       |        // the key currently being read; hoisted out of the loop so that its
21809|       |        // capacity is reused across elements and across nesting levels
21810|  11.8k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  11.8k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   134M|        while (true)
  ------------------
  |  Branch (21815:16): [True: 134M, Folded]
  ------------------
21816|   134M|        {
21817|   134M|            const std::size_t depth = container_stack.size();
21818|       |
21819|   134M|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   134M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 134M]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   134M|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.04k, False: 134M]
  ------------------
21826|  3.04k|            {
21827|  3.04k|                return true;
21828|  3.04k|            }
21829|       |
21830|       |            // a value was completed rather than a container opened; a
21831|       |            // container that ends at a marker needs the next byte to test
21832|   134M|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 134M, False: 79.2k]
  |  Branch (21832:52): [True: 35.7k, False: 134M]
  ------------------
21833|  35.7k|            {
21834|  35.7k|                get_ignore_noop();
21835|  35.7k|            }
21836|       |
21837|       |            // advance to the next element, closing the containers that ended.
21838|       |            // top is a copy, not a reference: it must stay valid across the
21839|       |            // pop_back() below, which destroys the container_stack element it
21840|       |            // would otherwise alias.
21841|   134M|            for (;;)
21842|   134M|            {
21843|   134M|                const container_frame top = container_stack.back();
21844|       |
21845|   134M|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 134M, False: 135k]
  ------------------
21846|   134M|                {
21847|   134M|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 134M, False: 5.55k]
  ------------------
21848|   134M|                    {
21849|   134M|                        --container_stack.back().remaining;
21850|   134M|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 3.70k, False: 134M]
  ------------------
21851|  3.70k|                        {
21852|  3.70k|                            key.clear();
21853|  3.70k|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  7.27k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.70k]
  |  |  |  Branch (1697:94): [True: 131, False: 3.57k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.57k]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|  3.70k|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|   134M|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 134M, False: 2.80k]
  ------------------
21860|   134M|                        break;
21861|   134M|                    }
21862|   134M|                }
21863|       |                // the end marker is compared against a literal rather than
21864|       |                // against a conditional expression, because char_int_type is
21865|       |                // unsigned for some input adapters and MSVC then reports the
21866|       |                // comparison as a signed/unsigned mismatch
21867|   135k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 22.3k, False: 113k]
  |  Branch (21867:26): [True: 100k, False: 35.2k]
  ------------------
21868|   100k|                {
21869|       |                    // a container that ends at a marker is never optimized, so
21870|       |                    // every element carries its own marker; for an object the
21871|       |                    // byte tested above is the first byte of the key
21872|   100k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 16.2k, False: 83.9k]
  ------------------
21873|  16.2k|                    {
21874|  16.2k|                        key.clear();
21875|  16.2k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  31.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 16.2k]
  |  |  |  Branch (1697:94): [True: 651, False: 15.5k]
  |  |  |  Branch (1697:94): [True: 0, False: 15.5k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  16.2k|                        prefix = get_ignore_noop();
21880|  16.2k|                    }
21881|  83.9k|                    else
21882|  83.9k|                    {
21883|  83.9k|                        prefix = current;
21884|  83.9k|                    }
21885|   100k|                    break;
21886|   100k|                }
21887|       |
21888|  40.7k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  40.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.7k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  40.7k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 3.14k, False: 37.6k]
  ------------------
21893|  3.14k|                {
21894|  3.14k|                    return true;
21895|  3.14k|                }
21896|       |                // the container that just ended was an element of the one
21897|       |                // below it, which may need the next byte for its own test
21898|  37.6k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 33.1k, False: 4.51k]
  ------------------
21899|  33.1k|                {
21900|  33.1k|                    get_ignore_noop();
21901|  33.1k|                }
21902|  37.6k|            }
21903|   134M|        }
21904|  11.8k|    }
_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_EEE16get_ubjson_valueEm:
22404|   134M|    {
22405|   134M|        switch (prefix)
22406|   134M|        {
22407|  1.10k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.10k, False: 134M]
  ------------------
22408|  1.10k|                return unexpect_eof("value");
22409|       |
22410|  8.52M|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 8.52M, False: 125M]
  ------------------
22411|  8.52M|                return sax->boolean(true);
22412|  60.6M|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 60.6M, False: 73.6M]
  ------------------
22413|  60.6M|                return sax->boolean(false);
22414|       |
22415|  65.0M|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 65.0M, False: 69.2M]
  ------------------
22416|  65.0M|                return sax->null();
22417|       |
22418|      1|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1, False: 134M]
  ------------------
22419|      1|            {
22420|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 1, False: 0]
  ------------------
22421|      1|                {
22422|      1|                    break;
22423|      1|                }
22424|      0|                std::uint8_t number{};
22425|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 0, False: 0]
  |  Branch (22425:46): [True: 0, False: 0]
  ------------------
22426|      1|            }
22427|       |
22428|  8.57k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 8.57k, False: 134M]
  ------------------
22429|  8.57k|            {
22430|  8.57k|                std::uint8_t number{};
22431|  8.57k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 8.48k, False: 97]
  |  Branch (22431:46): [True: 8.48k, False: 0]
  ------------------
22432|      1|            }
22433|       |
22434|  6.25k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 6.25k, False: 134M]
  ------------------
22435|  6.25k|            {
22436|  6.25k|                std::int8_t number{};
22437|  6.25k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 6.16k, False: 91]
  |  Branch (22437:46): [True: 6.16k, False: 0]
  ------------------
22438|      1|            }
22439|       |
22440|  3.14k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 3.14k, False: 134M]
  ------------------
22441|  3.14k|            {
22442|  3.14k|                std::int16_t number{};
22443|  3.14k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 3.04k, False: 92]
  |  Branch (22443:46): [True: 3.04k, False: 0]
  ------------------
22444|      1|            }
22445|       |
22446|  1.61k|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 1.61k, False: 134M]
  ------------------
22447|  1.61k|            {
22448|  1.61k|                std::int32_t number{};
22449|  1.61k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 1.51k, False: 91]
  |  Branch (22449:46): [True: 1.51k, False: 0]
  ------------------
22450|      1|            }
22451|       |
22452|  1.57k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 1.57k, False: 134M]
  ------------------
22453|  1.57k|            {
22454|  1.57k|                std::int64_t number{};
22455|  1.57k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 1.48k, False: 89]
  |  Branch (22455:46): [True: 1.48k, False: 0]
  ------------------
22456|      1|            }
22457|       |
22458|      1|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 1, False: 134M]
  ------------------
22459|      1|            {
22460|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 1, False: 0]
  ------------------
22461|      1|                {
22462|      1|                    break;
22463|      1|                }
22464|      0|                std::uint16_t number{};
22465|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 0, False: 0]
  |  Branch (22465:46): [True: 0, False: 0]
  ------------------
22466|      1|            }
22467|       |
22468|      2|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 2, False: 134M]
  ------------------
22469|      2|            {
22470|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 2, False: 0]
  ------------------
22471|      2|                {
22472|      2|                    break;
22473|      2|                }
22474|      0|                std::uint32_t number{};
22475|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 0, False: 0]
  |  Branch (22475:46): [True: 0, False: 0]
  ------------------
22476|      2|            }
22477|       |
22478|      2|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 2, False: 134M]
  ------------------
22479|      2|            {
22480|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 2, False: 0]
  ------------------
22481|      2|                {
22482|      2|                    break;
22483|      2|                }
22484|      0|                std::uint64_t number{};
22485|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 0, False: 0]
  |  Branch (22485:46): [True: 0, False: 0]
  ------------------
22486|      2|            }
22487|       |
22488|      2|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 2, False: 134M]
  ------------------
22489|      2|            {
22490|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 2, False: 0]
  ------------------
22491|      2|                {
22492|      2|                    break;
22493|      2|                }
22494|      0|                return get_half_float(true);
22495|      2|            }
22496|       |
22497|  4.42k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 4.42k, False: 134M]
  ------------------
22498|  4.42k|            {
22499|  4.42k|                float number{};
22500|  4.42k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 4.32k, False: 97]
  |  Branch (22500:46): [True: 4.32k, False: 0]
  ------------------
22501|      2|            }
22502|       |
22503|  1.28k|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 1.28k, False: 134M]
  ------------------
22504|  1.28k|            {
22505|  1.28k|                double number{};
22506|  1.28k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 1.20k, False: 77]
  |  Branch (22506:46): [True: 1.20k, False: 0]
  ------------------
22507|      2|            }
22508|       |
22509|  9.19k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 9.19k, False: 134M]
  ------------------
22510|  9.19k|            {
22511|  9.19k|                return get_ubjson_high_precision_number();
22512|      2|            }
22513|       |
22514|  5.38k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 5.38k, False: 134M]
  ------------------
22515|  5.38k|            {
22516|  5.38k|                get();
22517|  5.38k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.38k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  5.38k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.38k]
  |  |  ------------------
  ------------------
22522|      5|                {
22523|      5|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      5|                }
22525|  5.38k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  5.38k|                return sax->string(s);
22527|  5.38k|            }
22528|       |
22529|  2.53k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 2.53k, False: 134M]
  ------------------
22530|  2.53k|            {
22531|  2.53k|                string_t s;
22532|  2.53k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 2.39k, False: 140]
  |  Branch (22532:48): [True: 2.39k, False: 0]
  ------------------
22533|  5.38k|            }
22534|       |
22535|  64.2k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 64.2k, False: 134M]
  ------------------
22536|  64.2k|                return get_ubjson_array();
22537|       |
22538|  10.4k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 10.4k, False: 134M]
  ------------------
22539|  10.4k|                return get_ubjson_object();
22540|       |
22541|    197|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 197, False: 134M]
  ------------------
22542|    197|                break;
22543|   134M|        }
22544|    205|        return unexpected_byte("invalid byte", "value");
22545|   134M|    }
_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_EEE32get_ubjson_high_precision_numberEv:
22845|  9.19k|    {
22846|       |        // get the size of the following number string
22847|  9.19k|        std::size_t size{};
22848|  9.19k|        bool no_ndarray = true;
22849|  9.19k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  9.19k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.19k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  9.19k|        std::vector<char> number_vector;
22857|   127k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 118k, False: 9.19k]
  ------------------
22858|   118k|        {
22859|   118k|            get();
22860|   118k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 118k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|   118k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 118k]
  |  |  ------------------
  ------------------
22866|      1|            {
22867|      1|                return sax->parse_error(chars_read, "00", parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22868|      1|                                        exception_message("invalid number text; last byte: 0x00", "high-precision number"), nullptr));
22869|      1|            }
22870|   118k|            number_vector.push_back(static_cast<char>(current));
22871|   118k|        }
22872|       |
22873|       |        // parse number string
22874|  9.19k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  9.19k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  9.19k|        const auto result_number = number_lexer.scan();
22877|  9.19k|        const auto number_string = number_lexer.get_token_string();
22878|       |        // the number as the lexer read it, for SAX number_float(): unlike
22879|       |        // get_token_string(), which is meant for error messages and shortens
22880|       |        // long tokens, it is complete; the next scan() replaces it
22881|  9.19k|        const string_t number_text = number_lexer.get_string();
22882|  9.19k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  9.19k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  9.19k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.18k, False: 8.00k]
  |  |  ------------------
  ------------------
22887|  1.18k|        {
22888|  1.18k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.18k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.18k|        }
22891|       |
22892|  8.00k|        switch (result_number)
22893|  8.00k|        {
22894|    448|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 448, False: 7.55k]
  ------------------
22895|    448|                return sax->number_integer(number_lexer.get_number_integer());
22896|  3.18k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 3.18k, False: 4.82k]
  ------------------
22897|  3.18k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.33k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.33k, False: 4.66k]
  ------------------
22899|  3.33k|            {
22900|  3.33k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.33k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 190, False: 3.14k]
  |  |  ------------------
  ------------------
22902|    190|                {
22903|    190|                    return sax->parse_error(
22904|    190|                               chars_read,
22905|    190|                               number_string,
22906|    190|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    190|                }
22908|  3.14k|                return sax->number_float(parsed_float, number_text);
22909|  3.33k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 8.00k]
  ------------------
22911|      1|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 1, False: 8.00k]
  ------------------
22912|      2|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 8.00k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 0, False: 8.00k]
  ------------------
22914|      4|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 2, False: 8.00k]
  ------------------
22915|      9|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 5, False: 8.00k]
  ------------------
22916|     10|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 8.00k]
  ------------------
22917|     11|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 8.00k]
  ------------------
22918|     12|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 8.00k]
  ------------------
22919|     13|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 1, False: 8.00k]
  ------------------
22920|     14|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 8.00k]
  ------------------
22921|    662|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 648, False: 7.35k]
  ------------------
22922|    703|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 41, False: 7.96k]
  ------------------
22923|    703|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 8.00k]
  ------------------
22924|    703|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 8.00k]
  ------------------
22925|    703|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    703|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  8.00k|        }
22928|  8.00k|    }
_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_EEE21get_ubjson_size_valueERmRbmm:
22148|  17.2k|    {
22149|  17.2k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 17.2k, False: 0]
  ------------------
22150|  17.2k|        {
22151|  17.2k|            prefix = get_ignore_noop();
22152|  17.2k|        }
22153|       |
22154|  17.2k|        switch (prefix)
22155|  17.2k|        {
22156|  11.5k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 11.5k, False: 5.68k]
  ------------------
22157|  11.5k|            {
22158|  11.5k|                std::uint8_t number{};
22159|  11.5k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  11.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.5k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  11.5k|                result = static_cast<std::size_t>(number);
22164|  11.5k|                return true;
22165|  11.5k|            }
22166|       |
22167|  2.36k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 2.36k, False: 14.8k]
  ------------------
22168|  2.36k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.65k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.65k, False: 15.5k]
  ------------------
22171|  1.65k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    694|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 694, False: 16.5k]
  ------------------
22174|    694|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    903|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 903, False: 16.2k]
  ------------------
22177|    903|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|      1|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 1, False: 17.2k]
  ------------------
22180|      1|            {
22181|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 1, False: 0]
  ------------------
22182|      1|                {
22183|      1|                    break;
22184|      1|                }
22185|      0|                std::uint16_t number{};
22186|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|      0|                result = static_cast<std::size_t>(number);
22191|      0|                return true;
22192|      0|            }
22193|       |
22194|      1|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 1, False: 17.2k]
  ------------------
22195|      1|            {
22196|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 1, False: 0]
  ------------------
22197|      1|                {
22198|      1|                    break;
22199|      1|                }
22200|      0|                std::uint32_t number{};
22201|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|      0|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|      0|            }
22207|       |
22208|      1|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1, False: 17.2k]
  ------------------
22209|      1|            {
22210|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 1, False: 0]
  ------------------
22211|      1|                {
22212|      1|                    break;
22213|      1|                }
22214|      0|                std::uint64_t number{};
22215|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|      0|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 0]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|      0|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|      0|            }
22225|       |
22226|      6|            case '[':
  ------------------
  |  Branch (22226:13): [True: 6, False: 17.1k]
  ------------------
22227|      6|            {
22228|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 6, False: 0]
  ------------------
22229|      6|                {
22230|      6|                    break;
22231|      6|                }
22232|      0|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 0, False: 0]
  ------------------
22233|      0|                {
22234|      0|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      0|                }
22236|      0|                std::vector<size_t> dim;
22237|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|      0|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 0, False: 0]
  |  Branch (22241:41): [True: 0, False: 0]
  |  Branch (22241:60): [True: 0, False: 0]
  ------------------
22242|      0|                {
22243|      0|                    result = dim.at(dim.size() - 1);
22244|      0|                    return true;
22245|      0|                }
22246|      0|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 0, False: 0]
  ------------------
22247|      0|                {
22248|      0|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 0, False: 0]
  ------------------
22249|      0|                    {
22250|      0|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 0, False: 0]
  ------------------
22251|      0|                        {
22252|      0|                            result = 0;
22253|      0|                            return true;
22254|      0|                        }
22255|      0|                    }
22256|       |
22257|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22258|      0|                    {
22259|      0|                        return false;
22260|      0|                    }
22261|       |
22262|       |                    // the element type precedes the dimension vector (see get_ubjson_size_type)
22263|       |                    // and is passed down as ndarray_dtype; emit it here so the annotation keys
22264|       |                    // follow the documented _ArrayType_, _ArraySize_, _ArrayData_ order
22265|      0|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 0, False: 0]
  ------------------
22266|      0|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|      0|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|      0|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 0, False: 0]
  ------------------
22270|       |
22271|      0|                        string_t type_key = "_ArrayType_";
22272|      0|                        string_t type = type_name; // sax->string() takes a reference
22273|      0|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|      0|                    }
22278|       |
22279|      0|                    string_t key = "_ArraySize_";
22280|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|      0|                    result = 1;
22285|      0|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 0, False: 0]
  ------------------
22286|      0|                    {
22287|       |                        // Pre-multiplication overflow check: since the loop above
22288|       |                        // already rejected any zero dimension, i is always > 0
22289|       |                        // here, so result > SIZE_MAX/i means result*i would
22290|       |                        // overflow. This check must happen before multiplication
22291|       |                        // since overflow detection after the fact is unreliable,
22292|       |                        // as modular arithmetic can produce any value, not just 0
22293|       |                        // or SIZE_MAX.
22294|      0|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22295|      0|                        {
22296|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|      0|                        }
22298|      0|                        result *= i;
22299|       |                        // the pre-check above already rules out result becoming 0
22300|       |                        // by overflow; the only value it cannot rule out is an
22301|       |                        // exact match with npos, the sentinel reserved for an
22302|       |                        // unknown-size container (see get_ubjson_size_type())
22303|      0|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 0, False: 0]
  ------------------
22304|      0|                        {
22305|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      0|                        }
22307|      0|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|      0|                    }
22312|      0|                    is_ndarray = true;
22313|      0|                    return sax->end_array();
22314|      0|                }
22315|      0|                result = 0;
22316|      0|                return true;
22317|      0|            }
22318|       |
22319|     54|            default:
  ------------------
  |  Branch (22319:13): [True: 54, False: 17.1k]
  ------------------
22320|     54|                break;
22321|  17.2k|        }
22322|     63|        return length_type_error(" after '#'", "size");
22323|  17.2k|    }
_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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  2.36k|    {
22115|  2.36k|        SignedType number{};
22116|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  2.36k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2, False: 2.36k]
  |  |  ------------------
  ------------------
22121|      2|        {
22122|      2|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      2|        }
22124|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  2.36k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  2.36k|    }
_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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.65k|    {
22115|  1.65k|        SignedType number{};
22116|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.65k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.65k]
  |  |  ------------------
  ------------------
22121|      3|        {
22122|      3|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      3|        }
22124|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.65k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  1.65k|    }
_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_EEE23get_ubjson_signed_countIiEEbRm:
22114|    694|    {
22115|    694|        SignedType number{};
22116|    694|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 694]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    694|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 659]
  |  |  ------------------
  ------------------
22121|     35|        {
22122|     35|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     35|        }
22124|    659|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    659|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 659]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    659|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    659|    }
_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_EEE23get_ubjson_signed_countIlEEbRm:
22114|    903|    {
22115|    903|        SignedType number{};
22116|    903|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 903]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    903|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 837]
  |  |  ------------------
  ------------------
22121|     66|        {
22122|     66|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     66|        }
22124|    837|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    837|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 837]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    837|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    837|    }
_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_EEE18store_ubjson_countEmRm:
22089|  5.46k|    {
22090|  5.46k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  5.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.46k]
  |  |  ------------------
  ------------------
22091|      0|        {
22092|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      0|        }
22094|  5.46k|        result = count;
22095|  5.46k|        return true;
22096|  5.46k|    }
_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_EEE20get_ubjson_size_typeERNS4_4pairImmEEb:
22337|  74.7k|    {
22338|  74.7k|        result.first = npos; // size
22339|  74.7k|        result.second = 0; // type
22340|       |        // seed the flag with the caller's context: inside an ndarray dimension
22341|       |        // vector another ndarray is not allowed, and get_ubjson_size_value()
22342|       |        // rejects it up front instead of reading it and reporting afterwards.
22343|       |        // Seeding it with `false` made every '#' of a "[#[#[..." chain descend
22344|       |        // another level, which overflowed the stack (see #5104).
22345|  74.7k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|  74.7k|        get_ignore_noop();
22348|       |
22349|  74.7k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 5.69k, False: 69.0k]
  ------------------
22350|  5.69k|        {
22351|  5.69k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.69k]
  |  |  ------------------
  ------------------
22353|      0|            {
22354|      0|                return false;
22355|      0|            }
22356|       |
22357|       |            // validate the type marker up front: otherwise it would only be
22358|       |            // checked when an element is read, and a container with count 0
22359|       |            // would accept any marker
22360|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 5.68k]
  |  |  ------------------
  ------------------
22361|     12|            {
22362|     12|                return optimized_type_error();
22363|     12|            }
22364|       |
22365|  5.68k|            get_ignore_noop();
22366|  5.68k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  5.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 128, False: 5.55k]
  |  |  ------------------
  ------------------
22367|    128|            {
22368|    128|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    128|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 128]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    128|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    128|            }
22374|       |
22375|  5.55k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray, 0, result.second);
22376|       |            // an ndarray was read here only if the flag flipped; when it was
22377|       |            // seeded true, get_ubjson_size_value() already rejected the nested
22378|       |            // dimension vector
22379|  5.55k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 0, False: 5.55k]
  |  Branch (22379:31): [True: 0, False: 0]
  ------------------
22380|      0|            {
22381|      0|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|      0|            }
22383|  5.55k|            return is_error;
22384|  5.68k|        }
22385|       |
22386|  69.0k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 2.46k, False: 66.5k]
  ------------------
22387|  2.46k|        {
22388|  2.46k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  2.46k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 0, False: 2.46k]
  |  Branch (22389:31): [True: 0, False: 0]
  ------------------
22390|      0|            {
22391|      0|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|      0|            }
22393|  2.46k|            return is_error;
22394|  2.46k|        }
22395|       |
22396|  66.5k|        return true;
22397|  69.0k|    }
_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_EEE23is_valid_optimized_typeEm:
24157|  5.68k|    {
24158|  5.68k|        switch (marker)
24159|  5.68k|        {
24160|    452|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 452, False: 5.23k]
  ------------------
24161|    886|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 434, False: 5.25k]
  ------------------
24162|  1.26k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 376, False: 5.31k]
  ------------------
24163|  1.63k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 371, False: 5.31k]
  ------------------
24164|  1.94k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 314, False: 5.37k]
  ------------------
24165|  2.35k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 408, False: 5.27k]
  ------------------
24166|  2.62k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 267, False: 5.41k]
  ------------------
24167|  2.79k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 168, False: 5.51k]
  ------------------
24168|  2.79k|                return true;
24169|    931|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 931, False: 4.75k]
  ------------------
24170|  1.08k|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 154, False: 5.53k]
  ------------------
24171|  1.79k|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 711, False: 4.97k]
  ------------------
24172|  2.24k|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 444, False: 5.24k]
  ------------------
24173|  2.36k|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 128, False: 5.55k]
  ------------------
24174|  2.50k|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 140, False: 5.54k]
  ------------------
24175|  2.75k|            case '[':
  ------------------
  |  Branch (24175:13): [True: 245, False: 5.44k]
  ------------------
24176|  2.88k|            case '{':
  ------------------
  |  Branch (24176:13): [True: 131, False: 5.55k]
  ------------------
24177|  2.88k|                return input_format != input_format_t::bjdata;
24178|      2|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 2, False: 5.68k]
  ------------------
24179|      3|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 1, False: 5.68k]
  ------------------
24180|      4|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 1, False: 5.68k]
  ------------------
24181|      5|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 1, False: 5.68k]
  ------------------
24182|      6|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 1, False: 5.68k]
  ------------------
24183|      6|                return input_format == input_format_t::bjdata;
24184|      6|            default:
  ------------------
  |  Branch (24184:13): [True: 6, False: 5.68k]
  ------------------
24185|      6|                return false;
24186|  5.68k|        }
24187|  5.68k|    }
_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_EEE20optimized_type_errorEv:
24014|     12|    {
24015|     12|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     12|    }
_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_EEE17length_type_errorEPKcSQ_:
24081|    144|    {
24082|    144|        const char* types = input_format == input_format_t::bjdata ? "U, i, u, I, m, l, M, L" : "U, i, I, l, L";
  ------------------
  |  Branch (24082:29): [True: 0, False: 144]
  ------------------
24083|    144|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    144|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    144|    }
_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_EEE16get_ubjson_arrayEv:
22707|  64.2k|    {
22708|  64.2k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  64.2k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  64.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.2k]
  |  |  ------------------
  ------------------
22710|      0|        {
22711|      0|            return false;
22712|      0|        }
22713|       |
22714|       |        // if bit-8 of size_and_type.second is set to 1, encode bjdata ndarray as an object in JData annotated array format (https://github.com/NeuroJSON/jdata):
22715|       |        // {"_ArrayType_" : "typeid", "_ArraySize_" : [n1, n2, ...], "_ArrayData_" : [v1, v2, ...]}
22716|       |
22717|  64.2k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 0, False: 64.2k]
  ------------------
22718|      0|        {
22719|      0|            size_and_type.second &= ~(static_cast<char_int_type>(1) << 8);  // use bit 8 to indicate ndarray, here we remove the bit to restore the type marker
22720|       |
22721|       |            // the "_ArrayType_" and "_ArraySize_" annotation keys were already emitted by
22722|       |            // get_ubjson_size_value() (the type marker is known before the dimension vector
22723|       |            // that determines size_and_type.first is read, so it is emitted first there to
22724|       |            // match the documented _ArrayType_, _ArraySize_, _ArrayData_ key order)
22725|       |            // 'C' elements are read as unsigned bytes, but BJData limits a char to 0..127
22726|      0|            const bool nd_is_char = size_and_type.second == 'C';
22727|      0|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 0, False: 0]
  |  Branch (22727:48): [True: 0, False: 0]
  ------------------
22728|      0|            {
22729|      0|                size_and_type.second = 'U';
22730|      0|            }
22731|       |
22732|      0|            string_t key = "_ArrayData_";
22733|      0|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22734|      0|            {
22735|      0|                return false;
22736|      0|            }
22737|       |
22738|       |            // the numbers that are in the input, in one loop; the rest (if
22739|       |            // the input ends early) one by one below
22740|      0|            std::size_t remaining = size_and_type.first;
22741|      0|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 0, False: 0]
  |  Branch (22741:17): [True: 0, False: 0]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|      0|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 0, False: 0]
  ------------------
22747|      0|            {
22748|      0|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 0, False: 0]
  ------------------
22749|      0|                {
22750|      0|                    get();
22751|      0|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|      0|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22756|      0|                    {
22757|      0|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      0|                    }
22759|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|      0|                    continue;
22764|      0|                }
22765|       |
22766|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|      0|            }
22771|       |
22772|      0|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 0, False: 0]
  |  Branch (22772:41): [True: 0, False: 0]
  ------------------
22773|      0|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  64.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 6.85k, False: 57.4k]
  |  Branch (22776:44): [True: 0, False: 6.85k]
  ------------------
22777|      0|        {
22778|      0|            binary_t result;
22779|      0|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 0, False: 0]
  |  Branch (22779:63): [True: 0, False: 0]
  ------------------
22780|      0|        }
22781|       |
22782|  64.2k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.85k, False: 57.4k]
  ------------------
22783|  6.85k|        {
22784|       |            // reading an element of a valueless type consumes no input, so the
22785|       |            // declared count alone decides how much is allocated; the check is
22786|       |            // made before the start event so that no container is opened that
22787|       |            // is then abandoned. See @ref max_valueless_container_size.
22788|  6.85k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  25.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.90k, False: 4.94k]
  |  |  |  Branch (1697:94): [True: 831, False: 6.02k]
  |  |  |  Branch (1697:94): [True: 638, False: 5.38k]
  |  |  |  Branch (1697:94): [True: 440, False: 4.94k]
  |  |  ------------------
  ------------------
22789|  1.90k|            {
22790|  1.90k|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 44, False: 1.86k]
  |  |  ------------------
  ------------------
22791|     44|                {
22792|     44|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|     44|                }
22794|  1.86k|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22795|     18|                {
22796|     18|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|     18|                }
22798|  1.86k|            }
22799|       |
22800|       |            // a no-op is not a value, so an array of them is empty whatever
22801|       |            // count it declares: the SAX parser is told so, instead of being
22802|       |            // made to reserve storage for a count that no input backs
22803|  6.79k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 145, False: 6.64k]
  ------------------
22804|  6.79k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.79k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.79k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 1.49k, False: 5.29k]
  ------------------
22810|  5.29k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 5.29k, False: 0]
  ------------------
22811|  6.79k|        }
22812|       |
22813|  57.4k|        return enter_array(detail::unknown_size());
22814|  64.2k|    }
_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_EEE22parse_ubjson_typed_runERmmNS4_17integral_constantIbLb0EEE:
22592|  5.29k|    {
22593|  5.29k|        return true;
22594|  5.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_EEE25charge_valueless_elementsEm:
22686|  1.86k|    {
22687|       |        // limit = base + rate * chars_read, saturating at the largest size_t
22688|       |        // instead of wrapping around, which would make a huge rate or input
22689|       |        // reject everything. valueless_elements never exceeds the limit of an
22690|       |        // earlier call, and the limit does not decrease, so the difference
22691|       |        // below cannot underflow.
22692|  1.86k|        const std::size_t limit = chars_read <= valueless_elements_saturation_chars
  ------------------
  |  Branch (22692:35): [True: 1.86k, False: 0]
  ------------------
22693|  1.86k|                                  ? valueless_elements_base + (valueless_elements_per_byte * chars_read)
22694|  1.86k|                                  : (std::numeric_limits<std::size_t>::max)();
22695|  1.86k|        if (JSON_HEDLEY_UNLIKELY(count > limit - valueless_elements))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22696|     18|        {
22697|     18|            return false;
22698|     18|        }
22699|  1.84k|        valueless_elements += count;
22700|  1.84k|        return true;
22701|  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_EEE17get_ubjson_objectEv:
22820|  10.4k|    {
22821|  10.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  10.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  10.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.4k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  10.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 0, False: 10.4k]
  ------------------
22829|      0|        {
22830|      0|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      0|        }
22832|       |
22833|  10.4k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 1.11k, False: 9.34k]
  ------------------
22834|  1.11k|        {
22835|  1.11k|            return enter_object(size_and_type.first, size_and_type.second);
22836|  1.11k|        }
22837|       |
22838|  9.34k|        return enter_object(detail::unknown_size());
22839|  10.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  22.4k|    {
21944|  22.4k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 6.24k, False: 16.2k]
  ------------------
21945|  6.24k|        {
21946|       |            // no get_ignore_noop() here: the byte read next must be a string
21947|       |            // length type specification, and a no-op ('N') is not valid in
21948|       |            // that position. No-ops at positions where a value may appear are
21949|       |            // already consumed by the callers via get_ignore_noop().
21950|  6.24k|            get();
21951|  6.24k|        }
21952|       |
21953|  22.4k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  22.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  22.4k|        switch (current)
21959|  22.4k|        {
21960|  17.5k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 17.5k, False: 4.96k]
  ------------------
21961|  17.5k|            {
21962|  17.5k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  2.64k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 2.64k, False: 19.8k]
  ------------------
21966|  2.64k|            {
21967|  2.64k|                std::int8_t len{};
21968|  2.64k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 2.63k, False: 4]
  |  Branch (21968:43): [True: 2.63k, False: 3]
  |  Branch (21968:78): [True: 2.59k, False: 42]
  |  Branch (21968:105): [True: 2.59k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    811|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 811, False: 21.6k]
  ------------------
21972|    811|            {
21973|    811|                std::int16_t len{};
21974|    811|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 804, False: 7]
  |  Branch (21974:43): [True: 800, False: 4]
  |  Branch (21974:78): [True: 742, False: 58]
  |  Branch (21974:105): [True: 742, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    534|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 534, False: 21.9k]
  ------------------
21978|    534|            {
21979|    534|                std::int32_t len{};
21980|    534|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 525, False: 9]
  |  Branch (21980:43): [True: 492, False: 33]
  |  Branch (21980:78): [True: 402, False: 90]
  |  Branch (21980:105): [True: 402, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    595|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 595, False: 21.8k]
  ------------------
21984|    595|            {
21985|    595|                std::int64_t len{};
21986|    595|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 582, False: 13]
  |  Branch (21986:43): [True: 513, False: 69]
  |  Branch (21986:78): [True: 359, False: 154]
  |  Branch (21986:105): [True: 359, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|      1|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 1, False: 22.4k]
  ------------------
21990|      1|            {
21991|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 1, False: 0]
  ------------------
21992|      1|                {
21993|      1|                    break;
21994|      1|                }
21995|      0|                return get_string_with_length<std::uint16_t>(result, context);
21996|      1|            }
21997|       |
21998|      2|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 2, False: 22.4k]
  ------------------
21999|      2|            {
22000|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 2, False: 0]
  ------------------
22001|      2|                {
22002|      2|                    break;
22003|      2|                }
22004|      0|                return get_string_with_length<std::uint32_t>(result, context);
22005|      2|            }
22006|       |
22007|      1|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 1, False: 22.4k]
  ------------------
22008|      1|            {
22009|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 1, False: 0]
  ------------------
22010|      1|                {
22011|      1|                    break;
22012|      1|                }
22013|      0|                return get_string_with_length<std::uint64_t>(result, context);
22014|      1|            }
22015|       |
22016|     77|            default:
  ------------------
  |  Branch (22016:13): [True: 77, False: 22.3k]
  ------------------
22017|     77|                break;
22018|  22.4k|        }
22019|     81|        return length_type_error("", "string");
22020|  22.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  2.63k|    {
21921|  2.63k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.63k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 2.63k]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|  2.63k|        return true;
21926|  2.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_EEE10get_stringIaEEbT_RSC_:
23767|  2.63k|    {
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.63k|        return get_bytes(len, "string", result);
23778|  2.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_EEE9get_bytesIaSC_EEbT_PKcRT0_:
23893|  2.63k|    {
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.63k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 2.63k]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  2.63k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 2.63k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  2.63k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  3.98k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.39k, False: 2.59k]
  ------------------
23906|  1.39k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.39k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.39k, False: 0]
  ------------------
23910|  1.39k|                                       ? static_cast<std::size_t>(len)
23911|  1.39k|                                       : chunk_size;
23912|  1.39k|            const std::size_t old_size = result.size();
23913|  1.39k|            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.39k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.39k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.39k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.39k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.39k|            chars_read += bytes_read;
23921|  1.39k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 42, False: 1.34k]
  |  |  ------------------
  ------------------
23922|     42|            {
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|     42|                result.resize(old_size + bytes_read);
23927|     42|                ++chars_read;
23928|     42|                current = char_traits<char_type>::eof();
23929|     42|                return unexpect_eof(context);
23930|     42|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.34k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.34k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.34k, False: 0]
  ------------------
23933|  1.34k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.34k|        }
23935|  2.59k|        return true;
23936|  2.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_EEE17append_from_blockIaSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  2.63k|    {
23965|  2.63k|        return false;
23966|  2.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_EEE26check_ubjson_string_lengthIsEEbT_:
21920|    804|    {
21921|    804|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    804|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 800]
  |  |  ------------------
  ------------------
21922|      4|        {
21923|      4|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      4|        }
21925|    800|        return true;
21926|    804|    }
_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_stringIsEEbT_RSC_:
23767|    800|    {
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|    800|        return get_bytes(len, "string", result);
23778|    800|    }
_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_bytesIsSC_EEbT_PKcRT0_:
23893|    800|    {
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|    800|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 800]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    800|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 800]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    800|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.23k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 490, False: 742]
  ------------------
23906|    490|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    490|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 476, False: 14]
  ------------------
23910|    490|                                       ? static_cast<std::size_t>(len)
23911|    490|                                       : chunk_size;
23912|    490|            const std::size_t old_size = result.size();
23913|    490|            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|    490|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    490|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 490, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    490|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    490|            chars_read += bytes_read;
23921|    490|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    490|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 58, False: 432]
  |  |  ------------------
  ------------------
23922|     58|            {
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|     58|                result.resize(old_size + bytes_read);
23927|     58|                ++chars_read;
23928|     58|                current = char_traits<char_type>::eof();
23929|     58|                return unexpect_eof(context);
23930|     58|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    432|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    432|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 432, False: 0]
  ------------------
23933|    432|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    432|        }
23935|    742|        return true;
23936|    800|    }
_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_blockIsSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|    800|    {
23965|    800|        return false;
23966|    800|    }
_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_EEE26check_ubjson_string_lengthIiEEbT_:
21920|    525|    {
21921|    525|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    525|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 33, False: 492]
  |  |  ------------------
  ------------------
21922|     33|        {
21923|     33|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     33|        }
21925|    492|        return true;
21926|    525|    }
_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_EEE26check_ubjson_string_lengthIlEEbT_:
21920|    582|    {
21921|    582|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    582|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 513]
  |  |  ------------------
  ------------------
21922|     69|        {
21923|     69|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     69|        }
21925|    513|        return true;
21926|    582|    }
_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_stringIlEEbT_RSC_:
23767|    513|    {
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|    513|        return get_bytes(len, "string", result);
23778|    513|    }
_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_bytesIlSC_EEbT_PKcRT0_:
23893|    513|    {
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|    513|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 513]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    513|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 513]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    513|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    671|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 312, False: 359]
  ------------------
23906|    312|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    312|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 196, False: 116]
  ------------------
23910|    312|                                       ? static_cast<std::size_t>(len)
23911|    312|                                       : chunk_size;
23912|    312|            const std::size_t old_size = result.size();
23913|    312|            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|    312|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    312|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 312, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    312|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    312|            chars_read += bytes_read;
23921|    312|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    312|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 154, False: 158]
  |  |  ------------------
  ------------------
23922|    154|            {
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|    154|                result.resize(old_size + bytes_read);
23927|    154|                ++chars_read;
23928|    154|                current = char_traits<char_type>::eof();
23929|    154|                return unexpect_eof(context);
23930|    154|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    158|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    158|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 158, False: 0]
  ------------------
23933|    158|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    158|        }
23935|    359|        return true;
23936|    513|    }
_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_blockIlSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|    513|    {
23965|    513|        return false;
23966|    513|    }
_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|    759|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    759|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    759|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 576, False: 183]
  ------------------
24059|    759|    }
_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_ignore_noopEv:
23522|   202k|    {
23523|   202k|        do
23524|   209k|        {
23525|   209k|            get();
23526|   209k|        }
23527|   209k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 6.39k, False: 202k]
  ------------------
23528|       |
23529|   202k|        return current;
23530|   202k|    }
_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|   344k|    {
23489|   344k|        ++chars_read;
23490|   344k|        return current = ia.get_character();
23491|   344k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E13get_characterEv:
10272|   344k|    {
10273|   344k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   344k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 337k, False: 7.75k]
  |  |  ------------------
  ------------------
10274|   337k|        {
10275|   337k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   337k|            std::advance(current, 1);
10277|   337k|            return result;
10278|   337k|        }
10279|       |
10280|  7.75k|        ++eof_reads;
10281|  7.75k|        return char_traits<char_type>::eof();
10282|   344k|    }
_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|  11.8k|        {
19135|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 11.8k, False: 0]
  ------------------
19136|  11.8k|            {
19137|  11.8k|                parser->set_reserve_state(saved);
19138|  11.8k|            }
19139|  11.8k|        }
_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|  11.8k|    ~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|  11.8k|    ~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|  11.8k|{
10756|  11.8k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  11.8k|    return factory_type::create(first, last);
10758|  11.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryINSt3__121__list_const_iteratorIhPvEES6_vE6createES6_S6_:
10617|  11.8k|    {
10618|  11.8k|        return adapter_type(std::move(first), std::move(last));
10619|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_EC2ES6_S6_:
10268|  11.8k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  11.8k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_ubjsonIRP8_IO_FILEEESE_OT_bbNS0_6detail15error_handler_tE:
46904|  11.8k|    {
46905|  11.8k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::ubjson, strict, allow_exceptions, error_handler);
46906|  11.8k|    }
_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|  11.8k|    {
46576|  11.8k|        basic_json result;
46577|  11.8k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  11.8k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  11.8k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 11.8k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  11.8k|        return result;
46584|  11.8k|    }
_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|  11.8k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  11.8k|    {}
_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|  11.8k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  11.8k|    {
18994|  11.8k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EOS2_:
 9548|  11.8k|        : m_file(rhs.m_file)
 9549|       |#if JSON_FILE_WINDOW
 9550|  11.8k|        , token_carry(std::move(rhs.token_carry))
 9551|  11.8k|        , token_segment(rhs.token_segment)
 9552|  11.8k|        , current_in_buffer(rhs.current_in_buffer)
 9553|  11.8k|        , tracking_token(rhs.tracking_token)
 9554|       |#endif
 9555|  11.8k|    {
 9556|       |        // the lock is owned by the thread, not the adapter: hand it over
 9557|  11.8k|        rhs.m_file = nullptr;
 9558|  11.8k|    }
_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|  11.8k|    {
19018|  11.8k|        sax = sax_;
19019|  11.8k|        container_stack.clear();
19020|  11.8k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  11.8k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  11.8k|        bool result = false;
19024|       |
19025|  11.8k|        switch (input_format)
19026|  11.8k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 11.8k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|  11.8k|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 11.8k, False: 0]
  ------------------
19040|  11.8k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 11.8k]
  ------------------
19041|  11.8k|                result = parse_ubjson_internal();
19042|  11.8k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 11.8k]
  ------------------
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: 11.8k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 11.8k]
  ------------------
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|  11.8k|        }
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|  6.19k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 6.19k, False: 0]
  |  Branch (19058:23): [True: 0, False: 6.19k]
  |  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|  6.19k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 6.19k, False: 0]
  |  Branch (19065:23): [True: 6.19k, False: 0]
  ------------------
19066|  6.19k|        {
19067|  6.19k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 6.19k, False: 0]
  |  Branch (19067:59): [True: 0, False: 0]
  ------------------
19068|  6.19k|            {
19069|  6.19k|                get_ignore_noop();
19070|  6.19k|            }
19071|      0|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 0]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|      0|            else
19077|      0|            {
19078|      0|                get();
19079|      0|            }
19080|       |
19081|  6.19k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  6.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 152, False: 6.03k]
  |  |  ------------------
  ------------------
19082|    152|            {
19083|    152|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    152|            }
19085|  6.19k|        }
19086|       |
19087|  6.03k|        return result;
19088|  6.19k|    }
_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|  11.8k|    {
19097|  11.8k|        return s;
19098|  11.8k|    }
_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|  11.8k|            : parser(parser_), saved()
19120|  11.8k|        {
19121|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 11.8k, False: 0]
  ------------------
19122|  11.8k|            {
19123|  11.8k|                saved = parser->get_reserve_state();
19124|  11.8k|                parser->set_input_position(position);
19125|  11.8k|            }
19126|  11.8k|        }
_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|  2.22k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.22k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.22k|        chars_read += new_chars_read;
23508|  2.22k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.22k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 112, False: 2.10k]
  |  |  ------------------
  ------------------
23509|    112|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    112|            ++chars_read;
23512|    112|            static_cast<void>(report_eof(context));
23513|    112|            return false;
23514|    112|        }
23515|  2.10k|        return true;
23516|  2.22k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIiEEmPT_m:
 9597|  2.22k|    {
 9598|  2.22k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.22k|    }
_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|  2.79k|    {
23992|  2.79k|        return sax->parse_error(chars_read, "<end of file>",
23993|  2.79k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  2.79k|    }
_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|  5.50k|    {
24103|  5.50k|        std::string error_msg = "syntax error while parsing ";
24104|  5.50k|        error_msg += input_format_name(input_format);
24105|       |
24106|  5.50k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  5.50k|    }
_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_swapIiEEvRT_:
23555|  2.72k|    {
23556|  2.72k|        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|  2.72k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  8.17k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.45k, False: 2.72k]
  ------------------
23572|  5.45k|            {
23573|  5.45k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.45k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.72k|    }
_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|  74.5k|    {
19202|  74.5k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   149k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 74.5k]
  |  |  |  Branch (1697:94): [True: 10.4k, False: 64.0k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  74.5k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  74.5k|        return true;
19209|  74.5k|    }
_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|  10.4k|    {
17879|  10.4k|        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|  10.4k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  10.4k|    }
_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|  74.5k|    {
17962|  74.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 6.31k, False: 68.1k]
  ------------------
17963|  6.31k|        {
17964|  6.31k|            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|  6.31k|            return &root;
17971|  6.31k|        }
17972|       |
17973|  68.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  68.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 63.9k, False: 4.22k]
  |  Branch (17973:9): [True: 4.22k, False: 0]
  |  Branch (17973:9): [True: 68.1k, False: 0]
  ------------------
17974|       |
17975|  68.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 63.9k, False: 4.22k]
  ------------------
17976|  63.9k|        {
17977|  63.9k|            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|  63.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  63.9k|        }
17985|       |
17986|  4.22k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.22k, False: 0]
  ------------------
17987|  4.22k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.22k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.22k, False: 0]
  ------------------
17988|  4.22k|        *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.22k|        return object_element;
17995|  4.22k|    }
_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|  74.5k|{
16470|  74.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 157, False: 74.3k]
  |  |  |  Branch (1697:94): [True: 7.91k, False: 66.5k]
  |  |  |  Branch (1697:94): [True: 157, False: 7.75k]
  |  |  ------------------
  ------------------
16471|    157|    {
16472|    157|        return container_too_large_error(sax, len, kind, ref);
16473|    157|    }
16474|  74.3k|    return true;
16475|  74.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail25container_too_large_errorINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_18file_input_adapterEEESH_EEbRT_mPKcPT0_:
16463|    157|{
16464|    157|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    157|}
_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|  64.0k|    {
17916|  64.0k|        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|  64.0k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  64.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.0k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  64.0k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 6.72k, False: 57.3k]
  ------------------
17929|  6.72k|        {
17930|  6.72k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  6.72k|        }
17932|       |
17933|  64.0k|        return true;
17934|  64.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_EEE15container_frameC2Embi:
19167|  74.3k|            : 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_EEE15leave_containerEv:
19233|  40.7k|    {
19234|  40.7k|        const bool is_object = container_stack.back().is_object;
19235|  40.7k|        container_stack.pop_back();
19236|  40.7k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 6.96k, False: 33.8k]
  ------------------
19237|  40.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_adapterEE10end_objectEv:
17901|  6.96k|    {
17902|  6.96k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 6.96k, False: 0]
  ------------------
17903|  6.96k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 6.96k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  6.96k|        ref_stack.back()->set_parents();
17910|  6.96k|        ref_stack.pop_back();
17911|  6.96k|        return true;
17912|  6.96k|    }
_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|  33.8k|    {
17938|  33.8k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 33.8k, False: 0]
  ------------------
17939|  33.8k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  33.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 33.8k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  33.8k|        ref_stack.back()->set_parents();
17946|  33.8k|        ref_stack.pop_back();
17947|  33.8k|        return true;
17948|  33.8k|    }
_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|   153k|    {
23975|   153k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   153k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.06k, False: 151k]
  |  |  ------------------
  ------------------
23976|  2.06k|        {
23977|  2.06k|            return report_eof(context);
23978|  2.06k|        }
23979|   151k|        return true;
23980|   153k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter14bulk_remainingEv:
 9616|  27.4k|    {
 9617|  27.4k|        if (!current_in_buffer)
  ------------------
  |  Branch (9617:13): [True: 0, False: 27.4k]
  ------------------
 9618|      0|        {
 9619|      0|            return 0;
 9620|      0|        }
 9621|  27.4k|        return static_cast<std::size_t>(buffer_end() - buffer_ptr());
 9622|  27.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_endEv:
 9681|   372k|    {
 9682|   372k|        return m_file->_IO_read_end;
 9683|   372k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_ptrEv:
 9677|   385k|    {
 9678|   385k|        return m_file->_IO_read_ptr;
 9679|   385k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_dataEv:
 9610|  12.8k|    {
 9611|  12.8k|        return buffer_ptr();
 9612|  12.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_skipEm:
 9626|  12.8k|    {
 9627|  12.8k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  12.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9627:9): [True: 12.8k, False: 0]
  ------------------
 9628|  12.8k|        buffer_bump(n);
 9629|  12.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter11buffer_bumpEm:
 9685|   337k|    {
 9686|   337k|        m_file->_IO_read_ptr += n;
 9687|   337k|    }
_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|  21.5k|    {
23812|  21.5k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 21.5k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  21.5k|    }
_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|  19.1k|    {
17891|  19.1k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 19.1k, False: 0]
  ------------------
17892|  19.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 19.1k, 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|  19.1k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  19.1k|        return true;
17898|  19.1k|    }
_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|    818|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    818|        auto new_chars_read = ia.get_elements(&dest);
23507|    818|        chars_read += new_chars_read;
23508|    818|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 741]
  |  |  ------------------
  ------------------
23509|     77|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     77|            ++chars_read;
23512|     77|            static_cast<void>(report_eof(context));
23513|     77|            return false;
23514|     77|        }
23515|    741|        return true;
23516|    818|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIdEEmPT_m:
 9597|    818|    {
 9598|    818|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    818|    }
_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_swapERd:
23535|  1.20k|    {
23536|  1.20k|        static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
23537|  1.20k|        std::uint64_t bits{};
23538|  1.20k|        std::memcpy(&bits, &number, sizeof(bits));
23539|  1.20k|        bits = byteswap(bits);
23540|  1.20k|        std::memcpy(&number, &bits, sizeof(bits));
23541|  1.20k|    }
_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.20k|    {
23683|  1.20k|        const auto result = static_cast<number_float_t>(number);
23684|  1.20k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.39k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.20k]
  |  |  |  Branch (1697:94): [True: 1.18k, False: 26]
  |  |  |  Branch (1697:94): [True: 0, False: 1.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.20k|        return sax->number_float(result, no_source);
23689|  1.20k|    }
_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_EEE18out_of_range_errorENS1_12exception_idEPKcSN_:
24001|     62|    {
24002|     62|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     62|    }
_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|  1.36k|    {
24092|  1.36k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.36k|    }
_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|  8.68k|    {
17857|  8.68k|        handle_value(val);
17858|  8.68k|        return true;
17859|  8.68k|    }
_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|  8.68k|    {
17962|  8.68k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.71k, False: 6.96k]
  ------------------
17963|  1.71k|        {
17964|  1.71k|            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|  1.71k|            return &root;
17971|  1.71k|        }
17972|       |
17973|  6.96k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.53k, False: 430]
  |  Branch (17973:9): [True: 430, False: 0]
  |  Branch (17973:9): [True: 6.96k, False: 0]
  ------------------
17974|       |
17975|  6.96k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.53k, False: 430]
  ------------------
17976|  6.53k|        {
17977|  6.53k|            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.53k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.53k|        }
17985|       |
17986|    430|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 430, False: 0]
  ------------------
17987|    430|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    430|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 430, False: 0]
  ------------------
17988|    430|        *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|    430|        return object_element;
17995|    430|    }
_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|    492|    {
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|    492|        return get_bytes(len, "string", result);
23778|    492|    }
_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|    492|    {
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|    492|        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|    492|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 219, False: 273]
  ------------------
23898|    219|        {
23899|    219|            return true;
23900|    219|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    273|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    273|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 90, False: 183]
  ------------------
23906|     90|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     90|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 52]
  ------------------
23910|     90|                                       ? static_cast<std::size_t>(len)
23911|     90|                                       : chunk_size;
23912|     90|            const std::size_t old_size = result.size();
23913|     90|            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|     90|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     90|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 90, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     90|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     90|            chars_read += bytes_read;
23921|     90|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     90|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 90, False: 0]
  |  |  ------------------
  ------------------
23922|     90|            {
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|     90|                result.resize(old_size + bytes_read);
23927|     90|                ++chars_read;
23928|     90|                current = char_traits<char_type>::eof();
23929|     90|                return unexpect_eof(context);
23930|     90|            }
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|    183|        return true;
23936|    273|    }
_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|    492|    {
23943|    492|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 183, False: 309]
  ------------------
23944|    183|        {
23945|    183|            return false;
23946|    183|        }
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|    309|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    309|        const std::size_t remaining = ia.bulk_remaining();
23951|    309|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 90, False: 219]
  ------------------
23952|     90|        {
23953|     90|            return false; // (the loop reports the premature end)
23954|     90|        }
23955|    219|        const auto n = static_cast<std::size_t>(ulen);
23956|    219|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    219|        ia.bulk_skip(n);
23958|    219|        chars_read += n;
23959|    219|        return true;
23960|    309|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIcEEmPT_m:
 9597|    392|    {
 9598|    392|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    392|    }
_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|  7.77k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  7.77k|        handle_value(std::move(val));
17866|  7.77k|        return true;
17867|  7.77k|    }
_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|  7.77k|    {
17962|  7.77k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 455, False: 7.31k]
  ------------------
17963|    455|        {
17964|    455|            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|    455|            return &root;
17971|    455|        }
17972|       |
17973|  7.31k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  7.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 5.84k, False: 1.47k]
  |  Branch (17973:9): [True: 1.47k, False: 0]
  |  Branch (17973:9): [True: 7.31k, False: 0]
  ------------------
17974|       |
17975|  7.31k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 5.84k, False: 1.47k]
  ------------------
17976|  5.84k|        {
17977|  5.84k|            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|  5.84k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  5.84k|        }
17985|       |
17986|  1.47k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.47k, False: 0]
  ------------------
17987|  1.47k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.47k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.47k, False: 0]
  ------------------
17988|  1.47k|        *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.47k|        return object_element;
17995|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIhEEmPT_m:
 9597|  33.3k|    {
 9598|  33.3k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  33.3k|    }
_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|  33.3k|    {
23597|       |        // read in the original format
23598|       |
23599|  33.3k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  33.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.3k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  33.3k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 33.1k, False: 114]
  |  Branch (23603:34): [Folded, False: 33.1k]
  |  Branch (23603:57): [True: 0, False: 33.1k]
  ------------------
23604|  33.1k|        {
23605|  33.1k|            byte_swap(result);
23606|  33.1k|        }
23607|  33.3k|        return true;
23608|  33.3k|    }
_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|  33.3k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  33.3k|        auto new_chars_read = ia.get_elements(&dest);
23507|  33.3k|        chars_read += new_chars_read;
23508|  33.3k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  33.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 33.1k]
  |  |  ------------------
  ------------------
23509|    114|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    114|            ++chars_read;
23512|    114|            static_cast<void>(report_eof(context));
23513|    114|            return false;
23514|    114|        }
23515|  33.1k|        return true;
23516|  33.3k|    }
_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|  37.4k|    {
23556|  37.4k|        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|  37.4k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  37.4k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 37.4k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  37.4k|    }
_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|  69.1M|    {
17839|  69.1M|        handle_value(val);
17840|  69.1M|        return true;
17841|  69.1M|    }
_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|  69.1M|    {
17962|  69.1M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 23, False: 69.1M]
  ------------------
17963|     23|        {
17964|     23|            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|     23|            return &root;
17971|     23|        }
17972|       |
17973|  69.1M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  69.1M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 69.1M, False: 3.15k]
  |  Branch (17973:9): [True: 3.15k, False: 0]
  |  Branch (17973:9): [True: 69.1M, False: 0]
  ------------------
17974|       |
17975|  69.1M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 69.1M, False: 3.15k]
  ------------------
17976|  69.1M|        {
17977|  69.1M|            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|  69.1M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  69.1M|        }
17985|       |
17986|  3.15k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.15k, False: 0]
  ------------------
17987|  3.15k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.15k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.15k, False: 0]
  ------------------
17988|  3.15k|        *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.15k|        return object_element;
17995|  3.15k|    }
_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|  65.0M|    {
17833|  65.0M|        handle_value(nullptr);
17834|  65.0M|        return true;
17835|  65.0M|    }
_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|  65.0M|    {
17962|  65.0M|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10, False: 65.0M]
  ------------------
17963|     10|        {
17964|     10|            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|     10|            return &root;
17971|     10|        }
17972|       |
17973|  65.0M|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  65.0M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 65.0M, False: 6.98k]
  |  Branch (17973:9): [True: 6.98k, False: 0]
  |  Branch (17973:9): [True: 65.0M, False: 0]
  ------------------
17974|       |
17975|  65.0M|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 65.0M, False: 6.98k]
  ------------------
17976|  65.0M|        {
17977|  65.0M|            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|  65.0M|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  65.0M|        }
17985|       |
17986|  6.98k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.98k, False: 0]
  ------------------
17987|  6.98k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.98k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.98k, False: 0]
  ------------------
17988|  6.98k|        *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.98k|        return object_element;
17995|  6.98k|    }
_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.51k|    {
23629|  1.51k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.51k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.51k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.51k|        {
23631|  1.51k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.51k|        }
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|  12.6k|    {
17845|  12.6k|        handle_value(val);
17846|  12.6k|        return true;
17847|  12.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_adapterEE12handle_valueIRlEEPSG_OT_:
17961|  12.6k|    {
17962|  12.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 506, False: 12.1k]
  ------------------
17963|    506|        {
17964|    506|            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|    506|            return &root;
17971|    506|        }
17972|       |
17973|  12.1k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  12.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.7k, False: 1.42k]
  |  Branch (17973:9): [True: 1.42k, False: 0]
  |  Branch (17973:9): [True: 12.1k, False: 0]
  ------------------
17974|       |
17975|  12.1k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.7k, False: 1.42k]
  ------------------
17976|  10.7k|        {
17977|  10.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|  10.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.7k|        }
17985|       |
17986|  1.42k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.42k, False: 0]
  ------------------
17987|  1.42k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.42k, False: 0]
  ------------------
17988|  1.42k|        *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.42k|        return object_element;
17995|  1.42k|    }
_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|  11.6k|    {
17851|  11.6k|        handle_value(val);
17852|  11.6k|        return true;
17853|  11.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_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  11.6k|    {
17962|  11.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 341, False: 11.3k]
  ------------------
17963|    341|        {
17964|    341|            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|    341|            return &root;
17971|    341|        }
17972|       |
17973|  11.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.1k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 11.3k, False: 0]
  ------------------
17974|       |
17975|  11.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.1k, False: 1.17k]
  ------------------
17976|  10.1k|        {
17977|  10.1k|            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|  10.1k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.1k|        }
17985|       |
17986|  1.17k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.17k, False: 0]
  ------------------
17987|  1.17k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.17k, False: 0]
  ------------------
17988|  1.17k|        *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.17k|        return object_element;
17995|  1.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_EEE6get_toIlEEbRT_PKc:
23503|  2.65k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.65k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.65k|        chars_read += new_chars_read;
23508|  2.65k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 121, False: 2.53k]
  |  |  ------------------
  ------------------
23509|    121|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    121|            ++chars_read;
23512|    121|            static_cast<void>(report_eof(context));
23513|    121|            return false;
23514|    121|        }
23515|  2.53k|        return true;
23516|  2.65k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIlEEmPT_m:
 9597|  2.65k|    {
 9598|  2.65k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.65k|    }
_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_swapIlEEvRT_:
23555|  2.94k|    {
23556|  2.94k|        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|  2.94k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  14.7k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 11.7k, False: 2.94k]
  ------------------
23572|  11.7k|            {
23573|  11.7k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  11.7k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  2.94k|    }
_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|  1.48k|    {
23629|  1.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.48k|        {
23631|  1.48k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.48k|        }
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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  17.5k|    {
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|  17.5k|        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|  17.5k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 9.56k, False: 7.94k]
  ------------------
23898|  9.56k|        {
23899|  9.56k|            return true;
23900|  9.56k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  7.94k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  7.94k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 48, False: 7.89k]
  ------------------
23906|     48|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     48|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 48, False: 0]
  ------------------
23910|     48|                                       ? static_cast<std::size_t>(len)
23911|     48|                                       : chunk_size;
23912|     48|            const std::size_t old_size = result.size();
23913|     48|            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|     48|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     48|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 48, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     48|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     48|            chars_read += bytes_read;
23921|     48|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     48|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 0]
  |  |  ------------------
  ------------------
23922|     48|            {
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|     48|                result.resize(old_size + bytes_read);
23927|     48|                ++chars_read;
23928|     48|                current = char_traits<char_type>::eof();
23929|     48|                return unexpect_eof(context);
23930|     48|            }
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|  7.89k|        return true;
23936|  7.94k|    }
_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_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  17.5k|    {
23943|  17.5k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 7.89k, False: 9.60k]
  ------------------
23944|  7.89k|        {
23945|  7.89k|            return false;
23946|  7.89k|        }
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|  9.60k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  9.60k|        const std::size_t remaining = ia.bulk_remaining();
23951|  9.60k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 48, False: 9.56k]
  ------------------
23952|     48|        {
23953|     48|            return false; // (the loop reports the premature end)
23954|     48|        }
23955|  9.56k|        const auto n = static_cast<std::size_t>(ulen);
23956|  9.56k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  9.56k|        ia.bulk_skip(n);
23958|  9.56k|        chars_read += n;
23959|  9.56k|        return true;
23960|  9.60k|    }
_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_unsignedIhEEbT_:
23656|  8.48k|    {
23657|  8.48k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  8.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.48k, False: 0]
  |  |  ------------------
  ------------------
23658|  8.48k|        {
23659|  8.48k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  8.48k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  8.48k|    }
_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_floatIfEEbT_:
23682|  4.32k|    {
23683|  4.32k|        const auto result = static_cast<number_float_t>(number);
23684|  4.32k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  8.51k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.32k]
  |  |  |  Branch (1697:94): [True: 4.18k, False: 136]
  |  |  |  Branch (1697:94): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  4.32k|        return sax->number_float(result, no_source);
23689|  4.32k|    }
_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_swapERf:
23545|  4.32k|    {
23546|  4.32k|        static_assert(sizeof(float) == sizeof(std::uint32_t), "float must have 32 bits");
23547|  4.32k|        std::uint32_t bits{};
23548|  4.32k|        std::memcpy(&bits, &number, sizeof(bits));
23549|  4.32k|        bits = byteswap(bits);
23550|  4.32k|        std::memcpy(&number, &bits, sizeof(bits));
23551|  4.32k|    }
_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_EEE11enter_arrayEmi:
19213|  64.0k|    {
19214|  64.0k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  64.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_EEE12enter_objectEmi:
19219|  10.4k|    {
19220|  10.4k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  10.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_EEE15unexpected_byteEPKcSM_:
24069|    205|    {
24070|    205|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|    205|    }
_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_numberIfLb0EEEbRT_:
23596|  2.46k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.46k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.46k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.46k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.36k, False: 97]
  |  Branch (23603:34): [Folded, False: 2.36k]
  |  Branch (23603:57): [True: 0, False: 2.36k]
  ------------------
23604|  2.36k|        {
23605|  2.36k|            byte_swap(result);
23606|  2.36k|        }
23607|  2.46k|        return true;
23608|  2.46k|    }
_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_toIfEEbRT_PKc:
23503|  2.46k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.46k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.46k|        chars_read += new_chars_read;
23508|  2.46k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 2.36k]
  |  |  ------------------
  ------------------
23509|     97|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     97|            ++chars_read;
23512|     97|            static_cast<void>(report_eof(context));
23513|     97|            return false;
23514|     97|        }
23515|  2.36k|        return true;
23516|  2.46k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIfEEmPT_m:
 9597|  2.46k|    {
 9598|  2.46k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.46k|    }
_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_numberIdLb0EEEbRT_:
23596|    818|    {
23597|       |        // read in the original format
23598|       |
23599|    818|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 818]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    818|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 741, False: 77]
  |  Branch (23603:34): [Folded, False: 741]
  |  Branch (23603:57): [True: 0, False: 741]
  ------------------
23604|    741|        {
23605|    741|            byte_swap(result);
23606|    741|        }
23607|    818|        return true;
23608|    818|    }
_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_EEE22get_string_with_lengthIhEEbRSC_PKc:
23846|  17.5k|    {
23847|  17.5k|        NumberType len{};
23848|  17.5k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 17.5k, False: 10]
  |  Branch (23848:35): [True: 17.4k, False: 48]
  |  Branch (23848:62): [True: 17.4k, False: 0]
  ------------------
23849|  17.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_stringIhEEbT_RSC_:
23767|  17.5k|    {
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|  17.5k|        return get_bytes(len, "string", result);
23778|  17.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_EEE9byte_swapIsEEvRT_:
23555|  5.49k|    {
23556|  5.49k|        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|  5.49k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  10.9k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 5.49k, False: 5.49k]
  ------------------
23572|  5.49k|            {
23573|  5.49k|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|  5.49k|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  5.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_EEE10get_numberIaLb0EEEbRT_:
23596|  7.19k|    {
23597|       |        // read in the original format
23598|       |
23599|  7.19k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  7.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.19k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  7.19k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 7.10k, False: 99]
  |  Branch (23603:34): [Folded, False: 7.10k]
  |  Branch (23603:57): [True: 0, False: 7.10k]
  ------------------
23604|  7.10k|        {
23605|  7.10k|            byte_swap(result);
23606|  7.10k|        }
23607|  7.19k|        return true;
23608|  7.19k|    }
_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_toIaEEbRT_PKc:
23503|  7.19k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  7.19k|        auto new_chars_read = ia.get_elements(&dest);
23507|  7.19k|        chars_read += new_chars_read;
23508|  7.19k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  7.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 7.10k]
  |  |  ------------------
  ------------------
23509|     99|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     99|            ++chars_read;
23512|     99|            static_cast<void>(report_eof(context));
23513|     99|            return false;
23514|     99|        }
23515|  7.10k|        return true;
23516|  7.19k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIaEEmPT_m:
 9597|  7.19k|    {
 9598|  7.19k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  7.19k|    }
_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_swapIaEEvRT_:
23555|  11.1k|    {
23556|  11.1k|        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|  11.1k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  11.1k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 11.1k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  11.1k|    }
_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_signedIaEEbT_:
23628|  6.16k|    {
23629|  6.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  6.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  6.16k|        {
23631|  6.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  6.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_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_numberIsLb0EEEbRT_:
23596|  4.18k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.18k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.18k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 4.07k, False: 109]
  |  Branch (23603:34): [Folded, False: 4.07k]
  |  Branch (23603:57): [True: 0, False: 4.07k]
  ------------------
23604|  4.07k|        {
23605|  4.07k|            byte_swap(result);
23606|  4.07k|        }
23607|  4.18k|        return true;
23608|  4.18k|    }
_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_toIsEEbRT_PKc:
23503|  4.18k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.18k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.18k|        chars_read += new_chars_read;
23508|  4.18k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 4.07k]
  |  |  ------------------
  ------------------
23509|    109|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    109|            ++chars_read;
23512|    109|            static_cast<void>(report_eof(context));
23513|    109|            return false;
23514|    109|        }
23515|  4.07k|        return true;
23516|  4.18k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIsEEmPT_m:
 9597|  4.18k|    {
 9598|  4.18k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  4.18k|    }
_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_signedIsEEbT_:
23628|  3.04k|    {
23629|  3.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.04k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.04k|        {
23631|  3.04k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.04k|        }
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_numberIiLb0EEEbRT_:
23596|  2.22k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.22k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.22k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.22k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.22k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.10k, False: 112]
  |  Branch (23603:34): [Folded, False: 2.10k]
  |  Branch (23603:57): [True: 0, False: 2.10k]
  ------------------
23604|  2.10k|        {
23605|  2.10k|            byte_swap(result);
23606|  2.10k|        }
23607|  2.22k|        return true;
23608|  2.22k|    }
_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_numberIlLb0EEEbRT_:
23596|  2.65k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.65k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.65k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.65k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 2.53k, False: 121]
  |  Branch (23603:34): [Folded, False: 2.53k]
  |  Branch (23603:57): [True: 0, False: 2.53k]
  ------------------
23604|  2.53k|        {
23605|  2.53k|            byte_swap(result);
23606|  2.53k|        }
23607|  2.65k|        return true;
23608|  2.65k|    }
_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_EEE21parse_ubjson_internalEv:
21807|  11.8k|    {
21808|       |        // the key currently being read; hoisted out of the loop so that its
21809|       |        // capacity is reused across elements and across nesting levels
21810|  11.8k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  11.8k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   134M|        while (true)
  ------------------
  |  Branch (21815:16): [True: 134M, Folded]
  ------------------
21816|   134M|        {
21817|   134M|            const std::size_t depth = container_stack.size();
21818|       |
21819|   134M|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   134M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 134M]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   134M|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.04k, False: 134M]
  ------------------
21826|  3.04k|            {
21827|  3.04k|                return true;
21828|  3.04k|            }
21829|       |
21830|       |            // a value was completed rather than a container opened; a
21831|       |            // container that ends at a marker needs the next byte to test
21832|   134M|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 134M, False: 79.2k]
  |  Branch (21832:52): [True: 35.7k, False: 134M]
  ------------------
21833|  35.7k|            {
21834|  35.7k|                get_ignore_noop();
21835|  35.7k|            }
21836|       |
21837|       |            // advance to the next element, closing the containers that ended.
21838|       |            // top is a copy, not a reference: it must stay valid across the
21839|       |            // pop_back() below, which destroys the container_stack element it
21840|       |            // would otherwise alias.
21841|   134M|            for (;;)
21842|   134M|            {
21843|   134M|                const container_frame top = container_stack.back();
21844|       |
21845|   134M|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 134M, False: 135k]
  ------------------
21846|   134M|                {
21847|   134M|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 134M, False: 5.55k]
  ------------------
21848|   134M|                    {
21849|   134M|                        --container_stack.back().remaining;
21850|   134M|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 3.70k, False: 134M]
  ------------------
21851|  3.70k|                        {
21852|  3.70k|                            key.clear();
21853|  3.70k|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  7.27k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.70k]
  |  |  |  Branch (1697:94): [True: 131, False: 3.57k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.57k]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|  3.70k|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|   134M|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 134M, False: 2.80k]
  ------------------
21860|   134M|                        break;
21861|   134M|                    }
21862|   134M|                }
21863|       |                // the end marker is compared against a literal rather than
21864|       |                // against a conditional expression, because char_int_type is
21865|       |                // unsigned for some input adapters and MSVC then reports the
21866|       |                // comparison as a signed/unsigned mismatch
21867|   135k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 22.3k, False: 113k]
  |  Branch (21867:26): [True: 100k, False: 35.2k]
  ------------------
21868|   100k|                {
21869|       |                    // a container that ends at a marker is never optimized, so
21870|       |                    // every element carries its own marker; for an object the
21871|       |                    // byte tested above is the first byte of the key
21872|   100k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 16.2k, False: 83.9k]
  ------------------
21873|  16.2k|                    {
21874|  16.2k|                        key.clear();
21875|  16.2k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  31.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 16.2k]
  |  |  |  Branch (1697:94): [True: 651, False: 15.5k]
  |  |  |  Branch (1697:94): [True: 0, False: 15.5k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  16.2k|                        prefix = get_ignore_noop();
21880|  16.2k|                    }
21881|  83.9k|                    else
21882|  83.9k|                    {
21883|  83.9k|                        prefix = current;
21884|  83.9k|                    }
21885|   100k|                    break;
21886|   100k|                }
21887|       |
21888|  40.7k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  40.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.7k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  40.7k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 3.14k, False: 37.6k]
  ------------------
21893|  3.14k|                {
21894|  3.14k|                    return true;
21895|  3.14k|                }
21896|       |                // the container that just ended was an element of the one
21897|       |                // below it, which may need the next byte for its own test
21898|  37.6k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 33.1k, False: 4.51k]
  ------------------
21899|  33.1k|                {
21900|  33.1k|                    get_ignore_noop();
21901|  33.1k|                }
21902|  37.6k|            }
21903|   134M|        }
21904|  11.8k|    }
_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_EEE16get_ubjson_valueEi:
22404|   134M|    {
22405|   134M|        switch (prefix)
22406|   134M|        {
22407|  1.10k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.10k, False: 134M]
  ------------------
22408|  1.10k|                return unexpect_eof("value");
22409|       |
22410|  8.52M|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 8.52M, False: 125M]
  ------------------
22411|  8.52M|                return sax->boolean(true);
22412|  60.6M|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 60.6M, False: 73.6M]
  ------------------
22413|  60.6M|                return sax->boolean(false);
22414|       |
22415|  65.0M|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 65.0M, False: 69.2M]
  ------------------
22416|  65.0M|                return sax->null();
22417|       |
22418|      1|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1, False: 134M]
  ------------------
22419|      1|            {
22420|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 1, False: 0]
  ------------------
22421|      1|                {
22422|      1|                    break;
22423|      1|                }
22424|      0|                std::uint8_t number{};
22425|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 0, False: 0]
  |  Branch (22425:46): [True: 0, False: 0]
  ------------------
22426|      1|            }
22427|       |
22428|  4.27k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 4.27k, False: 134M]
  ------------------
22429|  4.27k|            {
22430|  4.27k|                std::uint8_t number{};
22431|  4.27k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 4.18k, False: 97]
  |  Branch (22431:46): [True: 4.18k, False: 0]
  ------------------
22432|      1|            }
22433|       |
22434|  2.19k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 2.19k, False: 134M]
  ------------------
22435|  2.19k|            {
22436|  2.19k|                std::int8_t number{};
22437|  2.19k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 2.09k, False: 91]
  |  Branch (22437:46): [True: 2.09k, False: 0]
  ------------------
22438|      1|            }
22439|       |
22440|  1.71k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 1.71k, False: 134M]
  ------------------
22441|  1.71k|            {
22442|  1.71k|                std::int16_t number{};
22443|  1.71k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 1.62k, False: 92]
  |  Branch (22443:46): [True: 1.62k, False: 0]
  ------------------
22444|      1|            }
22445|       |
22446|    992|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 992, False: 134M]
  ------------------
22447|    992|            {
22448|    992|                std::int32_t number{};
22449|    992|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 901, False: 91]
  |  Branch (22449:46): [True: 901, False: 0]
  ------------------
22450|      1|            }
22451|       |
22452|  1.15k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 1.15k, False: 134M]
  ------------------
22453|  1.15k|            {
22454|  1.15k|                std::int64_t number{};
22455|  1.15k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 1.06k, False: 89]
  |  Branch (22455:46): [True: 1.06k, False: 0]
  ------------------
22456|      1|            }
22457|       |
22458|      1|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 1, False: 134M]
  ------------------
22459|      1|            {
22460|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 1, False: 0]
  ------------------
22461|      1|                {
22462|      1|                    break;
22463|      1|                }
22464|      0|                std::uint16_t number{};
22465|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 0, False: 0]
  |  Branch (22465:46): [True: 0, False: 0]
  ------------------
22466|      1|            }
22467|       |
22468|      2|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 2, False: 134M]
  ------------------
22469|      2|            {
22470|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 2, False: 0]
  ------------------
22471|      2|                {
22472|      2|                    break;
22473|      2|                }
22474|      0|                std::uint32_t number{};
22475|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 0, False: 0]
  |  Branch (22475:46): [True: 0, False: 0]
  ------------------
22476|      2|            }
22477|       |
22478|      2|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 2, False: 134M]
  ------------------
22479|      2|            {
22480|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 2, False: 0]
  ------------------
22481|      2|                {
22482|      2|                    break;
22483|      2|                }
22484|      0|                std::uint64_t number{};
22485|      0|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 0, False: 0]
  |  Branch (22485:46): [True: 0, False: 0]
  ------------------
22486|      2|            }
22487|       |
22488|      2|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 2, False: 134M]
  ------------------
22489|      2|            {
22490|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 2, False: 0]
  ------------------
22491|      2|                {
22492|      2|                    break;
22493|      2|                }
22494|      0|                return get_half_float(true);
22495|      2|            }
22496|       |
22497|  2.46k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 2.46k, False: 134M]
  ------------------
22498|  2.46k|            {
22499|  2.46k|                float number{};
22500|  2.46k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 2.36k, False: 97]
  |  Branch (22500:46): [True: 2.36k, False: 0]
  ------------------
22501|      2|            }
22502|       |
22503|    818|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 818, False: 134M]
  ------------------
22504|    818|            {
22505|    818|                double number{};
22506|    818|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 741, False: 77]
  |  Branch (22506:46): [True: 741, False: 0]
  ------------------
22507|      2|            }
22508|       |
22509|  9.19k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 9.19k, False: 134M]
  ------------------
22510|  9.19k|            {
22511|  9.19k|                return get_ubjson_high_precision_number();
22512|      2|            }
22513|       |
22514|  5.38k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 5.38k, False: 134M]
  ------------------
22515|  5.38k|            {
22516|  5.38k|                get();
22517|  5.38k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.38k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  5.38k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.38k]
  |  |  ------------------
  ------------------
22522|      5|                {
22523|      5|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      5|                }
22525|  5.38k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  5.38k|                return sax->string(s);
22527|  5.38k|            }
22528|       |
22529|  2.53k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 2.53k, False: 134M]
  ------------------
22530|  2.53k|            {
22531|  2.53k|                string_t s;
22532|  2.53k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 2.39k, False: 140]
  |  Branch (22532:48): [True: 2.39k, False: 0]
  ------------------
22533|  5.38k|            }
22534|       |
22535|  64.2k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 64.2k, False: 134M]
  ------------------
22536|  64.2k|                return get_ubjson_array();
22537|       |
22538|  10.4k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 10.4k, False: 134M]
  ------------------
22539|  10.4k|                return get_ubjson_object();
22540|       |
22541|    197|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 197, False: 134M]
  ------------------
22542|    197|                break;
22543|   134M|        }
22544|    205|        return unexpected_byte("invalid byte", "value");
22545|   134M|    }
_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_EEE32get_ubjson_high_precision_numberEv:
22845|  9.19k|    {
22846|       |        // get the size of the following number string
22847|  9.19k|        std::size_t size{};
22848|  9.19k|        bool no_ndarray = true;
22849|  9.19k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  9.19k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.19k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  9.19k|        std::vector<char> number_vector;
22857|   127k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 118k, False: 9.19k]
  ------------------
22858|   118k|        {
22859|   118k|            get();
22860|   118k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 118k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|   118k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|   118k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 118k]
  |  |  ------------------
  ------------------
22866|      1|            {
22867|      1|                return sax->parse_error(chars_read, "00", parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22868|      1|                                        exception_message("invalid number text; last byte: 0x00", "high-precision number"), nullptr));
22869|      1|            }
22870|   118k|            number_vector.push_back(static_cast<char>(current));
22871|   118k|        }
22872|       |
22873|       |        // parse number string
22874|  9.19k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  9.19k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  9.19k|        const auto result_number = number_lexer.scan();
22877|  9.19k|        const auto number_string = number_lexer.get_token_string();
22878|       |        // the number as the lexer read it, for SAX number_float(): unlike
22879|       |        // get_token_string(), which is meant for error messages and shortens
22880|       |        // long tokens, it is complete; the next scan() replaces it
22881|  9.19k|        const string_t number_text = number_lexer.get_string();
22882|  9.19k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  9.19k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  9.19k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  9.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.18k, False: 8.00k]
  |  |  ------------------
  ------------------
22887|  1.18k|        {
22888|  1.18k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.18k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.18k|        }
22891|       |
22892|  8.00k|        switch (result_number)
22893|  8.00k|        {
22894|    448|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 448, False: 7.55k]
  ------------------
22895|    448|                return sax->number_integer(number_lexer.get_number_integer());
22896|  3.18k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 3.18k, False: 4.82k]
  ------------------
22897|  3.18k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.33k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.33k, False: 4.66k]
  ------------------
22899|  3.33k|            {
22900|  3.33k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.33k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 190, False: 3.14k]
  |  |  ------------------
  ------------------
22902|    190|                {
22903|    190|                    return sax->parse_error(
22904|    190|                               chars_read,
22905|    190|                               number_string,
22906|    190|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    190|                }
22908|  3.14k|                return sax->number_float(parsed_float, number_text);
22909|  3.33k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 8.00k]
  ------------------
22911|      1|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 1, False: 8.00k]
  ------------------
22912|      2|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 8.00k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 0, False: 8.00k]
  ------------------
22914|      4|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 2, False: 8.00k]
  ------------------
22915|      9|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 5, False: 8.00k]
  ------------------
22916|     10|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 8.00k]
  ------------------
22917|     11|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 8.00k]
  ------------------
22918|     12|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 8.00k]
  ------------------
22919|     13|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 1, False: 8.00k]
  ------------------
22920|     14|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 8.00k]
  ------------------
22921|    662|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 648, False: 7.35k]
  ------------------
22922|    703|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 41, False: 7.96k]
  ------------------
22923|    703|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 8.00k]
  ------------------
22924|    703|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 8.00k]
  ------------------
22925|    703|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    703|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  8.00k|        }
22928|  8.00k|    }
_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_EEE21get_ubjson_size_valueERmRbii:
22148|  17.2k|    {
22149|  17.2k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 17.2k, False: 0]
  ------------------
22150|  17.2k|        {
22151|  17.2k|            prefix = get_ignore_noop();
22152|  17.2k|        }
22153|       |
22154|  17.2k|        switch (prefix)
22155|  17.2k|        {
22156|  11.5k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 11.5k, False: 5.68k]
  ------------------
22157|  11.5k|            {
22158|  11.5k|                std::uint8_t number{};
22159|  11.5k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  11.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.5k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  11.5k|                result = static_cast<std::size_t>(number);
22164|  11.5k|                return true;
22165|  11.5k|            }
22166|       |
22167|  2.36k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 2.36k, False: 14.8k]
  ------------------
22168|  2.36k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.65k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.65k, False: 15.5k]
  ------------------
22171|  1.65k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    694|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 694, False: 16.5k]
  ------------------
22174|    694|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    903|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 903, False: 16.2k]
  ------------------
22177|    903|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|      1|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 1, False: 17.2k]
  ------------------
22180|      1|            {
22181|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 1, False: 0]
  ------------------
22182|      1|                {
22183|      1|                    break;
22184|      1|                }
22185|      0|                std::uint16_t number{};
22186|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|      0|                result = static_cast<std::size_t>(number);
22191|      0|                return true;
22192|      0|            }
22193|       |
22194|      1|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 1, False: 17.2k]
  ------------------
22195|      1|            {
22196|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 1, False: 0]
  ------------------
22197|      1|                {
22198|      1|                    break;
22199|      1|                }
22200|      0|                std::uint32_t number{};
22201|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|      0|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|      0|            }
22207|       |
22208|      1|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1, False: 17.2k]
  ------------------
22209|      1|            {
22210|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 1, False: 0]
  ------------------
22211|      1|                {
22212|      1|                    break;
22213|      1|                }
22214|      0|                std::uint64_t number{};
22215|      0|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|      0|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 0]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|      0|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|      0|            }
22225|       |
22226|      6|            case '[':
  ------------------
  |  Branch (22226:13): [True: 6, False: 17.1k]
  ------------------
22227|      6|            {
22228|      6|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 6, False: 0]
  ------------------
22229|      6|                {
22230|      6|                    break;
22231|      6|                }
22232|      0|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 0, False: 0]
  ------------------
22233|      0|                {
22234|      0|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      0|                }
22236|      0|                std::vector<size_t> dim;
22237|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|      0|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 0, False: 0]
  |  Branch (22241:41): [True: 0, False: 0]
  |  Branch (22241:60): [True: 0, False: 0]
  ------------------
22242|      0|                {
22243|      0|                    result = dim.at(dim.size() - 1);
22244|      0|                    return true;
22245|      0|                }
22246|      0|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 0, False: 0]
  ------------------
22247|      0|                {
22248|      0|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 0, False: 0]
  ------------------
22249|      0|                    {
22250|      0|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 0, False: 0]
  ------------------
22251|      0|                        {
22252|      0|                            result = 0;
22253|      0|                            return true;
22254|      0|                        }
22255|      0|                    }
22256|       |
22257|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22258|      0|                    {
22259|      0|                        return false;
22260|      0|                    }
22261|       |
22262|       |                    // the element type precedes the dimension vector (see get_ubjson_size_type)
22263|       |                    // and is passed down as ndarray_dtype; emit it here so the annotation keys
22264|       |                    // follow the documented _ArrayType_, _ArraySize_, _ArrayData_ order
22265|      0|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 0, False: 0]
  ------------------
22266|      0|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|      0|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|      0|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 0, False: 0]
  ------------------
22270|       |
22271|      0|                        string_t type_key = "_ArrayType_";
22272|      0|                        string_t type = type_name; // sax->string() takes a reference
22273|      0|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|      0|                    }
22278|       |
22279|      0|                    string_t key = "_ArraySize_";
22280|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|      0|                    result = 1;
22285|      0|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 0, False: 0]
  ------------------
22286|      0|                    {
22287|       |                        // Pre-multiplication overflow check: since the loop above
22288|       |                        // already rejected any zero dimension, i is always > 0
22289|       |                        // here, so result > SIZE_MAX/i means result*i would
22290|       |                        // overflow. This check must happen before multiplication
22291|       |                        // since overflow detection after the fact is unreliable,
22292|       |                        // as modular arithmetic can produce any value, not just 0
22293|       |                        // or SIZE_MAX.
22294|      0|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22295|      0|                        {
22296|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|      0|                        }
22298|      0|                        result *= i;
22299|       |                        // the pre-check above already rules out result becoming 0
22300|       |                        // by overflow; the only value it cannot rule out is an
22301|       |                        // exact match with npos, the sentinel reserved for an
22302|       |                        // unknown-size container (see get_ubjson_size_type())
22303|      0|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 0, False: 0]
  ------------------
22304|      0|                        {
22305|      0|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      0|                        }
22307|      0|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|      0|                    }
22312|      0|                    is_ndarray = true;
22313|      0|                    return sax->end_array();
22314|      0|                }
22315|      0|                result = 0;
22316|      0|                return true;
22317|      0|            }
22318|       |
22319|     54|            default:
  ------------------
  |  Branch (22319:13): [True: 54, False: 17.1k]
  ------------------
22320|     54|                break;
22321|  17.2k|        }
22322|     63|        return length_type_error(" after '#'", "size");
22323|  17.2k|    }
_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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  2.36k|    {
22115|  2.36k|        SignedType number{};
22116|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  2.36k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2, False: 2.36k]
  |  |  ------------------
  ------------------
22121|      2|        {
22122|      2|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      2|        }
22124|  2.36k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  2.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  2.36k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  2.36k|    }
_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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.65k|    {
22115|  1.65k|        SignedType number{};
22116|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.65k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.65k]
  |  |  ------------------
  ------------------
22121|      3|        {
22122|      3|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      3|        }
22124|  1.65k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.65k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.65k|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|  1.65k|    }
_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_EEE23get_ubjson_signed_countIiEEbRm:
22114|    694|    {
22115|    694|        SignedType number{};
22116|    694|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 694]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    694|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    694|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 659]
  |  |  ------------------
  ------------------
22121|     35|        {
22122|     35|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     35|        }
22124|    659|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    659|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 659]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    659|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    659|    }
_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_EEE23get_ubjson_signed_countIlEEbRm:
22114|    903|    {
22115|    903|        SignedType number{};
22116|    903|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 903]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    903|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    903|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 837]
  |  |  ------------------
  ------------------
22121|     66|        {
22122|     66|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     66|        }
22124|    837|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    837|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 837]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    837|        return store_ubjson_count(static_cast<std::size_t>(number), result); // NOLINT(bugprone-signed-char-misuse,cert-str34-c): number is not a char
22129|    837|    }
_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_EEE18store_ubjson_countEmRm:
22089|  5.46k|    {
22090|  5.46k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  5.46k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.46k]
  |  |  ------------------
  ------------------
22091|      0|        {
22092|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      0|        }
22094|  5.46k|        result = count;
22095|  5.46k|        return true;
22096|  5.46k|    }
_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_EEE20get_ubjson_size_typeERNS4_4pairImiEEb:
22337|  74.7k|    {
22338|  74.7k|        result.first = npos; // size
22339|  74.7k|        result.second = 0; // type
22340|       |        // seed the flag with the caller's context: inside an ndarray dimension
22341|       |        // vector another ndarray is not allowed, and get_ubjson_size_value()
22342|       |        // rejects it up front instead of reading it and reporting afterwards.
22343|       |        // Seeding it with `false` made every '#' of a "[#[#[..." chain descend
22344|       |        // another level, which overflowed the stack (see #5104).
22345|  74.7k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|  74.7k|        get_ignore_noop();
22348|       |
22349|  74.7k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 5.69k, False: 69.0k]
  ------------------
22350|  5.69k|        {
22351|  5.69k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.69k]
  |  |  ------------------
  ------------------
22353|      0|            {
22354|      0|                return false;
22355|      0|            }
22356|       |
22357|       |            // validate the type marker up front: otherwise it would only be
22358|       |            // checked when an element is read, and a container with count 0
22359|       |            // would accept any marker
22360|  5.69k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  5.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 5.68k]
  |  |  ------------------
  ------------------
22361|     12|            {
22362|     12|                return optimized_type_error();
22363|     12|            }
22364|       |
22365|  5.68k|            get_ignore_noop();
22366|  5.68k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  5.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 128, False: 5.55k]
  |  |  ------------------
  ------------------
22367|    128|            {
22368|    128|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    128|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 128]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    128|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    128|            }
22374|       |
22375|  5.55k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray, 0, result.second);
22376|       |            // an ndarray was read here only if the flag flipped; when it was
22377|       |            // seeded true, get_ubjson_size_value() already rejected the nested
22378|       |            // dimension vector
22379|  5.55k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 0, False: 5.55k]
  |  Branch (22379:31): [True: 0, False: 0]
  ------------------
22380|      0|            {
22381|      0|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|      0|            }
22383|  5.55k|            return is_error;
22384|  5.68k|        }
22385|       |
22386|  69.0k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 2.46k, False: 66.5k]
  ------------------
22387|  2.46k|        {
22388|  2.46k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  2.46k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 0, False: 2.46k]
  |  Branch (22389:31): [True: 0, False: 0]
  ------------------
22390|      0|            {
22391|      0|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|      0|            }
22393|  2.46k|            return is_error;
22394|  2.46k|        }
22395|       |
22396|  66.5k|        return true;
22397|  69.0k|    }
_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_EEE23is_valid_optimized_typeEi:
24157|  5.68k|    {
24158|  5.68k|        switch (marker)
24159|  5.68k|        {
24160|    452|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 452, False: 5.23k]
  ------------------
24161|    886|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 434, False: 5.25k]
  ------------------
24162|  1.26k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 376, False: 5.31k]
  ------------------
24163|  1.63k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 371, False: 5.31k]
  ------------------
24164|  1.94k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 314, False: 5.37k]
  ------------------
24165|  2.35k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 408, False: 5.27k]
  ------------------
24166|  2.62k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 267, False: 5.41k]
  ------------------
24167|  2.79k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 168, False: 5.51k]
  ------------------
24168|  2.79k|                return true;
24169|    931|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 931, False: 4.75k]
  ------------------
24170|  1.08k|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 154, False: 5.53k]
  ------------------
24171|  1.79k|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 711, False: 4.97k]
  ------------------
24172|  2.24k|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 444, False: 5.24k]
  ------------------
24173|  2.36k|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 128, False: 5.55k]
  ------------------
24174|  2.50k|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 140, False: 5.54k]
  ------------------
24175|  2.75k|            case '[':
  ------------------
  |  Branch (24175:13): [True: 245, False: 5.44k]
  ------------------
24176|  2.88k|            case '{':
  ------------------
  |  Branch (24176:13): [True: 131, False: 5.55k]
  ------------------
24177|  2.88k|                return input_format != input_format_t::bjdata;
24178|      2|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 2, False: 5.68k]
  ------------------
24179|      3|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 1, False: 5.68k]
  ------------------
24180|      4|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 1, False: 5.68k]
  ------------------
24181|      5|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 1, False: 5.68k]
  ------------------
24182|      6|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 1, False: 5.68k]
  ------------------
24183|      6|                return input_format == input_format_t::bjdata;
24184|      6|            default:
  ------------------
  |  Branch (24184:13): [True: 6, False: 5.68k]
  ------------------
24185|      6|                return false;
24186|  5.68k|        }
24187|  5.68k|    }
_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_EEE20optimized_type_errorEv:
24014|     12|    {
24015|     12|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     12|    }
_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_EEE17length_type_errorEPKcSM_:
24081|    144|    {
24082|    144|        const char* types = input_format == input_format_t::bjdata ? "U, i, u, I, m, l, M, L" : "U, i, I, l, L";
  ------------------
  |  Branch (24082:29): [True: 0, False: 144]
  ------------------
24083|    144|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    144|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    144|    }
_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_EEE16get_ubjson_arrayEv:
22707|  64.2k|    {
22708|  64.2k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  64.2k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  64.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 64.2k]
  |  |  ------------------
  ------------------
22710|      0|        {
22711|      0|            return false;
22712|      0|        }
22713|       |
22714|       |        // if bit-8 of size_and_type.second is set to 1, encode bjdata ndarray as an object in JData annotated array format (https://github.com/NeuroJSON/jdata):
22715|       |        // {"_ArrayType_" : "typeid", "_ArraySize_" : [n1, n2, ...], "_ArrayData_" : [v1, v2, ...]}
22716|       |
22717|  64.2k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 0, False: 64.2k]
  ------------------
22718|      0|        {
22719|      0|            size_and_type.second &= ~(static_cast<char_int_type>(1) << 8);  // use bit 8 to indicate ndarray, here we remove the bit to restore the type marker
22720|       |
22721|       |            // the "_ArrayType_" and "_ArraySize_" annotation keys were already emitted by
22722|       |            // get_ubjson_size_value() (the type marker is known before the dimension vector
22723|       |            // that determines size_and_type.first is read, so it is emitted first there to
22724|       |            // match the documented _ArrayType_, _ArraySize_, _ArrayData_ key order)
22725|       |            // 'C' elements are read as unsigned bytes, but BJData limits a char to 0..127
22726|      0|            const bool nd_is_char = size_and_type.second == 'C';
22727|      0|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 0, False: 0]
  |  Branch (22727:48): [True: 0, False: 0]
  ------------------
22728|      0|            {
22729|      0|                size_and_type.second = 'U';
22730|      0|            }
22731|       |
22732|      0|            string_t key = "_ArrayData_";
22733|      0|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22734|      0|            {
22735|      0|                return false;
22736|      0|            }
22737|       |
22738|       |            // the numbers that are in the input, in one loop; the rest (if
22739|       |            // the input ends early) one by one below
22740|      0|            std::size_t remaining = size_and_type.first;
22741|      0|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 0, False: 0]
  |  Branch (22741:17): [True: 0, False: 0]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|      0|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 0, False: 0]
  ------------------
22747|      0|            {
22748|      0|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 0, False: 0]
  ------------------
22749|      0|                {
22750|      0|                    get();
22751|      0|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|      0|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22756|      0|                    {
22757|      0|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      0|                    }
22759|      0|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|      0|                    continue;
22764|      0|                }
22765|       |
22766|      0|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|      0|            }
22771|       |
22772|      0|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 0, False: 0]
  |  Branch (22772:41): [True: 0, False: 0]
  ------------------
22773|      0|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  64.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 6.85k, False: 57.4k]
  |  Branch (22776:44): [True: 0, False: 6.85k]
  ------------------
22777|      0|        {
22778|      0|            binary_t result;
22779|      0|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 0, False: 0]
  |  Branch (22779:63): [True: 0, False: 0]
  ------------------
22780|      0|        }
22781|       |
22782|  64.2k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.85k, False: 57.4k]
  ------------------
22783|  6.85k|        {
22784|       |            // reading an element of a valueless type consumes no input, so the
22785|       |            // declared count alone decides how much is allocated; the check is
22786|       |            // made before the start event so that no container is opened that
22787|       |            // is then abandoned. See @ref max_valueless_container_size.
22788|  6.85k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  25.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.90k, False: 4.94k]
  |  |  |  Branch (1697:94): [True: 831, False: 6.02k]
  |  |  |  Branch (1697:94): [True: 638, False: 5.38k]
  |  |  |  Branch (1697:94): [True: 440, False: 4.94k]
  |  |  ------------------
  ------------------
22789|  1.90k|            {
22790|  1.90k|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 44, False: 1.86k]
  |  |  ------------------
  ------------------
22791|     44|                {
22792|     44|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|     44|                }
22794|  1.86k|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22795|     18|                {
22796|     18|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|     18|                }
22798|  1.86k|            }
22799|       |
22800|       |            // a no-op is not a value, so an array of them is empty whatever
22801|       |            // count it declares: the SAX parser is told so, instead of being
22802|       |            // made to reserve storage for a count that no input backs
22803|  6.79k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 145, False: 6.64k]
  ------------------
22804|  6.79k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.79k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.79k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 1.49k, False: 5.29k]
  ------------------
22810|  5.29k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 5.29k, False: 0]
  ------------------
22811|  6.79k|        }
22812|       |
22813|  57.4k|        return enter_array(detail::unknown_size());
22814|  64.2k|    }
_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_EEE22parse_ubjson_typed_runERmiNS4_17integral_constantIbLb1EEE:
22562|  5.29k|    {
22563|  5.29k|        switch (type)
22564|  5.29k|        {
22565|    422|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 422, False: 4.87k]
  ------------------
22566|    422|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|    442|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 442, False: 4.85k]
  ------------------
22568|    442|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|    366|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 366, False: 4.93k]
  ------------------
22570|    366|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|    363|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 363, False: 4.93k]
  ------------------
22572|    363|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|    304|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 304, False: 4.99k]
  ------------------
22574|    304|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|      0|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 0, False: 5.29k]
  ------------------
22576|      0|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|      0|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 0, False: 5.29k]
  ------------------
22578|      0|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|      0|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 0, False: 5.29k]
  ------------------
22580|      0|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|    398|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 398, False: 4.89k]
  ------------------
22582|    398|                return parse_ubjson_typed_run<float>(remaining);
22583|    259|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 259, False: 5.03k]
  ------------------
22584|    259|                return parse_ubjson_typed_run<double>(remaining);
22585|  2.74k|            default:
  ------------------
  |  Branch (22585:13): [True: 2.74k, False: 2.55k]
  ------------------
22586|  2.74k|                return true;
22587|  5.29k|        }
22588|  5.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_EEE22parse_ubjson_typed_runIhEEbRm:
22598|    422|    {
22599|    422|        constexpr std::size_t size = sizeof(NumberType);
22600|    422|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    422|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 205, False: 217]
  ------------------
22602|    205|        {
22603|    205|            return true;
22604|    205|        }
22605|    217|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    217|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    217|        const std::size_t start = chars_read;
22609|    217|        std::size_t read = 0;
22610|    217|        bool accepted = true;
22611|  4.51k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.30k, False: 217]
  |  Branch (22611:32): [True: 4.30k, False: 0]
  ------------------
22612|  4.30k|        {
22613|  4.30k|            NumberType number{};
22614|  4.30k|            std::memcpy(&number, data + (read * size), size);
22615|  4.30k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 4.30k, False: 0]
  ------------------
22616|  4.30k|            {
22617|  4.30k|                byte_swap(number);
22618|  4.30k|            }
22619|  4.30k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  4.30k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.30k|            accepted = emit_ubjson_number(number);
22625|  4.30k|        }
22626|       |        // get_number() does not change current
22627|    217|        ia.bulk_skip(read * size);
22628|    217|        chars_read = start + (read * size);
22629|    217|        remaining -= read;
22630|    217|        return accepted;
22631|    422|    }
_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_EEE14set_chars_readEmNS4_17integral_constantIbLb0EEE:
22651|  13.2k|    void set_chars_read(const std::size_t /*position*/, std::false_type /*track*/) const noexcept {}
_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_EEE18emit_ubjson_numberIhTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|  4.30k|    {
22668|  4.30k|        return emit_unsigned(number);
22669|  4.30k|    }
_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_EEE22parse_ubjson_typed_runIaEEbRm:
22598|    442|    {
22599|    442|        constexpr std::size_t size = sizeof(NumberType);
22600|    442|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    442|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 253, False: 189]
  ------------------
22602|    253|        {
22603|    253|            return true;
22604|    253|        }
22605|    189|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    189|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    189|        const std::size_t start = chars_read;
22609|    189|        std::size_t read = 0;
22610|    189|        bool accepted = true;
22611|  4.25k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.06k, False: 189]
  |  Branch (22611:32): [True: 4.06k, False: 0]
  ------------------
22612|  4.06k|        {
22613|  4.06k|            NumberType number{};
22614|  4.06k|            std::memcpy(&number, data + (read * size), size);
22615|  4.06k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 4.06k, False: 0]
  ------------------
22616|  4.06k|            {
22617|  4.06k|                byte_swap(number);
22618|  4.06k|            }
22619|  4.06k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  4.06k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.06k|            accepted = emit_ubjson_number(number);
22625|  4.06k|        }
22626|       |        // get_number() does not change current
22627|    189|        ia.bulk_skip(read * size);
22628|    189|        chars_read = start + (read * size);
22629|    189|        remaining -= read;
22630|    189|        return accepted;
22631|    442|    }
_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_EEE18emit_ubjson_numberIaTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|  4.06k|    {
22662|  4.06k|        return emit_signed(number);
22663|  4.06k|    }
_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_EEE22parse_ubjson_typed_runIsEEbRm:
22598|    366|    {
22599|    366|        constexpr std::size_t size = sizeof(NumberType);
22600|    366|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    366|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 197, False: 169]
  ------------------
22602|    197|        {
22603|    197|            return true;
22604|    197|        }
22605|    169|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    169|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    169|        const std::size_t start = chars_read;
22609|    169|        std::size_t read = 0;
22610|    169|        bool accepted = true;
22611|  1.59k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.42k, False: 169]
  |  Branch (22611:32): [True: 1.42k, False: 0]
  ------------------
22612|  1.42k|        {
22613|  1.42k|            NumberType number{};
22614|  1.42k|            std::memcpy(&number, data + (read * size), size);
22615|  1.42k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 1.42k, False: 0]
  ------------------
22616|  1.42k|            {
22617|  1.42k|                byte_swap(number);
22618|  1.42k|            }
22619|  1.42k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  1.42k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.42k|            accepted = emit_ubjson_number(number);
22625|  1.42k|        }
22626|       |        // get_number() does not change current
22627|    169|        ia.bulk_skip(read * size);
22628|    169|        chars_read = start + (read * size);
22629|    169|        remaining -= read;
22630|    169|        return accepted;
22631|    366|    }
_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_EEE18emit_ubjson_numberIsTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|  1.42k|    {
22662|  1.42k|        return emit_signed(number);
22663|  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_EEE22parse_ubjson_typed_runIiEEbRm:
22598|    363|    {
22599|    363|        constexpr std::size_t size = sizeof(NumberType);
22600|    363|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    363|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 206, False: 157]
  ------------------
22602|    206|        {
22603|    206|            return true;
22604|    206|        }
22605|    157|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    157|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    157|        const std::size_t start = chars_read;
22609|    157|        std::size_t read = 0;
22610|    157|        bool accepted = true;
22611|    775|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 618, False: 157]
  |  Branch (22611:32): [True: 618, False: 0]
  ------------------
22612|    618|        {
22613|    618|            NumberType number{};
22614|    618|            std::memcpy(&number, data + (read * size), size);
22615|    618|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 618, False: 0]
  ------------------
22616|    618|            {
22617|    618|                byte_swap(number);
22618|    618|            }
22619|    618|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    618|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    618|            accepted = emit_ubjson_number(number);
22625|    618|        }
22626|       |        // get_number() does not change current
22627|    157|        ia.bulk_skip(read * size);
22628|    157|        chars_read = start + (read * size);
22629|    157|        remaining -= read;
22630|    157|        return accepted;
22631|    363|    }
_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_EEE18emit_ubjson_numberIiTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|    618|    {
22662|    618|        return emit_signed(number);
22663|    618|    }
_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_EEE22parse_ubjson_typed_runIlEEbRm:
22598|    304|    {
22599|    304|        constexpr std::size_t size = sizeof(NumberType);
22600|    304|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    304|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 219, False: 85]
  ------------------
22602|    219|        {
22603|    219|            return true;
22604|    219|        }
22605|     85|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|     85|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|     85|        const std::size_t start = chars_read;
22609|     85|        std::size_t read = 0;
22610|     85|        bool accepted = true;
22611|    503|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 418, False: 85]
  |  Branch (22611:32): [True: 418, False: 0]
  ------------------
22612|    418|        {
22613|    418|            NumberType number{};
22614|    418|            std::memcpy(&number, data + (read * size), size);
22615|    418|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 418, False: 0]
  ------------------
22616|    418|            {
22617|    418|                byte_swap(number);
22618|    418|            }
22619|    418|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    418|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    418|            accepted = emit_ubjson_number(number);
22625|    418|        }
22626|       |        // get_number() does not change current
22627|     85|        ia.bulk_skip(read * size);
22628|     85|        chars_read = start + (read * size);
22629|     85|        remaining -= read;
22630|     85|        return accepted;
22631|    304|    }
_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_EEE18emit_ubjson_numberIlTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22661|    418|    {
22662|    418|        return emit_signed(number);
22663|    418|    }
_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_EEE22parse_ubjson_typed_runIfEEbRm:
22598|    398|    {
22599|    398|        constexpr std::size_t size = sizeof(NumberType);
22600|    398|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    398|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 200, False: 198]
  ------------------
22602|    200|        {
22603|    200|            return true;
22604|    200|        }
22605|    198|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    198|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    198|        const std::size_t start = chars_read;
22609|    198|        std::size_t read = 0;
22610|    198|        bool accepted = true;
22611|  2.15k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.95k, False: 198]
  |  Branch (22611:32): [True: 1.95k, False: 0]
  ------------------
22612|  1.95k|        {
22613|  1.95k|            NumberType number{};
22614|  1.95k|            std::memcpy(&number, data + (read * size), size);
22615|  1.95k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 1.95k, False: 0]
  ------------------
22616|  1.95k|            {
22617|  1.95k|                byte_swap(number);
22618|  1.95k|            }
22619|  1.95k|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|  1.95k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.95k|            accepted = emit_ubjson_number(number);
22625|  1.95k|        }
22626|       |        // get_number() does not change current
22627|    198|        ia.bulk_skip(read * size);
22628|    198|        chars_read = start + (read * size);
22629|    198|        remaining -= read;
22630|    198|        return accepted;
22631|    398|    }
_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_EEE18emit_ubjson_numberIfTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|  1.95k|    {
22656|  1.95k|        return emit_float(number);
22657|  1.95k|    }
_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_EEE22parse_ubjson_typed_runIdEEbRm:
22598|    259|    {
22599|    259|        constexpr std::size_t size = sizeof(NumberType);
22600|    259|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    259|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 186, False: 73]
  ------------------
22602|    186|        {
22603|    186|            return true;
22604|    186|        }
22605|     73|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|     73|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|     73|        const std::size_t start = chars_read;
22609|     73|        std::size_t read = 0;
22610|     73|        bool accepted = true;
22611|    541|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 468, False: 73]
  |  Branch (22611:32): [True: 468, False: 0]
  ------------------
22612|    468|        {
22613|    468|            NumberType number{};
22614|    468|            std::memcpy(&number, data + (read * size), size);
22615|    468|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 468, False: 0]
  ------------------
22616|    468|            {
22617|    468|                byte_swap(number);
22618|    468|            }
22619|    468|            ++read;
22620|       |            // where passing the value on can report an error (see
22621|       |            // emit_float), the position is that after the value, as if it
22622|       |            // was read by get_number()
22623|    468|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    468|            accepted = emit_ubjson_number(number);
22625|    468|        }
22626|       |        // get_number() does not change current
22627|     73|        ia.bulk_skip(read * size);
22628|     73|        chars_read = start + (read * size);
22629|     73|        remaining -= read;
22630|     73|        return accepted;
22631|    259|    }
_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_EEE18emit_ubjson_numberIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|    468|    {
22656|    468|        return emit_float(number);
22657|    468|    }
_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_EEE25charge_valueless_elementsEm:
22686|  1.86k|    {
22687|       |        // limit = base + rate * chars_read, saturating at the largest size_t
22688|       |        // instead of wrapping around, which would make a huge rate or input
22689|       |        // reject everything. valueless_elements never exceeds the limit of an
22690|       |        // earlier call, and the limit does not decrease, so the difference
22691|       |        // below cannot underflow.
22692|  1.86k|        const std::size_t limit = chars_read <= valueless_elements_saturation_chars
  ------------------
  |  Branch (22692:35): [True: 1.86k, False: 0]
  ------------------
22693|  1.86k|                                  ? valueless_elements_base + (valueless_elements_per_byte * chars_read)
22694|  1.86k|                                  : (std::numeric_limits<std::size_t>::max)();
22695|  1.86k|        if (JSON_HEDLEY_UNLIKELY(count > limit - valueless_elements))
  ------------------
  |  | 1697|  1.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.84k]
  |  |  ------------------
  ------------------
22696|     18|        {
22697|     18|            return false;
22698|     18|        }
22699|  1.84k|        valueless_elements += count;
22700|  1.84k|        return true;
22701|  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_EEE17get_ubjson_objectEv:
22820|  10.4k|    {
22821|  10.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  10.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  10.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.4k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  10.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 0, False: 10.4k]
  ------------------
22829|      0|        {
22830|      0|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      0|        }
22832|       |
22833|  10.4k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 1.11k, False: 9.34k]
  ------------------
22834|  1.11k|        {
22835|  1.11k|            return enter_object(size_and_type.first, size_and_type.second);
22836|  1.11k|        }
22837|       |
22838|  9.34k|        return enter_object(detail::unknown_size());
22839|  10.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  22.4k|    {
21944|  22.4k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 6.24k, False: 16.2k]
  ------------------
21945|  6.24k|        {
21946|       |            // no get_ignore_noop() here: the byte read next must be a string
21947|       |            // length type specification, and a no-op ('N') is not valid in
21948|       |            // that position. No-ops at positions where a value may appear are
21949|       |            // already consumed by the callers via get_ignore_noop().
21950|  6.24k|            get();
21951|  6.24k|        }
21952|       |
21953|  22.4k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  22.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  22.4k|        switch (current)
21959|  22.4k|        {
21960|  17.5k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 17.5k, False: 4.96k]
  ------------------
21961|  17.5k|            {
21962|  17.5k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  2.64k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 2.64k, False: 19.8k]
  ------------------
21966|  2.64k|            {
21967|  2.64k|                std::int8_t len{};
21968|  2.64k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 2.63k, False: 4]
  |  Branch (21968:43): [True: 2.63k, False: 3]
  |  Branch (21968:78): [True: 2.59k, False: 42]
  |  Branch (21968:105): [True: 2.59k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    811|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 811, False: 21.6k]
  ------------------
21972|    811|            {
21973|    811|                std::int16_t len{};
21974|    811|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 804, False: 7]
  |  Branch (21974:43): [True: 800, False: 4]
  |  Branch (21974:78): [True: 742, False: 58]
  |  Branch (21974:105): [True: 742, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    534|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 534, False: 21.9k]
  ------------------
21978|    534|            {
21979|    534|                std::int32_t len{};
21980|    534|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 525, False: 9]
  |  Branch (21980:43): [True: 492, False: 33]
  |  Branch (21980:78): [True: 402, False: 90]
  |  Branch (21980:105): [True: 402, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    595|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 595, False: 21.8k]
  ------------------
21984|    595|            {
21985|    595|                std::int64_t len{};
21986|    595|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 582, False: 13]
  |  Branch (21986:43): [True: 513, False: 69]
  |  Branch (21986:78): [True: 359, False: 154]
  |  Branch (21986:105): [True: 359, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|      1|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 1, False: 22.4k]
  ------------------
21990|      1|            {
21991|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 1, False: 0]
  ------------------
21992|      1|                {
21993|      1|                    break;
21994|      1|                }
21995|      0|                return get_string_with_length<std::uint16_t>(result, context);
21996|      1|            }
21997|       |
21998|      2|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 2, False: 22.4k]
  ------------------
21999|      2|            {
22000|      2|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 2, False: 0]
  ------------------
22001|      2|                {
22002|      2|                    break;
22003|      2|                }
22004|      0|                return get_string_with_length<std::uint32_t>(result, context);
22005|      2|            }
22006|       |
22007|      1|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 1, False: 22.4k]
  ------------------
22008|      1|            {
22009|      1|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 1, False: 0]
  ------------------
22010|      1|                {
22011|      1|                    break;
22012|      1|                }
22013|      0|                return get_string_with_length<std::uint64_t>(result, context);
22014|      1|            }
22015|       |
22016|     77|            default:
  ------------------
  |  Branch (22016:13): [True: 77, False: 22.3k]
  ------------------
22017|     77|                break;
22018|  22.4k|        }
22019|     81|        return length_type_error("", "string");
22020|  22.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  2.63k|    {
21921|  2.63k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.63k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 2.63k]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|  2.63k|        return true;
21926|  2.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_EEE10get_stringIaEEbT_RSC_:
23767|  2.63k|    {
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.63k|        return get_bytes(len, "string", result);
23778|  2.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_EEE9get_bytesIaSC_EEbT_PKcRT0_:
23893|  2.63k|    {
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.63k|        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.63k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 1.34k, False: 1.28k]
  ------------------
23898|  1.34k|        {
23899|  1.34k|            return true;
23900|  1.34k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.28k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.28k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 42, False: 1.24k]
  ------------------
23906|     42|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     42|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 42, False: 0]
  ------------------
23910|     42|                                       ? static_cast<std::size_t>(len)
23911|     42|                                       : chunk_size;
23912|     42|            const std::size_t old_size = result.size();
23913|     42|            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|     42|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     42|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 42, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     42|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     42|            chars_read += bytes_read;
23921|     42|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     42|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 42, False: 0]
  |  |  ------------------
  ------------------
23922|     42|            {
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|     42|                result.resize(old_size + bytes_read);
23927|     42|                ++chars_read;
23928|     42|                current = char_traits<char_type>::eof();
23929|     42|                return unexpect_eof(context);
23930|     42|            }
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.24k|        return true;
23936|  1.28k|    }
_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_blockIaEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.63k|    {
23943|  2.63k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 1.24k, False: 1.39k]
  ------------------
23944|  1.24k|        {
23945|  1.24k|            return false;
23946|  1.24k|        }
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|  1.39k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.39k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.39k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 42, False: 1.34k]
  ------------------
23952|     42|        {
23953|     42|            return false; // (the loop reports the premature end)
23954|     42|        }
23955|  1.34k|        const auto n = static_cast<std::size_t>(ulen);
23956|  1.34k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  1.34k|        ia.bulk_skip(n);
23958|  1.34k|        chars_read += n;
23959|  1.34k|        return true;
23960|  1.39k|    }
_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_EEE26check_ubjson_string_lengthIsEEbT_:
21920|    804|    {
21921|    804|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    804|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 800]
  |  |  ------------------
  ------------------
21922|      4|        {
21923|      4|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      4|        }
21925|    800|        return true;
21926|    804|    }
_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_stringIsEEbT_RSC_:
23767|    800|    {
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|    800|        return get_bytes(len, "string", result);
23778|    800|    }
_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_bytesIsSC_EEbT_PKcRT0_:
23893|    800|    {
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|    800|        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|    800|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 432, False: 368]
  ------------------
23898|    432|        {
23899|    432|            return true;
23900|    432|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    368|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    368|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 58, False: 310]
  ------------------
23906|     58|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     58|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 44, False: 14]
  ------------------
23910|     58|                                       ? static_cast<std::size_t>(len)
23911|     58|                                       : chunk_size;
23912|     58|            const std::size_t old_size = result.size();
23913|     58|            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|     58|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     58|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 58, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     58|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     58|            chars_read += bytes_read;
23921|     58|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     58|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 58, False: 0]
  |  |  ------------------
  ------------------
23922|     58|            {
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|     58|                result.resize(old_size + bytes_read);
23927|     58|                ++chars_read;
23928|     58|                current = char_traits<char_type>::eof();
23929|     58|                return unexpect_eof(context);
23930|     58|            }
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|    310|        return true;
23936|    368|    }
_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_blockIsEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    800|    {
23943|    800|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 310, False: 490]
  ------------------
23944|    310|        {
23945|    310|            return false;
23946|    310|        }
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|    490|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    490|        const std::size_t remaining = ia.bulk_remaining();
23951|    490|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 58, False: 432]
  ------------------
23952|     58|        {
23953|     58|            return false; // (the loop reports the premature end)
23954|     58|        }
23955|    432|        const auto n = static_cast<std::size_t>(ulen);
23956|    432|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    432|        ia.bulk_skip(n);
23958|    432|        chars_read += n;
23959|    432|        return true;
23960|    490|    }
_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_EEE26check_ubjson_string_lengthIiEEbT_:
21920|    525|    {
21921|    525|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    525|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 33, False: 492]
  |  |  ------------------
  ------------------
21922|     33|        {
21923|     33|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     33|        }
21925|    492|        return true;
21926|    525|    }
_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_EEE26check_ubjson_string_lengthIlEEbT_:
21920|    582|    {
21921|    582|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    582|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 513]
  |  |  ------------------
  ------------------
21922|     69|        {
21923|     69|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     69|        }
21925|    513|        return true;
21926|    582|    }
_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_stringIlEEbT_RSC_:
23767|    513|    {
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|    513|        return get_bytes(len, "string", result);
23778|    513|    }
_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_bytesIlSC_EEbT_PKcRT0_:
23893|    513|    {
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|    513|        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|    513|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 158, False: 355]
  ------------------
23898|    158|        {
23899|    158|            return true;
23900|    158|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    355|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    355|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 154, False: 201]
  ------------------
23906|    154|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    154|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 116]
  ------------------
23910|    154|                                       ? static_cast<std::size_t>(len)
23911|    154|                                       : chunk_size;
23912|    154|            const std::size_t old_size = result.size();
23913|    154|            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|    154|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    154|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 154, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    154|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    154|            chars_read += bytes_read;
23921|    154|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    154|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 154, False: 0]
  |  |  ------------------
  ------------------
23922|    154|            {
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|    154|                result.resize(old_size + bytes_read);
23927|    154|                ++chars_read;
23928|    154|                current = char_traits<char_type>::eof();
23929|    154|                return unexpect_eof(context);
23930|    154|            }
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|    201|        return true;
23936|    355|    }
_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_blockIlEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    513|    {
23943|    513|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 201, False: 312]
  ------------------
23944|    201|        {
23945|    201|            return false;
23946|    201|        }
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|    312|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    312|        const std::size_t remaining = ia.bulk_remaining();
23951|    312|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 154, False: 158]
  ------------------
23952|    154|        {
23953|    154|            return false; // (the loop reports the premature end)
23954|    154|        }
23955|    158|        const auto n = static_cast<std::size_t>(ulen);
23956|    158|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    158|        ia.bulk_skip(n);
23958|    158|        chars_read += n;
23959|    158|        return true;
23960|    312|    }
_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|    759|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    759|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    759|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 576, False: 183]
  ------------------
24059|    759|    }
_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_ignore_noopEv:
23522|   202k|    {
23523|   202k|        do
23524|   209k|        {
23525|   209k|            get();
23526|   209k|        }
23527|   209k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 6.39k, False: 202k]
  ------------------
23528|       |
23529|   202k|        return current;
23530|   202k|    }
_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|   344k|    {
23489|   344k|        ++chars_read;
23490|   344k|        return current = ia.get_character();
23491|   344k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter13get_characterEv:
 9568|   344k|    {
 9569|       |        // what getc_unlocked() does, while the buffer has characters
 9570|   344k|        const char* const next = buffer_ptr();
 9571|   344k|        if (JSON_HEDLEY_LIKELY(next != buffer_end()))
  ------------------
  |  | 1696|   344k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 325k, False: 19.6k]
  |  |  ------------------
  ------------------
 9572|   325k|        {
 9573|   325k|            current_in_buffer = true;
 9574|   325k|            buffer_bump(1);
 9575|   325k|            return std::char_traits<char>::to_int_type(*next);
 9576|   325k|        }
 9577|  19.6k|        return get_character_slow();
 9578|   344k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter18get_character_slowEv:
 9706|  19.6k|    {
 9707|  19.6k|        if (token_segment != nullptr)
  ------------------
  |  Branch (9707:13): [True: 0, False: 19.6k]
  ------------------
 9708|      0|        {
 9709|      0|            token_carry.append(token_segment, buffer_end());
 9710|      0|            token_segment = nullptr;
 9711|      0|        }
 9712|  19.6k|        const auto res = getc_unlocked(m_file);
 9713|  19.6k|        if (res == EOF)
  ------------------
  |  Branch (9713:13): [True: 7.75k, False: 11.8k]
  ------------------
 9714|  7.75k|        {
 9715|  7.75k|            current_in_buffer = false;
 9716|  7.75k|            return std::char_traits<char>::eof();
 9717|  7.75k|        }
 9718|       |        // the character was taken from the refilled buffer, at buffer_ptr() - 1
 9719|  11.8k|        current_in_buffer = true;
 9720|  11.8k|        if (tracking_token)
  ------------------
  |  Branch (9720:13): [True: 0, False: 11.8k]
  ------------------
 9721|      0|        {
 9722|      0|            token_segment = buffer_ptr() - 1;
 9723|      0|        }
 9724|  11.8k|        return res;
 9725|  19.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_EEE16position_bindingD2Ev:
19134|  11.8k|        {
19135|  11.8k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 11.8k, False: 0]
  ------------------
19136|  11.8k|            {
19137|  11.8k|                parser->set_reserve_state(saved);
19138|  11.8k|            }
19139|  11.8k|        }
_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|  11.8k|    ~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|  11.8k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterEP8_IO_FILE:
10862|  11.8k|{
10863|  11.8k|    if (file == nullptr)
  ------------------
  |  Branch (10863:9): [True: 0, False: 11.8k]
  ------------------
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|  11.8k|    return file_input_adapter(file);
10868|  11.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EP8_IO_FILE:
 9539|  11.8k|        : m_file(f)
 9540|  11.8k|    {
 9541|  11.8k|        JSON_ASSERT(m_file != nullptr);
  ------------------
  |  | 2653|  11.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9541:9): [True: 11.8k, False: 0]
  ------------------
 9542|  11.8k|        lock();
 9543|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter4lockEv:
 9733|  11.8k|    {
 9734|  11.8k|#if JSON_UNLOCKED_FILE_IO == 1
 9735|  11.8k|        flockfile(m_file);
 9736|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9737|       |        _lock_file(m_file);
 9738|       |#endif
 9739|  11.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterD2Ev:
 9562|  23.7k|    {
 9563|  23.7k|        unlock();
 9564|  23.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter6unlockEv:
 9742|  23.7k|    {
 9743|       |        // a moved-from adapter has no file and holds no lock
 9744|  23.7k|        if (m_file == nullptr)
  ------------------
  |  Branch (9744:13): [True: 11.8k, False: 11.8k]
  ------------------
 9745|  11.8k|        {
 9746|  11.8k|            return;
 9747|  11.8k|        }
 9748|  11.8k|#if JSON_UNLOCKED_FILE_IO == 1
 9749|  11.8k|        funlockfile(m_file);
 9750|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9751|       |        _unlock_file(m_file);
 9752|       |#endif
 9753|  11.8k|    }

LLVMFuzzerTestOneInput:
   55|  11.8k|{
   56|  11.8k|    std::vector<uint8_t> const vec1(data, data + size);
   57|       |
   58|       |    // step 0: parse input without exceptions
   59|  11.8k|    bool noexcept_threw = false;
   60|  11.8k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_ubjson(vec1, true, false); }, noexcept_threw);
   61|       |    // whether step 1 succeeded; if not, the catch blocks below check that
   62|       |    // step 0 failed, too
   63|  11.8k|    bool parsed = false;
   64|       |
   65|  11.8k|    try
   66|  11.8k|    {
   67|       |        // step 1: parse input
   68|  11.8k|        json const j1 = json::from_ubjson(vec1);
   69|  11.8k|        parsed = true;
   70|       |
   71|       |        // without exceptions, the same input must give the same value
   72|  11.8k|        assert(!noexcept_threw && !j_noexcept.is_discarded() && same_value(j_noexcept, j1));
  ------------------
  |  Branch (72:9): [True: 6.03k, False: 5.84k]
  |  Branch (72:9): [True: 6.03k, False: 0]
  |  Branch (72:9): [True: 6.03k, False: 0]
  |  Branch (72:9): [True: 6.03k, False: 5.84k]
  ------------------
   73|       |
   74|  6.03k|        try
   75|  6.03k|        {
   76|       |            // step 2.1: round trip without adding size annotations to container types
   77|  6.03k|            std::vector<uint8_t> const vec2 = json::to_ubjson(j1, false, false);
   78|       |
   79|       |            // step 2.2: round trip with adding size annotations but without adding type annotations to container types
   80|  6.03k|            std::vector<uint8_t> const vec3 = json::to_ubjson(j1, true, false);
   81|       |
   82|       |            // step 2.3: round trip with adding size as well as type annotations to container types
   83|  6.03k|            std::vector<uint8_t> const vec4 = json::to_ubjson(j1, true, true);
   84|       |
   85|       |            // parse serialization
   86|  6.03k|            json const j2 = json::from_ubjson(vec2);
   87|  6.03k|            json const j3 = json::from_ubjson(vec3);
   88|  6.03k|            json const j4 = json::from_ubjson(vec4);
   89|       |
   90|       |            // serializations must match
   91|  6.03k|            assert(json::to_ubjson(j2, false, false) == vec2);
  ------------------
  |  Branch (91:13): [True: 6.03k, False: 0]
  ------------------
   92|  6.03k|            assert(json::to_ubjson(j3, true, false) == vec3);
  ------------------
  |  Branch (92:13): [True: 6.03k, False: 0]
  ------------------
   93|  6.03k|            assert(json::to_ubjson(j4, true, true) == vec4);
  ------------------
  |  Branch (93:13): [True: 6.03k, False: 0]
  ------------------
   94|  6.03k|        }
   95|  6.03k|        catch (const json::parse_error&)
   96|  6.03k|        {
   97|       |            // parsing a UBJSON serialization must not fail
   98|      0|            assert(false);
  ------------------
  |  Branch (98:13): [Folded, False: 0]
  ------------------
   99|      0|        }
  100|  6.03k|    }
  101|  11.8k|    catch (const json::parse_error&)
  102|  11.8k|    {
  103|       |        // parse errors are ok, because input may be random bytes
  104|  5.44k|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (104:9): [True: 0, False: 5.44k]
  |  Branch (104:9): [True: 0, False: 5.44k]
  |  Branch (104:9): [True: 5.44k, False: 0]
  |  Branch (104:9): [True: 5.44k, False: 0]
  ------------------
  105|  5.44k|    }
  106|  11.8k|    catch (const json::type_error&)
  107|  11.8k|    {
  108|       |        // type errors can occur during parsing, too
  109|      0|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (109:9): [True: 0, False: 0]
  |  Branch (109:9): [True: 0, False: 0]
  |  Branch (109:9): [True: 0, False: 0]
  |  Branch (109:9): [True: 0, False: 0]
  ------------------
  110|      0|    }
  111|  11.8k|    catch (const json::out_of_range&)
  112|  11.8k|    {
  113|       |        // out of range errors may happen if provided sizes are excessive
  114|    409|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (114:9): [True: 0, False: 409]
  |  Branch (114:9): [True: 0, False: 409]
  |  Branch (114:9): [True: 409, False: 0]
  |  Branch (114:9): [True: 409, False: 0]
  ------------------
  115|    409|    }
  116|       |
  117|       |    // step 3: the other input adapters must read the data alike
  118|  11.8k|    check_input_adapters(data, size, read_ubjson());
  119|       |
  120|       |    // return 0 - non-zero return values are reserved for future use
  121|  11.8k|    return 0;
  122|  11.8k|}
fuzzer-parse_ubjson.cpp:_ZZ22LLVMFuzzerTestOneInputENK3$_0clEv:
   60|  11.8k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_ubjson(vec1, true, false); }, noexcept_threw);
fuzzer-parse_ubjson.cpp:_ZNK12_GLOBAL__N_111read_ubjsonclIJRPKhS3_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   47|  11.8k|    {
   48|  11.8k|        return json::from_ubjson(std::forward<Args>(args)...);
   49|  11.8k|    }
fuzzer-parse_ubjson.cpp:_ZNK12_GLOBAL__N_111read_ubjsonclIJRNSt3__119basic_istringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcS5_S7_EEblmdS6_NSB_14adl_serializerENSE_IhNS6_IhEEEEvEEDpOT_:
   47|  11.8k|    {
   48|  11.8k|        return json::from_ubjson(std::forward<Args>(args)...);
   49|  11.8k|    }
fuzzer-parse_ubjson.cpp:_ZNK12_GLOBAL__N_111read_ubjsonclIJNSt3__121__list_const_iteratorIhPvEES5_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdSE_NS7_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   47|  11.8k|    {
   48|  11.8k|        return json::from_ubjson(std::forward<Args>(args)...);
   49|  11.8k|    }
fuzzer-parse_ubjson.cpp:_ZNK12_GLOBAL__N_111read_ubjsonclIJRP8_IO_FILEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   47|  11.8k|    {
   48|  11.8k|        return json::from_ubjson(std::forward<Args>(args)...);
   49|  11.8k|    }

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

