_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12is_discardedEv:
43101|  15.9k|    {
43102|  15.9k|        return m_data.m_type == value_t::discarded;
43103|  15.9k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dumpEicbNS0_6detail15error_handler_tE:
42973|  93.8k|    {
42974|  93.8k|        string_t result;
42975|  93.8k|        detail::output_string_adapter<char, string_t> string_adapter(result);
42976|       |
42977|  93.8k|        if (indent >= 0)
  ------------------
  |  Branch (42977:13): [True: 0, False: 93.8k]
  ------------------
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|  93.8k|        else
42984|  93.8k|        {
42985|  93.8k|            serializer s(string_adapter, indent_char,
42986|  93.8k|                         false, ensure_ascii, 0, error_handler);
42987|  93.8k|            s.dump(*this);
42988|  93.8k|        }
42989|       |
42990|  93.8k|        return result;
42991|  93.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2ERS9_:
30100|  93.8k|        : str(s)
30101|  93.8k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcEC2Ev:
29758|  93.8k|    output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcED2Ev:
29756|  93.8k|    virtual ~output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE16write_charactersEPKcm:
30109|  97.6k|    {
30110|  97.6k|        str.append(s, length);
30111|  97.6k|    }
_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|  93.8k|        : o(&s)
37674|  93.8k|        , number_buffer() // NOLINT(readability-redundant-member-init)
37675|  93.8k|        , string_buffer() // NOLINT(readability-redundant-member-init)
37676|  93.8k|        , indent_char(ichar)
37677|  93.8k|        , pretty_print(pretty_print_)
37678|  93.8k|        , ensure_ascii(ensure_ascii_)
37679|  93.8k|        , indent_step(indent_step_)
37680|  93.8k|        , error_handler(error_handler_)
37681|  93.8k|        , write_buffer() // NOLINT(readability-redundant-member-init)
37682|  93.8k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20uninitialized_bufferILm64EEC2Ev:
39810|  93.8k|        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|  93.8k|        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|  93.8k|        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|  93.8k|    {
37712|  93.8k|        dump_element(val, current_indent, 0);
37713|  93.8k|        flush();
37714|  93.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_elementERKSG_mm:
37862|  1.67M|    {
37863|  1.67M|        if (val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array)
  ------------------
  |  Branch (37863:13): [True: 120k, False: 1.55M]
  |  Branch (37863:53): [True: 489k, False: 1.06M]
  ------------------
37864|   610k|        {
37865|   610k|            dump_container(val, current_indent, depth);
37866|   610k|        }
37867|  1.06M|        else
37868|  1.06M|        {
37869|  1.06M|            dump_scalar(val, current_indent);
37870|  1.06M|        }
37871|  1.67M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14dump_containerERKSG_mm:
37737|   610k|    {
37738|   610k|        JSON_ASSERT(val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array);
  ------------------
  |  | 2653|   610k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37738:9): [True: 120k, False: 489k]
  |  Branch (37738:9): [True: 489k, False: 0]
  |  Branch (37738:9): [True: 610k, False: 0]
  ------------------
37739|       |
37740|   610k|        if (JSON_HEDLEY_UNLIKELY(depth >= recursion_depth_limit()))
  ------------------
  |  | 1697|   610k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 8.17k, False: 601k]
  |  |  ------------------
  ------------------
37741|  8.17k|        {
37742|  8.17k|            dump_iteratively(val, current_indent);
37743|  8.17k|            return;
37744|  8.17k|        }
37745|       |
37746|   601k|        if (val.m_data.m_type == value_t::object)
  ------------------
  |  Branch (37746:13): [True: 115k, False: 486k]
  ------------------
37747|   115k|        {
37748|   115k|            if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (37748:17): [True: 21.4k, False: 93.9k]
  ------------------
37749|  21.4k|            {
37750|  21.4k|                put_literal("{}");
37751|  21.4k|                return;
37752|  21.4k|            }
37753|       |
37754|  93.9k|            if (pretty_print)
  ------------------
  |  Branch (37754:17): [True: 0, False: 93.9k]
  ------------------
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|  93.9k|            else
37780|  93.9k|            {
37781|  93.9k|                put_char('{');
37782|       |
37783|       |                // first n-1 elements
37784|  93.9k|                auto i = val.m_data.m_value.object->cbegin();
37785|   221k|                for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (37785:43): [True: 127k, False: 93.9k]
  ------------------
37786|   127k|                {
37787|   127k|                    put_object_key(i->first, "\":");
37788|   127k|                    dump_element(i->second, 0, depth + 1);
37789|   127k|                    put_char(',');
37790|   127k|                }
37791|       |
37792|       |                // last element
37793|  93.9k|                JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  93.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37793:17): [True: 93.9k, False: 48]
  ------------------
37794|  93.9k|                JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  93.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37794:17): [True: 93.9k, False: 0]
  ------------------
37795|  93.9k|                put_object_key(i->first, "\":");
37796|  93.9k|                dump_element(i->second, 0, depth + 1);
37797|       |
37798|  93.9k|                put_char('}');
37799|  93.9k|            }
37800|  93.9k|            return;
37801|  93.9k|        }
37802|       |
37803|   486k|        if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (37803:13): [True: 21.2k, False: 465k]
  ------------------
37804|  21.2k|        {
37805|  21.2k|            put_literal("[]");
37806|  21.2k|            return;
37807|  21.2k|        }
37808|       |
37809|   465k|        if (pretty_print)
  ------------------
  |  Branch (37809:13): [True: 0, False: 465k]
  ------------------
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|   465k|        else
37832|   465k|        {
37833|   465k|            put_char('[');
37834|       |
37835|       |            // first n-1 elements
37836|   465k|            for (auto i = val.m_data.m_value.array->cbegin();
37837|  1.35M|                    i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (37837:21): [True: 894k, False: 465k]
  ------------------
37838|   894k|            {
37839|   894k|                dump_element(*i, 0, depth + 1);
37840|   894k|                put_char(',');
37841|   894k|            }
37842|       |
37843|       |            // last element
37844|   465k|            JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2653|   465k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37844:13): [True: 464k, False: 444]
  ------------------
37845|   464k|            dump_element(val.m_data.m_value.array->back(), 0, depth + 1);
37846|       |
37847|   464k|            put_char(']');
37848|   464k|        }
37849|   465k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21recursion_depth_limitEv:
 8762|  2.00M|{
 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|  2.00M|    static_assert(std::is_integral<decltype(JSON_RECURSION_DEPTH_LIMIT)>::value
 8767|  2.00M|                  && !recursion_depth_limit_is_char_or_bool<typename std::remove_cv<decltype(JSON_RECURSION_DEPTH_LIMIT)>::type>::value,
 8768|  2.00M|                  "JSON_RECURSION_DEPTH_LIMIT must be an integer constant (not bool or a character type)");
 8769|  2.00M|    static_assert(JSON_RECURSION_DEPTH_LIMIT >= 0 && JSON_RECURSION_DEPTH_LIMIT <= 254,
 8770|  2.00M|                  "JSON_RECURSION_DEPTH_LIMIT must be between 0 and 254: the nesting depth is counted in a byte per thread "
 8771|  2.00M|                  "and may exceed the limit by one (see https://json.nlohmann.me/api/macros/json_recursion_depth_limit/)");
 8772|  2.00M|    return static_cast<std::size_t>(JSON_RECURSION_DEPTH_LIMIT);
  ------------------
  |  | 8697|  2.00M|    #define JSON_RECURSION_DEPTH_LIMIT 128
  ------------------
 8773|  2.00M|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16dump_iterativelyERKSG_m:
37884|  8.17k|    {
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|  8.17k|        std::vector<dump_frame> stack;
37889|       |
37890|  8.17k|        dump_value(val, current_indent, stack);
37891|       |
37892|  44.8k|        while (!stack.empty())
  ------------------
  |  Branch (37892:16): [True: 36.6k, False: 8.17k]
  ------------------
37893|  36.6k|        {
37894|  36.6k|            dump_frame& frame = stack.back();
37895|       |
37896|  36.6k|            if (frame.value->m_data.m_type == value_t::object)
  ------------------
  |  Branch (37896:17): [True: 10.7k, False: 25.8k]
  ------------------
37897|  10.7k|            {
37898|  10.7k|                const auto* object = frame.value->m_data.m_value.object;
37899|       |
37900|  10.7k|                if (frame.object_it == object->cend())
  ------------------
  |  Branch (37900:21): [True: 3.65k, False: 7.09k]
  ------------------
37901|  3.65k|                {
37902|  3.65k|                    if (pretty_print)
  ------------------
  |  Branch (37902:25): [True: 0, False: 3.65k]
  ------------------
37903|      0|                    {
37904|      0|                        put_literal_indent("\n", frame.current_indent);
37905|      0|                    }
37906|       |
37907|  3.65k|                    put_char('}');
37908|  3.65k|                    stack.pop_back();
37909|  3.65k|                    continue;
37910|  3.65k|                }
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|  7.09k|                if (frame.object_it != object->cbegin())
  ------------------
  |  Branch (37914:21): [True: 3.37k, False: 3.71k]
  ------------------
37915|  3.37k|                {
37916|  3.37k|                    if (pretty_print)
  ------------------
  |  Branch (37916:25): [True: 0, False: 3.37k]
  ------------------
37917|      0|                    {
37918|      0|                        put_literal(",\n");
37919|      0|                    }
37920|  3.37k|                    else
37921|  3.37k|                    {
37922|  3.37k|                        put_char(',');
37923|  3.37k|                    }
37924|  3.37k|                }
37925|       |
37926|  7.09k|                if (pretty_print)
  ------------------
  |  Branch (37926:21): [True: 0, False: 7.09k]
  ------------------
37927|      0|                {
37928|      0|                    put_indent(frame.child_indent);
37929|      0|                }
37930|       |
37931|  7.09k|                if (pretty_print)
  ------------------
  |  Branch (37931:21): [True: 0, False: 7.09k]
  ------------------
37932|      0|                {
37933|      0|                    put_object_key(frame.object_it->first, "\": ");
37934|      0|                }
37935|  7.09k|                else
37936|  7.09k|                {
37937|  7.09k|                    put_object_key(frame.object_it->first, "\":");
37938|  7.09k|                }
37939|       |
37940|  7.09k|                const BasicJsonType& element = frame.object_it->second;
37941|  7.09k|                ++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|  7.09k|                const std::size_t element_indent = frame.child_indent;
37946|  7.09k|                dump_value(element, element_indent, stack);
37947|  7.09k|            }
37948|  25.8k|            else
37949|  25.8k|            {
37950|  25.8k|                const auto* array = frame.value->m_data.m_value.array;
37951|       |
37952|  25.8k|                if (frame.array_it == array->cend())
  ------------------
  |  Branch (37952:21): [True: 8.01k, False: 17.8k]
  ------------------
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|  17.8k|                if (frame.array_it != array->cbegin())
  ------------------
  |  Branch (37964:21): [True: 9.84k, False: 8.03k]
  ------------------
37965|  9.84k|                {
37966|  9.84k|                    if (pretty_print)
  ------------------
  |  Branch (37966:25): [True: 0, False: 9.84k]
  ------------------
37967|      0|                    {
37968|      0|                        put_literal(",\n");
37969|      0|                    }
37970|  9.84k|                    else
37971|  9.84k|                    {
37972|  9.84k|                        put_char(',');
37973|  9.84k|                    }
37974|  9.84k|                }
37975|       |
37976|  17.8k|                if (pretty_print)
  ------------------
  |  Branch (37976:21): [True: 0, False: 17.8k]
  ------------------
37977|      0|                {
37978|      0|                    put_indent(frame.child_indent);
37979|      0|                }
37980|       |
37981|  17.8k|                const BasicJsonType& element = *frame.array_it;
37982|  17.8k|                ++frame.array_it;
37983|       |
37984|       |                // see above
37985|  17.8k|                const std::size_t element_indent = frame.child_indent;
37986|  17.8k|                dump_value(element, element_indent, stack);
37987|  17.8k|            }
37988|  36.6k|        }
37989|  8.17k|    }
_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|  33.0k|    {
38028|  33.0k|        switch (val.m_data.m_type)
38029|  33.0k|        {
38030|  6.62k|            case value_t::object:
  ------------------
  |  Branch (38030:13): [True: 6.62k, False: 26.4k]
  ------------------
38031|  6.62k|            {
38032|  6.62k|                if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (38032:21): [True: 2.90k, False: 3.71k]
  ------------------
38033|  2.90k|                {
38034|  2.90k|                    put_literal("{}");
38035|  2.90k|                    return;
38036|  2.90k|                }
38037|       |
38038|  3.71k|                std::size_t child_indent = current_indent;
38039|       |
38040|  3.71k|                if (pretty_print)
  ------------------
  |  Branch (38040:21): [True: 0, False: 3.71k]
  ------------------
38041|      0|                {
38042|      0|                    put_literal("{\n");
38043|      0|                    child_indent = next_indent(current_indent, indent_step);
38044|      0|                }
38045|  3.71k|                else
38046|  3.71k|                {
38047|  3.71k|                    put_char('{');
38048|  3.71k|                }
38049|       |
38050|  3.71k|                stack.emplace_back(&val, current_indent, child_indent);
38051|  3.71k|                stack.back().object_it = val.m_data.m_value.object->cbegin();
38052|  3.71k|                return;
38053|  6.62k|            }
38054|       |
38055|  9.73k|            case value_t::array:
  ------------------
  |  Branch (38055:13): [True: 9.73k, False: 23.3k]
  ------------------
38056|  9.73k|            {
38057|  9.73k|                if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (38057:21): [True: 1.70k, False: 8.03k]
  ------------------
38058|  1.70k|                {
38059|  1.70k|                    put_literal("[]");
38060|  1.70k|                    return;
38061|  1.70k|                }
38062|       |
38063|  8.03k|                std::size_t child_indent = current_indent;
38064|       |
38065|  8.03k|                if (pretty_print)
  ------------------
  |  Branch (38065:21): [True: 0, False: 8.03k]
  ------------------
38066|      0|                {
38067|      0|                    put_literal("[\n");
38068|      0|                    child_indent = next_indent(current_indent, indent_step);
38069|      0|                }
38070|  8.03k|                else
38071|  8.03k|                {
38072|  8.03k|                    put_char('[');
38073|  8.03k|                }
38074|       |
38075|  8.03k|                stack.emplace_back(&val, current_indent, child_indent);
38076|  8.03k|                stack.back().array_it = val.m_data.m_value.array->cbegin();
38077|  8.03k|                return;
38078|  9.73k|            }
38079|       |
38080|    925|            case value_t::string:
  ------------------
  |  Branch (38080:13): [True: 925, False: 32.1k]
  ------------------
38081|  1.09k|            case value_t::binary:
  ------------------
  |  Branch (38081:13): [True: 168, False: 32.9k]
  ------------------
38082|  4.83k|            case value_t::boolean:
  ------------------
  |  Branch (38082:13): [True: 3.74k, False: 29.3k]
  ------------------
38083|  8.09k|            case value_t::number_integer:
  ------------------
  |  Branch (38083:13): [True: 3.26k, False: 29.8k]
  ------------------
38084|  11.5k|            case value_t::number_unsigned:
  ------------------
  |  Branch (38084:13): [True: 3.49k, False: 29.5k]
  ------------------
38085|  14.4k|            case value_t::number_float:
  ------------------
  |  Branch (38085:13): [True: 2.87k, False: 30.2k]
  ------------------
38086|  14.4k|            case value_t::discarded:
  ------------------
  |  Branch (38086:13): [True: 0, False: 33.0k]
  ------------------
38087|  16.7k|            case value_t::null:
  ------------------
  |  Branch (38087:13): [True: 2.26k, False: 30.8k]
  ------------------
38088|  16.7k|            default:
  ------------------
  |  Branch (38088:13): [True: 0, False: 33.0k]
  ------------------
38089|  16.7k|                dump_scalar(val, current_indent);
38090|  16.7k|                return;
38091|  33.0k|        }
38092|  33.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_frameC2EPKSG_mm:
37997|  11.7k|            : value(value_)
37998|  11.7k|            , current_indent(current_indent_)
37999|  11.7k|            , child_indent(child_indent_)
38000|  11.7k|        {}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm3EEEvRAT__Kc:
39040|  67.1k|    {
39041|  67.1k|        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|  67.1k|        constexpr std::size_t length = N - 1;
39044|  67.1k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  67.1k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  67.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 318, False: 66.8k]
  |  |  ------------------
  ------------------
39047|    318|        {
39048|    318|            flush();
39049|    318|        }
39050|  67.1k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  67.1k|        write_buffer_pos += length;
39052|  67.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE18copy_plain_vectorsEPcPKcm:
38458|  5.35k|    {
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|  5.35k|        const __m128i a = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38477|  5.35k|        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|  5.35k|        const __m128i backslash = _mm_set1_epi8('\\');
38481|  5.35k|        const __m128i del = _mm_set1_epi8(0x7F);
38482|  5.35k|        const __m128i flip = _mm_set1_epi8(2);
38483|  5.35k|        const __m128i limit = _mm_set1_epi8(33);
38484|  5.35k|        const __m128i special = _mm_or_si128(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(a, backslash), _mm_cmpeq_epi8(b, backslash)),
38485|  5.35k|                                             _mm_or_si128(_mm_cmpeq_epi8(a, del), _mm_cmpeq_epi8(b, del))),
38486|  5.35k|                                             _mm_or_si128(_mm_cmplt_epi8(_mm_xor_si128(a, flip), limit), _mm_cmplt_epi8(_mm_xor_si128(b, flip), limit)));
38487|  5.35k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38487:13): [True: 4.85k, False: 504]
  ------------------
38488|  4.85k|        {
38489|  4.85k|            return false;
38490|  4.85k|        }
38491|    504|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d)), a); // NOLINT(bugprone-casting-through-void)
38492|    504|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d + n - 16)), b); // NOLINT(bugprone-casting-through-void)
38493|    504|#endif
38494|    504|        return true;
38495|  5.35k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17copy_plain_halvesEPcPKcm:
38423|   144k|    {
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|   144k|        const __m128i lo = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38440|   144k|        const __m128i hi = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p + n - 8))); // NOLINT(bugprone-casting-through-void)
38441|   144k|        const __m128i in = _mm_unpacklo_epi64(lo, hi);
38442|   144k|        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|   144k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
38444|   144k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38444:13): [True: 4.03k, False: 140k]
  ------------------
38445|  4.03k|        {
38446|  4.03k|            return false;
38447|  4.03k|        }
38448|   140k|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d)), lo); // NOLINT(bugprone-casting-through-void)
38449|   140k|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d + n - 8)), hi); // NOLINT(bugprone-casting-through-void)
38450|   140k|#endif
38451|   140k|        return true;
38452|   144k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordIjEET_PKc:
38324|   112k|    {
38325|   112k|        WordType w;
38326|   112k|        std::memcpy(&w, p, sizeof(w));
38327|   112k|        return w;
38328|   112k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14swar_not_plainEm:
38314|   168k|    {
38315|   168k|        constexpr std::uint64_t ones = 0x0101010101010101ull;
38316|   168k|        const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'
38317|   168k|        const std::uint64_t b = v ^ 0x5C5C5C5C5C5C5C5Cull; // '\\'
38318|       |        // (see swar_string_special(): the bytes from 0x80 are flagged anyway)
38319|   168k|        return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v | (v + ones)) & 0x8080808080808080ull;
38320|   168k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordIjEEvPcT_:
38332|  95.3k|    {
38333|  95.3k|        std::memcpy(p, &w, sizeof(w));
38334|  95.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordItEET_PKc:
38324|  17.8k|    {
38325|  17.8k|        WordType w;
38326|  17.8k|        std::memcpy(&w, p, sizeof(w));
38327|  17.8k|        return w;
38328|  17.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordItEEvPcT_:
38332|  3.27k|    {
38333|  3.27k|        std::memcpy(p, &w, sizeof(w));
38334|  3.27k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_escapedERKSC_:
38517|  71.7k|    {
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|  71.7k|        if (ensure_ascii)
  ------------------
  |  Branch (38554:13): [True: 0, False: 71.7k]
  ------------------
38555|      0|        {
38556|      0|            dump_escaped_impl<true>(s);
38557|      0|        }
38558|  71.7k|        else
38559|  71.7k|        {
38560|  71.7k|            dump_escaped_impl<false>(s);
38561|  71.7k|        }
38562|  71.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16read_eight_bytesEPKh:
 9223|   236k|{
 9224|   236k|#if JSON_LITTLE_ENDIAN_TARGET
 9225|       |    // the byte order already matches
 9226|   236k|    std::uint64_t result = 0;
 9227|   236k|    std::memcpy(&result, b, sizeof(result));
 9228|   236k|    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|   236k|}
_ZN8nlohmann16json_abi_v3_12_06detail20count_trailing_zerosEm:
 9095|   212k|{
 9096|   212k|#if defined(__GNUC__) || defined(__clang__)
 9097|   212k|    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|   212k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12emit_pendingERm:
38566|   188k|    {
38567|   188k|        if (bytes != 0)
  ------------------
  |  Branch (38567:13): [True: 28.3k, False: 160k]
  ------------------
38568|  28.3k|        {
38569|  28.3k|            put_buffer(string_buffer, bytes);
38570|  28.3k|            bytes = 0;
38571|  28.3k|        }
38572|   188k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE7put_runISC_EEvRKT_mm:
39064|  62.7k|    {
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|  62.7k|        if (JSON_HEDLEY_UNLIKELY(length <= 16 && start + 16 <= str.size() && write_buffer_pos + 16 <= write_buffer.size()))
  ------------------
  |  | 1697|   215k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 29.6k, False: 33.1k]
  |  |  |  Branch (1697:94): [True: 60.2k, False: 2.45k]
  |  |  |  Branch (1697:94): [True: 29.7k, False: 30.5k]
  |  |  |  Branch (1697:94): [True: 29.6k, False: 88]
  |  |  ------------------
  ------------------
39068|  29.6k|        {
39069|  29.6k|            std::memcpy(write_buffer.data() + write_buffer_pos, str.data() + start, 16);
39070|  29.6k|            write_buffer_pos += length;
39071|  29.6k|            return;
39072|  29.6k|        }
39073|  33.1k|        put_string(str, start, start + length);
39074|  33.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringISC_EEvRKT_mm:
39087|  33.1k|    {
39088|  33.1k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|  33.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 33.1k, False: 0]
  ------------------
39089|  33.1k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|  33.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 33.1k, False: 0]
  ------------------
39090|       |
39091|  33.1k|        const char* const s = str.data() + start;
39092|  33.1k|        const std::size_t length = end - start;
39093|       |
39094|  33.1k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|  33.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.1k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|  33.1k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  33.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 193, False: 32.9k]
  |  |  ------------------
  ------------------
39101|    193|        {
39102|    193|            flush();
39103|    193|        }
39104|  33.1k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|  33.1k|        write_buffer_pos += length;
39106|  33.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE13ascii_escapesEv:
39200|   126k|    {
39201|   126k|        static const std::array<std::array<char, 8>, 0x60> escapes =
39202|   126k|        {
39203|   126k|            {
39204|   126k|                {{'\\', 'u', '0', '0', '0', '0', 0, 6}}, // 0x00
39205|   126k|                {{'\\', 'u', '0', '0', '0', '1', 0, 6}}, // 0x01
39206|   126k|                {{'\\', 'u', '0', '0', '0', '2', 0, 6}}, // 0x02
39207|   126k|                {{'\\', 'u', '0', '0', '0', '3', 0, 6}}, // 0x03
39208|   126k|                {{'\\', 'u', '0', '0', '0', '4', 0, 6}}, // 0x04
39209|   126k|                {{'\\', 'u', '0', '0', '0', '5', 0, 6}}, // 0x05
39210|   126k|                {{'\\', 'u', '0', '0', '0', '6', 0, 6}}, // 0x06
39211|   126k|                {{'\\', 'u', '0', '0', '0', '7', 0, 6}}, // 0x07
39212|   126k|                {{'\\', 'b', 0, 0, 0, 0, 0, 2}}, // 0x08
39213|   126k|                {{'\\', 't', 0, 0, 0, 0, 0, 2}}, // 0x09
39214|   126k|                {{'\\', 'n', 0, 0, 0, 0, 0, 2}}, // 0x0A
39215|   126k|                {{'\\', 'u', '0', '0', '0', 'b', 0, 6}}, // 0x0B
39216|   126k|                {{'\\', 'f', 0, 0, 0, 0, 0, 2}}, // 0x0C
39217|   126k|                {{'\\', 'r', 0, 0, 0, 0, 0, 2}}, // 0x0D
39218|   126k|                {{'\\', 'u', '0', '0', '0', 'e', 0, 6}}, // 0x0E
39219|   126k|                {{'\\', 'u', '0', '0', '0', 'f', 0, 6}}, // 0x0F
39220|   126k|                {{'\\', 'u', '0', '0', '1', '0', 0, 6}}, // 0x10
39221|   126k|                {{'\\', 'u', '0', '0', '1', '1', 0, 6}}, // 0x11
39222|   126k|                {{'\\', 'u', '0', '0', '1', '2', 0, 6}}, // 0x12
39223|   126k|                {{'\\', 'u', '0', '0', '1', '3', 0, 6}}, // 0x13
39224|   126k|                {{'\\', 'u', '0', '0', '1', '4', 0, 6}}, // 0x14
39225|   126k|                {{'\\', 'u', '0', '0', '1', '5', 0, 6}}, // 0x15
39226|   126k|                {{'\\', 'u', '0', '0', '1', '6', 0, 6}}, // 0x16
39227|   126k|                {{'\\', 'u', '0', '0', '1', '7', 0, 6}}, // 0x17
39228|   126k|                {{'\\', 'u', '0', '0', '1', '8', 0, 6}}, // 0x18
39229|   126k|                {{'\\', 'u', '0', '0', '1', '9', 0, 6}}, // 0x19
39230|   126k|                {{'\\', 'u', '0', '0', '1', 'a', 0, 6}}, // 0x1A
39231|   126k|                {{'\\', 'u', '0', '0', '1', 'b', 0, 6}}, // 0x1B
39232|   126k|                {{'\\', 'u', '0', '0', '1', 'c', 0, 6}}, // 0x1C
39233|   126k|                {{'\\', 'u', '0', '0', '1', 'd', 0, 6}}, // 0x1D
39234|   126k|                {{'\\', 'u', '0', '0', '1', 'e', 0, 6}}, // 0x1E
39235|   126k|                {{'\\', 'u', '0', '0', '1', 'f', 0, 6}}, // 0x1F
39236|   126k|                {{' ', 0, 0, 0, 0, 0, 0, 1}}, // 0x20
39237|   126k|                {{'!', 0, 0, 0, 0, 0, 0, 1}}, // 0x21
39238|   126k|                {{'\\', '"', 0, 0, 0, 0, 0, 2}}, // 0x22
39239|   126k|                {{'#', 0, 0, 0, 0, 0, 0, 1}}, // 0x23
39240|   126k|                {{'$', 0, 0, 0, 0, 0, 0, 1}}, // 0x24
39241|   126k|                {{'%', 0, 0, 0, 0, 0, 0, 1}}, // 0x25
39242|   126k|                {{'&', 0, 0, 0, 0, 0, 0, 1}}, // 0x26
39243|   126k|                {{'\'', 0, 0, 0, 0, 0, 0, 1}}, // 0x27
39244|   126k|                {{'(', 0, 0, 0, 0, 0, 0, 1}}, // 0x28
39245|   126k|                {{')', 0, 0, 0, 0, 0, 0, 1}}, // 0x29
39246|   126k|                {{'*', 0, 0, 0, 0, 0, 0, 1}}, // 0x2A
39247|   126k|                {{'+', 0, 0, 0, 0, 0, 0, 1}}, // 0x2B
39248|   126k|                {{',', 0, 0, 0, 0, 0, 0, 1}}, // 0x2C
39249|   126k|                {{'-', 0, 0, 0, 0, 0, 0, 1}}, // 0x2D
39250|   126k|                {{'.', 0, 0, 0, 0, 0, 0, 1}}, // 0x2E
39251|   126k|                {{'/', 0, 0, 0, 0, 0, 0, 1}}, // 0x2F
39252|   126k|                {{'0', 0, 0, 0, 0, 0, 0, 1}}, // 0x30
39253|   126k|                {{'1', 0, 0, 0, 0, 0, 0, 1}}, // 0x31
39254|   126k|                {{'2', 0, 0, 0, 0, 0, 0, 1}}, // 0x32
39255|   126k|                {{'3', 0, 0, 0, 0, 0, 0, 1}}, // 0x33
39256|   126k|                {{'4', 0, 0, 0, 0, 0, 0, 1}}, // 0x34
39257|   126k|                {{'5', 0, 0, 0, 0, 0, 0, 1}}, // 0x35
39258|   126k|                {{'6', 0, 0, 0, 0, 0, 0, 1}}, // 0x36
39259|   126k|                {{'7', 0, 0, 0, 0, 0, 0, 1}}, // 0x37
39260|   126k|                {{'8', 0, 0, 0, 0, 0, 0, 1}}, // 0x38
39261|   126k|                {{'9', 0, 0, 0, 0, 0, 0, 1}}, // 0x39
39262|   126k|                {{':', 0, 0, 0, 0, 0, 0, 1}}, // 0x3A
39263|   126k|                {{';', 0, 0, 0, 0, 0, 0, 1}}, // 0x3B
39264|   126k|                {{'<', 0, 0, 0, 0, 0, 0, 1}}, // 0x3C
39265|   126k|                {{'=', 0, 0, 0, 0, 0, 0, 1}}, // 0x3D
39266|   126k|                {{'>', 0, 0, 0, 0, 0, 0, 1}}, // 0x3E
39267|   126k|                {{'?', 0, 0, 0, 0, 0, 0, 1}}, // 0x3F
39268|   126k|                {{'@', 0, 0, 0, 0, 0, 0, 1}}, // 0x40
39269|   126k|                {{'A', 0, 0, 0, 0, 0, 0, 1}}, // 0x41
39270|   126k|                {{'B', 0, 0, 0, 0, 0, 0, 1}}, // 0x42
39271|   126k|                {{'C', 0, 0, 0, 0, 0, 0, 1}}, // 0x43
39272|   126k|                {{'D', 0, 0, 0, 0, 0, 0, 1}}, // 0x44
39273|   126k|                {{'E', 0, 0, 0, 0, 0, 0, 1}}, // 0x45
39274|   126k|                {{'F', 0, 0, 0, 0, 0, 0, 1}}, // 0x46
39275|   126k|                {{'G', 0, 0, 0, 0, 0, 0, 1}}, // 0x47
39276|   126k|                {{'H', 0, 0, 0, 0, 0, 0, 1}}, // 0x48
39277|   126k|                {{'I', 0, 0, 0, 0, 0, 0, 1}}, // 0x49
39278|   126k|                {{'J', 0, 0, 0, 0, 0, 0, 1}}, // 0x4A
39279|   126k|                {{'K', 0, 0, 0, 0, 0, 0, 1}}, // 0x4B
39280|   126k|                {{'L', 0, 0, 0, 0, 0, 0, 1}}, // 0x4C
39281|   126k|                {{'M', 0, 0, 0, 0, 0, 0, 1}}, // 0x4D
39282|   126k|                {{'N', 0, 0, 0, 0, 0, 0, 1}}, // 0x4E
39283|   126k|                {{'O', 0, 0, 0, 0, 0, 0, 1}}, // 0x4F
39284|   126k|                {{'P', 0, 0, 0, 0, 0, 0, 1}}, // 0x50
39285|   126k|                {{'Q', 0, 0, 0, 0, 0, 0, 1}}, // 0x51
39286|   126k|                {{'R', 0, 0, 0, 0, 0, 0, 1}}, // 0x52
39287|   126k|                {{'S', 0, 0, 0, 0, 0, 0, 1}}, // 0x53
39288|   126k|                {{'T', 0, 0, 0, 0, 0, 0, 1}}, // 0x54
39289|   126k|                {{'U', 0, 0, 0, 0, 0, 0, 1}}, // 0x55
39290|   126k|                {{'V', 0, 0, 0, 0, 0, 0, 1}}, // 0x56
39291|   126k|                {{'W', 0, 0, 0, 0, 0, 0, 1}}, // 0x57
39292|   126k|                {{'X', 0, 0, 0, 0, 0, 0, 1}}, // 0x58
39293|   126k|                {{'Y', 0, 0, 0, 0, 0, 0, 1}}, // 0x59
39294|   126k|                {{'Z', 0, 0, 0, 0, 0, 0, 1}}, // 0x5A
39295|   126k|                {{'[', 0, 0, 0, 0, 0, 0, 1}}, // 0x5B
39296|   126k|                {{'\\', '\\', 0, 0, 0, 0, 0, 2}}, // 0x5C
39297|   126k|                {{']', 0, 0, 0, 0, 0, 0, 1}}, // 0x5D
39298|   126k|                {{'^', 0, 0, 0, 0, 0, 0, 1}}, // 0x5E
39299|   126k|                {{'_', 0, 0, 0, 0, 0, 0, 1}}, // 0x5F
39300|   126k|            }
39301|   126k|        };
39302|   126k|        return escapes;
39303|   126k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_bufferILm512EEEvRKNS4_5arrayIcXT_EEEm:
39113|  37.5k|    {
39114|  37.5k|        put_string(buffer, 0, length);
39115|  37.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringINS4_5arrayIcLm512EEEEEvRKT_mm:
39087|  37.5k|    {
39088|  37.5k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|  37.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 37.5k, False: 0]
  ------------------
39089|  37.5k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|  37.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 37.5k, False: 0]
  ------------------
39090|       |
39091|  37.5k|        const char* const s = str.data() + start;
39092|  37.5k|        const std::size_t length = end - start;
39093|       |
39094|  37.5k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|  37.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 37.5k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|  37.5k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  37.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 37.5k]
  |  |  ------------------
  ------------------
39101|     36|        {
39102|     36|            flush();
39103|     36|        }
39104|  37.5k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|  37.5k|        write_buffer_pos += length;
39106|  37.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17validate_one_utf8EPKhm:
13120|   132k|{
13121|   132k|    const unsigned char c0 = data[0];
13122|   132k|    if (c0 >= 0xC2 && c0 <= 0xDF)  // U+0080..U+07FF
  ------------------
  |  Branch (13122:9): [True: 111k, False: 20.3k]
  |  Branch (13122:23): [True: 18.6k, False: 93.2k]
  ------------------
13123|  18.6k|    {
13124|  18.6k|        if (avail >= 2 && data[1] >= 0x80 && data[1] <= 0xBF)
  ------------------
  |  Branch (13124:13): [True: 16.2k, False: 2.41k]
  |  Branch (13124:27): [True: 12.9k, False: 3.31k]
  |  Branch (13124:46): [True: 4.22k, False: 8.70k]
  ------------------
13125|  4.22k|        {
13126|  4.22k|            return 2;
13127|  4.22k|        }
13128|  18.6k|    }
13129|   113k|    else if (c0 == 0xE0)  // U+0800..U+0FFF
  ------------------
  |  Branch (13129:14): [True: 7.89k, False: 105k]
  ------------------
13130|  7.89k|    {
13131|  7.89k|        if (avail >= 3 && data[1] >= 0xA0 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13131:13): [True: 6.80k, False: 1.08k]
  |  Branch (13131:27): [True: 5.46k, False: 1.34k]
  |  Branch (13131:46): [True: 2.79k, False: 2.66k]
  |  Branch (13131:65): [True: 1.93k, False: 857]
  |  Branch (13131:84): [True: 1.13k, False: 799]
  ------------------
13132|  1.13k|        {
13133|  1.13k|            return 3;
13134|  1.13k|        }
13135|  7.89k|    }
13136|   105k|    else if ((c0 >= 0xE1 && c0 <= 0xEC) || c0 == 0xEE || c0 == 0xEF)  // U+1000..U+CFFF, U+E000..U+FFFF
  ------------------
  |  Branch (13136:15): [True: 85.3k, False: 20.3k]
  |  Branch (13136:29): [True: 11.4k, False: 73.8k]
  |  Branch (13136:44): [True: 5.13k, False: 89.1k]
  |  Branch (13136:58): [True: 2.47k, False: 86.6k]
  ------------------
13137|  19.0k|    {
13138|  19.0k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13138:13): [True: 15.1k, False: 3.92k]
  |  Branch (13138:27): [True: 12.2k, False: 2.89k]
  |  Branch (13138:46): [True: 2.46k, False: 9.76k]
  |  Branch (13138:65): [True: 1.95k, False: 513]
  |  Branch (13138:84): [True: 915, False: 1.04k]
  ------------------
13139|    915|        {
13140|    915|            return 3;
13141|    915|        }
13142|  19.0k|    }
13143|  86.6k|    else if (c0 == 0xED)  // U+D000..U+D7FF (excludes surrogates)
  ------------------
  |  Branch (13143:14): [True: 11.0k, False: 75.6k]
  ------------------
13144|  11.0k|    {
13145|  11.0k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0x9F && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13145:13): [True: 9.72k, False: 1.28k]
  |  Branch (13145:27): [True: 8.15k, False: 1.56k]
  |  Branch (13145:46): [True: 1.65k, False: 6.50k]
  |  Branch (13145:65): [True: 1.35k, False: 300]
  |  Branch (13145:84): [True: 439, False: 913]
  ------------------
13146|    439|        {
13147|    439|            return 3;
13148|    439|        }
13149|  11.0k|    }
13150|  75.6k|    else if (c0 == 0xF0)  // U+10000..U+3FFFF
  ------------------
  |  Branch (13150:14): [True: 7.24k, False: 68.4k]
  ------------------
13151|  7.24k|    {
13152|  7.24k|        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.24k, False: 1.00k]
  |  Branch (13152:27): [True: 5.08k, False: 1.15k]
  |  Branch (13152:46): [True: 3.02k, False: 2.06k]
  |  Branch (13152:65): [True: 2.66k, False: 354]
  |  Branch (13152:84): [True: 2.37k, False: 291]
  |  Branch (13152:103): [True: 1.48k, False: 895]
  |  Branch (13152:122): [True: 302, False: 1.17k]
  ------------------
13153|    302|        {
13154|    302|            return 4;
13155|    302|        }
13156|  7.24k|    }
13157|  68.4k|    else if (c0 >= 0xF1 && c0 <= 0xF3)  // U+40000..U+FFFFF
  ------------------
  |  Branch (13157:14): [True: 48.0k, False: 20.3k]
  |  Branch (13157:28): [True: 11.7k, False: 36.2k]
  ------------------
13158|  11.7k|    {
13159|  11.7k|        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: 10.5k, False: 1.20k]
  |  Branch (13159:27): [True: 9.06k, False: 1.46k]
  |  Branch (13159:46): [True: 3.26k, False: 5.79k]
  |  Branch (13159:65): [True: 2.34k, False: 917]
  |  Branch (13159:84): [True: 1.45k, False: 896]
  |  Branch (13159:103): [True: 684, False: 768]
  |  Branch (13159:122): [True: 394, False: 290]
  ------------------
13160|    394|        {
13161|    394|            return 4;
13162|    394|        }
13163|  11.7k|    }
13164|  56.6k|    else if (c0 == 0xF4)  // U+100000..U+10FFFF
  ------------------
  |  Branch (13164:14): [True: 6.46k, False: 50.2k]
  ------------------
13165|  6.46k|    {
13166|  6.46k|        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: 6.01k, False: 449]
  |  Branch (13166:27): [True: 4.86k, False: 1.14k]
  |  Branch (13166:46): [True: 2.04k, False: 2.82k]
  |  Branch (13166:65): [True: 1.76k, False: 274]
  |  Branch (13166:84): [True: 989, False: 778]
  |  Branch (13166:103): [True: 902, False: 87]
  |  Branch (13166:122): [True: 96, False: 806]
  ------------------
13167|     96|        {
13168|     96|            return 4;
13169|     96|        }
13170|  6.46k|    }
13171|   124k|    return 0; // invalid, incomplete, or must be diagnosed by the byte path
13172|   132k|}
_ZN8nlohmann16json_abi_v3_12_06detail6decodeERhRjh:
 7414|   205k|{
 7415|   205k|    static const std::array<std::uint8_t, 400> utf8d =
 7416|   205k|    {
 7417|   205k|        {
 7418|   205k|            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|   205k|            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|   205k|            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|   205k|            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|   205k|            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|   205k|            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|   205k|            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|   205k|            0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
 7426|   205k|            0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
 7427|   205k|            0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
 7428|   205k|            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|   205k|            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|   205k|            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|   205k|            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|   205k|        }
 7433|   205k|    };
 7434|       |
 7435|   205k|    JSON_ASSERT(static_cast<std::size_t>(byte) < utf8d.size());
  ------------------
  |  | 2653|   205k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7435:5): [True: 205k, False: 0]
  ------------------
 7436|   205k|    const std::uint8_t type = utf8d[byte];
 7437|       |
 7438|   205k|    codep = (state != UTF8_ACCEPT)
  ------------------
  |  Branch (7438:13): [True: 83.0k, False: 122k]
  ------------------
 7439|   205k|            ? (byte & 0x3fu) | (codep << 6u)
 7440|   205k|            : (0xFFu >> type) & (byte);
 7441|       |
 7442|   205k|    const std::size_t index = 256u + (static_cast<std::size_t>(state) * 16u) + static_cast<std::size_t>(type);
 7443|   205k|    JSON_ASSERT(index < utf8d.size());
  ------------------
  |  | 2653|   205k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7443:5): [True: 205k, False: 0]
  ------------------
 7444|   205k|    state = utf8d[index];
 7445|   205k|    return state;
 7446|   205k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE21reserve_string_bufferERm:
38578|   116k|    {
38579|   116k|        if (string_buffer.size() - bytes < 13)
  ------------------
  |  Branch (38579:13): [True: 0, False: 116k]
  ------------------
38580|      0|        {
38581|      0|            put_buffer(string_buffer, bytes);
38582|      0|            bytes = 0;
38583|      0|        }
38584|   116k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10type_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idERKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5866|  1.35k|    {
 5867|  1.35k|        return create(static_cast<int>(id_), what_arg, context);
 5868|  1.35k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10type_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5859|  1.35k|    {
 5860|  1.35k|        const std::string w = exception::what_impl("type_error", id_, what_arg, context);
 5861|  1.35k|        return {id_, w.c_str()};
 5862|  1.35k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception9what_implIDnEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSA_iSC_T_:
 5676|  3.09k|    {
 5677|  3.09k|        return concat(name(ename, id_), diagnostics(context), what_arg);
 5678|  3.09k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_S9_RKS9_EEET_DpOT0_:
 5537|  4.71k|{
 5538|  4.71k|    OutStringType str;
 5539|  4.71k|    str.reserve(concat_length(args...));
 5540|  4.71k|    concat_into(str, std::forward<Args>(args)...);
 5541|  4.71k|    return str;
 5542|  4.71k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_S9_EEEmRKT_DpRKT0_:
 5447|  4.71k|{
 5448|  4.71k|    return str.size() + concat_length(rest...);
 5449|  4.71k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_EEEmRKT_DpRKT0_:
 5447|  46.6k|{
 5448|  46.6k|    return str.size() + concat_length(rest...);
 5449|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEmRKT_DpRKT0_:
 5447|   147k|{
 5448|   147k|    return str.size() + concat_length(rest...);
 5449|   147k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthEv:
 5423|   195k|{
 5424|   195k|    return 0;
 5425|   195k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  4.71k|{
 5501|  4.71k|    out.append(std::forward<Arg>(arg));
 5502|  4.71k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  4.71k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  46.6k|{
 5501|  46.6k|    out.append(std::forward<Arg>(arg));
 5502|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  89.0k|{
 5501|  89.0k|    out.append(std::forward<Arg>(arg));
 5502|  89.0k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  89.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEvRT_:
 5453|   195k|{}
_ZN8nlohmann16json_abi_v3_12_06detail9exception4nameERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEi:
 5669|  46.6k|    {
 5670|  46.6k|        return concat("[json.exception.", ename, '.', std::to_string(id_), "] ");
 5671|  46.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA17_KcRKS9_cS9_RA3_SA_EEET_DpOT0_:
 5537|  46.6k|{
 5538|  46.6k|    OutStringType str;
 5539|  46.6k|    str.reserve(concat_length(args...));
 5540|  46.6k|    concat_into(str, std::forward<Args>(args)...);
 5541|  46.6k|    return str;
 5542|  46.6k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcS9_A3_cEEEmPKcDpRKT_:
 5441|  46.6k|{
 5442|  46.6k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cEEEmRKT_DpRKT0_:
 5447|  46.6k|{
 5448|  46.6k|    return str.size() + concat_length(rest...);
 5449|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cEEEmcDpRKT_:
 5435|  46.6k|{
 5436|  46.6k|    return 1 + concat_length(rest...);
 5437|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cEEEmRKT_DpRKT0_:
 5447|  46.6k|{
 5448|  46.6k|    return str.size() + concat_length(rest...);
 5449|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJEEEmPKcDpRKT_:
 5441|  46.7k|{
 5442|  46.7k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  46.7k|}
_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|  46.6k|{
 5501|  46.6k|    out.append(std::forward<Arg>(arg));
 5502|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JcS9_RA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  46.6k|{
 5501|  46.6k|    out.append(std::forward<Arg>(arg));
 5502|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  46.6k|}
_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|  46.6k|{
 5510|  46.6k|    out += std::forward<Arg>(arg);
 5511|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  46.6k|{
 5501|  46.6k|    out.append(std::forward<Arg>(arg));
 5502|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  46.6k|{
 5501|  46.6k|    out.append(std::forward<Arg>(arg));
 5502|  46.6k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  46.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail9exception11diagnosticsEDn:
 5681|  45.0k|    {
 5682|  45.0k|        return "";
 5683|  45.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10type_errorC2EiPKc:
 5872|  1.35k|    type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
_ZN8nlohmann16json_abi_v3_12_06detail9exceptionC2EiPKc:
 5666|  46.6k|    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
_ZNK8nlohmann16json_abi_v3_12_06detail9exception4whatEv:
 5657|  30.1k|    {
 5658|  30.1k|        return m.what();
 5659|  30.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA29_KcS9_RA5_SA_S9_EEET_DpOT0_:
 5537|  1.21k|{
 5538|  1.21k|    OutStringType str;
 5539|  1.21k|    str.reserve(concat_length(args...));
 5540|  1.21k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.21k|    return str;
 5542|  1.21k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA5_cS9_EEEmPKcDpRKT_:
 5441|  1.21k|{
 5442|  1.21k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA5_cS9_EEEmRKT_DpRKT0_:
 5447|  1.21k|{
 5448|  1.21k|    return str.size() + concat_length(rest...);
 5449|  1.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|   100k|{
 5442|   100k|    return ::strlen(cstr) + concat_length(rest...);
 5443|   100k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA29_KcJS9_RA5_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.21k|{
 5501|  1.21k|    out.append(std::forward<Arg>(arg));
 5502|  1.21k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA5_KcS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  1.21k|{
 5501|  1.21k|    out.append(std::forward<Arg>(arg));
 5502|  1.21k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA5_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  1.80k|{
 5501|  1.80k|    out.append(std::forward<Arg>(arg));
 5502|  1.80k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.80k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSB_OSC_DpOT1_:
 5500|  58.5k|{
 5501|  58.5k|    out.append(std::forward<Arg>(arg));
 5502|  58.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  58.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail8hex_byteEh:
 7225|  10.5k|{
 7226|  10.5k|    std::string result = "00";
 7227|  10.5k|    constexpr const char* nibble_to_hex = "0123456789ABCDEF";
 7228|  10.5k|    result[0] = nibble_to_hex[byte / 16];
 7229|  10.5k|    result[1] = nibble_to_hex[byte % 16];
 7230|  10.5k|    return result;
 7231|  10.5k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA39_KcS9_EEET_DpOT0_:
 5537|    147|{
 5538|    147|    OutStringType str;
 5539|    147|    str.reserve(concat_length(args...));
 5540|    147|    concat_into(str, std::forward<Args>(args)...);
 5541|    147|    return str;
 5542|    147|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA39_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    147|{
 5501|    147|    out.append(std::forward<Arg>(arg));
 5502|    147|    concat_into(out, std::forward<Args>(rest)...);
 5503|    147|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_escaped_implILb0EEEvRKSC_:
38599|  71.7k|    {
38600|  71.7k|        std::uint32_t codepoint{};
38601|  71.7k|        std::uint8_t state = UTF8_ACCEPT;
38602|  71.7k|        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|  71.7k|        std::size_t bytes_after_last_accept = 0;
38606|  71.7k|        std::size_t undumped_chars = 0;
38607|       |
38608|   402k|        for (std::size_t i = 0; i < s.size(); ++i)
  ------------------
  |  Branch (38608:33): [True: 350k, False: 51.7k]
  ------------------
38609|   350k|        {
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|   350k|            if (state == UTF8_ACCEPT)
  ------------------
  |  Branch (38623:17): [True: 267k, False: 83.0k]
  ------------------
38624|   267k|            {
38625|   267k|                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|   267k|                std::size_t run = 0;
38632|   267k|                if (!EnsureAscii)
  ------------------
  |  Branch (38632:21): [True: 267k, Folded]
  ------------------
38633|   267k|                {
38634|   267k|                    run = string_bulk_run(data + i, s.size() - i);
38635|   267k|                }
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|   267k|                if (run != 0)
  ------------------
  |  Branch (38640:21): [True: 62.7k, False: 204k]
  ------------------
38641|  62.7k|                {
38642|       |                    // emit any bytes still pending in string_buffer first to
38643|       |                    // preserve output order, then write the run directly
38644|  62.7k|                    emit_pending(bytes);
38645|  62.7k|                    put_run(s, i, run);
38646|  62.7k|                    bytes_after_last_accept = 0;
38647|  62.7k|                    undumped_chars = 0;
38648|  62.7k|                    i += run;
38649|  62.7k|                    if (i >= s.size())
  ------------------
  |  Branch (38649:25): [True: 18.8k, False: 43.9k]
  ------------------
38650|  18.8k|                    {
38651|  18.8k|                        break;
38652|  18.8k|                    }
38653|  62.7k|                }
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|   248k|                if (data[i] < 0x60)
  ------------------
  |  Branch (38661:21): [True: 126k, False: 122k]
  ------------------
38662|   126k|                {
38663|       |                    // emit any bytes still pending in string_buffer first to
38664|       |                    // preserve output order
38665|   126k|                    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|   126k|                    const auto& escape = ascii_escapes()[data[i]];
38670|   126k|                    if (JSON_HEDLEY_UNLIKELY(write_buffer.size() - write_buffer_pos < escape.size()))
  ------------------
  |  | 1697|   126k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 267, False: 125k]
  |  |  ------------------
  ------------------
38671|    267|                    {
38672|    267|                        flush();
38673|    267|                    }
38674|   126k|                    std::memcpy(write_buffer.data() + write_buffer_pos, escape.data(), escape.size());
38675|   126k|                    write_buffer_pos += static_cast<std::size_t>(escape[7]);
38676|   126k|                    bytes_after_last_accept = 0;
38677|   126k|                    undumped_chars = 0;
38678|   126k|                    continue;
38679|   126k|                }
38680|   248k|            }
38681|       |
38682|   205k|            const auto byte = static_cast<std::uint8_t>(s[i]);
38683|       |
38684|   205k|            if (EnsureAscii && state == UTF8_ACCEPT && byte >= 0x80)
  ------------------
  |  Branch (38684:17): [Folded, False: 205k]
  |  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|   205k|            switch (decode(state, codepoint, byte))
38706|   205k|            {
38707|      0|                case UTF8_ACCEPT:  // decode found a new code point
  ------------------
  |  Branch (38707:17): [True: 0, False: 205k]
  ------------------
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|   117k|                case UTF8_REJECT:  // decode found invalid UTF-8 byte
  ------------------
  |  Branch (38736:17): [True: 117k, False: 88.6k]
  ------------------
38737|   117k|                {
38738|   117k|                    switch (error_handler)
38739|   117k|                    {
38740|  1.21k|                        case error_handler_t::strict:
  ------------------
  |  Branch (38740:25): [True: 1.21k, False: 116k]
  ------------------
38741|  1.21k|                        {
38742|  1.21k|                            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|  1.21k|    #define JSON_THROW(exception) throw exception
  ------------------
38743|      0|                        }
38744|       |
38745|      0|                        case error_handler_t::ignore:
  ------------------
  |  Branch (38745:25): [True: 0, False: 117k]
  ------------------
38746|      0|                        case error_handler_t::replace:
  ------------------
  |  Branch (38746:25): [True: 0, False: 117k]
  ------------------
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|   116k|                        case error_handler_t::keep:
  ------------------
  |  Branch (38792:25): [True: 116k, False: 1.21k]
  ------------------
38793|   116k|                        {
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|   116k|                            if (undumped_chars > 0)
  ------------------
  |  Branch (38797:33): [True: 66.6k, False: 49.3k]
  ------------------
38798|  66.6k|                            {
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|  66.6k|                                --i;
38804|  66.6k|                            }
38805|  49.3k|                            else
38806|  49.3k|                            {
38807|       |                                // a byte that cannot start a sequence (e.g.,
38808|       |                                // 0xFF or a stray continuation byte) is kept
38809|       |                                // as well
38810|  49.3k|                                string_buffer[bytes++] = s[i];
38811|  49.3k|                            }
38812|       |
38813|   116k|                            reserve_string_buffer(bytes);
38814|       |
38815|   116k|                            bytes_after_last_accept = bytes;
38816|   116k|                            undumped_chars = 0;
38817|       |
38818|       |                            // continue processing the string
38819|   116k|                            state = UTF8_ACCEPT;
38820|   116k|                            break;
38821|      0|                        }
38822|       |
38823|      0|                        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38823:25): [True: 0, False: 117k]
  ------------------
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|   117k|                    }
38826|   116k|                    break;
38827|   117k|                }
38828|       |
38829|   116k|                default:  // decode found yet incomplete multibyte code point
  ------------------
  |  Branch (38829:17): [True: 88.6k, False: 117k]
  ------------------
38830|  88.6k|                {
38831|  88.6k|                    if (!EnsureAscii || error_handler == error_handler_t::keep)
  ------------------
  |  Branch (38831:25): [True: 88.6k, Folded]
  |  Branch (38831:41): [True: 0, False: 0]
  ------------------
38832|  88.6k|                    {
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|  88.6k|                        string_buffer[bytes++] = s[i];
38838|  88.6k|                    }
38839|  88.6k|                    ++undumped_chars;
38840|  88.6k|                    break;
38841|   117k|                }
38842|   205k|            }
38843|   205k|        }
38844|       |
38845|       |        // we finished processing the string
38846|  70.5k|        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
  ------------------
  |  | 1696|  70.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 64.9k, False: 5.60k]
  |  |  ------------------
  ------------------
38847|  64.9k|        {
38848|       |            // write buffer
38849|  64.9k|            if (bytes > 0)
  ------------------
  |  Branch (38849:17): [True: 3.72k, False: 61.2k]
  ------------------
38850|  3.72k|            {
38851|  3.72k|                put_buffer(string_buffer, bytes);
38852|  3.72k|            }
38853|  64.9k|        }
38854|  5.60k|        else
38855|  5.60k|        {
38856|       |            // we finish reading, but do not accept: string was incomplete
38857|  5.60k|            switch (error_handler)
38858|  5.60k|            {
38859|    147|                case error_handler_t::strict:
  ------------------
  |  Branch (38859:17): [True: 147, False: 5.46k]
  ------------------
38860|    147|                {
38861|    147|                    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|    147|    #define JSON_THROW(exception) throw exception
  ------------------
38862|      0|                }
38863|       |
38864|      0|                case error_handler_t::ignore:
  ------------------
  |  Branch (38864:17): [True: 0, False: 5.60k]
  ------------------
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.60k]
  ------------------
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.46k|                case error_handler_t::keep:
  ------------------
  |  Branch (38887:17): [True: 5.46k, False: 147]
  ------------------
38888|  5.46k|                {
38889|       |                    // write the ill-formed trailing bytes as is; they were
38890|       |                    // buffered above regardless of EnsureAscii
38891|  5.46k|                    put_buffer(string_buffer, bytes);
38892|  5.46k|                    break;
38893|      0|                }
38894|       |
38895|      0|                default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38895:17): [True: 0, False: 5.60k]
  ------------------
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.60k|            }
38898|  5.60k|        }
38899|  70.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail15string_bulk_runEPKhm:
13447|   277k|{
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|   277k|    return scalar_string_bulk_run(data, n);
13456|   277k|}
_ZN8nlohmann16json_abi_v3_12_06detail22scalar_string_bulk_runEPKhm:
13368|   277k|{
13369|   277k|    const unsigned char* const e = data + n;
13370|   277k|    const unsigned char* p = data;
13371|   277k|    while (p != e)
  ------------------
  |  Branch (13371:12): [True: 277k, False: 0]
  ------------------
13372|   277k|    {
13373|   277k|#if JSON_SCAN_VECTOR
13374|   277k|        p = plain_run_end(p, e);
13375|       |#else
13376|       |        p += find_string_special(p, static_cast<std::size_t>(e - p));
13377|       |#endif
13378|   277k|        if (p == e || *p < 0x80u)
  ------------------
  |  Branch (13378:13): [True: 14.8k, False: 262k]
  |  Branch (13378:23): [True: 131k, False: 131k]
  ------------------
13379|   146k|        {
13380|   146k|            break; // end of buffer, or a quote/escape/control byte
13381|   146k|        }
13382|   131k|#if JSON_SCAN_VECTOR_UTF8
13383|   131k|#if JSON_SCAN_SSSE3_DISPATCH
13384|   131k|        if (JSON_HEDLEY_LIKELY(cpu_has_ssse3()))
  ------------------
  |  | 1696|   131k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 131k, False: 0]
  |  |  ------------------
  ------------------
13385|   131k|#endif
13386|   131k|        {
13387|   131k|            return static_cast<std::size_t>(scan_string_vector(p, e) - data);
13388|   131k|        }
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|   146k|    return static_cast<std::size_t>(p - data);
13406|   277k|}
_ZN8nlohmann16json_abi_v3_12_06detail13plain_run_endEPKhS3_:
13333|   277k|{
13334|   277k|    constexpr int prefix_words = JSON_SCAN_NEON ? 4 : 1;
  ------------------
  |  |12600|   277k|    #define JSON_SCAN_NEON 0
  |  |  ------------------
  |  |  |  Branch (12600:28): [Folded, False: 277k]
  |  |  ------------------
  ------------------
13335|   284k|    for (int words = prefix_words; words > 0 && e - p >= 8; --words)
  ------------------
  |  Branch (13335:36): [True: 277k, False: 7.60k]
  |  Branch (13335:49): [True: 172k, False: 105k]
  ------------------
13336|   172k|    {
13337|   172k|        const std::uint64_t special = swar_string_special(read_eight_bytes(p));
13338|   172k|        if (special != 0)
  ------------------
  |  Branch (13338:13): [True: 164k, False: 7.60k]
  ------------------
13339|   164k|        {
13340|   164k|            return p + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13341|   164k|        }
13342|  7.60k|        p += 8;
13343|  7.60k|    }
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|   112k|    if (e - p >= 16)
  ------------------
  |  Branch (13348:9): [True: 4.26k, False: 108k]
  ------------------
13349|  4.26k|    {
13350|  4.26k|        p = vector_plain_run_long(p, e);
13351|  4.26k|        if (e - p >= 16)
  ------------------
  |  Branch (13351:13): [True: 3.37k, False: 883]
  ------------------
13352|  3.37k|        {
13353|  3.37k|            return p; // the vector loop stopped at a special byte
13354|  3.37k|        }
13355|  4.26k|    }
13356|   109k|    return p + find_string_special(p, static_cast<std::size_t>(e - p));
13357|   112k|}
_ZN8nlohmann16json_abi_v3_12_06detail19swar_string_specialEm:
13004|   174k|{
13005|   174k|    constexpr std::uint64_t ones = 0x0101010101010101ull;
13006|   174k|    constexpr std::uint64_t high = 0x8080808080808080ull;
13007|   174k|    const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'  (0x22)
13008|   174k|    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|   174k|    return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v) & high;
13013|   174k|}
_ZN8nlohmann16json_abi_v3_12_06detail21vector_plain_run_longEPKhS3_:
12699|  4.26k|{
12700|  4.26k|    return vector_plain_run(p, e);
12701|  4.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail16vector_plain_runEPKhS3_:
12659|  4.26k|{
12660|  5.71k|    while (e - p >= 16)
  ------------------
  |  Branch (12660:12): [True: 5.34k, False: 370]
  ------------------
12661|  5.34k|    {
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|  5.34k|        const __m128i in = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
12675|  5.34k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12676|  5.34k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
12677|  5.34k|        const auto bits = static_cast<std::uint64_t>(static_cast<unsigned>(_mm_movemask_epi8(special)));
12678|  5.34k|        if (bits != 0)
  ------------------
  |  Branch (12678:13): [True: 3.89k, False: 1.45k]
  ------------------
12679|  3.89k|        {
12680|  3.89k|            return p + count_trailing_zeros(bits);
12681|  3.89k|        }
12682|  1.45k|#endif
12683|  1.45k|        p += 16;
12684|  1.45k|    }
12685|    370|    return p;
12686|  4.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail19find_string_specialEPKhm:
13018|   109k|{
13019|   109k|    std::size_t i = 0;
13020|   110k|    for (; i + 8 <= n; i += 8)
  ------------------
  |  Branch (13020:12): [True: 2.34k, False: 107k]
  ------------------
13021|  2.34k|    {
13022|  2.34k|        const std::uint64_t special = swar_string_special(read_eight_bytes(data + i));
13023|  2.34k|        if (special != 0)
  ------------------
  |  Branch (13023:13): [True: 1.63k, False: 714]
  ------------------
13024|  1.63k|        {
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|  1.63k|            return i + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13028|  1.63k|        }
13029|  2.34k|    }
13030|   150k|    for (; i < n; ++i)
  ------------------
  |  Branch (13030:12): [True: 135k, False: 14.8k]
  ------------------
13031|   135k|    {
13032|   135k|        if (is_string_special(data[i]))
  ------------------
  |  Branch (13032:13): [True: 93.0k, False: 42.4k]
  ------------------
13033|  93.0k|        {
13034|  93.0k|            return i;
13035|  93.0k|        }
13036|   135k|    }
13037|  14.8k|    return n;
13038|   107k|}
_ZN8nlohmann16json_abi_v3_12_06detail17is_string_specialEh:
12997|   149k|{
12998|   149k|    return c == '\"' || c == '\\' || c < 0x20u || c >= 0x80u;
  ------------------
  |  Branch (12998:12): [True: 1.78k, False: 147k]
  |  Branch (12998:25): [True: 3.62k, False: 144k]
  |  Branch (12998:38): [True: 56.1k, False: 88.0k]
  |  Branch (12998:51): [True: 32.8k, False: 55.1k]
  ------------------
12999|   149k|}
_ZN8nlohmann16json_abi_v3_12_06detail13cpu_has_ssse3Ev:
12726|   131k|{
12727|   131k|    static std::atomic<int> known{0}; // 0: not asked yet, 1: no, 2: yes
12728|   131k|    int state = known.load(std::memory_order_relaxed);
12729|   131k|    if (JSON_HEDLEY_UNLIKELY(state == 0))
  ------------------
  |  | 1697|   131k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 131k]
  |  |  ------------------
  ------------------
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|   131k|    return state == 2;
12735|   131k|}
_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|   131k|{
13317|   131k|    const unsigned char* block = p;
13318|   131k|    if (vector_utf8_run(p, e, block))
  ------------------
  |  Branch (13318:9): [True: 930, False: 130k]
  ------------------
13319|    930|    {
13320|    930|        return block;
13321|    930|    }
13322|   130k|    return scan_string_finish(p, block, e);
13323|   131k|}
_ZN8nlohmann16json_abi_v3_12_06detail15vector_utf8_runEPKhS3_RS3_:
12802|   131k|{
12803|   131k|    using lookup = utf8_lookup4<>;
12804|   131k|    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|   131k|    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|   131k|    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|   131k|    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|   131k|    const __m128i nibble = _mm_set1_epi8(0x0F);
12849|   131k|    const __m128i zero = _mm_setzero_si128();
12850|   131k|    __m128i prev = zero;
12851|   132k|    while (e - block >= 16)
  ------------------
  |  Branch (12851:12): [True: 85.2k, False: 47.6k]
  ------------------
12852|  85.2k|    {
12853|  85.2k|        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.2k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12857|  85.2k|                                             _mm_cmpeq_epi8(_mm_subs_epu8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(32)), zero));
12858|  85.2k|        const __m128i prev1 = _mm_alignr_epi8(in, prev, 15);
12859|  85.2k|        const __m128i sc = _mm_and_si128(_mm_and_si128(_mm_shuffle_epi8(t1h, _mm_and_si128(_mm_srli_epi16(prev1, 4), nibble)),
12860|  85.2k|                                         _mm_shuffle_epi8(t1l, _mm_and_si128(prev1, nibble))),
12861|  85.2k|                                         _mm_shuffle_epi8(t2h, _mm_and_si128(_mm_srli_epi16(in, 4), nibble)));
12862|  85.2k|        const __m128i must23 = _mm_or_si128(_mm_subs_epu8(_mm_alignr_epi8(in, prev, 14), _mm_set1_epi8(0xE0 - 0x80)),
12863|  85.2k|                                            _mm_subs_epu8(_mm_alignr_epi8(in, prev, 13), _mm_set1_epi8(0xF0 - 0x80)));
12864|  85.2k|        const __m128i err = _mm_xor_si128(_mm_and_si128(must23, _mm_set1_epi8(static_cast<char>(-128))), sc);
12865|  85.2k|        const auto special_bits = static_cast<unsigned>(_mm_movemask_epi8(special));
12866|  85.2k|        const auto err_bits = ~static_cast<unsigned>(_mm_movemask_epi8(_mm_cmpeq_epi8(err, zero))) & 0xFFFFu;
12867|  85.2k|        if (special_bits != 0)
  ------------------
  |  Branch (12867:13): [True: 37.8k, False: 47.4k]
  ------------------
12868|  37.8k|        {
12869|  37.8k|            const auto k = static_cast<unsigned>(count_trailing_zeros(static_cast<std::uint64_t>(special_bits)));
12870|  37.8k|            if ((err_bits & ((2u << k) - 1u)) == 0)
  ------------------
  |  Branch (12870:17): [True: 930, False: 36.8k]
  ------------------
12871|    930|            {
12872|    930|                block_out = block + k;
12873|    930|                return true;
12874|    930|            }
12875|  36.8k|            break;
12876|  37.8k|        }
12877|  47.4k|        if (err_bits != 0)
  ------------------
  |  Branch (12877:13): [True: 45.8k, False: 1.56k]
  ------------------
12878|  45.8k|        {
12879|  45.8k|            break;
12880|  45.8k|        }
12881|  1.56k|        prev = in;
12882|  1.56k|        block += 16;
12883|  1.56k|    }
12884|   130k|#endif
12885|   130k|    block_out = block;
12886|   130k|    return false;
12887|   131k|}
_ZN8nlohmann16json_abi_v3_12_06detail18scan_string_finishEPKhS3_S3_:
13274|   130k|{
13275|   131k|    for (int i = 1; i <= 3 && block - i >= p; ++i)
  ------------------
  |  Branch (13275:21): [True: 131k, False: 151]
  |  Branch (13275:31): [True: 1.75k, False: 129k]
  ------------------
13276|  1.75k|    {
13277|  1.75k|        const unsigned char c = block[-i];
13278|  1.75k|        if (c < 0x80)
  ------------------
  |  Branch (13278:13): [True: 563, False: 1.19k]
  ------------------
13279|    563|        {
13280|    563|            break;
13281|    563|        }
13282|  1.19k|        if (c >= 0xC0)
  ------------------
  |  Branch (13282:13): [True: 331, False: 860]
  ------------------
13283|    331|        {
13284|    331|            const int len = 2 + static_cast<int>(c >= 0xE0) + static_cast<int>(c >= 0xF0);
13285|    331|            if (len > i)
  ------------------
  |  Branch (13285:17): [True: 197, False: 134]
  ------------------
13286|    197|            {
13287|    197|                block -= i;
13288|    197|            }
13289|    331|            break;
13290|    331|        }
13291|  1.19k|    }
13292|   150k|    for (p = block; p != e;)
  ------------------
  |  Branch (13292:21): [True: 146k, False: 4.27k]
  ------------------
13293|   146k|    {
13294|   146k|        if (*p < 0x80)
  ------------------
  |  Branch (13294:13): [True: 14.0k, False: 132k]
  ------------------
13295|  14.0k|        {
13296|  14.0k|            if (is_string_special(*p))
  ------------------
  |  Branch (13296:17): [True: 1.39k, False: 12.7k]
  ------------------
13297|  1.39k|            {
13298|  1.39k|                return p;
13299|  1.39k|            }
13300|  12.7k|            ++p;
13301|  12.7k|            continue;
13302|  14.0k|        }
13303|   132k|        const std::size_t n = validate_one_utf8(p, static_cast<std::size_t>(e - p));
13304|   132k|        if (n == 0)
  ------------------
  |  Branch (13304:13): [True: 124k, False: 7.51k]
  ------------------
13305|   124k|        {
13306|   124k|            return p;
13307|   124k|        }
13308|  7.51k|        p += n;
13309|  7.51k|    }
13310|  4.27k|    return p;
13311|   130k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE8put_charEc:
38914|  2.37M|    {
38915|  2.37M|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos == write_buffer.size()))
  ------------------
  |  | 1697|  2.37M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.04k, False: 2.37M]
  |  |  ------------------
  ------------------
38916|  1.04k|        {
38917|  1.04k|            flush();
38918|  1.04k|        }
38919|  2.37M|        write_buffer[write_buffer_pos++] = c;
38920|  2.37M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14put_object_keyILm3EEEvRKSC_RAT__Kc:
38294|   228k|    {
38295|   228k|#if JSON_LITTLE_ENDIAN_TARGET
38296|   228k|        if (put_short_quoted(s, tail))
  ------------------
  |  Branch (38296:13): [True: 207k, False: 20.3k]
  ------------------
38297|   207k|        {
38298|   207k|            return;
38299|   207k|        }
38300|  20.3k|#endif
38301|  20.3k|        put_char('"');
38302|  20.3k|        dump_escaped(s);
38303|  20.3k|        put_literal(tail);
38304|  20.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm3EEEbRKSC_RAT__Kc:
38348|   228k|    {
38349|   228k|        const std::size_t n = s.size();
38350|   228k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 739, False: 227k]
  |  Branch (38350:37): [True: 406, False: 227k]
  ------------------
38351|  1.14k|        {
38352|  1.14k|            return false;
38353|  1.14k|        }
38354|       |
38355|   227k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|   227k|        const char* const p = s.data();
38357|       |
38358|   227k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 142k, False: 84.2k]
  ------------------
38359|   142k|        {
38360|   142k|#if JSON_SCAN_VECTOR
38361|   142k|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 2.87k, False: 140k]
  |  Branch (38361:19): [True: 1.26k, False: 141k]
  ------------------
38362|  2.87k|            {
38363|  2.87k|                return false;
38364|  2.87k|            }
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|   142k|        }
38376|  84.2k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 1.89k, False: 82.3k]
  ------------------
38377|  1.89k|        {
38378|  1.89k|            const auto a = load_word<std::uint32_t>(p);
38379|  1.89k|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|  1.89k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|  1.89k|                                    | (0x4141414141414141ull << (8 * n));
38383|  1.89k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 1.51k, False: 379]
  ------------------
38384|  1.51k|            {
38385|  1.51k|                return false;
38386|  1.51k|            }
38387|    379|            store_word(d, a);
38388|    379|            store_word(d + n - 4, b);
38389|    379|        }
38390|  82.3k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 5.03k, False: 77.2k]
  ------------------
38391|  5.03k|        {
38392|  5.03k|            const auto a = load_word<std::uint16_t>(p);
38393|  5.03k|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|  5.03k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|  5.03k|                                    | (0x4141414141414141ull << (8 * n));
38396|  5.03k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 3.61k, False: 1.41k]
  ------------------
38397|  3.61k|            {
38398|  3.61k|                return false;
38399|  3.61k|            }
38400|  1.41k|            store_word(d, a);
38401|  1.41k|            store_word(d + n - 2, b);
38402|  1.41k|        }
38403|  77.2k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 36.5k, False: 40.7k]
  ------------------
38404|  36.5k|        {
38405|  36.5k|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|  36.5k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 11.1k, False: 25.3k]
  ------------------
38407|  11.1k|            {
38408|  11.1k|                return false;
38409|  11.1k|            }
38410|  25.3k|            *d = p[0];
38411|  25.3k|        }
38412|       |
38413|   207k|        d[-1] = '"';
38414|   207k|        std::memcpy(d + n, tail, N - 1);
38415|   207k|        write_buffer_pos += n + N;
38416|   207k|        return true;
38417|   227k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11dump_scalarERKSG_m:
38106|  1.08M|    {
38107|  1.08M|        switch (val.m_data.m_type)
38108|  1.08M|        {
38109|   138k|            case value_t::string:
  ------------------
  |  Branch (38109:13): [True: 138k, False: 941k]
  ------------------
38110|   138k|            {
38111|   138k|                dump_string_value(*val.m_data.m_value.string);
38112|   138k|                return;
38113|      0|            }
38114|       |
38115|  13.4k|            case value_t::binary:
  ------------------
  |  Branch (38115:13): [True: 13.4k, False: 1.06M]
  ------------------
38116|  13.4k|            {
38117|  13.4k|                dump_binary_value(current_indent, *val.m_data.m_value.binary);
38118|  13.4k|                return;
38119|      0|            }
38120|       |
38121|   112k|            case value_t::boolean:
  ------------------
  |  Branch (38121:13): [True: 112k, False: 968k]
  ------------------
38122|   112k|            {
38123|   112k|                if (val.m_data.m_value.boolean)
  ------------------
  |  Branch (38123:21): [True: 66.5k, False: 45.5k]
  ------------------
38124|  66.5k|                {
38125|  66.5k|                    put_literal("true");
38126|  66.5k|                }
38127|  45.5k|                else
38128|  45.5k|                {
38129|  45.5k|                    put_literal("false");
38130|  45.5k|                }
38131|   112k|                return;
38132|      0|            }
38133|       |
38134|   191k|            case value_t::number_integer:
  ------------------
  |  Branch (38134:13): [True: 191k, False: 889k]
  ------------------
38135|   191k|            {
38136|   191k|                dump_signed_value(val.m_data.m_value.number_integer);
38137|   191k|                return;
38138|      0|            }
38139|       |
38140|   229k|            case value_t::number_unsigned:
  ------------------
  |  Branch (38140:13): [True: 229k, False: 851k]
  ------------------
38141|   229k|            {
38142|   229k|                dump_unsigned_value(val.m_data.m_value.number_unsigned);
38143|   229k|                return;
38144|      0|            }
38145|       |
38146|   314k|            case value_t::number_float:
  ------------------
  |  Branch (38146:13): [True: 314k, False: 766k]
  ------------------
38147|   314k|            {
38148|   314k|                dump_float_value(val.m_data.m_value.number_float);
38149|   314k|                return;
38150|      0|            }
38151|       |
38152|      0|            case value_t::discarded:
  ------------------
  |  Branch (38152:13): [True: 0, False: 1.08M]
  ------------------
38153|      0|            {
38154|      0|                put_literal("<discarded>");
38155|      0|                return;
38156|      0|            }
38157|       |
38158|  81.4k|            case value_t::null:
  ------------------
  |  Branch (38158:13): [True: 81.4k, False: 998k]
  ------------------
38159|  81.4k|            {
38160|  81.4k|                put_literal("null");
38161|  81.4k|                return;
38162|      0|            }
38163|       |
38164|      0|            case value_t::object: // LCOV_EXCL_LINE
  ------------------
  |  Branch (38164:13): [True: 0, False: 1.08M]
  ------------------
38165|      0|            case value_t::array:  // LCOV_EXCL_LINE
  ------------------
  |  Branch (38165:13): [True: 0, False: 1.08M]
  ------------------
38166|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38166:13): [True: 0, False: 1.08M]
  ------------------
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|  1.08M|        }
38169|  1.08M|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_string_valueERKSC_:
38174|   138k|    {
38175|   138k|#if JSON_LITTLE_ENDIAN_TARGET
38176|   138k|        if (s.size() <= short_string_max && put_short_quoted(s, "\""))
  ------------------
  |  Branch (38176:13): [True: 136k, False: 1.89k]
  |  Branch (38176:45): [True: 87.2k, False: 49.5k]
  ------------------
38177|  87.2k|        {
38178|  87.2k|            return;
38179|  87.2k|        }
38180|  51.4k|#endif
38181|  51.4k|        put_char('"');
38182|  51.4k|        dump_escaped(s);
38183|  51.4k|        put_char('"');
38184|  51.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm2EEEbRKSC_RAT__Kc:
38348|   136k|    {
38349|   136k|        const std::size_t n = s.size();
38350|   136k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 0, False: 136k]
  |  Branch (38350:37): [True: 461, False: 136k]
  ------------------
38351|    461|        {
38352|    461|            return false;
38353|    461|        }
38354|       |
38355|   136k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|   136k|        const char* const p = s.data();
38357|       |
38358|   136k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 6.78k, False: 129k]
  ------------------
38359|  6.78k|        {
38360|  6.78k|#if JSON_SCAN_VECTOR
38361|  6.78k|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 6.00k, False: 775]
  |  Branch (38361:19): [True: 4.09k, False: 2.68k]
  ------------------
38362|  6.00k|            {
38363|  6.00k|                return false;
38364|  6.00k|            }
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|  6.78k|        }
38376|   129k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 54.3k, False: 75.2k]
  ------------------
38377|  54.3k|        {
38378|  54.3k|            const auto a = load_word<std::uint32_t>(p);
38379|  54.3k|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|  54.3k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|  54.3k|                                    | (0x4141414141414141ull << (8 * n));
38383|  54.3k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 7.03k, False: 47.2k]
  ------------------
38384|  7.03k|            {
38385|  7.03k|                return false;
38386|  7.03k|            }
38387|  47.2k|            store_word(d, a);
38388|  47.2k|            store_word(d + n - 4, b);
38389|  47.2k|        }
38390|  75.2k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 3.90k, False: 71.3k]
  ------------------
38391|  3.90k|        {
38392|  3.90k|            const auto a = load_word<std::uint16_t>(p);
38393|  3.90k|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|  3.90k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|  3.90k|                                    | (0x4141414141414141ull << (8 * n));
38396|  3.90k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 3.68k, False: 220]
  ------------------
38397|  3.68k|            {
38398|  3.68k|                return false;
38399|  3.68k|            }
38400|    220|            store_word(d, a);
38401|    220|            store_word(d + n - 2, b);
38402|    220|        }
38403|  71.3k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 67.1k, False: 4.21k]
  ------------------
38404|  67.1k|        {
38405|  67.1k|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|  67.1k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 32.3k, False: 34.7k]
  ------------------
38407|  32.3k|            {
38408|  32.3k|                return false;
38409|  32.3k|            }
38410|  34.7k|            *d = p[0];
38411|  34.7k|        }
38412|       |
38413|  87.2k|        d[-1] = '"';
38414|  87.2k|        std::memcpy(d + n, tail, N - 1);
38415|  87.2k|        write_buffer_pos += n + N;
38416|  87.2k|        return true;
38417|   136k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_binary_valueEmRKNS0_27byte_container_with_subtypeISF_EE:
38206|  13.4k|    {
38207|  13.4k|        if (pretty_print)
  ------------------
  |  Branch (38207:13): [True: 0, False: 13.4k]
  ------------------
38208|      0|        {
38209|       |            // variable to hold indentation for the bytes
38210|      0|            const auto new_indent = next_indent(current_indent, indent_step);
38211|       |
38212|      0|            put_literal_indent("{\n", new_indent);
38213|      0|            put_literal("\"bytes\": [");
38214|       |
38215|      0|            if (!binary.empty())
  ------------------
  |  Branch (38215:17): [True: 0, False: 0]
  ------------------
38216|      0|            {
38217|      0|                for (auto i = binary.cbegin(); i != binary.cend() - 1; ++i)
  ------------------
  |  Branch (38217:48): [True: 0, False: 0]
  ------------------
38218|      0|                {
38219|      0|                    dump_byte(*i);
38220|      0|                    put_literal(", ");
38221|      0|                }
38222|      0|                dump_byte(binary.back());
38223|      0|            }
38224|       |
38225|      0|            put_literal_indent("],\n", new_indent);
38226|       |
38227|      0|            put_literal("\"subtype\": ");
38228|      0|            if (binary.has_subtype())
  ------------------
  |  Branch (38228:17): [True: 0, False: 0]
  ------------------
38229|      0|            {
38230|      0|                dump_subtype(binary.subtype());
38231|      0|            }
38232|      0|            else
38233|      0|            {
38234|      0|                put_literal("null");
38235|      0|            }
38236|      0|            put_literal_indent("\n", current_indent);
38237|      0|            put_char('}');
38238|      0|        }
38239|  13.4k|        else
38240|  13.4k|        {
38241|  13.4k|            put_literal("{\"bytes\":[");
38242|       |
38243|  13.4k|            if (!binary.empty())
  ------------------
  |  Branch (38243:17): [True: 8.71k, False: 4.74k]
  ------------------
38244|  8.71k|            {
38245|  71.1k|                for (auto i = binary.cbegin(); i != binary.cend() - 1; ++i)
  ------------------
  |  Branch (38245:48): [True: 62.3k, False: 8.71k]
  ------------------
38246|  62.3k|                {
38247|  62.3k|                    dump_byte(*i);
38248|  62.3k|                    put_char(',');
38249|  62.3k|                }
38250|  8.71k|                dump_byte(binary.back());
38251|  8.71k|            }
38252|       |
38253|  13.4k|            put_literal("],\"subtype\":");
38254|  13.4k|            if (binary.has_subtype())
  ------------------
  |  Branch (38254:17): [True: 0, False: 13.4k]
  ------------------
38255|      0|            {
38256|      0|                dump_subtype(binary.subtype());
38257|      0|                put_char('}');
38258|      0|            }
38259|  13.4k|            else
38260|  13.4k|            {
38261|  13.4k|                put_literal("null}");
38262|  13.4k|            }
38263|  13.4k|        }
38264|  13.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm11EEEvRAT__Kc:
39040|  13.4k|    {
39041|  13.4k|        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|  13.4k|        constexpr std::size_t length = N - 1;
39044|  13.4k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  13.4k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  13.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 138, False: 13.3k]
  |  |  ------------------
  ------------------
39047|    138|        {
39048|    138|            flush();
39049|    138|        }
39050|  13.4k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  13.4k|        write_buffer_pos += length;
39052|  13.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9dump_byteIhEEvT_:
39434|  71.1k|    {
39435|  71.1k|        dump_byte(value, std::integral_constant < bool,
39436|  71.1k|                  std::is_unsigned<ByteType>::value && sizeof(ByteType) == 1
39437|  71.1k|                  && !std::is_same<ByteType, bool>::value > {});
39438|  71.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9dump_byteIhEEvT_NS4_17integral_constantIbLb1EEE:
39448|  71.1k|    {
39449|  71.1k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + 3 > write_buffer.size()))
  ------------------
  |  | 1697|  71.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 108, False: 70.9k]
  |  |  ------------------
  ------------------
39450|    108|        {
39451|    108|            flush();
39452|    108|        }
39453|       |
39454|  71.1k|        const auto byte = static_cast<unsigned>(value);
39455|       |        // Accumulate the offset in a local and store it back once. Writing
39456|       |        // through write_buffer[] is a char write, which may alias any object,
39457|       |        // so with the member updated in place the compiler has to reload and
39458|       |        // store it around every digit - measured 2.4x slower on a dump of a
39459|       |        // multi-megabyte binary value.
39460|  71.1k|        std::size_t pos = write_buffer_pos;
39461|       |
39462|  71.1k|        if (byte >= 100)
  ------------------
  |  Branch (39462:13): [True: 28.8k, False: 42.2k]
  ------------------
39463|  28.8k|        {
39464|  28.8k|            write_buffer[pos++] = static_cast<char>('0' + (byte / 100));
39465|  28.8k|            write_buffer[pos++] = static_cast<char>('0' + ((byte / 10) % 10));
39466|  28.8k|        }
39467|  42.2k|        else if (byte >= 10)
  ------------------
  |  Branch (39467:18): [True: 30.4k, False: 11.8k]
  ------------------
39468|  30.4k|        {
39469|  30.4k|            write_buffer[pos++] = static_cast<char>('0' + (byte / 10));
39470|  30.4k|        }
39471|       |
39472|  71.1k|        write_buffer[pos++] = static_cast<char>('0' + (byte % 10));
39473|       |
39474|  71.1k|        write_buffer_pos = pos;
39475|  71.1k|    }
_ZNK8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEE11has_subtypeEv:
 8590|  13.4k|    {
 8591|  13.4k|        return m_has_subtype;
 8592|  13.4k|    }
_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|   229k|    {
39528|   229k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|   229k|        {
39530|   229k|            {
39531|   229k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|   229k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|   229k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|   229k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|   229k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|   229k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|   229k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|   229k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|   229k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|   229k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|   229k|            }
39542|   229k|        };
39543|       |
39544|       |        // special case for "0"
39545|   229k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 10.6k, False: 218k]
  ------------------
39546|  10.6k|        {
39547|  10.6k|            put_char('0');
39548|  10.6k|            return;
39549|  10.6k|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|   218k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|   218k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 904, False: 217k]
  |  |  ------------------
  ------------------
39553|    904|        {
39554|    904|            flush();
39555|    904|        }
39556|   218k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|   218k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|   218k|        unsigned int n_chars = 0;
39562|       |
39563|   218k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 0, False: 218k]
  ------------------
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|   218k|        else
39570|   218k|        {
39571|   218k|            abs_value = static_cast<number_magnitude_t>(x);
39572|   218k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|   218k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 200k, False: 18.4k]
  ------------------
39577|   200k|        {
39578|   200k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|   200k|            const std::uint64_t upper = value / 100000000u;
39580|   200k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 14.9k, False: 185k]
  ------------------
39581|   200k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|   200k|            char* const p = buffer_ptr + n_chars;
39583|   200k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|   200k|            n_chars += 8 - leading;
39585|   200k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 14.9k, False: 185k]
  ------------------
39586|  14.9k|            {
39587|  14.9k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  14.9k|                n_chars += 8;
39589|  14.9k|            }
39590|   200k|            write_buffer_pos += n_chars;
39591|   200k|            return;
39592|   200k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  18.4k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 18.4k, False: 0]
  ------------------
39596|  18.4k|        {
39597|  18.4k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  18.4k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  18.4k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  18.4k|            const std::uint64_t middle = low16 / 100000000u;
39601|  18.4k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  18.4k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  18.4k|            char* const p = buffer_ptr + n_chars;
39604|  18.4k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  18.4k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  18.4k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  18.4k|            write_buffer_pos += n_chars + 24 - leading;
39608|  18.4k|            return;
39609|  18.4k|        }
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|   218k|    {
39416|   218k|        return false;
39417|   218k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11remove_signEl:
39793|  34.5k|    {
39794|  34.5k|        JSON_ASSERT(x < 0);
  ------------------
  |  | 2653|  34.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39794:9): [True: 34.5k, False: 0]
  ------------------
39795|  34.5k|        return static_cast<number_magnitude_t>(static_cast<number_magnitude_t>(-(x + 1)) + 1);
39796|  34.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl17eight_digit_bytesEm:
37132|   507k|{
37133|   507k|    const std::uint64_t abcd_efgh = abcdefgh + (((std::uint64_t{1} << 32u) - 10000u) * ((abcdefgh * (((std::uint64_t{1} << 40u) / 10000u) + 1u)) >> 40u));
37134|   507k|    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|   507k|    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|   507k|}
_ZN8nlohmann16json_abi_v3_12_06detail19count_leading_zerosEm:
 9062|   835k|{
 9063|   835k|#if defined(__GNUC__) || defined(__clang__)
 9064|   835k|    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|   835k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl15store_msb_firstEPcm:
37142|   510k|{
37143|   510k|#if JSON_LITTLE_ENDIAN_TARGET
37144|   510k|    v = byteswap(v);
37145|   510k|    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|   510k|}
_ZN8nlohmann16json_abi_v3_12_06detail8byteswapEm:
 9172|   510k|{
 9173|   510k|#if defined(__GNUC__) || defined(__clang__)
 9174|   510k|    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|   510k|}
_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|  34.6k|    {
39775|  34.6k|        return true;
39776|  34.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm13EEEvRAT__Kc:
39040|  13.4k|    {
39041|  13.4k|        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|  13.4k|        constexpr std::size_t length = N - 1;
39044|  13.4k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  13.4k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  13.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 132, False: 13.3k]
  |  |  ------------------
  ------------------
39047|    132|        {
39048|    132|            flush();
39049|    132|        }
39050|  13.4k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  13.4k|        write_buffer_pos += length;
39052|  13.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm5EEEvRAT__Kc:
39040|   161k|    {
39041|   161k|        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|   161k|        constexpr std::size_t length = N - 1;
39044|   161k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|   161k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|   161k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 361, False: 161k]
  |  |  ------------------
  ------------------
39047|    361|        {
39048|    361|            flush();
39049|    361|        }
39050|   161k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|   161k|        write_buffer_pos += length;
39052|   161k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm6EEEvRAT__Kc:
39040|  58.9k|    {
39041|  58.9k|        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|  58.9k|        constexpr std::size_t length = N - 1;
39044|  58.9k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  58.9k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  58.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 343, False: 58.6k]
  |  |  ------------------
  ------------------
39047|    343|        {
39048|    343|            flush();
39049|    343|        }
39050|  58.9k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  58.9k|        write_buffer_pos += length;
39052|  58.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_signed_valueEl:
38191|   191k|    {
38192|   191k|        dump_integer(x);
38193|   191k|    }
_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|   191k|    {
39528|   191k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|   191k|        {
39530|   191k|            {
39531|   191k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|   191k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|   191k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|   191k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|   191k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|   191k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|   191k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|   191k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|   191k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|   191k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|   191k|            }
39542|   191k|        };
39543|       |
39544|       |        // special case for "0"
39545|   191k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 14.5k, False: 176k]
  ------------------
39546|  14.5k|        {
39547|  14.5k|            put_char('0');
39548|  14.5k|            return;
39549|  14.5k|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|   176k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|   176k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 418, False: 176k]
  |  |  ------------------
  ------------------
39553|    418|        {
39554|    418|            flush();
39555|    418|        }
39556|   176k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|   176k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|   176k|        unsigned int n_chars = 0;
39562|       |
39563|   176k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 34.5k, False: 142k]
  ------------------
39564|  34.5k|        {
39565|  34.5k|            *buffer_ptr = '-';
39566|  34.5k|            abs_value = remove_sign(static_cast<number_integer_t>(x));
39567|  34.5k|            n_chars = 1;
39568|  34.5k|        }
39569|   142k|        else
39570|   142k|        {
39571|   142k|            abs_value = static_cast<number_magnitude_t>(x);
39572|   142k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|   176k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 160k, False: 16.1k]
  ------------------
39577|   160k|        {
39578|   160k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|   160k|            const std::uint64_t upper = value / 100000000u;
39580|   160k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 22.1k, False: 138k]
  ------------------
39581|   160k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|   160k|            char* const p = buffer_ptr + n_chars;
39583|   160k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|   160k|            n_chars += 8 - leading;
39585|   160k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 22.1k, False: 138k]
  ------------------
39586|  22.1k|            {
39587|  22.1k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  22.1k|                n_chars += 8;
39589|  22.1k|            }
39590|   160k|            write_buffer_pos += n_chars;
39591|   160k|            return;
39592|   160k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  16.1k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 16.1k, False: 0]
  ------------------
39596|  16.1k|        {
39597|  16.1k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  16.1k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  16.1k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  16.1k|            const std::uint64_t middle = low16 / 100000000u;
39601|  16.1k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  16.1k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  16.1k|            char* const p = buffer_ptr + n_chars;
39604|  16.1k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  16.1k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  16.1k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  16.1k|            write_buffer_pos += n_chars + 24 - leading;
39608|  16.1k|            return;
39609|  16.1k|        }
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|   176k|    {
39410|   176k|        return x < 0;
39411|   176k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE19dump_unsigned_valueEm:
38196|   229k|    {
38197|   229k|        dump_integer(x);
38198|   229k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16dump_float_valueEd:
38201|   314k|    {
38202|   314k|        dump_float(x);
38203|   314k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEd:
39652|   314k|    {
39653|       |        // NaN / inf
39654|   314k|        if (!std::isfinite(x))
  ------------------
  |  Branch (39654:13): [True: 13.3k, False: 300k]
  ------------------
39655|  13.3k|        {
39656|  13.3k|            put_literal("null");
39657|  13.3k|            return;
39658|  13.3k|        }
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|   300k|        static constexpr bool is_ieee_single_or_double
39667|   300k|            = (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|   300k|        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
39671|   300k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEdNS4_17integral_constantIbLb1EEE:
39674|   300k|    {
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|   300k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|   300k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 902, False: 299k]
  |  |  ------------------
  ------------------
39678|    902|        {
39679|    902|            flush();
39680|    902|        }
39681|   300k|        auto* begin = write_buffer.data() + write_buffer_pos;
39682|   300k|        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
39683|   300k|        write_buffer_pos += static_cast<std::size_t>(end - begin);
39684|   300k|    }
_ZN8nlohmann16json_abi_v3_12_06detail8to_charsIdEEPcS3_PKcT_:
37575|   300k|{
37576|   300k|    JSON_ASSERT(std::isfinite(value));
  ------------------
  |  | 2653|   300k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37576:5): [True: 300k, False: 0]
  ------------------
37577|       |
37578|       |    // Use signbit(value) instead of (value < 0) since signbit works for -0.
37579|   300k|    if (std::signbit(value))
  ------------------
  |  Branch (37579:9): [True: 45.8k, False: 254k]
  ------------------
37580|  45.8k|    {
37581|  45.8k|        value = -value;
37582|  45.8k|        *first++ = '-';
37583|  45.8k|    }
37584|       |
37585|   300k|#ifdef __GNUC__
37586|   300k|    JSON_HEDLEY_DIAGNOSTIC_PUSH
37587|   300k|    JSON_HEDLEY_PRAGMA(GCC diagnostic ignored "-Wfloat-equal")
37588|   300k|#endif
37589|   300k|    if (value == 0) // +-0
  ------------------
  |  Branch (37589:9): [True: 13.0k, False: 287k]
  ------------------
37590|  13.0k|    {
37591|  13.0k|        *first++ = '0';
37592|       |        // Make it look like a floating-point number (#362, #378)
37593|  13.0k|        *first++ = '.';
37594|  13.0k|        *first++ = '0';
37595|  13.0k|        return first;
37596|  13.0k|    }
37597|   287k|#ifdef __GNUC__
37598|   287k|    JSON_HEDLEY_DIAGNOSTIC_POP
37599|   287k|#endif
37600|       |
37601|   287k|    return dtoa_impl::write_positive(first, last, value);
37602|   300k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_:
37555|   287k|{
37556|   287k|    return write_positive(first, last, value, is_binary64<FloatType> {});
37557|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_NSt3__117integral_constantIbLb1EEE:
37537|   287k|{
37538|   287k|    return write_positive_zmij(first, last, value);
37539|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl19write_positive_zmijIdEEPcS4_PKcT_:
37515|   287k|{
37516|   287k|    static_assert(is_binary64<FloatType>::value,
37517|   287k|                  "internal error: the conversion of Zmij needs IEEE 754 binary64 numbers");
37518|   287k|    const auto bits = bit_cast<std::uint64_t>(value);
37519|   287k|    const zmij::shortest_decimal d = zmij::to_shortest(bits);
37520|   287k|    if (JSON_HEDLEY_LIKELY(last - first >= 41))
  ------------------
  |  | 1696|   287k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 287k, False: 0]
  |  |  ------------------
  ------------------
37521|   287k|    {
37522|   287k|        return write_shortest(first, d);
37523|   287k|    }
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|   287k|{
 9130|   287k|    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|   287k|    To to {};
 9135|   287k|    std::memcpy(&to, &from, sizeof(To));
 9136|   287k|    return to;
 9137|   287k|#endif
 9138|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11to_shortestEm:
36050|   287k|{
36051|   287k|    constexpr int extra_shift = 9;
36052|   287k|    const auto raw_exp = static_cast<int>((bits >> 52u) & 0x7FFu);
36053|   287k|    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|   287k|    const bool regular = bin_sig != 0 || raw_exp <= 1;
  ------------------
  |  Branch (36055:26): [True: 279k, False: 8.01k]
  |  Branch (36055:42): [True: 0, False: 8.01k]
  ------------------
36056|   287k|    const int bin_exp = (raw_exp == 0 ? 1 : raw_exp) - 1075;
  ------------------
  |  Branch (36056:26): [True: 3.28k, False: 284k]
  ------------------
36057|   287k|    if (raw_exp != 0)
  ------------------
  |  Branch (36057:9): [True: 284k, False: 3.28k]
  ------------------
36058|   284k|    {
36059|   284k|        bin_sig |= std::uint64_t{1} << 52u;
36060|   284k|    }
36061|       |    // floor(log10(2^bin_exp)), or floor(log10(3/4 * 2^bin_exp)) for the irregular case
36062|   287k|    const int dec_exp = ((bin_exp * 315653) - (regular ? 0 : 131072)) >> 20;
  ------------------
  |  Branch (36062:48): [True: 279k, False: 8.01k]
  ------------------
36063|       |    // scaled by 10^(-dec_exp - 1): the integral part is the shorter candidate
36064|   287k|    const int shift = bin_exp + ((-(dec_exp + 1) * 217707) >> 16) + 1 + extra_shift;
36065|   287k|    const uint128_parts p10 = pow10(-dec_exp - 1);
36066|   287k|    const uint128_parts p = umul192_hi128(p10.high, p10.low, bin_sig << static_cast<unsigned>(shift));
36067|   287k|    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|   287k|    constexpr auto fractional_low_shift = static_cast<unsigned>(extra_shift);
36070|   287k|    constexpr unsigned fractional_high_shift = 64u - fractional_low_shift;
36071|   287k|    const std::uint64_t fractional = (p.high << fractional_high_shift) | (p.low >> fractional_low_shift);
36072|   287k|    std::uint64_t digit = 0;
36073|   287k|    bool round_up = false;
36074|   287k|    bool round_down = false;
36075|   287k|    if (JSON_HEDLEY_LIKELY(regular))
  ------------------
  |  | 1696|   287k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 279k, False: 8.01k]
  |  |  ------------------
  ------------------
36076|   279k|    {
36077|   279k|        const std::uint64_t half_ulp = (p10.high >> static_cast<unsigned>(extra_shift + 1 - shift)) + (1 - (bin_sig & 1u));
36078|   279k|        round_up = fractional + half_ulp < fractional;
36079|   279k|        round_down = half_ulp > fractional;
36080|       |        // the last digit of the longer candidate, rounded to nearest
36081|   279k|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) + 6);
36082|   279k|        if (fractional == (std::uint64_t{1} << 62u))
  ------------------
  |  Branch (36082:13): [True: 7.31k, False: 272k]
  ------------------
36083|  7.31k|        {
36084|  7.31k|            digit = 2; // 2.5 rounds to 2
36085|  7.31k|        }
36086|   279k|    }
36087|  8.01k|    else
36088|  8.01k|    {
36089|  8.01k|        const std::uint64_t half_ulp = p10.high >> static_cast<unsigned>(extra_shift + 1 - shift);
36090|  8.01k|        round_up = half_ulp > ~std::uint64_t{0} - fractional;
36091|  8.01k|        round_down = (half_ulp >> 1u) > fractional;
36092|  8.01k|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) - 1);
36093|  8.01k|        const std::uint64_t lowest = umul128_add_hi64(fractional - (half_ulp >> 1u), 10, ~std::uint64_t{0});
36094|  8.01k|        digit = digit < lowest ? lowest : digit;
  ------------------
  |  Branch (36094:17): [True: 4.86k, False: 3.15k]
  ------------------
36095|  8.01k|    }
36096|   287k|    integral += round_up ? 1u : 0u;
  ------------------
  |  Branch (36096:17): [True: 18.1k, False: 269k]
  ------------------
36097|       |    // if the shorter candidate is outside the rounding interval: one digit more
36098|   287k|    return shortest_decimal{integral, dec_exp, static_cast<unsigned char>(digit), !round_up && !round_down};
  ------------------
  |  Branch (36098:83): [True: 269k, False: 18.1k]
  |  Branch (36098:96): [True: 115k, False: 154k]
  ------------------
36099|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij5pow10Ei:
36004|   287k|{
36005|   287k|    if (k > pow5_128_largest_power)
  ------------------
  |  Branch (36005:9): [True: 4.62k, False: 283k]
  ------------------
36006|  4.62k|    {
36007|  4.62k|        return compute_pow10(k); // (only for the smallest doubles)
36008|  4.62k|    }
36009|   283k|    const auto i = 2 * static_cast<std::size_t>(k - pow5_128_smallest_power);
36010|   283k|    uint128_parts r{pow5_128()[i + 1], pow5_128()[i]};
36011|   283k|    const std::uint64_t adjust = static_cast<unsigned>(k + 27) < 27u ? 1u : 0u;
  ------------------
  |  Branch (36011:34): [True: 10.3k, False: 272k]
  ------------------
36012|   283k|    r.high -= r.low < adjust ? 1u : 0u;
  ------------------
  |  Branch (36012:15): [True: 0, False: 283k]
  ------------------
36013|   283k|    r.low -= adjust;
36014|   283k|    return r;
36015|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13compute_pow10Ei:
35974|  4.62k|{
35975|  4.62k|    const auto i = static_cast<unsigned>(k + 307);
35976|  4.62k|    const std::uint64_t m = pow10_minor()[(i + 24) % 28];
35977|  4.62k|    const std::size_t j = 2 * static_cast<std::size_t>((i + 24) / 28);
35978|  4.62k|    const std::uint64_t h_hi = pow10_major()[j];
35979|  4.62k|    const std::uint64_t h_lo = pow10_major()[j + 1];
35980|  4.62k|    const std::uint64_t h1 = full_multiplication(h_lo, m).high;
35981|  4.62k|    const std::uint64_t c0 = h_lo * m;
35982|  4.62k|    const std::uint64_t c1 = h1 + (h_hi * m);
35983|  4.62k|    const std::uint64_t c2 = (c1 < h1 ? 1u : 0u) + full_multiplication(h_hi, m).high;
  ------------------
  |  Branch (35983:31): [True: 250, False: 4.37k]
  ------------------
35984|  4.62k|    uint128_parts r{};
35985|  4.62k|    if ((c2 >> 63u) != 0)
  ------------------
  |  Branch (35985:9): [True: 970, False: 3.65k]
  ------------------
35986|    970|    {
35987|    970|        r.high = c2;
35988|    970|        r.low = c1;
35989|    970|    }
35990|  3.65k|    else
35991|  3.65k|    {
35992|  3.65k|        r.high = (c2 << 1u) | (c1 >> 63u);
35993|  3.65k|        r.low = (c1 << 1u) | (c0 >> 63u);
35994|  3.65k|    }
35995|  4.62k|    r.low -= (pow10_fixups()[i >> 5u] >> (i & 31u)) & 1u;
35996|  4.62k|    return r;
35997|  4.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_minorEv:
35922|  4.62k|{
35923|  4.62k|    static const std::array<std::uint64_t, 28> table =
35924|  4.62k|    {
35925|  4.62k|        {
35926|  4.62k|            0x8000000000000000u, 0xa000000000000000u, 0xc800000000000000u, 0xfa00000000000000u, 0x9c40000000000000u,
35927|  4.62k|            0xc350000000000000u, 0xf424000000000000u, 0x9896800000000000u, 0xbebc200000000000u, 0xee6b280000000000u,
35928|  4.62k|            0x9502f90000000000u, 0xba43b74000000000u, 0xe8d4a51000000000u, 0x9184e72a00000000u, 0xb5e620f480000000u,
35929|  4.62k|            0xe35fa931a0000000u, 0x8e1bc9bf04000000u, 0xb1a2bc2ec5000000u, 0xde0b6b3a76400000u, 0x8ac7230489e80000u,
35930|  4.62k|            0xad78ebc5ac620000u, 0xd8d726b7177a8000u, 0x878678326eac9000u, 0xa968163f0a57b400u, 0xd3c21bcecceda100u,
35931|  4.62k|            0x84595161401484a0u, 0xa56fa5b99019a5c8u, 0xcecb8f27f4200f3au
35932|  4.62k|        }
35933|  4.62k|    };
35934|  4.62k|    return table;
35935|  4.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_majorEv:
35939|  9.25k|{
35940|  9.25k|    static const std::array<std::uint64_t, 50> table =
35941|  9.25k|    {
35942|  9.25k|        {
35943|  9.25k|            0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3eu, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44ddau, 0xb1442798f49ffb4au, 0x99cd11cfdf41779du,
35944|  9.25k|            0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u, 0xb4bca50b065abe63u, 0x0fed077a756b53aau, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d543u,
35945|  9.25k|            0xb84687c269ef3bfbu, 0x3d5d514f40eea742u, 0xba121a4650e4ddebu, 0x92f34d62616ce413u, 0xbbe226efb628afeau, 0x890489f70a55368cu,
35946|  9.25k|            0xbdb6b8e905cb600fu, 0x5400e987bbc1c921u, 0xbf8fdb78849a5f96u, 0xde98520472bdd034u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
35947|  9.25k|            0xc350000000000000u, 0x0000000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef6u,
35948|  9.25k|            0xc913936dd571c84cu, 0x03bc3a19cd1e38eau, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc6u, 0xcd036837130890a1u, 0x36dba887c37a8c10u,
35949|  9.25k|            0xcf02b2c21207ef2eu, 0x94f967e45e03f4bcu, 0xd106f86e69d785c7u, 0xe13336d701beba52u, 0xd31045a8341ca07cu, 0x1ede48111209a051u,
35950|  9.25k|            0xd51ea6fa85785631u, 0x552a74227f3ea566u, 0xd732290fbacaf133u, 0xa97c177947ad4096u, 0xd94ad8b1c7380874u, 0x18375281ae7822bdu,
35951|  9.25k|            0xdb68c2ca82ed2a05u, 0xa67398db9f6820e1u
35952|  9.25k|        }
35953|  9.25k|    };
35954|  9.25k|    return table;
35955|  9.25k|}
_ZN8nlohmann16json_abi_v3_12_06detail19full_multiplicationEmm:
 9195|   905k|{
 9196|   905k|#if defined(__SIZEOF_INT128__)
 9197|   905k|    __extension__ using uint128 = unsigned __int128;
 9198|   905k|    const uint128 r = static_cast<uint128>(a) * b;
 9199|   905k|    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|   905k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij12pow10_fixupsEv:
35959|  4.62k|{
35960|  4.62k|    static const std::array<std::uint32_t, 21> table =
35961|  4.62k|    {
35962|  4.62k|        {
35963|  4.62k|            0x8d8fc810u, 0x06100293u, 0x19000000u, 0x00100000u, 0x00000908u, 0x00000000u, 0x04e00300u, 0x3807e0b2u, 0x3d83d793u, 0x0006f5ccu,
35964|  4.62k|            0x00000000u, 0xffff0000u, 0x8076337du, 0x4ff45ba0u, 0x09405033u, 0x034376d9u, 0x09000000u, 0x4e100501u, 0x076d14dcu, 0xf964f45eu,
35965|  4.62k|            0x0000003du
35966|  4.62k|        }
35967|  4.62k|    };
35968|  4.62k|    return table;
35969|  4.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail8pow5_128Ev:
11090|   590k|{
11091|   590k|    static const std::array<std::uint64_t, 1302> table =
11092|   590k|    {
11093|   590k|        {
11094|   590k|            0xeef453d6923bd65au, 0x113faa2906a13b3fu, 0x9558b4661b6565f8u, 0x4ac7ca59a424c507u,
11095|   590k|            0xbaaee17fa23ebf76u, 0x5d79bcf00d2df649u, 0xe95a99df8ace6f53u, 0xf4d82c2c107973dcu,
11096|   590k|            0x91d8a02bb6c10594u, 0x79071b9b8a4be869u, 0xb64ec836a47146f9u, 0x9748e2826cdee284u,
11097|   590k|            0xe3e27a444d8d98b7u, 0xfd1b1b2308169b25u, 0x8e6d8c6ab0787f72u, 0xfe30f0f5e50e20f7u,
11098|   590k|            0xb208ef855c969f4fu, 0xbdbd2d335e51a935u, 0xde8b2b66b3bc4723u, 0xad2c788035e61382u,
11099|   590k|            0x8b16fb203055ac76u, 0x4c3bcb5021afcc31u, 0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3du,
11100|   590k|            0xd953e8624b85dd78u, 0xd71d6dad34a2af0du, 0x87d4713d6f33aa6bu, 0x8672648c40e5ad68u,
11101|   590k|            0xa9c98d8ccb009506u, 0x680efdaf511f18c2u, 0xd43bf0effdc0ba48u, 0x0212bd1b2566def2u,
11102|   590k|            0x84a57695fe98746du, 0x014bb630f7604b57u, 0xa5ced43b7e3e9188u, 0x419ea3bd35385e2du,
11103|   590k|            0xcf42894a5dce35eau, 0x52064cac828675b9u, 0x818995ce7aa0e1b2u, 0x7343efebd1940993u,
11104|   590k|            0xa1ebfb4219491a1fu, 0x1014ebe6c5f90bf8u, 0xca66fa129f9b60a6u, 0xd41a26e077774ef6u,
11105|   590k|            0xfd00b897478238d0u, 0x8920b098955522b4u, 0x9e20735e8cb16382u, 0x55b46e5f5d5535b0u,
11106|   590k|            0xc5a890362fddbc62u, 0xeb2189f734aa831du, 0xf712b443bbd52b7bu, 0xa5e9ec7501d523e4u,
11107|   590k|            0x9a6bb0aa55653b2du, 0x47b233c92125366eu, 0xc1069cd4eabe89f8u, 0x999ec0bb696e840au,
11108|   590k|            0xf148440a256e2c76u, 0xc00670ea43ca250du, 0x96cd2a865764dbcau, 0x380406926a5e5728u,
11109|   590k|            0xbc807527ed3e12bcu, 0xc605083704f5ecf2u, 0xeba09271e88d976bu, 0xf7864a44c633682eu,
11110|   590k|            0x93445b8731587ea3u, 0x7ab3ee6afbe0211du, 0xb8157268fdae9e4cu, 0x5960ea05bad82964u,
11111|   590k|            0xe61acf033d1a45dfu, 0x6fb92487298e33bdu, 0x8fd0c16206306babu, 0xa5d3b6d479f8e056u,
11112|   590k|            0xb3c4f1ba87bc8696u, 0x8f48a4899877186cu, 0xe0b62e2929aba83cu, 0x331acdabfe94de87u,
11113|   590k|            0x8c71dcd9ba0b4925u, 0x9ff0c08b7f1d0b14u, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44dd9u,
11114|   590k|            0xdb71e91432b1a24au, 0xc9e82cd9f69d6150u, 0x892731ac9faf056eu, 0xbe311c083a225cd2u,
11115|   590k|            0xab70fe17c79ac6cau, 0x6dbd630a48aaf406u, 0xd64d3d9db981787du, 0x092cbbccdad5b108u,
11116|   590k|            0x85f0468293f0eb4eu, 0x25bbf56008c58ea5u, 0xa76c582338ed2621u, 0xaf2af2b80af6f24eu,
11117|   590k|            0xd1476e2c07286faau, 0x1af5af660db4aee1u, 0x82cca4db847945cau, 0x50d98d9fc890ed4du,
11118|   590k|            0xa37fce126597973cu, 0xe50ff107bab528a0u, 0xcc5fc196fefd7d0cu, 0x1e53ed49a96272c8u,
11119|   590k|            0xff77b1fcbebcdc4fu, 0x25e8e89c13bb0f7au, 0x9faacf3df73609b1u, 0x77b191618c54e9acu,
11120|   590k|            0xc795830d75038c1du, 0xd59df5b9ef6a2417u, 0xf97ae3d0d2446f25u, 0x4b0573286b44ad1du,
11121|   590k|            0x9becce62836ac577u, 0x4ee367f9430aec32u, 0xc2e801fb244576d5u, 0x229c41f793cda73fu,
11122|   590k|            0xf3a20279ed56d48au, 0x6b43527578c1110fu, 0x9845418c345644d6u, 0x830a13896b78aaa9u,
11123|   590k|            0xbe5691ef416bd60cu, 0x23cc986bc656d553u, 0xedec366b11c6cb8fu, 0x2cbfbe86b7ec8aa8u,
11124|   590k|            0x94b3a202eb1c3f39u, 0x7bf7d71432f3d6a9u, 0xb9e08a83a5e34f07u, 0xdaf5ccd93fb0cc53u,
11125|   590k|            0xe858ad248f5c22c9u, 0xd1b3400f8f9cff68u, 0x91376c36d99995beu, 0x23100809b9c21fa1u,
11126|   590k|            0xb58547448ffffb2du, 0xabd40a0c2832a78au, 0xe2e69915b3fff9f9u, 0x16c90c8f323f516cu,
11127|   590k|            0x8dd01fad907ffc3bu, 0xae3da7d97f6792e3u, 0xb1442798f49ffb4au, 0x99cd11cfdf41779cu,
11128|   590k|            0xdd95317f31c7fa1du, 0x40405643d711d583u, 0x8a7d3eef7f1cfc52u, 0x482835ea666b2572u,
11129|   590k|            0xad1c8eab5ee43b66u, 0xda3243650005eecfu, 0xd863b256369d4a40u, 0x90bed43e40076a82u,
11130|   590k|            0x873e4f75e2224e68u, 0x5a7744a6e804a291u, 0xa90de3535aaae202u, 0x711515d0a205cb36u,
11131|   590k|            0xd3515c2831559a83u, 0x0d5a5b44ca873e03u, 0x8412d9991ed58091u, 0xe858790afe9486c2u,
11132|   590k|            0xa5178fff668ae0b6u, 0x626e974dbe39a872u, 0xce5d73ff402d98e3u, 0xfb0a3d212dc8128fu,
11133|   590k|            0x80fa687f881c7f8eu, 0x7ce66634bc9d0b99u, 0xa139029f6a239f72u, 0x1c1fffc1ebc44e80u,
11134|   590k|            0xc987434744ac874eu, 0xa327ffb266b56220u, 0xfbe9141915d7a922u, 0x4bf1ff9f0062baa8u,
11135|   590k|            0x9d71ac8fada6c9b5u, 0x6f773fc3603db4a9u, 0xc4ce17b399107c22u, 0xcb550fb4384d21d3u,
11136|   590k|            0xf6019da07f549b2bu, 0x7e2a53a146606a48u, 0x99c102844f94e0fbu, 0x2eda7444cbfc426du,
11137|   590k|            0xc0314325637a1939u, 0xfa911155fefb5308u, 0xf03d93eebc589f88u, 0x793555ab7eba27cau,
11138|   590k|            0x96267c7535b763b5u, 0x4bc1558b2f3458deu, 0xbbb01b9283253ca2u, 0x9eb1aaedfb016f16u,
11139|   590k|            0xea9c227723ee8bcbu, 0x465e15a979c1cadcu, 0x92a1958a7675175fu, 0x0bfacd89ec191ec9u,
11140|   590k|            0xb749faed14125d36u, 0xcef980ec671f667bu, 0xe51c79a85916f484u, 0x82b7e12780e7401au,
11141|   590k|            0x8f31cc0937ae58d2u, 0xd1b2ecb8b0908810u, 0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u,
11142|   590k|            0xdfbdcece67006ac9u, 0x67a791e093e1d49au, 0x8bd6a141006042bdu, 0xe0c8bb2c5c6d24e0u,
11143|   590k|            0xaecc49914078536du, 0x58fae9f773886e18u, 0xda7f5bf590966848u, 0xaf39a475506a899eu,
11144|   590k|            0x888f99797a5e012du, 0x6d8406c952429603u, 0xaab37fd7d8f58178u, 0xc8e5087ba6d33b83u,
11145|   590k|            0xd5605fcdcf32e1d6u, 0xfb1e4a9a90880a64u, 0x855c3be0a17fcd26u, 0x5cf2eea09a55067fu,
11146|   590k|            0xa6b34ad8c9dfc06fu, 0xf42faa48c0ea481eu, 0xd0601d8efc57b08bu, 0xf13b94daf124da26u,
11147|   590k|            0x823c12795db6ce57u, 0x76c53d08d6b70858u, 0xa2cb1717b52481edu, 0x54768c4b0c64ca6eu,
11148|   590k|            0xcb7ddcdda26da268u, 0xa9942f5dcf7dfd09u, 0xfe5d54150b090b02u, 0xd3f93b35435d7c4cu,
11149|   590k|            0x9efa548d26e5a6e1u, 0xc47bc5014a1a6dafu, 0xc6b8e9b0709f109au, 0x359ab6419ca1091bu,
11150|   590k|            0xf867241c8cc6d4c0u, 0xc30163d203c94b62u, 0x9b407691d7fc44f8u, 0x79e0de63425dcf1du,
11151|   590k|            0xc21094364dfb5636u, 0x985915fc12f542e4u, 0xf294b943e17a2bc4u, 0x3e6f5b7b17b2939du,
11152|   590k|            0x979cf3ca6cec5b5au, 0xa705992ceecf9c42u, 0xbd8430bd08277231u, 0x50c6ff782a838353u,
11153|   590k|            0xece53cec4a314ebdu, 0xa4f8bf5635246428u, 0x940f4613ae5ed136u, 0x871b7795e136be99u,
11154|   590k|            0xb913179899f68584u, 0x28e2557b59846e3fu, 0xe757dd7ec07426e5u, 0x331aeada2fe589cfu,
11155|   590k|            0x9096ea6f3848984fu, 0x3ff0d2c85def7621u, 0xb4bca50b065abe63u, 0x0fed077a756b53a9u,
11156|   590k|            0xe1ebce4dc7f16dfbu, 0xd3e8495912c62894u, 0x8d3360f09cf6e4bdu, 0x64712dd7abbbd95cu,
11157|   590k|            0xb080392cc4349decu, 0xbd8d794d96aacfb3u, 0xdca04777f541c567u, 0xecf0d7a0fc5583a0u,
11158|   590k|            0x89e42caaf9491b60u, 0xf41686c49db57244u, 0xac5d37d5b79b6239u, 0x311c2875c522ced5u,
11159|   590k|            0xd77485cb25823ac7u, 0x7d633293366b828bu, 0x86a8d39ef77164bcu, 0xae5dff9c02033197u,
11160|   590k|            0xa8530886b54dbdebu, 0xd9f57f830283fdfcu, 0xd267caa862a12d66u, 0xd072df63c324fd7bu,
11161|   590k|            0x8380dea93da4bc60u, 0x4247cb9e59f71e6du, 0xa46116538d0deb78u, 0x52d9be85f074e608u,
11162|   590k|            0xcd795be870516656u, 0x67902e276c921f8bu, 0x806bd9714632dff6u, 0x00ba1cd8a3db53b6u,
11163|   590k|            0xa086cfcd97bf97f3u, 0x80e8a40eccd228a4u, 0xc8a883c0fdaf7df0u, 0x6122cd128006b2cdu,
11164|   590k|            0xfad2a4b13d1b5d6cu, 0x796b805720085f81u, 0x9cc3a6eec6311a63u, 0xcbe3303674053bb0u,
11165|   590k|            0xc3f490aa77bd60fcu, 0xbedbfc4411068a9cu, 0xf4f1b4d515acb93bu, 0xee92fb5515482d44u,
11166|   590k|            0x991711052d8bf3c5u, 0x751bdd152d4d1c4au, 0xbf5cd54678eef0b6u, 0xd262d45a78a0635du,
11167|   590k|            0xef340a98172aace4u, 0x86fb897116c87c34u, 0x9580869f0e7aac0eu, 0xd45d35e6ae3d4da0u,
11168|   590k|            0xbae0a846d2195712u, 0x8974836059cca109u, 0xe998d258869facd7u, 0x2bd1a438703fc94bu,
11169|   590k|            0x91ff83775423cc06u, 0x7b6306a34627ddcfu, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d542u,
11170|   590k|            0xe41f3d6a7377eecau, 0x20caba5f1d9e4a93u, 0x8e938662882af53eu, 0x547eb47b7282ee9cu,
11171|   590k|            0xb23867fb2a35b28du, 0xe99e619a4f23aa43u, 0xdec681f9f4c31f31u, 0x6405fa00e2ec94d4u,
11172|   590k|            0x8b3c113c38f9f37eu, 0xde83bc408dd3dd04u, 0xae0b158b4738705eu, 0x9624ab50b148d445u,
11173|   590k|            0xd98ddaee19068c76u, 0x3badd624dd9b0957u, 0x87f8a8d4cfa417c9u, 0xe54ca5d70a80e5d6u,
11174|   590k|            0xa9f6d30a038d1dbcu, 0x5e9fcf4ccd211f4cu, 0xd47487cc8470652bu, 0x7647c3200069671fu,
11175|   590k|            0x84c8d4dfd2c63f3bu, 0x29ecd9f40041e073u, 0xa5fb0a17c777cf09u, 0xf468107100525890u,
11176|   590k|            0xcf79cc9db955c2ccu, 0x7182148d4066eeb4u, 0x81ac1fe293d599bfu, 0xc6f14cd848405530u,
11177|   590k|            0xa21727db38cb002fu, 0xb8ada00e5a506a7cu, 0xca9cf1d206fdc03bu, 0xa6d90811f0e4851cu,
11178|   590k|            0xfd442e4688bd304au, 0x908f4a166d1da663u, 0x9e4a9cec15763e2eu, 0x9a598e4e043287feu,
11179|   590k|            0xc5dd44271ad3cdbau, 0x40eff1e1853f29fdu, 0xf7549530e188c128u, 0xd12bee59e68ef47cu,
11180|   590k|            0x9a94dd3e8cf578b9u, 0x82bb74f8301958ceu, 0xc13a148e3032d6e7u, 0xe36a52363c1faf01u,
11181|   590k|            0xf18899b1bc3f8ca1u, 0xdc44e6c3cb279ac1u, 0x96f5600f15a7b7e5u, 0x29ab103a5ef8c0b9u,
11182|   590k|            0xbcb2b812db11a5deu, 0x7415d448f6b6f0e7u, 0xebdf661791d60f56u, 0x111b495b3464ad21u,
11183|   590k|            0x936b9fcebb25c995u, 0xcab10dd900beec34u, 0xb84687c269ef3bfbu, 0x3d5d514f40eea742u,
11184|   590k|            0xe65829b3046b0afau, 0x0cb4a5a3112a5112u, 0x8ff71a0fe2c2e6dcu, 0x47f0e785eaba72abu,
11185|   590k|            0xb3f4e093db73a093u, 0x59ed216765690f56u, 0xe0f218b8d25088b8u, 0x306869c13ec3532cu,
11186|   590k|            0x8c974f7383725573u, 0x1e414218c73a13fbu, 0xafbd2350644eeacfu, 0xe5d1929ef90898fau,
11187|   590k|            0xdbac6c247d62a583u, 0xdf45f746b74abf39u, 0x894bc396ce5da772u, 0x6b8bba8c328eb783u,
11188|   590k|            0xab9eb47c81f5114fu, 0x066ea92f3f326564u, 0xd686619ba27255a2u, 0xc80a537b0efefebdu,
11189|   590k|            0x8613fd0145877585u, 0xbd06742ce95f5f36u, 0xa798fc4196e952e7u, 0x2c48113823b73704u,
11190|   590k|            0xd17f3b51fca3a7a0u, 0xf75a15862ca504c5u, 0x82ef85133de648c4u, 0x9a984d73dbe722fbu,
11191|   590k|            0xa3ab66580d5fdaf5u, 0xc13e60d0d2e0ebbau, 0xcc963fee10b7d1b3u, 0x318df905079926a8u,
11192|   590k|            0xffbbcfe994e5c61fu, 0xfdf17746497f7052u, 0x9fd561f1fd0f9bd3u, 0xfeb6ea8bedefa633u,
11193|   590k|            0xc7caba6e7c5382c8u, 0xfe64a52ee96b8fc0u, 0xf9bd690a1b68637bu, 0x3dfdce7aa3c673b0u,
11194|   590k|            0x9c1661a651213e2du, 0x06bea10ca65c084eu, 0xc31bfa0fe5698db8u, 0x486e494fcff30a62u,
11195|   590k|            0xf3e2f893dec3f126u, 0x5a89dba3c3efccfau, 0x986ddb5c6b3a76b7u, 0xf89629465a75e01cu,
11196|   590k|            0xbe89523386091465u, 0xf6bbb397f1135823u, 0xee2ba6c0678b597fu, 0x746aa07ded582e2cu,
11197|   590k|            0x94db483840b717efu, 0xa8c2a44eb4571cdcu, 0xba121a4650e4ddebu, 0x92f34d62616ce413u,
11198|   590k|            0xe896a0d7e51e1566u, 0x77b020baf9c81d17u, 0x915e2486ef32cd60u, 0x0ace1474dc1d122eu,
11199|   590k|            0xb5b5ada8aaff80b8u, 0x0d819992132456bau, 0xe3231912d5bf60e6u, 0x10e1fff697ed6c69u,
11200|   590k|            0x8df5efabc5979c8fu, 0xca8d3ffa1ef463c1u, 0xb1736b96b6fd83b3u, 0xbd308ff8a6b17cb2u,
11201|   590k|            0xddd0467c64bce4a0u, 0xac7cb3f6d05ddbdeu, 0x8aa22c0dbef60ee4u, 0x6bcdf07a423aa96bu,
11202|   590k|            0xad4ab7112eb3929du, 0x86c16c98d2c953c6u, 0xd89d64d57a607744u, 0xe871c7bf077ba8b7u,
11203|   590k|            0x87625f056c7c4a8bu, 0x11471cd764ad4972u, 0xa93af6c6c79b5d2du, 0xd598e40d3dd89bcfu,
11204|   590k|            0xd389b47879823479u, 0x4aff1d108d4ec2c3u, 0x843610cb4bf160cbu, 0xcedf722a585139bau,
11205|   590k|            0xa54394fe1eedb8feu, 0xc2974eb4ee658828u, 0xce947a3da6a9273eu, 0x733d226229feea32u,
11206|   590k|            0x811ccc668829b887u, 0x0806357d5a3f525fu, 0xa163ff802a3426a8u, 0xca07c2dcb0cf26f7u,
11207|   590k|            0xc9bcff6034c13052u, 0xfc89b393dd02f0b5u, 0xfc2c3f3841f17c67u, 0xbbac2078d443ace2u,
11208|   590k|            0x9d9ba7832936edc0u, 0xd54b944b84aa4c0du, 0xc5029163f384a931u, 0x0a9e795e65d4df11u,
11209|   590k|            0xf64335bcf065d37du, 0x4d4617b5ff4a16d5u, 0x99ea0196163fa42eu, 0x504bced1bf8e4e45u,
11210|   590k|            0xc06481fb9bcf8d39u, 0xe45ec2862f71e1d6u, 0xf07da27a82c37088u, 0x5d767327bb4e5a4cu,
11211|   590k|            0x964e858c91ba2655u, 0x3a6a07f8d510f86fu, 0xbbe226efb628afeau, 0x890489f70a55368bu,
11212|   590k|            0xeadab0aba3b2dbe5u, 0x2b45ac74ccea842eu, 0x92c8ae6b464fc96fu, 0x3b0b8bc90012929du,
11213|   590k|            0xb77ada0617e3bbcbu, 0x09ce6ebb40173744u, 0xe55990879ddcaabdu, 0xcc420a6a101d0515u,
11214|   590k|            0x8f57fa54c2a9eab6u, 0x9fa946824a12232du, 0xb32df8e9f3546564u, 0x47939822dc96abf9u,
11215|   590k|            0xdff9772470297ebdu, 0x59787e2b93bc56f7u, 0x8bfbea76c619ef36u, 0x57eb4edb3c55b65au,
11216|   590k|            0xaefae51477a06b03u, 0xede622920b6b23f1u, 0xdab99e59958885c4u, 0xe95fab368e45ecedu,
11217|   590k|            0x88b402f7fd75539bu, 0x11dbcb0218ebb414u, 0xaae103b5fcd2a881u, 0xd652bdc29f26a119u,
11218|   590k|            0xd59944a37c0752a2u, 0x4be76d3346f0495fu, 0x857fcae62d8493a5u, 0x6f70a4400c562ddbu,
11219|   590k|            0xa6dfbd9fb8e5b88eu, 0xcb4ccd500f6bb952u, 0xd097ad07a71f26b2u, 0x7e2000a41346a7a7u,
11220|   590k|            0x825ecc24c873782fu, 0x8ed400668c0c28c8u, 0xa2f67f2dfa90563bu, 0x728900802f0f32fau,
11221|   590k|            0xcbb41ef979346bcau, 0x4f2b40a03ad2ffb9u, 0xfea126b7d78186bcu, 0xe2f610c84987bfa8u,
11222|   590k|            0x9f24b832e6b0f436u, 0x0dd9ca7d2df4d7c9u, 0xc6ede63fa05d3143u, 0x91503d1c79720dbbu,
11223|   590k|            0xf8a95fcf88747d94u, 0x75a44c6397ce912au, 0x9b69dbe1b548ce7cu, 0xc986afbe3ee11abau,
11224|   590k|            0xc24452da229b021bu, 0xfbe85badce996168u, 0xf2d56790ab41c2a2u, 0xfae27299423fb9c3u,
11225|   590k|            0x97c560ba6b0919a5u, 0xdccd879fc967d41au, 0xbdb6b8e905cb600fu, 0x5400e987bbc1c920u,
11226|   590k|            0xed246723473e3813u, 0x290123e9aab23b68u, 0x9436c0760c86e30bu, 0xf9a0b6720aaf6521u,
11227|   590k|            0xb94470938fa89bceu, 0xf808e40e8d5b3e69u, 0xe7958cb87392c2c2u, 0xb60b1d1230b20e04u,
11228|   590k|            0x90bd77f3483bb9b9u, 0xb1c6f22b5e6f48c2u, 0xb4ecd5f01a4aa828u, 0x1e38aeb6360b1af3u,
11229|   590k|            0xe2280b6c20dd5232u, 0x25c6da63c38de1b0u, 0x8d590723948a535fu, 0x579c487e5a38ad0eu,
11230|   590k|            0xb0af48ec79ace837u, 0x2d835a9df0c6d851u, 0xdcdb1b2798182244u, 0xf8e431456cf88e65u,
11231|   590k|            0x8a08f0f8bf0f156bu, 0x1b8e9ecb641b58ffu, 0xac8b2d36eed2dac5u, 0xe272467e3d222f3fu,
11232|   590k|            0xd7adf884aa879177u, 0x5b0ed81dcc6abb0fu, 0x86ccbb52ea94baeau, 0x98e947129fc2b4e9u,
11233|   590k|            0xa87fea27a539e9a5u, 0x3f2398d747b36224u, 0xd29fe4b18e88640eu, 0x8eec7f0d19a03aadu,
11234|   590k|            0x83a3eeeef9153e89u, 0x1953cf68300424acu, 0xa48ceaaab75a8e2bu, 0x5fa8c3423c052dd7u,
11235|   590k|            0xcdb02555653131b6u, 0x3792f412cb06794du, 0x808e17555f3ebf11u, 0xe2bbd88bbee40bd0u,
11236|   590k|            0xa0b19d2ab70e6ed6u, 0x5b6aceaeae9d0ec4u, 0xc8de047564d20a8bu, 0xf245825a5a445275u,
11237|   590k|            0xfb158592be068d2eu, 0xeed6e2f0f0d56712u, 0x9ced737bb6c4183du, 0x55464dd69685606bu,
11238|   590k|            0xc428d05aa4751e4cu, 0xaa97e14c3c26b886u, 0xf53304714d9265dfu, 0xd53dd99f4b3066a8u,
11239|   590k|            0x993fe2c6d07b7fabu, 0xe546a8038efe4029u, 0xbf8fdb78849a5f96u, 0xde98520472bdd033u,
11240|   590k|            0xef73d256a5c0f77cu, 0x963e66858f6d4440u, 0x95a8637627989aadu, 0xdde7001379a44aa8u,
11241|   590k|            0xbb127c53b17ec159u, 0x5560c018580d5d52u, 0xe9d71b689dde71afu, 0xaab8f01e6e10b4a6u,
11242|   590k|            0x9226712162ab070du, 0xcab3961304ca70e8u, 0xb6b00d69bb55c8d1u, 0x3d607b97c5fd0d22u,
11243|   590k|            0xe45c10c42a2b3b05u, 0x8cb89a7db77c506au, 0x8eb98a7a9a5b04e3u, 0x77f3608e92adb242u,
11244|   590k|            0xb267ed1940f1c61cu, 0x55f038b237591ed3u, 0xdf01e85f912e37a3u, 0x6b6c46dec52f6688u,
11245|   590k|            0x8b61313bbabce2c6u, 0x2323ac4b3b3da015u, 0xae397d8aa96c1b77u, 0xabec975e0a0d081au,
11246|   590k|            0xd9c7dced53c72255u, 0x96e7bd358c904a21u, 0x881cea14545c7575u, 0x7e50d64177da2e54u,
11247|   590k|            0xaa242499697392d2u, 0xdde50bd1d5d0b9e9u, 0xd4ad2dbfc3d07787u, 0x955e4ec64b44e864u,
11248|   590k|            0x84ec3c97da624ab4u, 0xbd5af13bef0b113eu, 0xa6274bbdd0fadd61u, 0xecb1ad8aeacdd58eu,
11249|   590k|            0xcfb11ead453994bau, 0x67de18eda5814af2u, 0x81ceb32c4b43fcf4u, 0x80eacf948770ced7u,
11250|   590k|            0xa2425ff75e14fc31u, 0xa1258379a94d028du, 0xcad2f7f5359a3b3eu, 0x096ee45813a04330u,
11251|   590k|            0xfd87b5f28300ca0du, 0x8bca9d6e188853fcu, 0x9e74d1b791e07e48u, 0x775ea264cf55347eu,
11252|   590k|            0xc612062576589ddau, 0x95364afe032a819eu, 0xf79687aed3eec551u, 0x3a83ddbd83f52205u,
11253|   590k|            0x9abe14cd44753b52u, 0xc4926a9672793543u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
11254|   590k|            0xf1c90080baf72cb1u, 0x5324c68b12dd6339u, 0x971da05074da7beeu, 0xd3f6fc16ebca5e04u,
11255|   590k|            0xbce5086492111aeau, 0x88f4bb1ca6bcf585u, 0xec1e4a7db69561a5u, 0x2b31e9e3d06c32e6u,
11256|   590k|            0x9392ee8e921d5d07u, 0x3aff322e62439fd0u, 0xb877aa3236a4b449u, 0x09befeb9fad487c3u,
11257|   590k|            0xe69594bec44de15bu, 0x4c2ebe687989a9b4u, 0x901d7cf73ab0acd9u, 0x0f9d37014bf60a11u,
11258|   590k|            0xb424dc35095cd80fu, 0x538484c19ef38c95u, 0xe12e13424bb40e13u, 0x2865a5f206b06fbau,
11259|   590k|            0x8cbccc096f5088cbu, 0xf93f87b7442e45d4u, 0xafebff0bcb24aafeu, 0xf78f69a51539d749u,
11260|   590k|            0xdbe6fecebdedd5beu, 0xb573440e5a884d1cu, 0x89705f4136b4a597u, 0x31680a88f8953031u,
11261|   590k|            0xabcc77118461cefcu, 0xfdc20d2b36ba7c3eu, 0xd6bf94d5e57a42bcu, 0x3d32907604691b4du,
11262|   590k|            0x8637bd05af6c69b5u, 0xa63f9a49c2c1b110u, 0xa7c5ac471b478423u, 0x0fcf80dc33721d54u,
11263|   590k|            0xd1b71758e219652bu, 0xd3c36113404ea4a9u, 0x83126e978d4fdf3bu, 0x645a1cac083126eau,
11264|   590k|            0xa3d70a3d70a3d70au, 0x3d70a3d70a3d70a4u, 0xccccccccccccccccu, 0xcccccccccccccccdu,
11265|   590k|            0x8000000000000000u, 0x0000000000000000u, 0xa000000000000000u, 0x0000000000000000u,
11266|   590k|            0xc800000000000000u, 0x0000000000000000u, 0xfa00000000000000u, 0x0000000000000000u,
11267|   590k|            0x9c40000000000000u, 0x0000000000000000u, 0xc350000000000000u, 0x0000000000000000u,
11268|   590k|            0xf424000000000000u, 0x0000000000000000u, 0x9896800000000000u, 0x0000000000000000u,
11269|   590k|            0xbebc200000000000u, 0x0000000000000000u, 0xee6b280000000000u, 0x0000000000000000u,
11270|   590k|            0x9502f90000000000u, 0x0000000000000000u, 0xba43b74000000000u, 0x0000000000000000u,
11271|   590k|            0xe8d4a51000000000u, 0x0000000000000000u, 0x9184e72a00000000u, 0x0000000000000000u,
11272|   590k|            0xb5e620f480000000u, 0x0000000000000000u, 0xe35fa931a0000000u, 0x0000000000000000u,
11273|   590k|            0x8e1bc9bf04000000u, 0x0000000000000000u, 0xb1a2bc2ec5000000u, 0x0000000000000000u,
11274|   590k|            0xde0b6b3a76400000u, 0x0000000000000000u, 0x8ac7230489e80000u, 0x0000000000000000u,
11275|   590k|            0xad78ebc5ac620000u, 0x0000000000000000u, 0xd8d726b7177a8000u, 0x0000000000000000u,
11276|   590k|            0x878678326eac9000u, 0x0000000000000000u, 0xa968163f0a57b400u, 0x0000000000000000u,
11277|   590k|            0xd3c21bcecceda100u, 0x0000000000000000u, 0x84595161401484a0u, 0x0000000000000000u,
11278|   590k|            0xa56fa5b99019a5c8u, 0x0000000000000000u, 0xcecb8f27f4200f3au, 0x0000000000000000u,
11279|   590k|            0x813f3978f8940984u, 0x4000000000000000u, 0xa18f07d736b90be5u, 0x5000000000000000u,
11280|   590k|            0xc9f2c9cd04674edeu, 0xa400000000000000u, 0xfc6f7c4045812296u, 0x4d00000000000000u,
11281|   590k|            0x9dc5ada82b70b59du, 0xf020000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u,
11282|   590k|            0xf684df56c3e01bc6u, 0xc732000000000000u, 0x9a130b963a6c115cu, 0x3c7f400000000000u,
11283|   590k|            0xc097ce7bc90715b3u, 0x4b9f100000000000u, 0xf0bdc21abb48db20u, 0x1e86d40000000000u,
11284|   590k|            0x96769950b50d88f4u, 0x1314448000000000u, 0xbc143fa4e250eb31u, 0x17d955a000000000u,
11285|   590k|            0xeb194f8e1ae525fdu, 0x5dcfab0800000000u, 0x92efd1b8d0cf37beu, 0x5aa1cae500000000u,
11286|   590k|            0xb7abc627050305adu, 0xf14a3d9e40000000u, 0xe596b7b0c643c719u, 0x6d9ccd05d0000000u,
11287|   590k|            0x8f7e32ce7bea5c6fu, 0xe4820023a2000000u, 0xb35dbf821ae4f38bu, 0xdda2802c8a800000u,
11288|   590k|            0xe0352f62a19e306eu, 0xd50b2037ad200000u, 0x8c213d9da502de45u, 0x4526f422cc340000u,
11289|   590k|            0xaf298d050e4395d6u, 0x9670b12b7f410000u, 0xdaf3f04651d47b4cu, 0x3c0cdd765f114000u,
11290|   590k|            0x88d8762bf324cd0fu, 0xa5880a69fb6ac800u, 0xab0e93b6efee0053u, 0x8eea0d047a457a00u,
11291|   590k|            0xd5d238a4abe98068u, 0x72a4904598d6d880u, 0x85a36366eb71f041u, 0x47a6da2b7f864750u,
11292|   590k|            0xa70c3c40a64e6c51u, 0x999090b65f67d924u, 0xd0cf4b50cfe20765u, 0xfff4b4e3f741cf6du,
11293|   590k|            0x82818f1281ed449fu, 0xbff8f10e7a8921a4u, 0xa321f2d7226895c7u, 0xaff72d52192b6a0du,
11294|   590k|            0xcbea6f8ceb02bb39u, 0x9bf4f8a69f764490u, 0xfee50b7025c36a08u, 0x02f236d04753d5b4u,
11295|   590k|            0x9f4f2726179a2245u, 0x01d762422c946590u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef5u,
11296|   590k|            0xf8ebad2b84e0d58bu, 0xd2e0898765a7deb2u, 0x9b934c3b330c8577u, 0x63cc55f49f88eb2fu,
11297|   590k|            0xc2781f49ffcfa6d5u, 0x3cbf6b71c76b25fbu, 0xf316271c7fc3908au, 0x8bef464e3945ef7au,
11298|   590k|            0x97edd871cfda3a56u, 0x97758bf0e3cbb5acu, 0xbde94e8e43d0c8ecu, 0x3d52eeed1cbea317u,
11299|   590k|            0xed63a231d4c4fb27u, 0x4ca7aaa863ee4bddu, 0x945e455f24fb1cf8u, 0x8fe8caa93e74ef6au,
11300|   590k|            0xb975d6b6ee39e436u, 0xb3e2fd538e122b44u, 0xe7d34c64a9c85d44u, 0x60dbbca87196b616u,
11301|   590k|            0x90e40fbeea1d3a4au, 0xbc8955e946fe31cdu, 0xb51d13aea4a488ddu, 0x6babab6398bdbe41u,
11302|   590k|            0xe264589a4dcdab14u, 0xc696963c7eed2dd1u, 0x8d7eb76070a08aecu, 0xfc1e1de5cf543ca2u,
11303|   590k|            0xb0de65388cc8ada8u, 0x3b25a55f43294bcbu, 0xdd15fe86affad912u, 0x49ef0eb713f39ebeu,
11304|   590k|            0x8a2dbf142dfcc7abu, 0x6e3569326c784337u, 0xacb92ed9397bf996u, 0x49c2c37f07965404u,
11305|   590k|            0xd7e77a8f87daf7fbu, 0xdc33745ec97be906u, 0x86f0ac99b4e8dafdu, 0x69a028bb3ded71a3u,
11306|   590k|            0xa8acd7c0222311bcu, 0xc40832ea0d68ce0cu, 0xd2d80db02aabd62bu, 0xf50a3fa490c30190u,
11307|   590k|            0x83c7088e1aab65dbu, 0x792667c6da79e0fau, 0xa4b8cab1a1563f52u, 0x577001b891185938u,
11308|   590k|            0xcde6fd5e09abcf26u, 0xed4c0226b55e6f86u, 0x80b05e5ac60b6178u, 0x544f8158315b05b4u,
11309|   590k|            0xa0dc75f1778e39d6u, 0x696361ae3db1c721u, 0xc913936dd571c84cu, 0x03bc3a19cd1e38e9u,
11310|   590k|            0xfb5878494ace3a5fu, 0x04ab48a04065c723u, 0x9d174b2dcec0e47bu, 0x62eb0d64283f9c76u,
11311|   590k|            0xc45d1df942711d9au, 0x3ba5d0bd324f8394u, 0xf5746577930d6500u, 0xca8f44ec7ee36479u,
11312|   590k|            0x9968bf6abbe85f20u, 0x7e998b13cf4e1ecbu, 0xbfc2ef456ae276e8u, 0x9e3fedd8c321a67eu,
11313|   590k|            0xefb3ab16c59b14a2u, 0xc5cfe94ef3ea101eu, 0x95d04aee3b80ece5u, 0xbba1f1d158724a12u,
11314|   590k|            0xbb445da9ca61281fu, 0x2a8a6e45ae8edc97u, 0xea1575143cf97226u, 0xf52d09d71a3293bdu,
11315|   590k|            0x924d692ca61be758u, 0x593c2626705f9c56u, 0xb6e0c377cfa2e12eu, 0x6f8b2fb00c77836cu,
11316|   590k|            0xe498f455c38b997au, 0x0b6dfb9c0f956447u, 0x8edf98b59a373fecu, 0x4724bd4189bd5eacu,
11317|   590k|            0xb2977ee300c50fe7u, 0x58edec91ec2cb657u, 0xdf3d5e9bc0f653e1u, 0x2f2967b66737e3edu,
11318|   590k|            0x8b865b215899f46cu, 0xbd79e0d20082ee74u, 0xae67f1e9aec07187u, 0xecd8590680a3aa11u,
11319|   590k|            0xda01ee641a708de9u, 0xe80e6f4820cc9495u, 0x884134fe908658b2u, 0x3109058d147fdcddu,
11320|   590k|            0xaa51823e34a7eedeu, 0xbd4b46f0599fd415u, 0xd4e5e2cdc1d1ea96u, 0x6c9e18ac7007c91au,
11321|   590k|            0x850fadc09923329eu, 0x03e2cf6bc604ddb0u, 0xa6539930bf6bff45u, 0x84db8346b786151cu,
11322|   590k|            0xcfe87f7cef46ff16u, 0xe612641865679a63u, 0x81f14fae158c5f6eu, 0x4fcb7e8f3f60c07eu,
11323|   590k|            0xa26da3999aef7749u, 0xe3be5e330f38f09du, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc5u,
11324|   590k|            0xfdcb4fa002162a63u, 0x73d9732fc7c8f7f6u, 0x9e9f11c4014dda7eu, 0x2867e7fddcdd9afau,
11325|   590k|            0xc646d63501a1511du, 0xb281e1fd541501b8u, 0xf7d88bc24209a565u, 0x1f225a7ca91a4226u,
11326|   590k|            0x9ae757596946075fu, 0x3375788de9b06958u, 0xc1a12d2fc3978937u, 0x0052d6b1641c83aeu,
11327|   590k|            0xf209787bb47d6b84u, 0xc0678c5dbd23a49au, 0x9745eb4d50ce6332u, 0xf840b7ba963646e0u,
11328|   590k|            0xbd176620a501fbffu, 0xb650e5a93bc3d898u, 0xec5d3fa8ce427affu, 0xa3e51f138ab4cebeu,
11329|   590k|            0x93ba47c980e98cdfu, 0xc66f336c36b10137u, 0xb8a8d9bbe123f017u, 0xb80b0047445d4184u,
11330|   590k|            0xe6d3102ad96cec1du, 0xa60dc059157491e5u, 0x9043ea1ac7e41392u, 0x87c89837ad68db2fu,
11331|   590k|            0xb454e4a179dd1877u, 0x29babe4598c311fbu, 0xe16a1dc9d8545e94u, 0xf4296dd6fef3d67au,
11332|   590k|            0x8ce2529e2734bb1du, 0x1899e4a65f58660cu, 0xb01ae745b101e9e4u, 0x5ec05dcff72e7f8fu,
11333|   590k|            0xdc21a1171d42645du, 0x76707543f4fa1f73u, 0x899504ae72497ebau, 0x6a06494a791c53a8u,
11334|   590k|            0xabfa45da0edbde69u, 0x0487db9d17636892u, 0xd6f8d7509292d603u, 0x45a9d2845d3c42b6u,
11335|   590k|            0x865b86925b9bc5c2u, 0x0b8a2392ba45a9b2u, 0xa7f26836f282b732u, 0x8e6cac7768d7141eu,
11336|   590k|            0xd1ef0244af2364ffu, 0x3207d795430cd926u, 0x8335616aed761f1fu, 0x7f44e6bd49e807b8u,
11337|   590k|            0xa402b9c5a8d3a6e7u, 0x5f16206c9c6209a6u, 0xcd036837130890a1u, 0x36dba887c37a8c0fu,
11338|   590k|            0x802221226be55a64u, 0xc2494954da2c9789u, 0xa02aa96b06deb0fdu, 0xf2db9baa10b7bd6cu,
11339|   590k|            0xc83553c5c8965d3du, 0x6f92829494e5acc7u, 0xfa42a8b73abbf48cu, 0xcb772339ba1f17f9u,
11340|   590k|            0x9c69a97284b578d7u, 0xff2a760414536efbu, 0xc38413cf25e2d70du, 0xfef5138519684abau,
11341|   590k|            0xf46518c2ef5b8cd1u, 0x7eb258665fc25d69u, 0x98bf2f79d5993802u, 0xef2f773ffbd97a61u,
11342|   590k|            0xbeeefb584aff8603u, 0xaafb550ffacfd8fau, 0xeeaaba2e5dbf6784u, 0x95ba2a53f983cf38u,
11343|   590k|            0x952ab45cfa97a0b2u, 0xdd945a747bf26183u, 0xba756174393d88dfu, 0x94f971119aeef9e4u,
11344|   590k|            0xe912b9d1478ceb17u, 0x7a37cd5601aab85du, 0x91abb422ccb812eeu, 0xac62e055c10ab33au,
11345|   590k|            0xb616a12b7fe617aau, 0x577b986b314d6009u, 0xe39c49765fdf9d94u, 0xed5a7e85fda0b80bu,
11346|   590k|            0x8e41ade9fbebc27du, 0x14588f13be847307u, 0xb1d219647ae6b31cu, 0x596eb2d8ae258fc8u,
11347|   590k|            0xde469fbd99a05fe3u, 0x6fca5f8ed9aef3bbu, 0x8aec23d680043beeu, 0x25de7bb9480d5854u,
11348|   590k|            0xada72ccc20054ae9u, 0xaf561aa79a10ae6au, 0xd910f7ff28069da4u, 0x1b2ba1518094da04u,
11349|   590k|            0x87aa9aff79042286u, 0x90fb44d2f05d0842u, 0xa99541bf57452b28u, 0x353a1607ac744a53u,
11350|   590k|            0xd3fa922f2d1675f2u, 0x42889b8997915ce8u, 0x847c9b5d7c2e09b7u, 0x69956135febada11u,
11351|   590k|            0xa59bc234db398c25u, 0x43fab9837e699095u, 0xcf02b2c21207ef2eu, 0x94f967e45e03f4bbu,
11352|   590k|            0x8161afb94b44f57du, 0x1d1be0eebac278f5u, 0xa1ba1ba79e1632dcu, 0x6462d92a69731732u,
11353|   590k|            0xca28a291859bbf93u, 0x7d7b8f7503cfdcfeu, 0xfcb2cb35e702af78u, 0x5cda735244c3d43eu,
11354|   590k|            0x9defbf01b061adabu, 0x3a0888136afa64a7u, 0xc56baec21c7a1916u, 0x088aaa1845b8fdd0u,
11355|   590k|            0xf6c69a72a3989f5bu, 0x8aad549e57273d45u, 0x9a3c2087a63f6399u, 0x36ac54e2f678864bu,
11356|   590k|            0xc0cb28a98fcf3c7fu, 0x84576a1bb416a7ddu, 0xf0fdf2d3f3c30b9fu, 0x656d44a2a11c51d5u,
11357|   590k|            0x969eb7c47859e743u, 0x9f644ae5a4b1b325u, 0xbc4665b596706114u, 0x873d5d9f0dde1feeu,
11358|   590k|            0xeb57ff22fc0c7959u, 0xa90cb506d155a7eau, 0x9316ff75dd87cbd8u, 0x09a7f12442d588f2u,
11359|   590k|            0xb7dcbf5354e9beceu, 0x0c11ed6d538aeb2fu, 0xe5d3ef282a242e81u, 0x8f1668c8a86da5fau,
11360|   590k|            0x8fa475791a569d10u, 0xf96e017d694487bcu, 0xb38d92d760ec4455u, 0x37c981dcc395a9acu,
11361|   590k|            0xe070f78d3927556au, 0x85bbe253f47b1417u, 0x8c469ab843b89562u, 0x93956d7478ccec8eu,
11362|   590k|            0xaf58416654a6babbu, 0x387ac8d1970027b2u, 0xdb2e51bfe9d0696au, 0x06997b05fcc0319eu,
11363|   590k|            0x88fcf317f22241e2u, 0x441fece3bdf81f03u, 0xab3c2fddeeaad25au, 0xd527e81cad7626c3u,
11364|   590k|            0xd60b3bd56a5586f1u, 0x8a71e223d8d3b074u, 0x85c7056562757456u, 0xf6872d5667844e49u,
11365|   590k|            0xa738c6bebb12d16cu, 0xb428f8ac016561dbu, 0xd106f86e69d785c7u, 0xe13336d701beba52u,
11366|   590k|            0x82a45b450226b39cu, 0xecc0024661173473u, 0xa34d721642b06084u, 0x27f002d7f95d0190u,
11367|   590k|            0xcc20ce9bd35c78a5u, 0x31ec038df7b441f4u, 0xff290242c83396ceu, 0x7e67047175a15271u,
11368|   590k|            0x9f79a169bd203e41u, 0x0f0062c6e984d386u, 0xc75809c42c684dd1u, 0x52c07b78a3e60868u,
11369|   590k|            0xf92e0c3537826145u, 0xa7709a56ccdf8a82u, 0x9bbcc7a142b17ccbu, 0x88a66076400bb691u,
11370|   590k|            0xc2abf989935ddbfeu, 0x6acff893d00ea435u, 0xf356f7ebf83552feu, 0x0583f6b8c4124d43u,
11371|   590k|            0x98165af37b2153deu, 0xc3727a337a8b704au, 0xbe1bf1b059e9a8d6u, 0x744f18c0592e4c5cu,
11372|   590k|            0xeda2ee1c7064130cu, 0x1162def06f79df73u, 0x9485d4d1c63e8be7u, 0x8addcb5645ac2ba8u,
11373|   590k|            0xb9a74a0637ce2ee1u, 0x6d953e2bd7173692u, 0xe8111c87c5c1ba99u, 0xc8fa8db6ccdd0437u,
11374|   590k|            0x910ab1d4db9914a0u, 0x1d9c9892400a22a2u, 0xb54d5e4a127f59c8u, 0x2503beb6d00cab4bu,
11375|   590k|            0xe2a0b5dc971f303au, 0x2e44ae64840fd61du, 0x8da471a9de737e24u, 0x5ceaecfed289e5d2u,
11376|   590k|            0xb10d8e1456105dadu, 0x7425a83e872c5f47u, 0xdd50f1996b947518u, 0xd12f124e28f77719u,
11377|   590k|            0x8a5296ffe33cc92fu, 0x82bd6b70d99aaa6fu, 0xace73cbfdc0bfb7bu, 0x636cc64d1001550bu,
11378|   590k|            0xd8210befd30efa5au, 0x3c47f7e05401aa4eu, 0x8714a775e3e95c78u, 0x65acfaec34810a71u,
11379|   590k|            0xa8d9d1535ce3b396u, 0x7f1839a741a14d0du, 0xd31045a8341ca07cu, 0x1ede48111209a050u,
11380|   590k|            0x83ea2b892091e44du, 0x934aed0aab460432u, 0xa4e4b66b68b65d60u, 0xf81da84d5617853fu,
11381|   590k|            0xce1de40642e3f4b9u, 0x36251260ab9d668eu, 0x80d2ae83e9ce78f3u, 0xc1d72b7c6b426019u,
11382|   590k|            0xa1075a24e4421730u, 0xb24cf65b8612f81fu, 0xc94930ae1d529cfcu, 0xdee033f26797b627u,
11383|   590k|            0xfb9b7cd9a4a7443cu, 0x169840ef017da3b1u, 0x9d412e0806e88aa5u, 0x8e1f289560ee864eu,
11384|   590k|            0xc491798a08a2ad4eu, 0xf1a6f2bab92a27e2u, 0xf5b5d7ec8acb58a2u, 0xae10af696774b1dbu,
11385|   590k|            0x9991a6f3d6bf1765u, 0xacca6da1e0a8ef29u, 0xbff610b0cc6edd3fu, 0x17fd090a58d32af3u,
11386|   590k|            0xeff394dcff8a948eu, 0xddfc4b4cef07f5b0u, 0x95f83d0a1fb69cd9u, 0x4abdaf101564f98eu,
11387|   590k|            0xbb764c4ca7a4440fu, 0x9d6d1ad41abe37f1u, 0xea53df5fd18d5513u, 0x84c86189216dc5edu,
11388|   590k|            0x92746b9be2f8552cu, 0x32fd3cf5b4e49bb4u, 0xb7118682dbb66a77u, 0x3fbc8c33221dc2a1u,
11389|   590k|            0xe4d5e82392a40515u, 0x0fabaf3feaa5334au, 0x8f05b1163ba6832du, 0x29cb4d87f2a7400eu,
11390|   590k|            0xb2c71d5bca9023f8u, 0x743e20e9ef511012u, 0xdf78e4b2bd342cf6u, 0x914da9246b255416u,
11391|   590k|            0x8bab8eefb6409c1au, 0x1ad089b6c2f7548eu, 0xae9672aba3d0c320u, 0xa184ac2473b529b1u,
11392|   590k|            0xda3c0f568cc4f3e8u, 0xc9e5d72d90a2741eu, 0x8865899617fb1871u, 0x7e2fa67c7a658892u,
11393|   590k|            0xaa7eebfb9df9de8du, 0xddbb901b98feeab7u, 0xd51ea6fa85785631u, 0x552a74227f3ea565u,
11394|   590k|            0x8533285c936b35deu, 0xd53a88958f87275fu, 0xa67ff273b8460356u, 0x8a892abaf368f137u,
11395|   590k|            0xd01fef10a657842cu, 0x2d2b7569b0432d85u, 0x8213f56a67f6b29bu, 0x9c3b29620e29fc73u,
11396|   590k|            0xa298f2c501f45f42u, 0x8349f3ba91b47b8fu, 0xcb3f2f7642717713u, 0x241c70a936219a73u,
11397|   590k|            0xfe0efb53d30dd4d7u, 0xed238cd383aa0110u, 0x9ec95d1463e8a506u, 0xf4363804324a40aau,
11398|   590k|            0xc67bb4597ce2ce48u, 0xb143c6053edcd0d5u, 0xf81aa16fdc1b81dau, 0xdd94b7868e94050au,
11399|   590k|            0x9b10a4e5e9913128u, 0xca7cf2b4191c8326u, 0xc1d4ce1f63f57d72u, 0xfd1c2f611f63a3f0u,
11400|   590k|            0xf24a01a73cf2dccfu, 0xbc633b39673c8cecu, 0x976e41088617ca01u, 0xd5be0503e085d813u,
11401|   590k|            0xbd49d14aa79dbc82u, 0x4b2d8644d8a74e18u, 0xec9c459d51852ba2u, 0xddf8e7d60ed1219eu,
11402|   590k|            0x93e1ab8252f33b45u, 0xcabb90e5c942b503u, 0xb8da1662e7b00a17u, 0x3d6a751f3b936243u,
11403|   590k|            0xe7109bfba19c0c9du, 0x0cc512670a783ad4u, 0x906a617d450187e2u, 0x27fb2b80668b24c5u,
11404|   590k|            0xb484f9dc9641e9dau, 0xb1f9f660802dedf6u, 0xe1a63853bbd26451u, 0x5e7873f8a0396973u,
11405|   590k|            0x8d07e33455637eb2u, 0xdb0b487b6423e1e8u, 0xb049dc016abc5e5fu, 0x91ce1a9a3d2cda62u,
11406|   590k|            0xdc5c5301c56b75f7u, 0x7641a140cc7810fbu, 0x89b9b3e11b6329bau, 0xa9e904c87fcb0a9du,
11407|   590k|            0xac2820d9623bf429u, 0x546345fa9fbdcd44u, 0xd732290fbacaf133u, 0xa97c177947ad4095u,
11408|   590k|            0x867f59a9d4bed6c0u, 0x49ed8eabcccc485du, 0xa81f301449ee8c70u, 0x5c68f256bfff5a74u,
11409|   590k|            0xd226fc195c6a2f8cu, 0x73832eec6fff3111u, 0x83585d8fd9c25db7u, 0xc831fd53c5ff7eabu,
11410|   590k|            0xa42e74f3d032f525u, 0xba3e7ca8b77f5e55u, 0xcd3a1230c43fb26fu, 0x28ce1bd2e55f35ebu,
11411|   590k|            0x80444b5e7aa7cf85u, 0x7980d163cf5b81b3u, 0xa0555e361951c366u, 0xd7e105bcc332621fu,
11412|   590k|            0xc86ab5c39fa63440u, 0x8dd9472bf3fefaa7u, 0xfa856334878fc150u, 0xb14f98f6f0feb951u,
11413|   590k|            0x9c935e00d4b9d8d2u, 0x6ed1bf9a569f33d3u, 0xc3b8358109e84f07u, 0x0a862f80ec4700c8u,
11414|   590k|            0xf4a642e14c6262c8u, 0xcd27bb612758c0fau, 0x98e7e9cccfbd7dbdu, 0x8038d51cb897789cu,
11415|   590k|            0xbf21e44003acdd2cu, 0xe0470a63e6bd56c3u, 0xeeea5d5004981478u, 0x1858ccfce06cac74u,
11416|   590k|            0x95527a5202df0ccbu, 0x0f37801e0c43ebc8u, 0xbaa718e68396cffdu, 0xd30560258f54e6bau,
11417|   590k|            0xe950df20247c83fdu, 0x47c6b82ef32a2069u, 0x91d28b7416cdd27eu, 0x4cdc331d57fa5441u,
11418|   590k|            0xb6472e511c81471du, 0xe0133fe4adf8e952u, 0xe3d8f9e563a198e5u, 0x58180fddd97723a6u,
11419|   590k|            0x8e679c2f5e44ff8fu, 0x570f09eaa7ea7648u,
11420|   590k|        }
11421|   590k|    };
11422|   590k|    return table;
11423|   590k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13umul192_hi128Emmm:
36019|   287k|{
36020|   287k|    const uint128_parts p = full_multiplication(x_hi, y);
36021|   287k|    uint128_parts r{};
36022|   287k|    r.low = p.low + full_multiplication(x_lo, y).high;
36023|   287k|    r.high = p.high + (r.low < p.low ? 1u : 0u);
  ------------------
  |  Branch (36023:24): [True: 1.01k, False: 286k]
  ------------------
36024|   287k|    return r;
36025|   287k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij16umul128_add_hi64Emmm:
36029|   295k|{
36030|   295k|    const uint128_parts p = full_multiplication(x, y);
36031|   295k|    return p.high + (p.low + c < p.low ? 1u : 0u);
  ------------------
  |  Branch (36031:22): [True: 61.6k, False: 234k]
  ------------------
36032|   295k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalE:
37259|   287k|{
37260|   287k|    const std::uint64_t sig = d.integral;
37261|   287k|    if (JSON_HEDLEY_UNLIKELY(sig < 100000000000000u || sig >= 10000000000000000u))
  ------------------
  |  | 1697|   572k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.88k, False: 284k]
  |  |  |  Branch (1697:94): [True: 2.88k, False: 284k]
  |  |  |  Branch (1697:94): [True: 0, False: 284k]
  |  |  ------------------
  ------------------
37262|  2.88k|    {
37263|       |        // (subnormals)
37264|  2.88k|        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.36k, False: 1.52k]
  ------------------
37265|  2.88k|    }
37266|   284k|    const bool sixteen = sig >= 1000000000000000u; // (else 15 digits)
37267|   284k|    const int last = d.has_digit ? d.digit : 0;
  ------------------
  |  Branch (37267:22): [True: 113k, False: 171k]
  ------------------
37268|   284k|    const std::uint64_t upper = sig / 100000000u;
37269|   284k|#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|   284k|    const __m128i x = _mm_set_epi64x(static_cast<long long>(sig - (upper * 100000000u)), static_cast<long long>(upper)); // NOLINT(runtime/int)
37274|   284k|    const __m128i abcd = _mm_srli_epi64(_mm_mul_epu32(x, _mm_set1_epi64x(109951163)), 40); // 2^40 / 10000 + 1
37275|   284k|    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|   284k|    const __m128i fours = _mm_shuffle_epi32(abcd_efgh, _MM_SHUFFLE(2, 3, 0, 1));
37278|   284k|    const __m128i ab = _mm_srli_epi16(_mm_mulhi_epu16(fours, _mm_set1_epi32(5243)), 3);
37279|   284k|    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|   284k|    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|   284k|    const auto nonzero = static_cast<std::uint64_t>(_mm_movemask_epi8(_mm_cmpgt_epi8(bytes, _mm_setzero_si128())));
37284|   284k|    const int digits = 63 - count_leading_zeros(nonzero) + (sixteen ? 1 : 0); // without trailing zeros
  ------------------
  |  Branch (37284:61): [True: 180k, False: 104k]
  ------------------
37285|   284k|    const __m128i chars = _mm_add_epi8(bytes, _mm_set1_epi8('0'));
37286|       |    // the 16 characters from the first digit
37287|   284k|    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: 180k, False: 104k]
  ------------------
37288|   284k|    const char s16 = static_cast<char>(sixteen ? '0' + last : '0'); // the 17th
  ------------------
  |  Branch (37288:40): [True: 180k, False: 104k]
  ------------------
37289|   284k|    const auto store_16 = [&s](char* p) noexcept
37290|   284k|    {
37291|   284k|        std::memcpy(p, &s, 16);
37292|   284k|    };
37293|   284k|    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|   284k|    const int len = d.has_digit ? 16 + (sixteen ? 1 : 0) : digits; // significant digits
  ------------------
  |  Branch (37334:21): [True: 113k, False: 171k]
  |  Branch (37334:41): [True: 37.9k, False: 75.8k]
  ------------------
37335|   284k|    const int n = 16 + (sixteen ? 1 : 0) + d.exponent;           // digits before the point
  ------------------
  |  Branch (37335:25): [True: 180k, False: 104k]
  ------------------
37336|       |
37337|   284k|    if (JSON_HEDLEY_LIKELY(n >= 1 && n <= 15))
  ------------------
  |  | 1696|   389k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 89.7k, False: 195k]
  |  |  |  Branch (1696:94): [True: 104k, False: 180k]
  |  |  |  Branch (1696:94): [True: 89.7k, False: 14.4k]
  |  |  ------------------
  ------------------
37338|  89.7k|    {
37339|       |        // "dig.its" and "digits[000].0": the digits after the point move by
37340|       |        // one byte ('0's follow the digits)
37341|  89.7k|#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|  89.7k|        const __m128i at = _mm_set1_epi8(static_cast<char>(n));
37346|  89.7k|        const __m128i index = _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
37347|  89.7k|        const __m128i before = _mm_cmpgt_epi8(at, index);
37348|  89.7k|        const __m128i after = _mm_cmpgt_epi8(index, at);
37349|  89.7k|        const __m128i text = _mm_or_si128(_mm_or_si128(_mm_and_si128(s, before), _mm_and_si128(_mm_slli_si128(s, 1), after)),
37350|  89.7k|                                          _mm_andnot_si128(_mm_or_si128(before, after), _mm_set1_epi8('.')));
37351|  89.7k|        std::memcpy(first, &text, 16);
37352|  89.7k|        first[16] = static_cast<char>(_mm_extract_epi16(s, 7) >> 8);
37353|  89.7k|        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|  89.7k|        return first + (n >= len ? n + 2 : len + 1);
  ------------------
  |  Branch (37370:25): [True: 42.3k, False: 47.4k]
  ------------------
37371|  89.7k|    }
37372|   195k|    if (n <= 0 && n > -4)
  ------------------
  |  Branch (37372:9): [True: 180k, False: 14.4k]
  |  Branch (37372:19): [True: 70.7k, False: 109k]
  ------------------
37373|  70.7k|    {
37374|       |        // "0.[000]digits"
37375|  70.7k|        std::memset(first, '0', 8);
37376|  70.7k|        first[1] = '.';
37377|  70.7k|        store_16(first + 2 - n);
37378|  70.7k|        first[18 - n] = s16;
37379|  70.7k|        return first + 2 - n + len;
37380|  70.7k|    }
37381|       |    // d.igitse+XX, with at least two exponent digits (as append_exponent())
37382|   124k|    store_16(first + 1);
37383|   124k|    first[17] = s16;
37384|   124k|    first[0] = first_digit;
37385|   124k|    first[1] = '.';
37386|   124k|    char* const end = first + (len == 1 ? 1 : len + 1);
  ------------------
  |  Branch (37386:32): [True: 993, False: 123k]
  ------------------
37387|   124k|    const int e = n - 1;
37388|   124k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37388:21): [True: 109k, False: 14.4k]
  ------------------
37389|   124k|    const bool three = ea >= 100;
37390|   124k|    end[0] = 'e';
37391|   124k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37391:14): [True: 109k, False: 14.4k]
  ------------------
37392|   124k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37392:39): [True: 7.41k, False: 116k]
  ------------------
37393|   124k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37393:39): [True: 7.41k, False: 116k]
  ------------------
37394|   124k|    end[4] = static_cast<char>('0' + (ea % 10));
37395|   124k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37395:19): [True: 7.41k, False: 116k]
  ------------------
37396|   195k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl13write_decimalEPcmi:
37171|  2.88k|{
37172|  2.88k|    JSON_ASSERT(digits != 0 && digits < 100000000000000000u);
  ------------------
  |  | 2653|  2.88k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37172:5): [True: 2.88k, False: 0]
  |  Branch (37172:5): [True: 2.88k, False: 0]
  |  Branch (37172:5): [True: 2.88k, False: 0]
  ------------------
37173|  2.88k|    const std::uint64_t upper = digits / 100000000u;
37174|  2.88k|    const std::uint64_t b0 = upper / 100000000u; // (one digit: it is its own byte)
37175|  2.88k|    const std::uint64_t b1 = eight_digit_bytes(upper % 100000000u);
37176|  2.88k|    const std::uint64_t b2 = eight_digit_bytes(digits % 100000000u);
37177|       |    // leading and trailing zero digits: zero bytes, counted without division
37178|  2.88k|    int leading = 16;
37179|  2.88k|    int zeros = 16;
37180|  2.88k|    if (b0 != 0)
  ------------------
  |  Branch (37180:9): [True: 0, False: 2.88k]
  ------------------
37181|      0|    {
37182|      0|        leading = count_leading_zeros(b0) / 8;
37183|      0|    }
37184|  2.88k|    else if (b1 != 0)
  ------------------
  |  Branch (37184:14): [True: 1.90k, False: 979]
  ------------------
37185|  1.90k|    {
37186|  1.90k|        leading = 8 + (count_leading_zeros(b1) / 8);
37187|  1.90k|    }
37188|    979|    else
37189|    979|    {
37190|    979|        leading += count_leading_zeros(b2) / 8;
37191|    979|    }
37192|  2.88k|    if (b2 != 0)
  ------------------
  |  Branch (37192:9): [True: 2.57k, False: 306]
  ------------------
37193|  2.57k|    {
37194|  2.57k|        zeros = count_trailing_zeros(b2) / 8;
37195|  2.57k|    }
37196|    306|    else if (b1 != 0)
  ------------------
  |  Branch (37196:14): [True: 306, False: 0]
  ------------------
37197|    306|    {
37198|    306|        zeros = 8 + (count_trailing_zeros(b1) / 8);
37199|    306|    }
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|  2.88k|    std::array<char, 64> text; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
37204|  2.88k|    store_msb_first(text.data(), b0 + 0x3030303030303030u);
37205|  2.88k|    store_msb_first(text.data() + 8, b1 + 0x3030303030303030u);
37206|  2.88k|    store_msb_first(text.data() + 16, b2 + 0x3030303030303030u);
37207|  2.88k|    std::memset(text.data() + 24, '0', 40);
37208|  2.88k|    const int k = 24 - leading - zeros; // significant digits
37209|  2.88k|    const int n = k + exp + zeros;      // position of the decimal point after the first digit
37210|  2.88k|    const char* const s0 = text.data() + leading;
37211|       |
37212|  2.88k|    if (-4 < n && n <= 15)
  ------------------
  |  Branch (37212:9): [True: 0, False: 2.88k]
  |  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|  2.88k|    std::memcpy(first, s0, 16);
37229|  2.88k|    std::memcpy(first + 2, s0 + 1, 16);
37230|  2.88k|    first[1] = '.';
37231|  2.88k|    char* const end = first + (k == 1 ? 1 : k + 1);
  ------------------
  |  Branch (37231:32): [True: 570, False: 2.31k]
  ------------------
37232|  2.88k|    const int e = n - 1;
37233|  2.88k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37233:21): [True: 2.88k, False: 0]
  ------------------
37234|  2.88k|    const bool three = ea >= 100;
37235|  2.88k|    end[0] = 'e';
37236|  2.88k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37236:14): [True: 2.88k, False: 0]
  ------------------
37237|  2.88k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37237:39): [True: 2.88k, False: 0]
  ------------------
37238|  2.88k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37238:39): [True: 2.88k, False: 0]
  ------------------
37239|  2.88k|    end[4] = static_cast<char>('0' + (ea % 10));
37240|  2.88k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37240:19): [True: 2.88k, False: 0]
  ------------------
37241|  2.88k|}
_ZZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalEENKUlS3_E_clES3_:
37290|   195k|    {
37291|   195k|        std::memcpy(p, &s, 16);
37292|   195k|    };
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE5flushEv:
39130|  97.6k|    {
39131|  97.6k|        o->write_characters(write_buffer.data(), write_buffer_pos);
39132|  97.6k|        write_buffer_pos = 0;
39133|  97.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail35binary_writer_default_error_handlerEv:
 6189|  47.5k|{
 6190|       |#if JSON_STRICT_BINARY_UTF8
 6191|       |    return error_handler_t::strict;
 6192|       |#else
 6193|  47.5k|    return error_handler_t::keep;
 6194|  47.5k|#endif
 6195|  47.5k|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvED2Ev:
42951|  3.48M|    {
42952|  3.48M|        assert_invariant(false);
42953|  3.48M|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16assert_invariantEb:
41279|  9.87M|    {
41280|  9.87M|        JSON_ASSERT(m_data.m_type != value_t::object || m_data.m_value.object != nullptr);
  ------------------
  |  | 2653|  9.87M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41280:9): [True: 9.38M, False: 487k]
  |  Branch (41280:9): [True: 487k, False: 0]
  |  Branch (41280:9): [True: 9.87M, False: 0]
  ------------------
41281|  9.87M|        JSON_ASSERT(m_data.m_type != value_t::array || m_data.m_value.array != nullptr);
  ------------------
  |  | 2653|  9.87M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41281:9): [True: 8.56M, False: 1.30M]
  |  Branch (41281:9): [True: 1.30M, False: 0]
  |  Branch (41281:9): [True: 9.87M, False: 0]
  ------------------
41282|  9.87M|        JSON_ASSERT(m_data.m_type != value_t::string || m_data.m_value.string != nullptr);
  ------------------
  |  | 2653|  9.87M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41282:9): [True: 9.08M, False: 791k]
  |  Branch (41282:9): [True: 791k, False: 0]
  |  Branch (41282:9): [True: 9.87M, False: 0]
  ------------------
41283|  9.87M|        JSON_ASSERT(m_data.m_type != value_t::binary || m_data.m_value.binary != nullptr);
  ------------------
  |  | 2653|  9.87M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41283:9): [True: 9.76M, False: 106k]
  |  Branch (41283:9): [True: 106k, False: 0]
  |  Branch (41283:9): [True: 9.87M, 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|  9.87M|        static_cast<void>(check_parents);
41296|  9.87M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataD2Ev:
46531|  3.63M|        {
46532|  3.63M|            m_value.destroy(m_type);
46533|  3.63M|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value7destroyENS0_6detail7value_tE:
41223|  4.93M|        {
41224|  4.93M|            if (JSON_HEDLEY_UNLIKELY(detail::owns_memory(t)))
  ------------------
  |  | 1697|  4.93M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 300k, False: 4.63M]
  |  |  ------------------
  ------------------
41225|   300k|            {
41226|   300k|                destroy_owned(t);
41227|   300k|            }
41228|  4.93M|        }
_ZN8nlohmann16json_abi_v3_12_06detail11owns_memoryENS1_7value_tE:
 3462|  4.93M|{
 3463|  4.93M|    switch (t)
 3464|  4.93M|    {
 3465|  36.5k|        case value_t::object:
  ------------------
  |  Branch (3465:9): [True: 36.5k, False: 4.90M]
  ------------------
 3466|   102k|        case value_t::array:
  ------------------
  |  Branch (3466:9): [True: 65.8k, False: 4.87M]
  ------------------
 3467|   280k|        case value_t::string:
  ------------------
  |  Branch (3467:9): [True: 177k, False: 4.76M]
  ------------------
 3468|   300k|        case value_t::binary:
  ------------------
  |  Branch (3468:9): [True: 20.0k, False: 4.91M]
  ------------------
 3469|   300k|            return true;
 3470|       |
 3471|  3.52M|        case value_t::null:
  ------------------
  |  Branch (3471:9): [True: 3.52M, False: 1.41M]
  ------------------
 3472|  3.68M|        case value_t::boolean:
  ------------------
  |  Branch (3472:9): [True: 164k, False: 4.77M]
  ------------------
 3473|  3.91M|        case value_t::number_integer:
  ------------------
  |  Branch (3473:9): [True: 228k, False: 4.71M]
  ------------------
 3474|  4.22M|        case value_t::number_unsigned:
  ------------------
  |  Branch (3474:9): [True: 303k, False: 4.63M]
  ------------------
 3475|  4.63M|        case value_t::number_float:
  ------------------
  |  Branch (3475:9): [True: 410k, False: 4.52M]
  ------------------
 3476|  4.63M|        case value_t::discarded:
  ------------------
  |  Branch (3476:9): [True: 7.54k, False: 4.93M]
  ------------------
 3477|  4.63M|        default:
  ------------------
  |  Branch (3477:9): [True: 0, False: 4.93M]
  ------------------
 3478|  4.63M|            return false;
 3479|  4.93M|    }
 3480|  4.93M|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value13destroy_ownedENS0_6detail7value_tE:
41231|   300k|        {
41232|   300k|            switch (t)
41233|   300k|            {
41234|   177k|                case value_t::string:
  ------------------
  |  Branch (41234:17): [True: 177k, False: 122k]
  ------------------
41235|   177k|                    destroy_pointer(string);
41236|   177k|                    break;
41237|       |
41238|  20.0k|                case value_t::binary:
  ------------------
  |  Branch (41238:17): [True: 20.0k, False: 280k]
  ------------------
41239|  20.0k|                    destroy_pointer(binary);
41240|  20.0k|                    break;
41241|       |
41242|  36.5k|                case value_t::object:
  ------------------
  |  Branch (41242:17): [True: 36.5k, False: 263k]
  ------------------
41243|   102k|                case value_t::array:
  ------------------
  |  Branch (41243:17): [True: 65.8k, False: 234k]
  ------------------
41244|   102k|                    destroy_container(t);
41245|   102k|                    break;
41246|       |
41247|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (41247:17): [True: 0, False: 300k]
  ------------------
41248|      0|                case value_t::boolean:
  ------------------
  |  Branch (41248:17): [True: 0, False: 300k]
  ------------------
41249|      0|                case value_t::number_integer:
  ------------------
  |  Branch (41249:17): [True: 0, False: 300k]
  ------------------
41250|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (41250:17): [True: 0, False: 300k]
  ------------------
41251|      0|                case value_t::number_float:
  ------------------
  |  Branch (41251:17): [True: 0, False: 300k]
  ------------------
41252|      0|                case value_t::discarded:
  ------------------
  |  Branch (41252:17): [True: 0, False: 300k]
  ------------------
41253|      0|                default:
  ------------------
  |  Branch (41253:17): [True: 0, False: 300k]
  ------------------
41254|      0|                    break; // LCOV_EXCL_LINE
41255|   300k|            }
41256|   300k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_pointerISA_EEvRPT_:
41063|   177k|        {
41064|   177k|            if (ptr == nullptr)
  ------------------
  |  Branch (41064:17): [True: 0, False: 177k]
  ------------------
41065|      0|            {
41066|       |                // not initialized (e.g., due to exception in the ctor)
41067|      0|                return;
41068|      0|            }
41069|   177k|            AllocatorType<T> alloc;
41070|   177k|            std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr);
41071|   177k|            std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1);
41072|   177k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_pointerINS0_27byte_container_with_subtypeISD_EEEEvRPT_:
41063|  20.0k|        {
41064|  20.0k|            if (ptr == nullptr)
  ------------------
  |  Branch (41064:17): [True: 0, False: 20.0k]
  ------------------
41065|      0|            {
41066|       |                // not initialized (e.g., due to exception in the ctor)
41067|      0|                return;
41068|      0|            }
41069|  20.0k|            AllocatorType<T> alloc;
41070|  20.0k|            std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr);
41071|  20.0k|            std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1);
41072|  20.0k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value17destroy_containerENS0_6detail7value_tE:
41076|   102k|        {
41077|   102k|            if (
41078|   102k|                (t == value_t::object && object == nullptr) ||
  ------------------
  |  Branch (41078:18): [True: 36.5k, False: 65.8k]
  |  Branch (41078:42): [True: 0, False: 36.5k]
  ------------------
41079|   102k|                (t == value_t::array && array == nullptr)
  ------------------
  |  Branch (41079:18): [True: 65.8k, False: 36.5k]
  |  Branch (41079:41): [True: 0, False: 65.8k]
  ------------------
41080|   102k|            )
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|   102k|            data cur;
41095|   102k|            cur.m_type = t;
41096|   102k|            std::swap(cur.m_value, *this);
41097|       |
41098|   102k|            destroy_bounded(cur, 0);
41099|   102k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2Ev:
46524|  1.99M|        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|   909k|        {
41107|   909k|            if (JSON_HEDLEY_UNLIKELY(depth >= detail::recursion_depth_limit()))
  ------------------
  |  | 1697|   909k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 11.6k, False: 898k]
  |  |  ------------------
  ------------------
41108|  11.6k|            {
41109|  11.6k|                destroy_walk(v);
41110|  11.6k|                return;
41111|  11.6k|            }
41112|       |
41113|   898k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41113:17): [True: 739k, False: 158k]
  ------------------
41114|   739k|            {
41115|   739k|                for (auto& child : *v.m_value.array)
  ------------------
  |  Branch (41115:34): [True: 1.87M, False: 739k]
  ------------------
41116|  1.87M|                {
41117|  1.87M|                    if (child.m_data.m_type == value_t::array || child.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41117:25): [True: 572k, False: 1.29M]
  |  Branch (41117:66): [True: 117k, False: 1.18M]
  ------------------
41118|   690k|                    {
41119|   690k|                        destroy_bounded(child.m_data, depth + 1);
41120|   690k|                    }
41121|  1.87M|                }
41122|   739k|            }
41123|   158k|            else
41124|   158k|            {
41125|   158k|                for (auto& child : *v.m_value.object)
  ------------------
  |  Branch (41125:34): [True: 269k, False: 158k]
  ------------------
41126|   269k|                {
41127|   269k|                    if (child.second.m_data.m_type == value_t::array || child.second.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41127:25): [True: 105k, False: 164k]
  |  Branch (41127:73): [True: 11.9k, False: 152k]
  ------------------
41128|   117k|                    {
41129|   117k|                        destroy_bounded(child.second.m_data, depth + 1);
41130|   117k|                    }
41131|   269k|                }
41132|   158k|            }
41133|       |
41134|       |            // only leaves and already destroyed (null) children remain
41135|   898k|            free_container(v);
41136|   898k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value12destroy_walkERNSE_4dataE:
41160|  11.6k|        {
41161|  11.6k|            data cur;
41162|  11.6k|            take(cur, top);
41163|       |
41164|  11.6k|            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|  11.6k|            bool fresh = true;
41171|       |
41172|  46.5k|            while (true)
  ------------------
  |  Branch (41172:20): [True: 46.5k, Folded]
  ------------------
41173|  46.5k|            {
41174|  46.5k|                const bool fresh_now = fresh;
41175|  46.5k|                fresh = false;
41176|  46.5k|                if (has_no_children(cur) || (fresh_now && all_children_leaves(cur)))
  ------------------
  |  Branch (41176:21): [True: 14.7k, False: 31.8k]
  |  Branch (41176:46): [True: 19.5k, False: 12.2k]
  |  Branch (41176:59): [True: 9.55k, False: 9.97k]
  ------------------
41177|  24.2k|                {
41178|  24.2k|                    if (prev.m_type == value_t::null)
  ------------------
  |  Branch (41178:25): [True: 11.6k, False: 12.6k]
  ------------------
41179|  11.6k|                    {
41180|  11.6k|                        free_container(cur);
41181|  11.6k|                        return; // back at the top with nothing left to do
41182|  11.6k|                    }
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|  12.6k|                    data gp;
41188|  12.6k|                    take(gp, walk_child(prev));
41189|  12.6k|                    pop_walk_child(prev);
41190|       |
41191|  12.6k|                    free_container(cur);
41192|       |
41193|  12.6k|                    take(cur, prev);
41194|  12.6k|                    take(prev, gp);
41195|  12.6k|                    continue;
41196|  24.2k|                }
41197|       |
41198|  22.2k|                data& cur_child_ref = walk_child(cur);
41199|       |
41200|  22.2k|                if (has_no_children(cur_child_ref))
  ------------------
  |  Branch (41200:21): [True: 9.64k, False: 12.6k]
  ------------------
41201|  9.64k|                {
41202|       |                    // scalar, or already-empty array/object
41203|  9.64k|                    pop_walk_child(cur);
41204|  9.64k|                    continue;
41205|  9.64k|                }
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|  12.6k|                data tmp;
41211|  12.6k|                take(tmp, cur_child_ref);
41212|  12.6k|                take(cur_child_ref, prev);
41213|  12.6k|                take(prev, cur);
41214|  12.6k|                take(cur, tmp);
41215|  12.6k|                fresh = true;
41216|  12.6k|            }
41217|  11.6k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value4takeERNSE_4dataESH_:
40939|   100k|        {
40940|   100k|            dst.m_type = src.m_type;
40941|   100k|            dst.m_value = src.m_value;
40942|   100k|            src.m_type = value_t::null;
40943|   100k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15has_no_childrenERKNSE_4dataE:
40947|  3.19M|        {
40948|  3.19M|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40948:17): [True: 797k, False: 2.39M]
  ------------------
40949|   797k|            {
40950|   797k|                return v.m_value.array->empty();
40951|   797k|            }
40952|  2.39M|            if (v.m_type == value_t::object)
  ------------------
  |  Branch (40952:17): [True: 200k, False: 2.19M]
  ------------------
40953|   200k|            {
40954|   200k|                return v.m_value.object->empty();
40955|   200k|            }
40956|  2.19M|            return true;
40957|  2.39M|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value19all_children_leavesERKNSE_4dataE:
40964|   837k|        {
40965|       |            // array_t only needs forward iterators (see custom_array_type)
40966|   837k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40966:17): [True: 705k, False: 132k]
  ------------------
40967|   705k|            {
40968|   705k|                const auto& a = *v.m_value.array;
40969|   705k|                return std::all_of(a.begin(), a.end(), [](const basic_json & el)
40970|   705k|                {
40971|   705k|                    return has_no_children(el.m_data);
40972|   705k|                });
40973|   705k|            }
40974|   132k|            const auto& o = *v.m_value.object;
40975|   132k|            return std::all_of(o.begin(), o.end(), [](const typename object_t::value_type & el)
40976|   132k|            {
40977|   132k|                return has_no_children(el.second.m_data);
40978|   132k|            });
40979|   837k|        }
_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.90M|                {
40971|  1.90M|                    return has_no_children(el.m_data);
40972|  1.90M|                });
_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|   291k|            {
40977|   291k|                return has_no_children(el.second.m_data);
40978|   291k|            });
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value10walk_childERNSE_4dataE:
41010|  34.8k|        {
41011|  34.8k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41011:17): [True: 19.2k, False: 15.6k]
  ------------------
41012|  19.2k|            {
41013|  19.2k|                return v.m_value.array->back().m_data;
41014|  19.2k|            }
41015|  15.6k|            JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  15.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41015:13): [True: 15.6k, False: 0]
  ------------------
41016|  15.6k|            return walk_child_it(*v.m_value.object)->second.m_data;
41017|  15.6k|        }
_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|  27.3k|        {
41003|  27.3k|            JSON_ASSERT(!o.empty());
  ------------------
  |  | 2653|  27.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41003:13): [True: 27.3k, False: 0]
  ------------------
41004|  27.3k|            return walk_child_it(o, typename std::iterator_traits<typename ObjectType_::iterator>::iterator_category());
41005|  27.3k|        }
_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|  27.3k|        {
40991|  27.3k|            return std::prev(o.end());
40992|  27.3k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value14pop_walk_childERNSE_4dataE:
41024|  22.2k|        {
41025|  22.2k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41025:17): [True: 10.5k, False: 11.6k]
  ------------------
41026|  10.5k|            {
41027|  10.5k|                v.m_value.array->pop_back();
41028|  10.5k|            }
41029|  11.6k|            else
41030|  11.6k|            {
41031|  11.6k|                JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  11.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41031:17): [True: 11.6k, False: 0]
  ------------------
41032|  11.6k|                v.m_value.object->erase(walk_child_it(*v.m_value.object));
41033|  11.6k|            }
41034|  22.2k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value14free_containerERNSE_4dataE:
41042|   922k|        {
41043|   922k|            JSON_ASSERT(has_no_children(v) || all_children_leaves(v));
  ------------------
  |  | 2653|   922k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41043:13): [True: 104k, False: 817k]
  |  Branch (41043:13): [True: 817k, False: 0]
  |  Branch (41043:13): [True: 922k, False: 0]
  ------------------
41044|   922k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41044:17): [True: 752k, False: 169k]
  ------------------
41045|   752k|            {
41046|   752k|                AllocatorType<array_t> alloc;
41047|   752k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.array);
41048|   752k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.array, 1);
41049|   752k|            }
41050|   169k|            else
41051|   169k|            {
41052|   169k|                JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|   169k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41052:17): [True: 169k, False: 0]
  ------------------
41053|   169k|                AllocatorType<object_t> alloc;
41054|   169k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.object);
41055|   169k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.object, 1);
41056|   169k|            }
41057|   922k|            v.m_type = value_t::null; // avoid a double free if v is later destructed
41058|   922k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataIRKSD_EESE_OT_bbNS0_6detail15error_handler_tE:
46956|  57.0k|    {
46957|  57.0k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46958|  57.0k|    }
_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|  95.3k|    {
46576|  95.3k|        basic_json result;
46577|  95.3k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  95.3k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  95.3k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 7.54k, False: 87.8k]
  ------------------
46580|  7.54k|        {
46581|  7.54k|            result = value_t::discarded;
46582|  7.54k|        }
46583|  95.3k|        return result;
46584|  95.3k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EDn:
42524|   543k|    {
42525|   543k|        assert_invariant();
42526|   543k|    }
_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|  95.3k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  95.3k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_stateC2Eb:
16621|   143k|        : allow_exceptions(allow_exceptions_)
16622|   143k|    {}
_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|  95.3k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  95.3k|    {
18994|  95.3k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  95.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE3eofEv:
 4463|  1.31M|    {
 4464|  1.31M|        return static_cast<int_type>(std::char_traits<char>::eof());
 4465|  1.31M|    }
_ZN8nlohmann16json_abi_v3_12_06detail17little_endiannessEi:
18810|   190k|{
18811|   190k|    return *reinterpret_cast<char*>(&num) == 1;
18812|   190k|}
_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|  95.3k|    {
19018|  95.3k|        sax = sax_;
19019|  95.3k|        container_stack.clear();
19020|  95.3k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  95.3k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  95.3k|        bool result = false;
19024|       |
19025|  95.3k|        switch (input_format)
19026|  95.3k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 95.3k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 95.3k]
  ------------------
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: 95.3k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 95.3k]
  ------------------
19040|  95.3k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 95.3k, False: 0]
  ------------------
19041|  95.3k|                result = parse_ubjson_internal();
19042|  95.3k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 95.3k]
  ------------------
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: 95.3k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 95.3k]
  ------------------
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|  95.3k|        }
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|  80.5k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 73.0k, False: 7.44k]
  |  Branch (19058:23): [True: 0, False: 73.0k]
  |  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|  80.5k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 73.0k, False: 7.44k]
  |  Branch (19065:23): [True: 73.0k, False: 0]
  ------------------
19066|  73.0k|        {
19067|  73.0k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 73.0k]
  |  Branch (19067:59): [True: 73.0k, False: 0]
  ------------------
19068|  73.0k|            {
19069|  73.0k|                get_ignore_noop();
19070|  73.0k|            }
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|  73.0k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  73.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 312, False: 72.7k]
  |  |  ------------------
  ------------------
19082|    312|            {
19083|    312|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    312|            }
19085|  73.0k|        }
19086|       |
19087|  80.1k|        return result;
19088|  80.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_EEE12bound_parserEPSM_NS4_17integral_constantIbLb1EEE:
19096|  95.3k|    {
19097|  95.3k|        return s;
19098|  95.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_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  95.3k|            : parser(parser_), saved()
19120|  95.3k|        {
19121|  95.3k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 95.3k, False: 0]
  ------------------
19122|  95.3k|            {
19123|  95.3k|                saved = parser->get_reserve_state();
19124|  95.3k|                parser->set_input_position(position);
19125|  95.3k|            }
19126|  95.3k|        }
_ZNK8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17get_reserve_stateEv:
16668|   143k|    {
16669|   143k|        return {input_position, credit_position, reserve_credit};
16670|   143k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state18set_input_positionEPKm:
16653|   143k|    {
16654|   143k|        input_position = position;
16655|   143k|        credit_position = 0;
16656|   143k|        reserve_credit = position != nullptr ? reserved_elements_base : (std::numeric_limits<std::size_t>::max)();
  ------------------
  |  Branch (16656:26): [True: 143k, False: 0]
  ------------------
16657|   143k|    }
_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|  14.6k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  14.6k|        auto new_chars_read = ia.get_elements(&dest);
23507|  14.6k|        chars_read += new_chars_read;
23508|  14.6k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  14.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 315, False: 14.3k]
  |  |  ------------------
  ------------------
23509|    315|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    315|            ++chars_read;
23512|    315|            static_cast<void>(report_eof(context));
23513|    315|            return false;
23514|    315|        }
23515|  14.3k|        return true;
23516|  14.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIiEEmPT_m:
10326|  14.6k|    {
10327|  14.6k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  14.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIiEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  14.6k|    {
10385|  14.6k|        const std::size_t wanted = count * sizeof(T);
10386|  14.6k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  14.6k|        const std::size_t copied = (std::min)(wanted, available);
10388|  14.6k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  14.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 14.3k, False: 225]
  |  |  ------------------
  ------------------
10389|  14.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|  14.3k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  14.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 14.3k, False: 0]
  ------------------
10394|  14.3k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  14.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 14.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|  14.3k|            std::memcpy(dest, &*current, copied);
10398|  14.3k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  14.3k|        }
10400|  14.6k|        return copied;
10401|  14.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E15remaining_countEv:
10345|  1.10M|    {
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|  1.10M|        return static_cast<std::size_t>(std::distance(current, end));
10352|  1.10M|#endif
10353|  1.10M|    }
_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|  13.1k|    {
23992|  13.1k|        return sax->parse_error(chars_read, "<end of file>",
23993|  13.1k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state11parse_errorINS1_11parse_errorEEEbmRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKT_:
16634|  41.9k|    {
16635|  41.9k|        errored = true;
16636|  41.9k|        static_cast<void>(ex);
16637|  41.9k|        if (allow_exceptions)
  ------------------
  |  Branch (16637:13): [True: 34.9k, False: 6.98k]
  ------------------
16638|  34.9k|        {
16639|  34.9k|            JSON_THROW(ex);
  ------------------
  |  | 2618|  34.9k|    #define JSON_THROW(exception) throw exception
  ------------------
16640|  34.9k|        }
16641|  6.98k|        return false;
16642|  41.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idEmRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5802|  41.9k|    {
 5803|  41.9k|        return create(static_cast<int>(id_), byte_, what_arg, context);
 5804|  41.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_imRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5787|  41.9k|    {
 5788|  41.9k|        const std::string w = concat(exception::name("parse_error", id_), "parse error",
 5789|  41.9k|                                     (byte_ != 0 ? (concat(" at byte ", std::to_string(byte_))) : ""),
  ------------------
  |  Branch (5789:39): [True: 41.9k, False: 0]
  ------------------
 5790|  41.9k|                                     ": ", exception::diagnostics(context), what_arg);
 5791|  41.9k|        return {id_, byte_, w.c_str()};
 5792|  41.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_RA12_KcS9_RA3_SA_S9_RKS9_EEET_DpOT0_:
 5537|  41.9k|{
 5538|  41.9k|    OutStringType str;
 5539|  41.9k|    str.reserve(concat_length(args...));
 5540|  41.9k|    concat_into(str, std::forward<Args>(args)...);
 5541|  41.9k|    return str;
 5542|  41.9k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA12_cS9_A3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  41.9k|{
 5448|  41.9k|    return str.size() + concat_length(rest...);
 5449|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_S9_EEEmPKcDpRKT_:
 5441|  41.9k|{
 5442|  41.9k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  41.9k|{
 5448|  41.9k|    return str.size() + concat_length(rest...);
 5449|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_EEEmPKcDpRKT_:
 5441|  41.9k|{
 5442|  41.9k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  41.9k|}
_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|  41.9k|{
 5501|  41.9k|    out.append(std::forward<Arg>(arg));
 5502|  41.9k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  41.9k|}
_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|  41.9k|{
 5501|  41.9k|    out.append(std::forward<Arg>(arg));
 5502|  41.9k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  41.9k|}
_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|  41.9k|{
 5501|  41.9k|    out.append(std::forward<Arg>(arg));
 5502|  41.9k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  41.9k|{
 5501|  41.9k|    out.append(std::forward<Arg>(arg));
 5502|  41.9k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA10_KcS9_EEET_DpOT0_:
 5537|  41.9k|{
 5538|  41.9k|    OutStringType str;
 5539|  41.9k|    str.reserve(concat_length(args...));
 5540|  41.9k|    concat_into(str, std::forward<Args>(args)...);
 5541|  41.9k|    return str;
 5542|  41.9k|} // 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|  41.9k|{
 5501|  41.9k|    out.append(std::forward<Arg>(arg));
 5502|  41.9k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  41.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail11parse_errorC2EimPKc:
 5819|  41.9k|        : 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|  21.1k|    {
24103|  21.1k|        std::string error_msg = "syntax error while parsing ";
24104|  21.1k|        error_msg += input_format_name(input_format);
24105|       |
24106|  21.1k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  21.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17input_format_nameENS1_14input_format_tE:
 9338|  42.3k|{
 9339|  42.3k|    switch (format)
 9340|  42.3k|    {
 9341|      0|        case input_format_t::cbor:
  ------------------
  |  Branch (9341:9): [True: 0, False: 42.3k]
  ------------------
 9342|      0|            return "CBOR";
 9343|      0|        case input_format_t::msgpack:
  ------------------
  |  Branch (9343:9): [True: 0, False: 42.3k]
  ------------------
 9344|      0|            return "MessagePack";
 9345|      0|        case input_format_t::ubjson:
  ------------------
  |  Branch (9345:9): [True: 0, False: 42.3k]
  ------------------
 9346|      0|            return "UBJSON";
 9347|      0|        case input_format_t::bson:
  ------------------
  |  Branch (9347:9): [True: 0, False: 42.3k]
  ------------------
 9348|      0|            return "BSON";
 9349|  42.3k|        case input_format_t::bjdata:
  ------------------
  |  Branch (9349:9): [True: 42.3k, False: 0]
  ------------------
 9350|  42.3k|            return "BJData";
 9351|      0|        case input_format_t::bon8:
  ------------------
  |  Branch (9351:9): [True: 0, False: 42.3k]
  ------------------
 9352|      0|            return "BON8";
 9353|      0|        case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (9353:9): [True: 0, False: 42.3k]
  ------------------
 9354|      0|        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (9354:9): [True: 0, False: 42.3k]
  ------------------
 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|  42.3k|    }
 9358|  42.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRS9_cRKS9_RA3_KcSC_EEET_DpOT0_:
 5537|  42.3k|{
 5538|  42.3k|    OutStringType str;
 5539|  42.3k|    str.reserve(concat_length(args...));
 5540|  42.3k|    concat_into(str, std::forward<Args>(args)...);
 5541|  42.3k|    return str;
 5542|  42.3k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cS9_EEEmRKT_DpRKT0_:
 5447|  42.3k|{
 5448|  42.3k|    return str.size() + concat_length(rest...);
 5449|  42.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_EEEmcDpRKT_:
 5435|  42.3k|{
 5436|  42.3k|    return 1 + concat_length(rest...);
 5437|  42.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_EEEmRKT_DpRKT0_:
 5447|  42.3k|{
 5448|  42.3k|    return str.size() + concat_length(rest...);
 5449|  42.3k|}
_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|  42.3k|{
 5501|  42.3k|    out.append(std::forward<Arg>(arg));
 5502|  42.3k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  42.3k|}
_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|  42.3k|{
 5510|  42.3k|    out += std::forward<Arg>(arg);
 5511|  42.3k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  42.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JRA3_KcSB_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  42.3k|{
 5501|  42.3k|    out.append(std::forward<Arg>(arg));
 5502|  42.3k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  42.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  42.3k|{
 5501|  42.3k|    out.append(std::forward<Arg>(arg));
 5502|  42.3k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  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_EEE15enter_containerEbmm:
19201|   557k|    {
19202|   557k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|  1.11M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 269, False: 557k]
  |  |  |  Branch (1697:94): [True: 93.8k, False: 463k]
  |  |  ------------------
  ------------------
19203|    269|        {
19204|    269|            return false;
19205|    269|        }
19206|       |
19207|   557k|        container_stack.emplace_back(len, is_object, type_marker);
19208|   557k|        return true;
19209|   557k|    }
_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|   116k|    {
17879|   116k|        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|   116k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|   116k|    }
_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|   623k|    {
17962|   623k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 62.5k, False: 561k]
  ------------------
17963|  62.5k|        {
17964|  62.5k|            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|  62.5k|            return &root;
17971|  62.5k|        }
17972|       |
17973|   561k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   561k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 472k, False: 88.4k]
  |  Branch (17973:9): [True: 88.4k, False: 0]
  |  Branch (17973:9): [True: 561k, False: 0]
  ------------------
17974|       |
17975|   561k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 472k, False: 88.4k]
  ------------------
17976|   472k|        {
17977|   472k|            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|   472k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   472k|        }
17985|       |
17986|  88.4k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  88.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 88.4k, False: 0]
  ------------------
17987|  88.4k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  88.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 88.4k, False: 0]
  ------------------
17988|  88.4k|        *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|  88.4k|        return object_element;
17995|  88.4k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8is_arrayEv:
43077|  5.69M|    {
43078|  5.69M|        return m_data.m_type == value_t::array;
43079|  5.69M|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_objectEv:
43069|  1.73M|    {
43070|  1.73M|        return m_data.m_type == value_t::object;
43071|  1.73M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EOSE_:
42896|   706k|        : json_base_class_t(std::move(static_cast<json_base_class_t&>(other))),
42897|   706k|          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|   706k|    {
42903|       |        // check that the passed value is valid
42904|   706k|        other.assert_invariant(false);
42905|       |
42906|       |        // invalidate payload
42907|   706k|        other.m_data.m_type = value_t::null;
42908|   706k|        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|   706k|        set_parents();
42916|   706k|        assert_invariant();
42917|   706k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11set_parentsEv:
41299|  4.48M|    {
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|  4.48M|    }
_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|   623k|{
16470|   623k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|   893k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 810, False: 622k]
  |  |  |  Branch (1697:94): [True: 269k, False: 353k]
  |  |  |  Branch (1697:94): [True: 810, False: 269k]
  |  |  ------------------
  ------------------
16471|    810|    {
16472|    810|        return container_too_large_error(sax, len, kind, ref);
16473|    810|    }
16474|   622k|    return true;
16475|   623k|}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8max_sizeEv:
44948|   321k|    {
44949|   321k|        if (m_data.m_type == value_t::array)
  ------------------
  |  Branch (44949:13): [True: 254k, False: 66.8k]
  ------------------
44950|   254k|        {
44951|       |            // delegate call to array_t::max_size()
44952|   254k|            return m_data.m_value.array->max_size();
44953|   254k|        }
44954|       |
44955|  66.8k|        if (m_data.m_type == value_t::object)
  ------------------
  |  Branch (44955:13): [True: 66.8k, False: 0]
  ------------------
44956|  66.8k|        {
44957|       |            // delegate call to object_t::max_size()
44958|  66.8k|            return m_data.m_value.object->max_size();
44959|  66.8k|        }
44960|       |
44961|       |        // all other types have max_size() == size()
44962|      0|        return size();
44963|  66.8k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4sizeEv:
44908|  91.4k|    {
44909|  91.4k|        switch (m_data.m_type)
44910|  91.4k|        {
44911|      0|            case value_t::null:
  ------------------
  |  Branch (44911:13): [True: 0, False: 91.4k]
  ------------------
44912|      0|            {
44913|       |                // null values are empty
44914|      0|                return 0;
44915|      0|            }
44916|       |
44917|  80.4k|            case value_t::array:
  ------------------
  |  Branch (44917:13): [True: 80.4k, False: 11.0k]
  ------------------
44918|  80.4k|            {
44919|       |                // delegate call to array_t::size()
44920|  80.4k|                return m_data.m_value.array->size();
44921|      0|            }
44922|       |
44923|  11.0k|            case value_t::object:
  ------------------
  |  Branch (44923:13): [True: 11.0k, False: 80.4k]
  ------------------
44924|  11.0k|            {
44925|       |                // delegate call to object_t::size()
44926|  11.0k|                return m_data.m_value.object->size();
44927|      0|            }
44928|       |
44929|      0|            case value_t::string:
  ------------------
  |  Branch (44929:13): [True: 0, False: 91.4k]
  ------------------
44930|      0|            case value_t::boolean:
  ------------------
  |  Branch (44930:13): [True: 0, False: 91.4k]
  ------------------
44931|      0|            case value_t::number_integer:
  ------------------
  |  Branch (44931:13): [True: 0, False: 91.4k]
  ------------------
44932|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (44932:13): [True: 0, False: 91.4k]
  ------------------
44933|      0|            case value_t::number_float:
  ------------------
  |  Branch (44933:13): [True: 0, False: 91.4k]
  ------------------
44934|      0|            case value_t::binary:
  ------------------
  |  Branch (44934:13): [True: 0, False: 91.4k]
  ------------------
44935|      0|            case value_t::discarded:
  ------------------
  |  Branch (44935:13): [True: 0, False: 91.4k]
  ------------------
44936|      0|            default:
  ------------------
  |  Branch (44936:13): [True: 0, False: 91.4k]
  ------------------
44937|      0|            {
44938|       |                // all other types have size 1
44939|      0|                return 1;
44940|      0|            }
44941|  91.4k|        }
44942|  91.4k|    }
_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|    810|{
16464|    810|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    810|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state11parse_errorINS1_12out_of_rangeEEEbmRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKT_:
16634|  3.35k|    {
16635|  3.35k|        errored = true;
16636|  3.35k|        static_cast<void>(ex);
16637|  3.35k|        if (allow_exceptions)
  ------------------
  |  Branch (16637:13): [True: 2.79k, False: 559]
  ------------------
16638|  2.79k|        {
16639|  2.79k|            JSON_THROW(ex);
  ------------------
  |  | 2618|  2.79k|    #define JSON_THROW(exception) throw exception
  ------------------
16640|  2.79k|        }
16641|    559|        return false;
16642|  3.35k|    }
_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|  1.62k|    {
 5890|  1.62k|        return create(static_cast<int>(id_), what_arg, context);
 5891|  1.62k|    }
_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|  1.62k|    {
 5883|  1.62k|        const std::string w = exception::what_impl("out_of_range", id_, what_arg, context);
 5884|  1.62k|        return {id_, w.c_str()};
 5885|  1.62k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception9what_implIPNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_RKSD_iSK_T_:
 5676|  1.62k|    {
 5677|  1.62k|        return concat(name(ename, id_), diagnostics(context), what_arg);
 5678|  1.62k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception11diagnosticsINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_PKT_:
 5687|  1.62k|    {
 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|  1.62k|        return get_byte_positions(leaf_element);
 5736|  1.62k|#endif
 5737|  1.62k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exception18get_byte_positionsINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEEEESD_PKT_:
 5756|  1.62k|    {
 5757|  1.62k|        static_cast<void>(leaf_element);
 5758|  1.62k|        return "";
 5759|  1.62k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_rangeC2EiPKc:
 5895|  3.35k|    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|  1.62k|{
 5538|  1.62k|    OutStringType str;
 5539|  1.62k|    str.reserve(concat_length(args...));
 5540|  1.62k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.62k|    return str;
 5542|  1.62k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA8_cNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|  1.62k|{
 5442|  1.62k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA8_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  1.62k|{
 5442|  1.62k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.62k|}
_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|  1.62k|{
 5501|  1.62k|    out.append(std::forward<Arg>(arg));
 5502|  1.62k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA8_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.62k|{
 5501|  1.62k|    out.append(std::forward<Arg>(arg));
 5502|  1.62k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.62k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA8_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  1.62k|{
 5501|  1.62k|    out.append(std::forward<Arg>(arg));
 5502|  1.62k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.62k|}
_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|   507k|    {
17916|   507k|        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|   507k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|   507k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 128, False: 507k]
  |  |  ------------------
  ------------------
17924|    128|        {
17925|    128|            return false;
17926|    128|        }
17927|       |
17928|   507k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 213k, False: 293k]
  ------------------
17929|   213k|        {
17930|   213k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|   213k|        }
17932|       |
17933|   507k|        return true;
17934|   507k|    }
_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|   254k|{
16442|   254k|    arr.reserve(count);
16443|   254k|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state13reserve_countEm:
16700|   254k|    {
16701|   254k|        const std::size_t count = (std::min)(len, reserve_cap());
16702|   254k|        if (JSON_HEDLEY_LIKELY(count <= reserve_credit))
  ------------------
  |  | 1696|   254k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 249k, False: 4.47k]
  |  |  ------------------
  ------------------
16703|   249k|        {
16704|   249k|            reserve_credit -= count;
16705|   249k|            return count;
16706|   249k|        }
16707|  4.47k|        return reserve_count_slowly(count);
16708|   254k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11reserve_capEv:
16382|   254k|{
16383|   254k|    return 16384;
16384|   254k|}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state20reserve_count_slowlyEm:
16714|  4.47k|    {
16715|  4.47k|        constexpr std::size_t max_size = (std::numeric_limits<std::size_t>::max)();
16716|  4.47k|        if (input_position == nullptr)
  ------------------
  |  Branch (16716:13): [True: 0, False: 4.47k]
  ------------------
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|  4.47k|        const std::size_t position = *input_position;
16728|  4.47k|        if (position > credit_position)
  ------------------
  |  Branch (16728:13): [True: 4.34k, False: 126]
  ------------------
16729|  4.34k|        {
16730|  4.34k|            const std::size_t bytes = position - credit_position;
16731|  4.34k|            reserve_credit = bytes <= (max_size - reserve_credit) / reserved_elements_per_byte
  ------------------
  |  Branch (16731:30): [True: 4.34k, False: 0]
  ------------------
16732|  4.34k|                             ? reserve_credit + (reserved_elements_per_byte * bytes)
16733|  4.34k|                             : max_size;
16734|  4.34k|            credit_position = position;
16735|  4.34k|        }
16736|       |
16737|  4.47k|        count = (std::min)(count, reserve_credit);
16738|  4.47k|        reserve_credit -= count;
16739|  4.47k|        return count;
16740|  4.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_EEE15container_frameC2Embm:
19167|   556k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail12unknown_sizeEv:
16376|  2.27M|{
16377|  2.27M|    return (std::numeric_limits<std::size_t>::max)();
16378|  2.27M|}
_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|   458k|    {
19234|   458k|        const bool is_object = container_stack.back().is_object;
19235|   458k|        container_stack.pop_back();
19236|   458k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 83.3k, False: 375k]
  ------------------
19237|   458k|    }
_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|   104k|    {
17902|   104k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|   104k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 104k, False: 0]
  ------------------
17903|   104k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|   104k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 104k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|   104k|        ref_stack.back()->set_parents();
17910|   104k|        ref_stack.pop_back();
17911|   104k|        return true;
17912|   104k|    }
_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|   418k|    {
17938|   418k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|   418k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 418k, False: 0]
  ------------------
17939|   418k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|   418k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 418k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|   418k|        ref_stack.back()->set_parents();
17946|   418k|        ref_stack.pop_back();
17947|   418k|        return true;
17948|   418k|    }
_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|   814k|    {
23975|   814k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   814k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9.30k, False: 805k]
  |  |  ------------------
  ------------------
23976|  9.30k|        {
23977|  9.30k|            return report_eof(context);
23978|  9.30k|        }
23979|   805k|        return true;
23980|   814k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E14bulk_remainingEv:
10370|   213k|    {
10371|   213k|        return remaining_count();
10372|   213k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_dataEv:
10364|   204k|    {
10365|   204k|        return &*current;
10366|   204k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_skipEm:
10376|   204k|    {
10377|   204k|        std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(n));
10378|   204k|    }
_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|   230k|    {
23812|   230k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 230k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|   230k|    }
_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|   217k|    {
17891|   217k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|   217k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 217k, False: 0]
  ------------------
17892|   217k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|   217k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 217k, 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|   217k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|   217k|        return true;
17898|   217k|    }
_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|   120k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|   120k|        auto new_chars_read = ia.get_elements(&dest);
23507|   120k|        chars_read += new_chars_read;
23508|   120k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|   120k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 210, False: 119k]
  |  |  ------------------
  ------------------
23509|    210|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    210|            ++chars_read;
23512|    210|            static_cast<void>(report_eof(context));
23513|    210|            return false;
23514|    210|        }
23515|   119k|        return true;
23516|   120k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIdEEmPT_m:
10326|   120k|    {
10327|   120k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|   120k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIdEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|   120k|    {
10385|   120k|        const std::size_t wanted = count * sizeof(T);
10386|   120k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|   120k|        const std::size_t copied = (std::min)(wanted, available);
10388|   120k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|   120k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 119k, False: 174]
  |  |  ------------------
  ------------------
10389|   119k|        {
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|   119k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|   119k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 119k, False: 0]
  ------------------
10394|   119k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|   119k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 119k, 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|   119k|            std::memcpy(dest, &*current, copied);
10398|   119k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|   119k|        }
10400|   120k|        return copied;
10401|   120k|    }
_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|   164k|    {
23683|   164k|        const auto result = static_cast<number_float_t>(number);
23684|   164k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|   323k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 164k]
  |  |  |  Branch (1697:94): [True: 158k, False: 6.20k]
  |  |  |  Branch (1697:94): [True: 0, False: 158k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|   164k|        return sax->number_float(result, no_source);
23689|   164k|    }
_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|    237|    {
24002|    237|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|    237|    }
_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.60k|    {
24092|  4.60k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  4.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idERKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5889|  1.73k|    {
 5890|  1.73k|        return create(static_cast<int>(id_), what_arg, context);
 5891|  1.73k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12out_of_range6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5882|  1.73k|    {
 5883|  1.73k|        const std::string w = exception::what_impl("out_of_range", id_, what_arg, context);
 5884|  1.73k|        return {id_, w.c_str()};
 5885|  1.73k|    }
_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|   288k|    {
17857|   288k|        handle_value(val);
17858|   288k|        return true;
17859|   288k|    }
_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|   288k|    {
17962|   288k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 13.5k, False: 274k]
  ------------------
17963|  13.5k|        {
17964|  13.5k|            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|  13.5k|            return &root;
17971|  13.5k|        }
17972|       |
17973|   274k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   274k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 270k, False: 4.37k]
  |  Branch (17973:9): [True: 4.37k, False: 0]
  |  Branch (17973:9): [True: 274k, False: 0]
  ------------------
17974|       |
17975|   274k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 270k, False: 4.37k]
  ------------------
17976|   270k|        {
17977|   270k|            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|   270k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   270k|        }
17985|       |
17986|  4.37k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.37k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.37k, False: 0]
  ------------------
17987|  4.37k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.37k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.37k, False: 0]
  ------------------
17988|  4.37k|        *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.37k|        return object_element;
17995|  4.37k|    }
_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|   410k|    {
42543|   410k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   410k|        set_parents();
42545|   410k|        assert_invariant();
42546|   410k|    }
_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|   410k|    {
 8497|   410k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   410k|    }
_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|   410k|    {
 8441|   410k|        return to_json(j, std::forward<T>(val));
 8442|   410k|    }
_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|   410k|{
 8129|   410k|    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
 8130|   410k|}
_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|   410k|    {
 7919|   410k|        j.replace_value(value_t::number_float, val);
 7920|   410k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE13replace_valueENS0_6detail7value_tERKNSE_10json_valueE:
41322|  1.30M|    {
41323|  1.30M|        m_data.m_value.destroy(m_data.m_type);
41324|  1.30M|        m_data.m_value = v;
41325|  1.30M|        m_data.m_type = t;
41326|  1.30M|        set_parents();
41327|  1.30M|        assert_invariant();
41328|  1.30M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Ed:
40810|   410k|        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: 669, False: 804]
  ------------------
23898|    669|        {
23899|    669|            return true;
23900|    669|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    804|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    804|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 240, False: 564]
  ------------------
23906|    240|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    240|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 99, False: 141]
  ------------------
23910|    240|                                       ? static_cast<std::size_t>(len)
23911|    240|                                       : chunk_size;
23912|    240|            const std::size_t old_size = result.size();
23913|    240|            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|    240|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    240|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 240, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    240|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    240|            chars_read += bytes_read;
23921|    240|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    240|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 240, False: 0]
  |  |  ------------------
  ------------------
23922|    240|            {
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|    240|                result.resize(old_size + bytes_read);
23927|    240|                ++chars_read;
23928|    240|                current = char_traits<char_type>::eof();
23929|    240|                return unexpect_eof(context);
23930|    240|            }
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|    564|        return true;
23936|    804|    }
_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: 564, False: 909]
  ------------------
23944|    564|        {
23945|    564|            return false;
23946|    564|        }
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|    909|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    909|        const std::size_t remaining = ia.bulk_remaining();
23951|    909|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 240, False: 669]
  ------------------
23952|    240|        {
23953|    240|            return false; // (the loop reports the premature end)
23954|    240|        }
23955|    669|        const auto n = static_cast<std::size_t>(ulen);
23956|    669|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    669|        ia.bulk_skip(n);
23958|    669|        chars_read += n;
23959|    669|        return true;
23960|    909|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIcEEmPT_m:
10326|  2.07k|    {
10327|  2.07k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  2.07k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIcEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  2.07k|    {
10385|  2.07k|        const std::size_t wanted = count * sizeof(T);
10386|  2.07k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  2.07k|        const std::size_t copied = (std::min)(wanted, available);
10388|  2.07k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  2.07k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 411, False: 1.66k]
  |  |  ------------------
  ------------------
10389|    411|        {
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|    411|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|    411|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 411, False: 0]
  ------------------
10394|    411|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|    411|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 411, 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|    411|            std::memcpy(dest, &*current, copied);
10398|    411|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|    411|        }
10400|  2.07k|        return copied;
10401|  2.07k|    }
_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|   125k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|   125k|        handle_value(std::move(val));
17866|   125k|        return true;
17867|   125k|    }
_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|   125k|    {
17962|   125k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 3.41k, False: 121k]
  ------------------
17963|  3.41k|        {
17964|  3.41k|            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.41k|            return &root;
17971|  3.41k|        }
17972|       |
17973|   121k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   121k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 75.5k, False: 46.0k]
  |  Branch (17973:9): [True: 46.0k, False: 0]
  |  Branch (17973:9): [True: 121k, False: 0]
  ------------------
17974|       |
17975|   121k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 75.5k, False: 46.0k]
  ------------------
17976|  75.5k|        {
17977|  75.5k|            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|  75.5k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  75.5k|        }
17985|       |
17986|  46.0k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  46.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 46.0k, False: 0]
  ------------------
17987|  46.0k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  46.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 46.0k, False: 0]
  ------------------
17988|  46.0k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  46.0k|        return object_element;
17995|  46.0k|    }
_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|   177k|    {
42543|   177k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   177k|        set_parents();
42545|   177k|        assert_invariant();
42546|   177k|    }
_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|   177k|    {
 8497|   177k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   177k|    }
_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|   177k|    {
 8441|   177k|        return to_json(j, std::forward<T>(val));
 8442|   177k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRT_ONSH_8string_tE:
 8121|   177k|{
 8122|   177k|    external_constructor<value_t::string>::construct(j, std::move(s));
 8123|   177k|}
_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|   177k|    {
 7881|   177k|        const typename BasicJsonType::json_value value(std::move(s));
 7882|   177k|        j.replace_value(value_t::string, value);
 7883|   177k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2EOSA_:
40901|   177k|        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|   177k|    {
40735|   177k|        AllocatorType<T> alloc;
40736|   177k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|   177k|        auto deleter = [&](T * obj)
40739|   177k|        {
40740|   177k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|   177k|        };
40742|   177k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|   177k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|   177k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|   177k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 177k, False: 0]
  ------------------
40745|   177k|        return obj.release();
40746|   177k|    }
_ZN8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
 8534|  20.8k|        : container_type()
 8535|  20.8k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIhEEmPT_m:
10326|   166k|    {
10327|   166k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|   166k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIhEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|   166k|    {
10385|   166k|        const std::size_t wanted = count * sizeof(T);
10386|   166k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|   166k|        const std::size_t copied = (std::min)(wanted, available);
10388|   166k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|   166k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 165k, False: 891]
  |  |  ------------------
  ------------------
10389|   165k|        {
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|   165k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|   165k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 165k, False: 0]
  ------------------
10394|   165k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|   165k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 165k, 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|   165k|            std::memcpy(dest, &*current, copied);
10398|   165k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|   165k|        }
10400|   166k|        return copied;
10401|   166k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  10.0k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  10.0k|        handle_value(std::move(val));
17874|  10.0k|        return true;
17875|  10.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_EEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  10.0k|    {
17962|  10.0k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 231, False: 9.80k]
  ------------------
17963|    231|        {
17964|    231|            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|    231|            return &root;
17971|    231|        }
17972|       |
17973|  9.80k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  9.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 8.36k, False: 1.44k]
  |  Branch (17973:9): [True: 1.44k, False: 0]
  |  Branch (17973:9): [True: 9.80k, False: 0]
  ------------------
17974|       |
17975|  9.80k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 8.36k, False: 1.44k]
  ------------------
17976|  8.36k|        {
17977|  8.36k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  8.36k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  8.36k|        }
17985|       |
17986|  1.44k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.44k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.44k, False: 0]
  ------------------
17987|  1.44k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.44k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.44k, False: 0]
  ------------------
17988|  1.44k|        *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.44k|        return object_element;
17995|  1.44k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2INS0_27byte_container_with_subtypeISD_EESH_TnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SJ_EE5valueEiE4typeELi0EEEOT_:
42542|  20.0k|    {
42543|  20.0k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  20.0k|        set_parents();
42545|  20.0k|        assert_invariant();
42546|  20.0k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerINS0_27byte_container_with_subtypeINSt3__16vectorIhNS3_9allocatorIhEEEEEEvE7to_jsonINS0_10basic_jsonINS3_3mapES4_NS3_12basic_stringIcNS3_11char_traitsIcEENS5_IcEEEEblmdS5_S1_S7_vEES8_EEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSK_:
 8496|  20.0k|    {
 8497|  20.0k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  20.0k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS0_27byte_container_with_subtypeISG_EEEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSK_:
 8440|  20.0k|    {
 8441|  20.0k|        return to_json(j, std::forward<T>(val));
 8442|  20.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRT_RKNSH_8binary_tE:
 8261|  20.0k|{
 8262|  20.0k|    external_constructor<value_t::binary>::construct(j, bin);
 8263|  20.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE8EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_RKNSK_8binary_tE:
 7900|  20.0k|    {
 7901|  20.0k|        const typename BasicJsonType::json_value value(b);
 7902|  20.0k|        j.replace_value(value_t::binary, value);
 7903|  20.0k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ERKNS0_27byte_container_with_subtypeISD_EE:
40922|  20.0k|        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS0_27byte_container_with_subtypeISD_EEJRKSH_EEEPT_DpOT0_:
40734|  20.0k|    {
40735|  20.0k|        AllocatorType<T> alloc;
40736|  20.0k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  20.0k|        auto deleter = [&](T * obj)
40739|  20.0k|        {
40740|  20.0k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  20.0k|        };
40742|  20.0k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  20.0k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  20.0k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  20.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 20.0k, False: 0]
  ------------------
40745|  20.0k|        return obj.release();
40746|  20.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_EEE10get_numberIhLb0EEEbRT_:
23596|   161k|    {
23597|       |        // read in the original format
23598|       |
23599|   161k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|   161k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 174, False: 161k]
  |  |  ------------------
  ------------------
23600|    174|        {
23601|    174|            return false;
23602|    174|        }
23603|   161k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 161k]
  |  Branch (23603:34): [Folded, False: 160k]
  |  Branch (23603:57): [True: 160k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|   161k|        return true;
23608|   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_EEE6get_toIhEEbRT_PKc:
23503|   161k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|   161k|        auto new_chars_read = ia.get_elements(&dest);
23507|   161k|        chars_read += new_chars_read;
23508|   161k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|   161k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 522, False: 160k]
  |  |  ------------------
  ------------------
23509|    522|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    522|            ++chars_read;
23512|    522|            static_cast<void>(report_eof(context));
23513|    522|            return false;
23514|    522|        }
23515|   160k|        return true;
23516|   161k|    }
_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|   111k|    {
17839|   111k|        handle_value(val);
17840|   111k|        return true;
17841|   111k|    }
_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|   111k|    {
17962|   111k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 150, False: 111k]
  ------------------
17963|    150|        {
17964|    150|            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|    150|            return &root;
17971|    150|        }
17972|       |
17973|   111k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   111k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 85.4k, False: 25.7k]
  |  Branch (17973:9): [True: 25.7k, False: 0]
  |  Branch (17973:9): [True: 111k, False: 0]
  ------------------
17974|       |
17975|   111k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 85.4k, False: 25.7k]
  ------------------
17976|  85.4k|        {
17977|  85.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|  85.4k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  85.4k|        }
17985|       |
17986|  25.7k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  25.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 25.7k, False: 0]
  ------------------
17987|  25.7k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  25.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 25.7k, False: 0]
  ------------------
17988|  25.7k|        *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|  25.7k|        return object_element;
17995|  25.7k|    }
_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|   164k|    {
42543|   164k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   164k|        set_parents();
42545|   164k|        assert_invariant();
42546|   164k|    }
_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|   164k|    {
 8497|   164k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   164k|    }
_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|   164k|    {
 8441|   164k|        return to_json(j, std::forward<T>(val));
 8442|   164k|    }
_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|   164k|{
 8096|   164k|    external_constructor<value_t::boolean>::construct(j, b);
 8097|   164k|}
_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|   164k|    {
 7864|   164k|        j.replace_value(value_t::boolean, b);
 7865|   164k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Eb:
40804|   164k|        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|  76.8k|    {
17833|  76.8k|        handle_value(nullptr);
17834|  76.8k|        return true;
17835|  76.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIDnEEPSG_OT_:
17961|  76.8k|    {
17962|  76.8k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 51, False: 76.8k]
  ------------------
17963|     51|        {
17964|     51|            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|     51|            return &root;
17971|     51|        }
17972|       |
17973|  76.8k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  76.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 46.6k, False: 30.1k]
  |  Branch (17973:9): [True: 30.1k, False: 0]
  |  Branch (17973:9): [True: 76.8k, False: 0]
  ------------------
17974|       |
17975|  76.8k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 46.6k, False: 30.1k]
  ------------------
17976|  46.6k|        {
17977|  46.6k|            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|  46.6k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  46.6k|        }
17985|       |
17986|  30.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  30.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 30.1k, False: 0]
  ------------------
17987|  30.1k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  30.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 30.1k, False: 0]
  ------------------
17988|  30.1k|        *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|  30.1k|        return object_element;
17995|  30.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_EEE11emit_signedIiEEbT_:
23628|  18.3k|    {
23629|  18.3k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  18.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 18.3k, False: 0]
  |  |  ------------------
  ------------------
23630|  18.3k|        {
23631|  18.3k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  18.3k|        }
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|  24.6k|{
 5317|  24.6k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  24.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IliLb1EvE4testEi:
 5309|  24.6k|    {
 5310|  24.6k|        return true;
 5311|  24.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE14number_integerEl:
17844|   176k|    {
17845|   176k|        handle_value(val);
17846|   176k|        return true;
17847|   176k|    }
_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|   176k|    {
17962|   176k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 4.05k, False: 172k]
  ------------------
17963|  4.05k|        {
17964|  4.05k|            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|  4.05k|            return &root;
17971|  4.05k|        }
17972|       |
17973|   172k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   172k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 162k, False: 9.72k]
  |  Branch (17973:9): [True: 9.72k, False: 0]
  |  Branch (17973:9): [True: 172k, False: 0]
  ------------------
17974|       |
17975|   172k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 162k, False: 9.72k]
  ------------------
17976|   162k|        {
17977|   162k|            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|   162k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   162k|        }
17985|       |
17986|  9.72k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  9.72k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 9.72k, False: 0]
  ------------------
17987|  9.72k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  9.72k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 9.72k, False: 0]
  ------------------
17988|  9.72k|        *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|  9.72k|        return object_element;
17995|  9.72k|    }
_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|   228k|    {
42543|   228k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   228k|        set_parents();
42545|   228k|        assert_invariant();
42546|   228k|    }
_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|   228k|    {
 8497|   228k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   228k|    }
_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|   228k|    {
 8441|   228k|        return to_json(j, std::forward<T>(val));
 8442|   228k|    }
_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|   228k|{
 8143|   228k|    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
 8144|   228k|}
_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|   228k|    {
 7939|   228k|        j.replace_value(value_t::number_integer, val);
 7940|   228k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2El:
40806|   228k|        json_value(number_integer_t v) noexcept : number_integer(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImiEEbT0_:
 5316|  4.68k|{
 5317|  4.68k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  4.68k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImiLb0EvE4testEi:
 5300|  4.68k|    {
 5301|  4.68k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  4.68k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImiLb0ELb1EE4testEi:
 5274|  4.68k|    {
 5275|  4.68k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  4.68k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 4.68k, False: 0]
  |  Branch (5276:28): [True: 4.68k, False: 0]
  ------------------
 5277|  4.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_adapterIPKhSJ_EEE15number_unsignedEm:
17850|   213k|    {
17851|   213k|        handle_value(val);
17852|   213k|        return true;
17853|   213k|    }
_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|   213k|    {
17962|   213k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 2.32k, False: 210k]
  ------------------
17963|  2.32k|        {
17964|  2.32k|            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.32k|            return &root;
17971|  2.32k|        }
17972|       |
17973|   210k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|   210k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 200k, False: 10.1k]
  |  Branch (17973:9): [True: 10.1k, False: 0]
  |  Branch (17973:9): [True: 210k, False: 0]
  ------------------
17974|       |
17975|   210k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 200k, False: 10.1k]
  ------------------
17976|   200k|        {
17977|   200k|            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|   200k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|   200k|        }
17985|       |
17986|  10.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  10.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 10.1k, False: 0]
  ------------------
17987|  10.1k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  10.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 10.1k, False: 0]
  ------------------
17988|  10.1k|        *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|  10.1k|        return object_element;
17995|  10.1k|    }
_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|   303k|    {
42543|   303k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|   303k|        set_parents();
42545|   303k|        assert_invariant();
42546|   303k|    }
_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|   303k|    {
 8497|   303k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|   303k|    }
_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|   303k|    {
 8441|   303k|        return to_json(j, std::forward<T>(val));
 8442|   303k|    }
_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|   303k|{
 8136|   303k|    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
 8137|   303k|}
_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|   303k|    {
 7929|   303k|        j.replace_value(value_t::number_unsigned, val);
 7930|   303k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Em:
40808|   303k|        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|  19.1k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  19.1k|        auto new_chars_read = ia.get_elements(&dest);
23507|  19.1k|        chars_read += new_chars_read;
23508|  19.1k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  19.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 348, False: 18.7k]
  |  |  ------------------
  ------------------
23509|    348|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    348|            ++chars_read;
23512|    348|            static_cast<void>(report_eof(context));
23513|    348|            return false;
23514|    348|        }
23515|  18.7k|        return true;
23516|  19.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIlEEmPT_m:
10326|  19.1k|    {
10327|  19.1k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  19.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIlEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  19.1k|    {
10385|  19.1k|        const std::size_t wanted = count * sizeof(T);
10386|  19.1k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  19.1k|        const std::size_t copied = (std::min)(wanted, available);
10388|  19.1k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  19.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 18.8k, False: 228]
  |  |  ------------------
  ------------------
10389|  18.8k|        {
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.8k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  18.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 18.8k, False: 0]
  ------------------
10394|  18.8k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  18.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 18.8k, 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.8k|            std::memcpy(dest, &*current, copied);
10398|  18.8k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  18.8k|        }
10400|  19.1k|        return copied;
10401|  19.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_EEE11emit_signedIlEEbT_:
23628|  21.0k|    {
23629|  21.0k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  21.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 21.0k, False: 0]
  |  |  ------------------
  ------------------
23630|  21.0k|        {
23631|  21.0k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  21.0k|        }
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|  36.9k|{
 5317|  36.9k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  36.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IllLb1EvE4testEl:
 5309|  36.9k|    {
 5310|  36.9k|        return true;
 5311|  36.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImlEEbT0_:
 5316|  15.3k|{
 5317|  15.3k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  15.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImlLb0EvE4testEl:
 5300|  15.3k|    {
 5301|  15.3k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  15.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImlLb0ELb1EE4testEl:
 5274|  15.3k|    {
 5275|  15.3k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  15.3k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 14.8k, False: 502]
  |  Branch (5276:28): [True: 14.8k, False: 0]
  ------------------
 5277|  15.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_toImEEbRT_PKc:
23503|  19.0k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  19.0k|        auto new_chars_read = ia.get_elements(&dest);
23507|  19.0k|        chars_read += new_chars_read;
23508|  19.0k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  19.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 426, False: 18.6k]
  |  |  ------------------
  ------------------
23509|    426|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    426|            ++chars_read;
23512|    426|            static_cast<void>(report_eof(context));
23513|    426|            return false;
23514|    426|        }
23515|  18.6k|        return true;
23516|  19.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsImEEmPT_m:
10326|  19.0k|    {
10327|  19.0k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  19.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implImEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  19.0k|    {
10385|  19.0k|        const std::size_t wanted = count * sizeof(T);
10386|  19.0k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  19.0k|        const std::size_t copied = (std::min)(wanted, available);
10388|  19.0k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  19.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 18.7k, False: 312]
  |  |  ------------------
  ------------------
10389|  18.7k|        {
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.7k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  18.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 18.7k, False: 0]
  ------------------
10394|  18.7k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  18.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 18.7k, 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.7k|            std::memcpy(dest, &*current, copied);
10398|  18.7k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  18.7k|        }
10400|  19.0k|        return copied;
10401|  19.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_EEE13emit_unsignedImEEbT_:
23656|  79.8k|    {
23657|  79.8k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  79.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 79.8k, False: 0]
  |  |  ------------------
  ------------------
23658|  79.8k|        {
23659|  79.8k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  79.8k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  79.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImmEEbT0_:
 5316|   214k|{
 5317|   214k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|   214k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImmLb1EvE4testEm:
 5309|   214k|    {
 5310|   214k|        return true;
 5311|   214k|    }
_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_numberItLb0EEEbRT_:
23596|  17.2k|    {
23597|       |        // read in the original format
23598|       |
23599|  17.2k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  17.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 17.0k]
  |  |  ------------------
  ------------------
23600|    153|        {
23601|    153|            return false;
23602|    153|        }
23603|  17.0k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 17.0k]
  |  Branch (23603:34): [Folded, False: 16.7k]
  |  Branch (23603:57): [True: 16.7k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  17.0k|        return true;
23608|  17.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_EEE6get_toItEEbRT_PKc:
23503|  17.2k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  17.2k|        auto new_chars_read = ia.get_elements(&dest);
23507|  17.2k|        chars_read += new_chars_read;
23508|  17.2k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  17.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 459, False: 16.7k]
  |  |  ------------------
  ------------------
23509|    459|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    459|            ++chars_read;
23512|    459|            static_cast<void>(report_eof(context));
23513|    459|            return false;
23514|    459|        }
23515|  16.7k|        return true;
23516|  17.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsItEEmPT_m:
10326|  17.2k|    {
10327|  17.2k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  17.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implItEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  17.2k|    {
10385|  17.2k|        const std::size_t wanted = count * sizeof(T);
10386|  17.2k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  17.2k|        const std::size_t copied = (std::min)(wanted, available);
10388|  17.2k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  17.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 16.8k, False: 378]
  |  |  ------------------
  ------------------
10389|  16.8k|        {
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|  16.8k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 16.8k, False: 0]
  ------------------
10394|  16.8k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 16.8k, 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|  16.8k|            std::memcpy(dest, &*current, copied);
10398|  16.8k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  16.8k|        }
10400|  17.2k|        return copied;
10401|  17.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_numberIjLb0EEEbRT_:
23596|  9.92k|    {
23597|       |        // read in the original format
23598|       |
23599|  9.92k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  9.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 9.80k]
  |  |  ------------------
  ------------------
23600|    129|        {
23601|    129|            return false;
23602|    129|        }
23603|  9.80k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 9.80k]
  |  Branch (23603:34): [Folded, False: 9.54k]
  |  Branch (23603:57): [True: 9.54k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  9.80k|        return true;
23608|  9.92k|    }
_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_toIjEEbRT_PKc:
23503|  9.92k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  9.92k|        auto new_chars_read = ia.get_elements(&dest);
23507|  9.92k|        chars_read += new_chars_read;
23508|  9.92k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  9.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 387, False: 9.54k]
  |  |  ------------------
  ------------------
23509|    387|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    387|            ++chars_read;
23512|    387|            static_cast<void>(report_eof(context));
23513|    387|            return false;
23514|    387|        }
23515|  9.54k|        return true;
23516|  9.92k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIjEEmPT_m:
10326|  9.92k|    {
10327|  9.92k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  9.92k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIjEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  9.92k|    {
10385|  9.92k|        const std::size_t wanted = count * sizeof(T);
10386|  9.92k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  9.92k|        const std::size_t copied = (std::min)(wanted, available);
10388|  9.92k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  9.92k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.62k, False: 306]
  |  |  ------------------
  ------------------
10389|  9.62k|        {
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|  9.62k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  9.62k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 9.62k, False: 0]
  ------------------
10394|  9.62k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  9.62k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 9.62k, 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|  9.62k|            std::memcpy(dest, &*current, copied);
10398|  9.62k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  9.62k|        }
10400|  9.92k|        return copied;
10401|  9.92k|    }
_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_numberImLb0EEEbRT_:
23596|  19.0k|    {
23597|       |        // read in the original format
23598|       |
23599|  19.0k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  19.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 142, False: 18.9k]
  |  |  ------------------
  ------------------
23600|    142|        {
23601|    142|            return false;
23602|    142|        }
23603|  18.9k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 18.9k]
  |  Branch (23603:34): [Folded, False: 18.6k]
  |  Branch (23603:57): [True: 18.6k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  18.9k|        return true;
23608|  19.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA16_cNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|  1.90k|{
 5442|  1.90k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.90k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA16_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  2.70k|{
 5442|  2.70k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  2.70k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  2.70k|{
 5501|  2.70k|    out.append(std::forward<Arg>(arg));
 5502|  2.70k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  2.70k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA16_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  2.70k|{
 5501|  2.70k|    out.append(std::forward<Arg>(arg));
 5502|  2.70k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  2.70k|}
_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_stringIjEEbT_RSC_:
23767|  1.26k|    {
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.26k|        return get_bytes(len, "string", result);
23778|  1.26k|    }
_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_bytesIjSC_EEbT_PKcRT0_:
23893|  1.26k|    {
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.26k|        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.26k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 528, False: 741]
  ------------------
23898|    528|        {
23899|    528|            return true;
23900|    528|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    741|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    741|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 291, False: 450]
  ------------------
23906|    291|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    291|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 123, False: 168]
  ------------------
23910|    291|                                       ? static_cast<std::size_t>(len)
23911|    291|                                       : chunk_size;
23912|    291|            const std::size_t old_size = result.size();
23913|    291|            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|    291|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    291|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 291, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    291|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    291|            chars_read += bytes_read;
23921|    291|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    291|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 291, False: 0]
  |  |  ------------------
  ------------------
23922|    291|            {
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|    291|                result.resize(old_size + bytes_read);
23927|    291|                ++chars_read;
23928|    291|                current = char_traits<char_type>::eof();
23929|    291|                return unexpect_eof(context);
23930|    291|            }
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|    450|        return true;
23936|    741|    }
_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_blockIjEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  1.26k|    {
23943|  1.26k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 450, False: 819]
  ------------------
23944|    450|        {
23945|    450|            return false;
23946|    450|        }
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|    819|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    819|        const std::size_t remaining = ia.bulk_remaining();
23951|    819|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 291, False: 528]
  ------------------
23952|    291|        {
23953|    291|            return false; // (the loop reports the premature end)
23954|    291|        }
23955|    528|        const auto n = static_cast<std::size_t>(ulen);
23956|    528|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    528|        ia.bulk_skip(n);
23958|    528|        chars_read += n;
23959|    528|        return true;
23960|    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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  65.6k|    {
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|  65.6k|        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|  65.6k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 38.0k, False: 27.6k]
  ------------------
23898|  38.0k|        {
23899|  38.0k|            return true;
23900|  38.0k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  27.6k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  27.6k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 120, False: 27.4k]
  ------------------
23906|    120|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    120|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 120, False: 0]
  ------------------
23910|    120|                                       ? static_cast<std::size_t>(len)
23911|    120|                                       : chunk_size;
23912|    120|            const std::size_t old_size = result.size();
23913|    120|            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|    120|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    120|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 120, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    120|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    120|            chars_read += bytes_read;
23921|    120|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    120|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 120, False: 0]
  |  |  ------------------
  ------------------
23922|    120|            {
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|    120|                result.resize(old_size + bytes_read);
23927|    120|                ++chars_read;
23928|    120|                current = char_traits<char_type>::eof();
23929|    120|                return unexpect_eof(context);
23930|    120|            }
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|  27.4k|        return true;
23936|  27.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_EEE17append_from_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  65.6k|    {
23943|  65.6k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 27.4k, False: 38.1k]
  ------------------
23944|  27.4k|        {
23945|  27.4k|            return false;
23946|  27.4k|        }
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|  38.1k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  38.1k|        const std::size_t remaining = ia.bulk_remaining();
23951|  38.1k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 120, False: 38.0k]
  ------------------
23952|    120|        {
23953|    120|            return false; // (the loop reports the premature end)
23954|    120|        }
23955|  38.0k|        const auto n = static_cast<std::size_t>(ulen);
23956|  38.0k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  38.0k|        ia.bulk_skip(n);
23958|  38.0k|        chars_read += n;
23959|  38.0k|        return true;
23960|  38.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_EEE9get_bytesItSC_EEbT_PKcRT0_:
23893|  2.62k|    {
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.62k|        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.62k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 1.31k, False: 1.31k]
  ------------------
23898|  1.31k|        {
23899|  1.31k|            return true;
23900|  1.31k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.31k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.31k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 207, False: 1.10k]
  ------------------
23906|    207|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    207|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 147, False: 60]
  ------------------
23910|    207|                                       ? static_cast<std::size_t>(len)
23911|    207|                                       : chunk_size;
23912|    207|            const std::size_t old_size = result.size();
23913|    207|            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|    207|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    207|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 207, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    207|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    207|            chars_read += bytes_read;
23921|    207|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    207|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 207, False: 0]
  |  |  ------------------
  ------------------
23922|    207|            {
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|    207|                result.resize(old_size + bytes_read);
23927|    207|                ++chars_read;
23928|    207|                current = char_traits<char_type>::eof();
23929|    207|                return unexpect_eof(context);
23930|    207|            }
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.10k|        return true;
23936|  1.31k|    }
_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_blockItEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.62k|    {
23943|  2.62k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 1.10k, False: 1.51k]
  ------------------
23944|  1.10k|        {
23945|  1.10k|            return false;
23946|  1.10k|        }
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.51k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.51k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.51k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 207, False: 1.31k]
  ------------------
23952|    207|        {
23953|    207|            return false; // (the loop reports the premature end)
23954|    207|        }
23955|  1.31k|        const auto n = static_cast<std::size_t>(ulen);
23956|  1.31k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  1.31k|        ia.bulk_skip(n);
23958|  1.31k|        chars_read += n;
23959|  1.31k|        return true;
23960|  1.51k|    }
_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_bytesImSC_EEbT_PKcRT0_:
23893|  1.69k|    {
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.69k|        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.69k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 558, False: 1.13k]
  ------------------
23898|    558|        {
23899|    558|            return true;
23900|    558|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.13k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.13k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 516, False: 618]
  ------------------
23906|    516|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    516|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 90, False: 426]
  ------------------
23910|    516|                                       ? static_cast<std::size_t>(len)
23911|    516|                                       : chunk_size;
23912|    516|            const std::size_t old_size = result.size();
23913|    516|            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|    516|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    516|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 516, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    516|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    516|            chars_read += bytes_read;
23921|    516|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    516|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 516, False: 0]
  |  |  ------------------
  ------------------
23922|    516|            {
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|    516|                result.resize(old_size + bytes_read);
23927|    516|                ++chars_read;
23928|    516|                current = char_traits<char_type>::eof();
23929|    516|                return unexpect_eof(context);
23930|    516|            }
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|    618|        return true;
23936|  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_EEE17append_from_blockImEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  1.69k|    {
23943|  1.69k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 618, False: 1.07k]
  ------------------
23944|    618|        {
23945|    618|            return false;
23946|    618|        }
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.07k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.07k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.07k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 516, False: 558]
  ------------------
23952|    516|        {
23953|    516|            return false; // (the loop reports the premature end)
23954|    516|        }
23955|    558|        const auto n = static_cast<std::size_t>(ulen);
23956|    558|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    558|        ia.bulk_skip(n);
23958|    558|        chars_read += n;
23959|    558|        return true;
23960|  1.07k|    }
_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|  89.5k|    {
23657|  89.5k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  89.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 89.5k, False: 0]
  |  |  ------------------
  ------------------
23658|  89.5k|        {
23659|  89.5k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  89.5k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  89.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImhEEbT0_:
 5316|   116k|{
 5317|   116k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|   116k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImhLb0EvE4testEh:
 5300|   116k|    {
 5301|   116k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|   116k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImhLb0ELb0EE4testEh:
 5254|   116k|    {
 5255|   116k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|   116k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|   116k|    }
_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_unsignedItEEbT_:
23656|  18.2k|    {
23657|  18.2k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  18.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 18.2k, False: 0]
  |  |  ------------------
  ------------------
23658|  18.2k|        {
23659|  18.2k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  18.2k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  18.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImtEEbT0_:
 5316|  27.5k|{
 5317|  27.5k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  27.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImtLb0EvE4testEt:
 5300|  27.5k|    {
 5301|  27.5k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  27.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImtLb0ELb0EE4testEt:
 5254|  27.5k|    {
 5255|  27.5k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  27.5k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  27.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_EEE13emit_unsignedIjEEbT_:
23656|  12.3k|    {
23657|  12.3k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  12.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.3k, False: 0]
  |  |  ------------------
  ------------------
23658|  12.3k|        {
23659|  12.3k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  12.3k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  12.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImjEEbT0_:
 5316|  17.8k|{
 5317|  17.8k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  17.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImjLb0EvE4testEj:
 5300|  17.8k|    {
 5301|  17.8k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  17.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImjLb0ELb0EE4testEj:
 5254|  17.8k|    {
 5255|  17.8k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  17.8k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  17.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIlmEEbT0_:
 5316|  5.83k|{
 5317|  5.83k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  5.83k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlmLb0EvE4testEm:
 5300|  5.83k|    {
 5301|  5.83k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  5.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IlmLb1ELb0EE4testEm:
 5264|  5.83k|    {
 5265|  5.83k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  5.83k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  5.83k|    }
_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_bytesImNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  10.4k|    {
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|  10.4k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  10.4k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 10.4k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  10.4k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  15.2k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 5.20k, False: 10.0k]
  ------------------
23906|  5.20k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  5.20k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 4.92k, False: 279]
  ------------------
23910|  5.20k|                                       ? static_cast<std::size_t>(len)
23911|  5.20k|                                       : chunk_size;
23912|  5.20k|            const std::size_t old_size = result.size();
23913|  5.20k|            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|  5.20k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  5.20k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 5.20k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  5.20k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  5.20k|            chars_read += bytes_read;
23921|  5.20k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  5.20k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 405, False: 4.80k]
  |  |  ------------------
  ------------------
23922|    405|            {
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|    405|                result.resize(old_size + bytes_read);
23927|    405|                ++chars_read;
23928|    405|                current = char_traits<char_type>::eof();
23929|    405|                return unexpect_eof(context);
23930|    405|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  4.80k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  4.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 4.80k, False: 0]
  ------------------
23933|  4.80k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  4.80k|        }
23935|  10.0k|        return true;
23936|  10.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_EEE17append_from_blockImNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  10.4k|    {
23965|  10.4k|        return false;
23966|  10.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_EEE10emit_floatIfEEbT_:
23682|  12.0k|    {
23683|  12.0k|        const auto result = static_cast<number_float_t>(number);
23684|  12.0k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  22.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.0k]
  |  |  |  Branch (1697:94): [True: 10.1k, False: 1.90k]
  |  |  |  Branch (1697:94): [True: 0, False: 10.1k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  12.0k|        return sax->number_float(result, no_source);
23689|  12.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23conditional_static_castImjTnNSt3__19enable_ifIXntsr3std7is_sameIT_T0_EE5valueEiE4typeELi0EEES5_S6_:
 5203|  4.78k|{
 5204|  4.78k|    return static_cast<T>(value);
 5205|  4.78k|}
_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|   463k|    {
19214|   463k|        return enter_container(/*is_object*/false, len, type_marker);
19215|   463k|    }
_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|  93.8k|    {
19220|  93.8k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  93.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|    297|    {
24070|    297|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|    297|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRPKcRA5_SA_S9_EEET_DpOT0_:
 5537|    594|{
 5538|    594|    OutStringType str;
 5539|    594|    str.reserve(concat_length(args...));
 5540|    594|    concat_into(str, std::forward<Args>(args)...);
 5541|    594|    return str;
 5542|    594|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA5_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|    594|{
 5442|    594|    return ::strlen(cstr) + concat_length(rest...);
 5443|    594|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA5_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|    594|{
 5501|    594|    out.append(std::forward<Arg>(arg));
 5502|    594|    concat_into(out, std::forward<Args>(rest)...);
 5503|    594|}
_ZN8nlohmann16json_abi_v3_12_06detail23conditional_static_castImmTnNSt3__19enable_ifIXsr3std7is_sameIT_T0_EE5valueEiE4typeELi0EEES5_S6_:
 5209|  6.34k|{
 5210|  6.34k|    return value;
 5211|  6.34k|}
_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_EEE14get_half_floatEb:
23702|   101k|    {
23703|   101k|        const auto byte1_raw = get();
23704|   101k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   101k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 75, False: 101k]
  |  |  ------------------
  ------------------
23705|     75|        {
23706|     75|            return false;
23707|     75|        }
23708|   101k|        const auto byte2_raw = get();
23709|   101k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   101k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 23, False: 101k]
  |  |  ------------------
  ------------------
23710|     23|        {
23711|     23|            return false;
23712|     23|        }
23713|       |
23714|   101k|        const auto byte1 = static_cast<unsigned char>(byte1_raw);
23715|   101k|        const auto byte2 = static_cast<unsigned char>(byte2_raw);
23716|       |
23717|       |        // Code from RFC 8949, Appendix D, Figure 3:
23718|       |        // As half-precision floating-point numbers were only added
23719|       |        // to IEEE 754 in 2008, today's programming platforms often
23720|       |        // still only have limited support for them. It is very
23721|       |        // easy to include at least decoding support for them even
23722|       |        // without such support. An example of a small decoder for
23723|       |        // half-precision floating-point numbers in the C language
23724|       |        // is shown in Fig. 3.
23725|   101k|        const auto half = little_endian
  ------------------
  |  Branch (23725:27): [True: 101k, False: 196]
  ------------------
23726|   101k|                          ? static_cast<unsigned int>((byte2 << 8u) + byte1)
23727|   101k|                          : static_cast<unsigned int>((byte1 << 8u) + byte2);
23728|   101k|        const double val = [&half]
23729|   101k|        {
23730|   101k|            const int exp = (half >> 10u) & 0x1Fu;
23731|   101k|            const unsigned int mant = half & 0x3FFu;
23732|   101k|            JSON_ASSERT(exp <= 31);
23733|   101k|            JSON_ASSERT(mant <= 1023);
23734|   101k|            switch (exp)
23735|   101k|            {
23736|   101k|                case 0:
23737|   101k|                    return std::ldexp(mant, -24);
23738|   101k|                case 31:
23739|   101k|                    return (mant == 0)
23740|   101k|                    ? std::numeric_limits<double>::infinity()
23741|   101k|                    : std::numeric_limits<double>::quiet_NaN();
23742|   101k|                default:
23743|   101k|                    return std::ldexp(mant + 1024, exp - 25);
23744|   101k|            }
23745|   101k|        }();
23746|   101k|        return sax->number_float((half & 0x8000u) != 0
  ------------------
  |  Branch (23746:34): [True: 20.0k, False: 81.3k]
  ------------------
23747|   101k|                                 ? static_cast<number_float_t>(-val)
23748|   101k|                                 : static_cast<number_float_t>(val), no_source);
23749|   101k|    }
_ZZN8nlohmann16json_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_EEE14get_half_floatEbENKUlvE_clEv:
23729|   101k|        {
23730|   101k|            const int exp = (half >> 10u) & 0x1Fu;
23731|   101k|            const unsigned int mant = half & 0x3FFu;
23732|   101k|            JSON_ASSERT(exp <= 31);
  ------------------
  |  | 2653|   101k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23732:13): [True: 101k, False: 0]
  ------------------
23733|   101k|            JSON_ASSERT(mant <= 1023);
  ------------------
  |  | 2653|   101k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23733:13): [True: 101k, False: 0]
  ------------------
23734|   101k|            switch (exp)
23735|   101k|            {
23736|  17.8k|                case 0:
  ------------------
  |  Branch (23736:17): [True: 17.8k, False: 83.3k]
  ------------------
23737|  17.8k|                    return std::ldexp(mant, -24);
23738|  6.34k|                case 31:
  ------------------
  |  Branch (23738:17): [True: 6.34k, False: 94.8k]
  ------------------
23739|  6.34k|                    return (mant == 0)
  ------------------
  |  Branch (23739:28): [True: 3, False: 6.33k]
  ------------------
23740|  6.34k|                    ? std::numeric_limits<double>::infinity()
23741|  6.34k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  76.9k|                default:
  ------------------
  |  Branch (23742:17): [True: 76.9k, False: 24.2k]
  ------------------
23743|  76.9k|                    return std::ldexp(mant + 1024, exp - 25);
23744|   101k|            }
23745|   101k|        }();
_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|  2.52k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.52k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 2.42k]
  |  |  ------------------
  ------------------
23600|    105|        {
23601|    105|            return false;
23602|    105|        }
23603|  2.42k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.42k]
  |  Branch (23603:34): [Folded, False: 2.21k]
  |  Branch (23603:57): [True: 2.21k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.42k|        return true;
23608|  2.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_EEE6get_toIfEEbRT_PKc:
23503|  2.52k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.52k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.52k|        chars_read += new_chars_read;
23508|  2.52k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 315, False: 2.21k]
  |  |  ------------------
  ------------------
23509|    315|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    315|            ++chars_read;
23512|    315|            static_cast<void>(report_eof(context));
23513|    315|            return false;
23514|    315|        }
23515|  2.21k|        return true;
23516|  2.52k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIfEEmPT_m:
10326|  2.52k|    {
10327|  2.52k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  2.52k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIfEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  2.52k|    {
10385|  2.52k|        const std::size_t wanted = count * sizeof(T);
10386|  2.52k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  2.52k|        const std::size_t copied = (std::min)(wanted, available);
10388|  2.52k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  2.52k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.25k, False: 276]
  |  |  ------------------
  ------------------
10389|  2.25k|        {
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|  2.25k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  2.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 2.25k, False: 0]
  ------------------
10394|  2.25k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  2.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 2.25k, 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|  2.25k|            std::memcpy(dest, &*current, copied);
10398|  2.25k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  2.25k|        }
10400|  2.52k|        return copied;
10401|  2.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_EEE10get_numberIdLb0EEEbRT_:
23596|   120k|    {
23597|       |        // read in the original format
23598|       |
23599|   120k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|   120k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 70, False: 119k]
  |  |  ------------------
  ------------------
23600|     70|        {
23601|     70|            return false;
23602|     70|        }
23603|   119k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 119k]
  |  Branch (23603:34): [Folded, False: 119k]
  |  Branch (23603:57): [True: 119k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|   119k|        return true;
23608|   120k|    }
_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|  65.6k|    {
23847|  65.6k|        NumberType len{};
23848|  65.6k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 65.6k, False: 30]
  |  Branch (23848:35): [True: 65.5k, False: 120]
  |  Branch (23848:62): [True: 65.5k, False: 0]
  ------------------
23849|  65.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_EEE10get_stringIhEEbT_RSC_:
23767|  65.6k|    {
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|  65.6k|        return get_bytes(len, "string", result);
23778|  65.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_EEE22get_string_with_lengthItEEbRSC_PKc:
23846|  2.65k|    {
23847|  2.65k|        NumberType len{};
23848|  2.65k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 2.62k, False: 33]
  |  Branch (23848:35): [True: 2.41k, False: 207]
  |  Branch (23848:62): [True: 2.41k, False: 0]
  ------------------
23849|  2.65k|    }
_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_stringItEEbT_RSC_:
23767|  2.62k|    {
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.62k|        return get_bytes(len, "string", result);
23778|  2.62k|    }
_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_lengthIjEEbRSC_PKc:
23846|  1.30k|    {
23847|  1.30k|        NumberType len{};
23848|  1.30k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 1.26k, False: 36]
  |  Branch (23848:35): [True: 978, False: 291]
  |  Branch (23848:62): [True: 978, False: 0]
  ------------------
23849|  1.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_EEE10get_numberIaLb0EEEbRT_:
23596|   497k|    {
23597|       |        // read in the original format
23598|       |
23599|   497k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|   497k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 497k]
  |  |  ------------------
  ------------------
23600|    129|        {
23601|    129|            return false;
23602|    129|        }
23603|   497k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 497k]
  |  Branch (23603:34): [Folded, False: 497k]
  |  Branch (23603:57): [True: 497k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|   497k|        return true;
23608|   497k|    }
_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|   497k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|   497k|        auto new_chars_read = ia.get_elements(&dest);
23507|   497k|        chars_read += new_chars_read;
23508|   497k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|   497k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 387, False: 497k]
  |  |  ------------------
  ------------------
23509|    387|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    387|            ++chars_read;
23512|    387|            static_cast<void>(report_eof(context));
23513|    387|            return false;
23514|    387|        }
23515|   497k|        return true;
23516|   497k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIaEEmPT_m:
10326|   497k|    {
10327|   497k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|   497k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIaEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|   497k|    {
10385|   497k|        const std::size_t wanted = count * sizeof(T);
10386|   497k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|   497k|        const std::size_t copied = (std::min)(wanted, available);
10388|   497k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|   497k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 497k, False: 387]
  |  |  ------------------
  ------------------
10389|   497k|        {
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|   497k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|   497k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 497k, False: 0]
  ------------------
10394|   497k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|   497k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 497k, 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|   497k|            std::memcpy(dest, &*current, copied);
10398|   497k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|   497k|        }
10400|   497k|        return copied;
10401|   497k|    }
_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|   107k|    {
23629|   107k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|   107k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 107k, False: 0]
  |  |  ------------------
  ------------------
23630|   107k|        {
23631|   107k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|   107k|        }
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|   134k|{
 5317|   134k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|   134k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlaLb1EvE4testEa:
 5309|   134k|    {
 5310|   134k|        return true;
 5311|   134k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImaEEbT0_:
 5316|   316k|{
 5317|   316k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|   316k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImaLb0EvE4testEa:
 5300|   316k|    {
 5301|   316k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|   316k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImaLb0ELb1EE4testEa:
 5274|   316k|    {
 5275|   316k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|   316k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 316k, False: 0]
  |  Branch (5276:28): [True: 316k, False: 0]
  ------------------
 5277|   316k|    }
_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|  21.0k|    {
23597|       |        // read in the original format
23598|       |
23599|  21.0k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  21.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 20.8k]
  |  |  ------------------
  ------------------
23600|    148|        {
23601|    148|            return false;
23602|    148|        }
23603|  20.8k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 20.8k]
  |  Branch (23603:34): [Folded, False: 20.5k]
  |  Branch (23603:57): [True: 20.5k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  20.8k|        return true;
23608|  21.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_EEE6get_toIsEEbRT_PKc:
23503|  21.0k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  21.0k|        auto new_chars_read = ia.get_elements(&dest);
23507|  21.0k|        chars_read += new_chars_read;
23508|  21.0k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  21.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 444, False: 20.5k]
  |  |  ------------------
  ------------------
23509|    444|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    444|            ++chars_read;
23512|    444|            static_cast<void>(report_eof(context));
23513|    444|            return false;
23514|    444|        }
23515|  20.5k|        return true;
23516|  21.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIsEEmPT_m:
10326|  21.0k|    {
10327|  21.0k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  21.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIsEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  21.0k|    {
10385|  21.0k|        const std::size_t wanted = count * sizeof(T);
10386|  21.0k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  21.0k|        const std::size_t copied = (std::min)(wanted, available);
10388|  21.0k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  21.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 20.6k, False: 357]
  |  |  ------------------
  ------------------
10389|  20.6k|        {
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|  20.6k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  20.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 20.6k, False: 0]
  ------------------
10394|  20.6k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  20.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 20.6k, 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|  20.6k|            std::memcpy(dest, &*current, copied);
10398|  20.6k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  20.6k|        }
10400|  21.0k|        return copied;
10401|  21.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE11emit_signedIsEEbT_:
23628|  28.2k|    {
23629|  28.2k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  28.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 28.2k, False: 0]
  |  |  ------------------
  ------------------
23630|  28.2k|        {
23631|  28.2k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  28.2k|        }
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|  39.0k|{
 5317|  39.0k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  39.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IlsLb1EvE4testEs:
 5309|  39.0k|    {
 5310|  39.0k|        return true;
 5311|  39.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImsEEbT0_:
 5316|  9.79k|{
 5317|  9.79k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  9.79k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImsLb0EvE4testEs:
 5300|  9.79k|    {
 5301|  9.79k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  9.79k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ImsLb0ELb1EE4testEs:
 5274|  9.79k|    {
 5275|  9.79k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  9.79k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 9.79k, False: 0]
  |  Branch (5276:28): [True: 9.79k, False: 0]
  ------------------
 5277|  9.79k|    }
_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|  14.6k|    {
23597|       |        // read in the original format
23598|       |
23599|  14.6k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  14.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 14.5k]
  |  |  ------------------
  ------------------
23600|    105|        {
23601|    105|            return false;
23602|    105|        }
23603|  14.5k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 14.5k]
  |  Branch (23603:34): [Folded, False: 14.3k]
  |  Branch (23603:57): [True: 14.3k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  14.5k|        return true;
23608|  14.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_EEE10get_numberIlLb0EEEbRT_:
23596|  19.1k|    {
23597|       |        // read in the original format
23598|       |
23599|  19.1k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  19.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 116, False: 19.0k]
  |  |  ------------------
  ------------------
23600|    116|        {
23601|    116|            return false;
23602|    116|        }
23603|  19.0k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 19.0k]
  |  Branch (23603:34): [Folded, False: 18.7k]
  |  Branch (23603:57): [True: 18.7k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  19.0k|        return true;
23608|  19.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_EEE21parse_ubjson_internalEv:
21807|  95.3k|    {
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|  95.3k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  95.3k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|  1.33M|        while (true)
  ------------------
  |  Branch (21815:16): [True: 1.32M, Folded]
  ------------------
21816|  1.32M|        {
21817|  1.32M|            const std::size_t depth = container_stack.size();
21818|       |
21819|  1.32M|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|  1.32M|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 6.35k, False: 1.31M]
  |  |  ------------------
  ------------------
21820|  6.35k|            {
21821|  6.35k|                return false;
21822|  6.35k|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|  1.31M|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 26.4k, False: 1.29M]
  ------------------
21826|  26.4k|            {
21827|  26.4k|                return true;
21828|  26.4k|            }
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|  1.29M|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 722k, False: 569k]
  |  Branch (21832:52): [True: 372k, False: 349k]
  ------------------
21833|   372k|            {
21834|   372k|                get_ignore_noop();
21835|   372k|            }
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|  1.29M|            for (;;)
21842|  1.69M|            {
21843|  1.69M|                const container_frame top = container_stack.back();
21844|       |
21845|  1.69M|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 715k, False: 975k]
  ------------------
21846|   715k|                {
21847|   715k|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 521k, False: 194k]
  ------------------
21848|   521k|                    {
21849|   521k|                        --container_stack.back().remaining;
21850|   521k|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 54.4k, False: 466k]
  ------------------
21851|  54.4k|                        {
21852|  54.4k|                            key.clear();
21853|  54.4k|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|   108k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 87, False: 54.3k]
  |  |  |  Branch (1697:94): [True: 261, False: 54.1k]
  |  |  |  Branch (1697:94): [True: 0, False: 54.1k]
  |  |  ------------------
  ------------------
21854|     87|                            {
21855|     87|                                return false;
21856|     87|                            }
21857|  54.4k|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|   521k|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 107k, False: 414k]
  ------------------
21860|   521k|                        break;
21861|   521k|                    }
21862|   715k|                }
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|   975k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 151k, False: 823k]
  |  Branch (21867:26): [True: 711k, False: 264k]
  ------------------
21868|   711k|                {
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|   711k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 100k, False: 610k]
  ------------------
21873|   100k|                    {
21874|   100k|                        key.clear();
21875|   100k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|   197k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.00k, False: 99.2k]
  |  |  |  Branch (1697:94): [True: 3.00k, False: 97.2k]
  |  |  |  Branch (1697:94): [True: 0, False: 97.2k]
  |  |  ------------------
  ------------------
21876|  1.00k|                        {
21877|  1.00k|                            return false;
21878|  1.00k|                        }
21879|  99.2k|                        prefix = get_ignore_noop();
21880|  99.2k|                    }
21881|   610k|                    else
21882|   610k|                    {
21883|   610k|                        prefix = current;
21884|   610k|                    }
21885|   710k|                    break;
21886|   711k|                }
21887|       |
21888|   458k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|   458k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 458k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|   458k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 46.5k, False: 411k]
  ------------------
21893|  46.5k|                {
21894|  46.5k|                    return true;
21895|  46.5k|                }
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|   411k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 248k, False: 163k]
  ------------------
21899|   248k|                {
21900|   248k|                    get_ignore_noop();
21901|   248k|                }
21902|   411k|            }
21903|  1.29M|        }
21904|  95.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_EEE16get_ubjson_valueEm:
22404|  1.33M|    {
22405|  1.33M|        switch (prefix)
22406|  1.33M|        {
22407|  4.50k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 4.50k, False: 1.32M]
  ------------------
22408|  4.50k|                return unexpect_eof("value");
22409|       |
22410|  67.0k|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 67.0k, False: 1.26M]
  ------------------
22411|  67.0k|                return sax->boolean(true);
22412|  44.3k|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 44.3k, False: 1.28M]
  ------------------
22413|  44.3k|                return sax->boolean(false);
22414|       |
22415|  76.8k|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 76.8k, False: 1.25M]
  ------------------
22416|  76.8k|                return sax->null();
22417|       |
22418|  5.41k|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 5.41k, False: 1.32M]
  ------------------
22419|  5.41k|            {
22420|  5.41k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 0, False: 5.41k]
  ------------------
22421|      0|                {
22422|      0|                    break;
22423|      0|                }
22424|  5.41k|                std::uint8_t number{};
22425|  5.41k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 5.40k, False: 12]
  |  Branch (22425:46): [True: 5.40k, False: 0]
  ------------------
22426|  5.41k|            }
22427|       |
22428|  50.7k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 50.7k, False: 1.28M]
  ------------------
22429|  50.7k|            {
22430|  50.7k|                std::uint8_t number{};
22431|  50.7k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 50.4k, False: 366]
  |  Branch (22431:46): [True: 50.4k, False: 0]
  ------------------
22432|  5.41k|            }
22433|       |
22434|  70.8k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 70.8k, False: 1.26M]
  ------------------
22435|  70.8k|            {
22436|  70.8k|                std::int8_t number{};
22437|  70.8k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 70.5k, False: 303]
  |  Branch (22437:46): [True: 70.5k, False: 0]
  ------------------
22438|  5.41k|            }
22439|       |
22440|  13.8k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 13.8k, False: 1.31M]
  ------------------
22441|  13.8k|            {
22442|  13.8k|                std::int16_t number{};
22443|  13.8k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 13.5k, False: 294]
  |  Branch (22443:46): [True: 13.5k, False: 0]
  ------------------
22444|  5.41k|            }
22445|       |
22446|  10.4k|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 10.4k, False: 1.32M]
  ------------------
22447|  10.4k|            {
22448|  10.4k|                std::int32_t number{};
22449|  10.4k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 10.2k, False: 174]
  |  Branch (22449:46): [True: 10.2k, False: 0]
  ------------------
22450|  5.41k|            }
22451|       |
22452|  15.4k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 15.4k, False: 1.31M]
  ------------------
22453|  15.4k|            {
22454|  15.4k|                std::int64_t number{};
22455|  15.4k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 15.2k, False: 201]
  |  Branch (22455:46): [True: 15.2k, False: 0]
  ------------------
22456|  5.41k|            }
22457|       |
22458|  7.71k|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 7.71k, False: 1.32M]
  ------------------
22459|  7.71k|            {
22460|  7.71k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 0, False: 7.71k]
  ------------------
22461|      0|                {
22462|      0|                    break;
22463|      0|                }
22464|  7.71k|                std::uint16_t number{};
22465|  7.71k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 7.41k, False: 306]
  |  Branch (22465:46): [True: 7.41k, False: 0]
  ------------------
22466|  7.71k|            }
22467|       |
22468|  6.14k|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 6.14k, False: 1.32M]
  ------------------
22469|  6.14k|            {
22470|  6.14k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 0, False: 6.14k]
  ------------------
22471|      0|                {
22472|      0|                    break;
22473|      0|                }
22474|  6.14k|                std::uint32_t number{};
22475|  6.14k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 5.88k, False: 261]
  |  Branch (22475:46): [True: 5.88k, False: 0]
  ------------------
22476|  6.14k|            }
22477|       |
22478|  14.0k|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 14.0k, False: 1.31M]
  ------------------
22479|  14.0k|            {
22480|  14.0k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 0, False: 14.0k]
  ------------------
22481|      0|                {
22482|      0|                    break;
22483|      0|                }
22484|  14.0k|                std::uint64_t number{};
22485|  14.0k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 13.7k, False: 252]
  |  Branch (22485:46): [True: 13.7k, False: 0]
  ------------------
22486|  14.0k|            }
22487|       |
22488|   101k|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 101k, False: 1.22M]
  ------------------
22489|   101k|            {
22490|   101k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 0, False: 101k]
  ------------------
22491|      0|                {
22492|      0|                    break;
22493|      0|                }
22494|   101k|                return get_half_float(true);
22495|   101k|            }
22496|       |
22497|  2.52k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 2.52k, False: 1.32M]
  ------------------
22498|  2.52k|            {
22499|  2.52k|                float number{};
22500|  2.52k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 2.21k, False: 315]
  |  Branch (22500:46): [True: 2.21k, False: 0]
  ------------------
22501|   101k|            }
22502|       |
22503|   120k|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 120k, False: 1.21M]
  ------------------
22504|   120k|            {
22505|   120k|                double number{};
22506|   120k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 119k, False: 210]
  |  Branch (22506:46): [True: 119k, False: 0]
  ------------------
22507|   101k|            }
22508|       |
22509|  23.2k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 23.2k, False: 1.30M]
  ------------------
22510|  23.2k|            {
22511|  23.2k|                return get_ubjson_high_precision_number();
22512|   101k|            }
22513|       |
22514|  23.8k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 23.8k, False: 1.30M]
  ------------------
22515|  23.8k|            {
22516|  23.8k|                get();
22517|  23.8k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  23.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 21, False: 23.8k]
  |  |  ------------------
  ------------------
22518|     21|                {
22519|     21|                    return false;
22520|     21|                }
22521|  23.8k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  23.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 23.8k]
  |  |  ------------------
  ------------------
22522|      9|                {
22523|      9|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      9|                }
22525|  23.8k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  23.8k|                return sax->string(s);
22527|  23.8k|            }
22528|       |
22529|  80.0k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 80.0k, False: 1.25M]
  ------------------
22530|  80.0k|            {
22531|  80.0k|                string_t s;
22532|  80.0k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 79.5k, False: 513]
  |  Branch (22532:48): [True: 79.5k, False: 0]
  ------------------
22533|  23.8k|            }
22534|       |
22535|   497k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 497k, False: 833k]
  ------------------
22536|   497k|                return get_ubjson_array();
22537|       |
22538|  94.2k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 94.2k, False: 1.23M]
  ------------------
22539|  94.2k|                return get_ubjson_object();
22540|       |
22541|    297|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 297, False: 1.33M]
  ------------------
22542|    297|                break;
22543|  1.33M|        }
22544|    297|        return unexpected_byte("invalid byte", "value");
22545|  1.33M|    }
_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|  23.2k|    {
22846|       |        // get the size of the following number string
22847|  23.2k|        std::size_t size{};
22848|  23.2k|        bool no_ndarray = true;
22849|  23.2k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  23.2k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  23.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 182, False: 23.0k]
  |  |  ------------------
  ------------------
22851|    182|        {
22852|    182|            return res;
22853|    182|        }
22854|       |
22855|       |        // get number string
22856|  23.0k|        std::vector<char> number_vector;
22857|   295k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 272k, False: 22.8k]
  ------------------
22858|   272k|        {
22859|   272k|            get();
22860|   272k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|   272k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 186, False: 272k]
  |  |  ------------------
  ------------------
22861|    186|            {
22862|    186|                return false;
22863|    186|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|   272k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|   272k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 272k]
  |  |  ------------------
  ------------------
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|   272k|            number_vector.push_back(static_cast<char>(current));
22871|   272k|        }
22872|       |
22873|       |        // parse number string
22874|  22.8k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  22.8k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  22.8k|        const auto result_number = number_lexer.scan();
22877|  22.8k|        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|  22.8k|        const string_t number_text = number_lexer.get_string();
22882|  22.8k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  22.8k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  22.8k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  22.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.21k, False: 19.6k]
  |  |  ------------------
  ------------------
22887|  3.21k|        {
22888|  3.21k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  3.21k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  3.21k|        }
22891|       |
22892|  19.6k|        switch (result_number)
22893|  19.6k|        {
22894|  1.36k|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 1.36k, False: 18.2k]
  ------------------
22895|  1.36k|                return sax->number_integer(number_lexer.get_number_integer());
22896|  4.93k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 4.93k, False: 14.7k]
  ------------------
22897|  4.93k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  10.6k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 10.6k, False: 8.98k]
  ------------------
22899|  10.6k|            {
22900|  10.6k|                const auto parsed_float = number_lexer.get_number_float();
22901|  10.6k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  10.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 630, False: 10.0k]
  |  |  ------------------
  ------------------
22902|    630|                {
22903|    630|                    return sax->parse_error(
22904|    630|                               chars_read,
22905|    630|                               number_string,
22906|    630|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    630|                }
22908|  10.0k|                return sax->number_float(parsed_float, number_text);
22909|  10.6k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 19.6k]
  ------------------
22911|      0|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 0, False: 19.6k]
  ------------------
22912|      3|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 3, False: 19.6k]
  ------------------
22913|      6|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 3, False: 19.6k]
  ------------------
22914|     15|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 9, False: 19.6k]
  ------------------
22915|     21|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 6, False: 19.6k]
  ------------------
22916|     24|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 3, False: 19.6k]
  ------------------
22917|     27|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 3, False: 19.6k]
  ------------------
22918|     30|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 3, False: 19.6k]
  ------------------
22919|     36|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 6, False: 19.6k]
  ------------------
22920|     39|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 3, False: 19.6k]
  ------------------
22921|  1.81k|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 1.77k, False: 17.8k]
  ------------------
22922|  1.95k|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 138, False: 19.5k]
  ------------------
22923|  1.95k|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 19.6k]
  ------------------
22924|  1.95k|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 19.6k]
  ------------------
22925|  1.95k|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|  1.95k|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  19.6k|        }
22928|  19.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_EEE21get_ubjson_size_valueERmRbmm:
22148|   368k|    {
22149|   368k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 288k, False: 79.7k]
  ------------------
22150|   288k|        {
22151|   288k|            prefix = get_ignore_noop();
22152|   288k|        }
22153|       |
22154|   368k|        switch (prefix)
22155|   368k|        {
22156|  39.4k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 39.4k, False: 328k]
  ------------------
22157|  39.4k|            {
22158|  39.4k|                std::uint8_t number{};
22159|  39.4k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  39.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 38, False: 39.4k]
  |  |  ------------------
  ------------------
22160|     38|                {
22161|     38|                    return false;
22162|     38|                }
22163|  39.4k|                result = static_cast<std::size_t>(number);
22164|  39.4k|                return true;
22165|  39.4k|            }
22166|       |
22167|   270k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 270k, False: 98.0k]
  ------------------
22168|   270k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  5.05k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 5.05k, False: 363k]
  ------------------
22171|  5.05k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|  2.55k|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 2.55k, False: 365k]
  ------------------
22174|  2.55k|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|  2.03k|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 2.03k, False: 366k]
  ------------------
22177|  2.03k|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|  6.87k|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 6.87k, False: 361k]
  ------------------
22180|  6.87k|            {
22181|  6.87k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 0, False: 6.87k]
  ------------------
22182|      0|                {
22183|      0|                    break;
22184|      0|                }
22185|  6.87k|                std::uint16_t number{};
22186|  6.87k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  6.87k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 40, False: 6.83k]
  |  |  ------------------
  ------------------
22187|     40|                {
22188|     40|                    return false;
22189|     40|                }
22190|  6.83k|                result = static_cast<std::size_t>(number);
22191|  6.83k|                return true;
22192|  6.87k|            }
22193|       |
22194|  2.48k|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 2.48k, False: 365k]
  ------------------
22195|  2.48k|            {
22196|  2.48k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 0, False: 2.48k]
  ------------------
22197|      0|                {
22198|      0|                    break;
22199|      0|                }
22200|  2.48k|                std::uint32_t number{};
22201|  2.48k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 30, False: 2.45k]
  |  |  ------------------
  ------------------
22202|     30|                {
22203|     30|                    return false;
22204|     30|                }
22205|  2.45k|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|  2.48k|            }
22207|       |
22208|  3.28k|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 3.28k, False: 364k]
  ------------------
22209|  3.28k|            {
22210|  3.28k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 0, False: 3.28k]
  ------------------
22211|      0|                {
22212|      0|                    break;
22213|      0|                }
22214|  3.28k|                std::uint64_t number{};
22215|  3.28k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  3.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 38, False: 3.24k]
  |  |  ------------------
  ------------------
22216|     38|                {
22217|     38|                    return false;
22218|     38|                }
22219|  3.24k|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 3.24k]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|  3.24k|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|  3.24k|            }
22225|       |
22226|  35.4k|            case '[':
  ------------------
  |  Branch (22226:13): [True: 35.4k, False: 332k]
  ------------------
22227|  35.4k|            {
22228|  35.4k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 0, False: 35.4k]
  ------------------
22229|      0|                {
22230|      0|                    break;
22231|      0|                }
22232|  35.4k|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 21, False: 35.4k]
  ------------------
22233|     21|                {
22234|     21|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|     21|                }
22236|  35.4k|                std::vector<size_t> dim;
22237|  35.4k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|  35.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 559, False: 34.8k]
  |  |  ------------------
  ------------------
22238|    559|                {
22239|    559|                    return false;
22240|    559|                }
22241|  34.8k|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 2.90k, False: 31.9k]
  |  Branch (22241:41): [True: 11.9k, False: 19.9k]
  |  Branch (22241:60): [True: 627, False: 11.3k]
  ------------------
22242|  2.41k|                {
22243|  2.41k|                    result = dim.at(dim.size() - 1);
22244|  2.41k|                    return true;
22245|  2.41k|                }
22246|  32.4k|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 22.8k, False: 9.56k]
  ------------------
22247|  22.8k|                {
22248|  22.8k|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 65.2k, False: 22.2k]
  ------------------
22249|  65.2k|                    {
22250|  65.2k|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 600, False: 64.6k]
  ------------------
22251|    600|                        {
22252|    600|                            result = 0;
22253|    600|                            return true;
22254|    600|                        }
22255|  65.2k|                    }
22256|       |
22257|  22.2k|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|  22.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 22.2k]
  |  |  ------------------
  ------------------
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|  22.2k|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 21.7k, False: 522]
  ------------------
22266|  21.7k|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|  21.7k|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|  21.7k|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|  21.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 21.7k, False: 0]
  ------------------
22270|       |
22271|  21.7k|                        string_t type_key = "_ArrayType_";
22272|  21.7k|                        string_t type = type_name; // sax->string() takes a reference
22273|  21.7k|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|  43.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 21.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 21.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 21.7k]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|  21.7k|                    }
22278|       |
22279|  22.2k|                    string_t key = "_ArraySize_";
22280|  22.2k|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|  44.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 22.2k]
  |  |  |  Branch (1697:94): [True: 0, False: 22.2k]
  |  |  |  Branch (1697:94): [True: 0, False: 22.2k]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|  22.2k|                    result = 1;
22285|  22.2k|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 62.0k, False: 22.0k]
  ------------------
22286|  62.0k|                    {
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|  62.0k|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|  62.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 231, False: 61.8k]
  |  |  ------------------
  ------------------
22295|    231|                        {
22296|    231|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|    231|                        }
22298|  61.8k|                        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|  61.8k|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 3, False: 61.8k]
  ------------------
22304|      3|                        {
22305|      3|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      3|                        }
22307|  61.8k|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|  61.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 61.8k]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|  61.8k|                    }
22312|  22.0k|                    is_ndarray = true;
22313|  22.0k|                    return sax->end_array();
22314|  22.2k|                }
22315|  9.56k|                result = 0;
22316|  9.56k|                return true;
22317|  32.4k|            }
22318|       |
22319|    825|            default:
  ------------------
  |  Branch (22319:13): [True: 825, False: 367k]
  ------------------
22320|    825|                break;
22321|   368k|        }
22322|    825|        return length_type_error(" after '#'", "size");
22323|   368k|    }
_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|   270k|    {
22115|   270k|        SignedType number{};
22116|   270k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|   270k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 26, False: 270k]
  |  |  ------------------
  ------------------
22117|     26|        {
22118|     26|            return false;
22119|     26|        }
22120|   270k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|   270k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 270k]
  |  |  ------------------
  ------------------
22121|     12|        {
22122|     12|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     12|        }
22124|   270k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|   270k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 270k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|   270k|        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|   270k|    }
_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|  5.05k|    {
22115|  5.05k|        SignedType number{};
22116|  5.05k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  5.05k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 43, False: 5.01k]
  |  |  ------------------
  ------------------
22117|     43|        {
22118|     43|            return false;
22119|     43|        }
22120|  5.01k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  5.01k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 24, False: 4.99k]
  |  |  ------------------
  ------------------
22121|     24|        {
22122|     24|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     24|        }
22124|  4.99k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  4.99k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.99k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  4.99k|        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|  4.99k|    }
_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.55k|    {
22115|  2.55k|        SignedType number{};
22116|  2.55k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.55k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 37, False: 2.51k]
  |  |  ------------------
  ------------------
22117|     37|        {
22118|     37|            return false;
22119|     37|        }
22120|  2.51k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  2.51k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 102, False: 2.41k]
  |  |  ------------------
  ------------------
22121|    102|        {
22122|    102|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|    102|        }
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.03k|    {
22115|  2.03k|        SignedType number{};
22116|  2.03k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.03k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 1.99k]
  |  |  ------------------
  ------------------
22117|     35|        {
22118|     35|            return false;
22119|     35|        }
22120|  1.99k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.99k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 204, False: 1.79k]
  |  |  ------------------
  ------------------
22121|    204|        {
22122|    204|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|    204|        }
22124|  1.79k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.79k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.79k|        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.79k|    }
_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|   284k|    {
22090|   284k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|   284k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 284k]
  |  |  ------------------
  ------------------
22091|      3|        {
22092|      3|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      3|        }
22094|   284k|        result = count;
22095|   284k|        return true;
22096|   284k|    }
_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_ndarray_sizeERNS6_ImNSA_ImEEEE:
22027|  35.4k|    {
22028|  35.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22029|  35.4k|        size_t dimlen = 0;
22030|  35.4k|        bool no_ndarray = true;
22031|       |
22032|  35.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type, no_ndarray)))
  ------------------
  |  | 1697|  35.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 81, False: 35.3k]
  |  |  ------------------
  ------------------
22033|     81|        {
22034|     81|            return false;
22035|     81|        }
22036|       |
22037|  35.3k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22037:13): [True: 12.7k, False: 22.5k]
  ------------------
22038|  12.7k|        {
22039|  12.7k|            if (size_and_type.second != 0)
  ------------------
  |  Branch (22039:17): [True: 7.48k, False: 5.29k]
  ------------------
22040|  7.48k|            {
22041|  44.6k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22041:41): [True: 37.3k, False: 7.22k]
  ------------------
22042|  37.3k|                {
22043|  37.3k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, size_and_type.second)))
  ------------------
  |  | 1697|  37.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 259, False: 37.1k]
  |  |  ------------------
  ------------------
22044|    259|                    {
22045|    259|                        return false;
22046|    259|                    }
22047|  37.1k|                    dim.push_back(dimlen);
22048|  37.1k|                }
22049|  7.48k|            }
22050|  5.29k|            else
22051|  5.29k|            {
22052|  19.5k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22052:41): [True: 14.3k, False: 5.17k]
  ------------------
22053|  14.3k|                {
22054|  14.3k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray)))
  ------------------
  |  | 1697|  14.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 120, False: 14.2k]
  |  |  ------------------
  ------------------
22055|    120|                    {
22056|    120|                        return false;
22057|    120|                    }
22058|  14.2k|                    dim.push_back(dimlen);
22059|  14.2k|                }
22060|  5.29k|            }
22061|  12.7k|        }
22062|  22.5k|        else
22063|  22.5k|        {
22064|  64.8k|            while (current != ']')
  ------------------
  |  Branch (22064:20): [True: 42.4k, False: 22.4k]
  ------------------
22065|  42.4k|            {
22066|  42.4k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, current)))
  ------------------
  |  | 1697|  42.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 99, False: 42.3k]
  |  |  ------------------
  ------------------
22067|     99|                {
22068|     99|                    return false;
22069|     99|                }
22070|  42.3k|                dim.push_back(dimlen);
22071|  42.3k|                get_ignore_noop();
22072|  42.3k|            }
22073|  22.5k|        }
22074|  34.8k|        return true;
22075|  35.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_EEE20get_ubjson_size_typeERNS4_4pairImmEEb:
22337|   627k|    {
22338|   627k|        result.first = npos; // size
22339|   627k|        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|   627k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|   627k|        get_ignore_noop();
22348|       |
22349|   627k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 64.9k, False: 562k]
  ------------------
22350|  64.9k|        {
22351|  64.9k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  64.9k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  64.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 64.9k]
  |  |  ------------------
  ------------------
22353|      1|            {
22354|      1|                return false;
22355|      1|            }
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|  64.9k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  64.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 51, False: 64.8k]
  |  |  ------------------
  ------------------
22361|     51|            {
22362|     51|                return optimized_type_error();
22363|     51|            }
22364|       |
22365|  64.8k|            get_ignore_noop();
22366|  64.8k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  64.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 387, False: 64.4k]
  |  |  ------------------
  ------------------
22367|    387|            {
22368|    387|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    387|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 106, False: 281]
  |  |  ------------------
  ------------------
22369|    106|                {
22370|    106|                    return false;
22371|    106|                }
22372|    281|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    387|            }
22374|       |
22375|  64.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|  64.4k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 29.2k, False: 35.2k]
  |  Branch (22379:31): [True: 21.7k, False: 7.49k]
  ------------------
22380|  21.7k|            {
22381|  21.7k|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|  21.7k|            }
22383|  64.4k|            return is_error;
22384|  64.8k|        }
22385|       |
22386|   562k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 186k, False: 376k]
  ------------------
22387|   186k|        {
22388|   186k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|   186k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 5.58k, False: 180k]
  |  Branch (22389:31): [True: 291, False: 5.29k]
  ------------------
22390|    291|            {
22391|    291|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|    291|            }
22393|   185k|            return is_error;
22394|   186k|        }
22395|       |
22396|   376k|        return true;
22397|   562k|    }
_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|  64.9k|    {
24158|  64.9k|        switch (marker)
24159|  64.9k|        {
24160|  13.7k|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 13.7k, False: 51.1k]
  ------------------
24161|  20.3k|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 6.64k, False: 58.2k]
  ------------------
24162|  23.6k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 3.32k, False: 61.5k]
  ------------------
24163|  27.3k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 3.69k, False: 61.2k]
  ------------------
24164|  30.7k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 3.36k, False: 61.5k]
  ------------------
24165|  33.3k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 2.65k, False: 62.2k]
  ------------------
24166|  37.5k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 4.12k, False: 60.7k]
  ------------------
24167|  39.8k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 2.37k, False: 62.5k]
  ------------------
24168|  39.8k|                return true;
24169|      3|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 3, False: 64.9k]
  ------------------
24170|      6|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 3, False: 64.9k]
  ------------------
24171|      9|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 3, False: 64.9k]
  ------------------
24172|     12|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 3, False: 64.9k]
  ------------------
24173|     15|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 3, False: 64.9k]
  ------------------
24174|     18|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 3, False: 64.9k]
  ------------------
24175|     27|            case '[':
  ------------------
  |  Branch (24175:13): [True: 9, False: 64.9k]
  ------------------
24176|     30|            case '{':
  ------------------
  |  Branch (24176:13): [True: 3, False: 64.9k]
  ------------------
24177|     30|                return input_format != input_format_t::bjdata;
24178|  12.2k|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 12.2k, False: 52.6k]
  ------------------
24179|  15.7k|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 3.44k, False: 61.4k]
  ------------------
24180|  18.9k|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 3.20k, False: 61.7k]
  ------------------
24181|  22.0k|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 3.10k, False: 61.8k]
  ------------------
24182|  24.9k|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 2.95k, False: 61.9k]
  ------------------
24183|  24.9k|                return input_format == input_format_t::bjdata;
24184|     21|            default:
  ------------------
  |  Branch (24184:13): [True: 21, False: 64.8k]
  ------------------
24185|     21|                return false;
24186|  64.9k|        }
24187|  64.9k|    }
_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|     51|    {
24015|     51|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     51|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA10_KcS9_RA41_SA_EEET_DpOT0_:
 5537|    102|{
 5538|    102|    OutStringType str;
 5539|    102|    str.reserve(concat_length(args...));
 5540|    102|    concat_into(str, std::forward<Args>(args)...);
 5541|    102|    return str;
 5542|    102|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA41_cEEEmPKcDpRKT_:
 5441|    102|{
 5442|    102|    return ::strlen(cstr) + concat_length(rest...);
 5443|    102|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA41_cEEEmRKT_DpRKT0_:
 5447|    102|{
 5448|    102|    return str.size() + concat_length(rest...);
 5449|    102|}
_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|    102|{
 5501|    102|    out.append(std::forward<Arg>(arg));
 5502|    102|    concat_into(out, std::forward<Args>(rest)...);
 5503|    102|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA41_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    102|{
 5501|    102|    out.append(std::forward<Arg>(arg));
 5502|    102|    concat_into(out, std::forward<Args>(rest)...);
 5503|    102|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA41_KcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    102|{
 5501|    102|    out.append(std::forward<Arg>(arg));
 5502|    102|    concat_into(out, std::forward<Args>(rest)...);
 5503|    102|}
_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_EEE13bjd_type_nameEm:
24198|  21.7k|    {
24199|  21.7k|        switch (marker)
24200|  21.7k|        {
24201|  1.26k|            case 'B':
  ------------------
  |  Branch (24201:13): [True: 1.26k, False: 20.4k]
  ------------------
24202|  1.26k|                return "byte";
24203|  1.74k|            case 'C':
  ------------------
  |  Branch (24203:13): [True: 1.74k, False: 20.0k]
  ------------------
24204|  1.74k|                return "char";
24205|  1.49k|            case 'D':
  ------------------
  |  Branch (24205:13): [True: 1.49k, False: 20.2k]
  ------------------
24206|  1.49k|                return "double";
24207|  1.51k|            case 'I':
  ------------------
  |  Branch (24207:13): [True: 1.51k, False: 20.2k]
  ------------------
24208|  1.51k|                return "int16";
24209|  1.36k|            case 'L':
  ------------------
  |  Branch (24209:13): [True: 1.36k, False: 20.3k]
  ------------------
24210|  1.36k|                return "int64";
24211|  1.13k|            case 'M':
  ------------------
  |  Branch (24211:13): [True: 1.13k, False: 20.6k]
  ------------------
24212|  1.13k|                return "uint64";
24213|  2.16k|            case 'U':
  ------------------
  |  Branch (24213:13): [True: 2.16k, False: 19.5k]
  ------------------
24214|  2.16k|                return "uint8";
24215|  1.45k|            case 'd':
  ------------------
  |  Branch (24215:13): [True: 1.45k, False: 20.2k]
  ------------------
24216|  1.45k|                return "single";
24217|    666|            case 'h':
  ------------------
  |  Branch (24217:13): [True: 666, False: 21.0k]
  ------------------
24218|    666|                return "half";
24219|  3.37k|            case 'i':
  ------------------
  |  Branch (24219:13): [True: 3.37k, False: 18.3k]
  ------------------
24220|  3.37k|                return "int8";
24221|  1.87k|            case 'l':
  ------------------
  |  Branch (24221:13): [True: 1.87k, False: 19.8k]
  ------------------
24222|  1.87k|                return "int32";
24223|  1.71k|            case 'm':
  ------------------
  |  Branch (24223:13): [True: 1.71k, False: 20.0k]
  ------------------
24224|  1.71k|                return "uint32";
24225|  1.98k|            case 'u':
  ------------------
  |  Branch (24225:13): [True: 1.98k, False: 19.7k]
  ------------------
24226|  1.98k|                return "uint16";
24227|      0|            default:
  ------------------
  |  Branch (24227:13): [True: 0, False: 21.7k]
  ------------------
24228|      0|                return nullptr;
24229|  21.7k|        }
24230|  21.7k|    }
_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|    954|    {
24082|    954|        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: 954, False: 0]
  ------------------
24083|    954|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    954|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    954|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA37_KcRPSA_RA2_SA_SE_RA16_SA_S9_EEET_DpOT0_:
 5537|  1.90k|{
 5538|  1.90k|    OutStringType str;
 5539|  1.90k|    str.reserve(concat_length(args...));
 5540|  1.90k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.90k|    return str;
 5542|  1.90k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJPKcA2_cS4_A16_cNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEEEmS4_DpRKT_:
 5441|  1.90k|{
 5442|  1.90k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.90k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA2_cPKcA16_cNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEEEmS5_DpRKT_:
 5441|  1.90k|{
 5442|  1.90k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.90k|}
_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|  1.90k|{
 5501|  1.90k|    out.append(std::forward<Arg>(arg));
 5502|  1.90k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.90k|}
_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|  1.90k|{
 5501|  1.90k|    out.append(std::forward<Arg>(arg));
 5502|  1.90k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.90k|}
_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|  1.90k|{
 5501|  1.90k|    out.append(std::forward<Arg>(arg));
 5502|  1.90k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.90k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterINSt3__16vectorIcNS3_9allocatorIcEEEETnNS3_9enable_ifIXsr28is_contiguous_byte_containerIT_EE5valueEiE4typeELi0EEEDTcl13input_adaptercldtfp_4dataEplcldtfp_4dataEcldtfp_4sizeEEERKS9_:
10852|  44.2k|{
10853|  44.2k|    return input_adapter(container.data(), container.data() + container.size());
10854|  44.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterIPKcS4_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES6_S7_:
10755|  44.2k|{
10756|  44.2k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  44.2k|    return factory_type::create(first, last);
10758|  44.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryIPKcS4_vE6createES4_S4_:
10617|  44.2k|    {
10618|  44.2k|        return adapter_type(std::move(first), std::move(last));
10619|  44.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_EC2ES4_S4_:
10268|  44.2k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  44.2k|    {}
_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|  44.2k|        : ia(std::move(adapter))
13799|  44.2k|        , ignore_comments(ignore_comments_)
13800|  44.2k|    {
13801|       |        // the token string of an error before the first token is everything
13802|       |        // read so far
13803|  44.2k|        begin_token(std::integral_constant<bool, adapter_token> {});
13804|  44.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2Ev:
 9400|  76.1k|    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|  44.2k|    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|  88.5k|    {
15998|       |        // initially, skip the BOM
15999|  88.5k|        if (get_chars_read_total() == 0 && !skip_bom())
  ------------------
  |  Branch (15999:13): [True: 44.2k, False: 44.2k]
  |  Branch (15999:44): [True: 120, False: 44.1k]
  ------------------
16000|    120|        {
16001|    120|            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
16002|    120|            return token_type::parse_error;
16003|    120|        }
16004|       |
16005|       |        // read the next character and ignore whitespace
16006|  88.4k|        skip_whitespace();
16007|       |
16008|  88.4k|        return scan_after_whitespace();
16009|  88.5k|    }
_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|  88.5k|    {
15660|  88.5k|        return get_chars_read_total_impl(std::integral_constant<bool, lazy_position> {});
15661|  88.5k|    }
_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|  88.5k|    {
15710|  88.5k|        return ia.get_read_count() - (next_unget ? 1u : 0u);
  ------------------
  |  Branch (15710:39): [True: 8.18k, False: 80.3k]
  ------------------
15711|  88.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E14get_read_countEv:
10293|  88.5k|    {
10294|  88.5k|        return get_consumed_count() + eof_reads;
10295|  88.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E18get_consumed_countEv:
10286|   187k|    {
10287|   187k|        return static_cast<std::size_t>(std::distance(begin, current));
10288|   187k|    }
_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|  44.2k|    {
15910|  44.2k|        if (get() == 0xEF)
  ------------------
  |  Branch (15910:13): [True: 570, False: 43.7k]
  ------------------
15911|    570|        {
15912|       |            // check if we completely parse the BOM
15913|    570|            return get() == 0xBB && get() == 0xBF;
  ------------------
  |  Branch (15913:20): [True: 516, False: 54]
  |  Branch (15913:37): [True: 450, False: 66]
  ------------------
15914|    570|        }
15915|       |
15916|       |        // the first character is not the beginning of the BOM; unget it to
15917|       |        // process is later
15918|  43.7k|        unget();
15919|  43.7k|        return true;
15920|  44.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE3getEv:
15393|   170k|    {
15394|   170k|        advance_position();
15395|       |
15396|   170k|        if (next_unget)
  ------------------
  |  Branch (15396:13): [True: 51.8k, False: 118k]
  ------------------
15397|  51.8k|        {
15398|       |            // only reset the next_unget variable and work with current
15399|  51.8k|            next_unget = false;
15400|  51.8k|        }
15401|   118k|        else
15402|   118k|        {
15403|   118k|            current = ia.get_character();
15404|   118k|        }
15405|       |
15406|   170k|        return track_after_read();
15407|   170k|    }
_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|   187k|    {
15414|   187k|        advance_position_impl(std::integral_constant<bool, lazy_position> {});
15415|   187k|    }
_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|   187k|    void advance_position_impl(std::true_type /*lazy*/) const noexcept {}
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E13get_characterEv:
10272|   126k|    {
10273|   126k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   126k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 85.2k, False: 41.2k]
  |  |  ------------------
  ------------------
10274|  85.2k|        {
10275|  85.2k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|  85.2k|            std::advance(current, 1);
10277|  85.2k|            return result;
10278|  85.2k|        }
10279|       |
10280|  41.2k|        ++eof_reads;
10281|  41.2k|        return char_traits<char_type>::eof();
10282|   126k|    }
_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|   187k|    {
15432|       |        // seekable adapters reconstruct the token lazily on error (see
15433|       |        // get_token_string), so the eager per-character copy is skipped
15434|   187k|        capture_char(std::integral_constant<bool, lazy_token_string> {});
15435|   187k|        track_newline(std::integral_constant<bool, lazy_position> {});
15436|   187k|        return current;
15437|   187k|    }
_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|   187k|    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|   187k|    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|  52.0k|    {
15501|  52.0k|        next_unget = true;
15502|  52.0k|        unget_position(std::integral_constant<bool, lazy_position> {});
15503|  52.0k|        uncapture_char(std::integral_constant<bool, lazy_token_string> {});
15504|  52.0k|    }
_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|  52.0k|    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|  52.0k|    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|  88.4k|    {
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|  88.4k|        get();
15935|       |
15936|  88.4k|        if (!current_is_whitespace())
  ------------------
  |  Branch (15936:13): [True: 83.7k, False: 4.65k]
  ------------------
15937|  83.7k|        {
15938|  83.7k|            return;
15939|  83.7k|        }
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|  4.65k|        do
15949|  8.25k|        {
15950|  8.25k|            if (current == '\n')
  ------------------
  |  Branch (15950:17): [True: 2.70k, False: 5.55k]
  ------------------
15951|  2.70k|            {
15952|  2.70k|                skip_indentation(std::integral_constant<bool, bulk_scan> {});
15953|  2.70k|            }
15954|  8.25k|            get_ignoring_pending_unget();
15955|  8.25k|        }
15956|  8.25k|        while (current_is_whitespace());
  ------------------
  |  Branch (15956:16): [True: 3.59k, False: 4.65k]
  ------------------
15957|  4.65k|    }
_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|  96.6k|    {
15925|  96.6k|        return current == ' ' || current == '\t' || current == '\n' || current == '\r';
  ------------------
  |  Branch (15925:16): [True: 2.76k, False: 93.9k]
  |  Branch (15925:34): [True: 1.77k, False: 92.1k]
  |  Branch (15925:53): [True: 2.70k, False: 89.4k]
  |  Branch (15925:72): [True: 1.01k, False: 88.4k]
  ------------------
15926|  96.6k|    }
_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|  2.70k|    {
15971|  2.70k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  2.70k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15971:9): [True: 2.70k, False: 0]
  ------------------
15972|  2.70k|        const std::size_t remaining = ia.bulk_remaining();
15973|  2.70k|        if (remaining < 8)
  ------------------
  |  Branch (15973:13): [True: 1.06k, False: 1.63k]
  ------------------
15974|  1.06k|        {
15975|  1.06k|            return;
15976|  1.06k|        }
15977|  1.63k|        const char* const data = reinterpret_cast<const char*>(ia.bulk_data());
15978|  1.63k|        std::size_t pos = 0;
15979|  2.10k|        for (; pos + 8 <= remaining; pos += 8)
  ------------------
  |  Branch (15979:16): [True: 1.87k, False: 228]
  ------------------
15980|  1.87k|        {
15981|       |            // little-endian, so the first byte is the lowest
15982|  1.87k|            const std::uint64_t non_space = read_eight_bytes(data + pos) ^ 0x2020202020202020ull;
15983|  1.87k|            if (non_space != 0)
  ------------------
  |  Branch (15983:17): [True: 1.40k, False: 468]
  ------------------
15984|  1.40k|            {
15985|       |                // skip the spaces before the first other byte of this word
15986|  1.40k|                pos += static_cast<std::size_t>(count_trailing_zeros(non_space)) / 8;
15987|  1.40k|                break;
15988|  1.40k|            }
15989|  1.87k|        }
15990|  1.63k|        bulk_consume(data, pos);
15991|  1.63k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E14bulk_remainingEv:
10370|  56.0k|    {
10371|  56.0k|        return remaining_count();
10372|  56.0k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E15remaining_countEv:
10345|  56.0k|    {
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|  56.0k|        return static_cast<std::size_t>(std::distance(current, end));
10352|  56.0k|#endif
10353|  56.0k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E9bulk_dataEv:
10364|  45.5k|    {
10365|  45.5k|        return &*current;
10366|  45.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16read_eight_bytesEPKc:
 9239|  62.2k|{
 9240|  62.2k|    return read_eight_bytes(reinterpret_cast<const unsigned char*>(p)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
 9241|  62.2k|}
_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|  35.8k|    {
13997|  35.8k|        bulk_track_position(n, std::integral_constant<bool, lazy_position> {});
13998|  35.8k|        bulk_track_token(data, n, std::integral_constant<bool, lazy_token_string> {});
13999|  35.8k|        ia.bulk_skip(n);
14000|  35.8k|    }
_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|  35.8k|    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|  35.8k|    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|  45.2k|    {
10377|  45.2k|        std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(n));
10378|  45.2k|    }
_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|  8.25k|    {
15470|  8.25k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  8.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15470:9): [True: 8.25k, False: 0]
  ------------------
15471|       |
15472|  8.25k|        advance_position();
15473|  8.25k|        current = ia.get_character();
15474|       |
15475|  8.25k|        return track_after_read();
15476|  8.25k|    }
_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|  88.4k|    {
16041|       |        // ignore comments
16042|  88.4k|        while (ignore_comments && current == '/')
  ------------------
  |  Branch (16042:16): [True: 0, False: 88.4k]
  |  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|  88.4k|        switch (current)
16054|  88.4k|        {
16055|       |            // structural characters
16056|    762|            case '[':
  ------------------
  |  Branch (16056:13): [True: 762, False: 87.6k]
  ------------------
16057|    762|                return token_type::begin_array;
16058|     60|            case ']':
  ------------------
  |  Branch (16058:13): [True: 60, False: 88.3k]
  ------------------
16059|     60|                return token_type::end_array;
16060|     30|            case '{':
  ------------------
  |  Branch (16060:13): [True: 30, False: 88.3k]
  ------------------
16061|     30|                return token_type::begin_object;
16062|     30|            case '}':
  ------------------
  |  Branch (16062:13): [True: 30, False: 88.3k]
  ------------------
16063|     30|                return token_type::end_object;
16064|     66|            case ':':
  ------------------
  |  Branch (16064:13): [True: 66, False: 88.3k]
  ------------------
16065|     66|                return token_type::name_separator;
16066|     54|            case ',':
  ------------------
  |  Branch (16066:13): [True: 54, False: 88.3k]
  ------------------
16067|     54|                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|    264|            case 't':
  ------------------
  |  Branch (16072:13): [True: 264, False: 88.1k]
  ------------------
16073|    264|                return scan_literal("rue", token_type::literal_true);
16074|    252|            case 'f':
  ------------------
  |  Branch (16074:13): [True: 252, False: 88.1k]
  ------------------
16075|    252|                return scan_literal("alse", token_type::literal_false);
16076|    204|            case 'n':
  ------------------
  |  Branch (16076:13): [True: 204, False: 88.2k]
  ------------------
16077|    204|                return scan_literal("ull", token_type::literal_null);
16078|       |
16079|       |            // string
16080|  4.24k|            case '\"':
  ------------------
  |  Branch (16080:13): [True: 4.24k, False: 84.1k]
  ------------------
16081|       |                // accept() (DiscardValues) checks strings without copying them
16082|       |                // into token_buffer
16083|  4.24k|                return scan_string(keep_strings {});
16084|       |
16085|       |            // number
16086|  5.03k|            case '-':
  ------------------
  |  Branch (16086:13): [True: 5.03k, False: 83.3k]
  ------------------
16087|  10.0k|            case '0':
  ------------------
  |  Branch (16087:13): [True: 4.98k, False: 83.4k]
  ------------------
16088|  16.7k|            case '1':
  ------------------
  |  Branch (16088:13): [True: 6.74k, False: 81.6k]
  ------------------
16089|  21.3k|            case '2':
  ------------------
  |  Branch (16089:13): [True: 4.58k, False: 83.8k]
  ------------------
16090|  24.1k|            case '3':
  ------------------
  |  Branch (16090:13): [True: 2.77k, False: 85.6k]
  ------------------
16091|  26.8k|            case '4':
  ------------------
  |  Branch (16091:13): [True: 2.77k, False: 85.6k]
  ------------------
16092|  29.1k|            case '5':
  ------------------
  |  Branch (16092:13): [True: 2.29k, False: 86.1k]
  ------------------
16093|  31.0k|            case '6':
  ------------------
  |  Branch (16093:13): [True: 1.83k, False: 86.5k]
  ------------------
16094|  33.1k|            case '7':
  ------------------
  |  Branch (16094:13): [True: 2.08k, False: 86.3k]
  ------------------
16095|  35.3k|            case '8':
  ------------------
  |  Branch (16095:13): [True: 2.26k, False: 86.1k]
  ------------------
16096|  40.3k|            case '9':
  ------------------
  |  Branch (16096:13): [True: 4.93k, False: 83.4k]
  ------------------
16097|  40.3k|                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: 88.4k]
  ------------------
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|  38.1k|            case char_traits<char_type>::eof():
  ------------------
  |  Branch (16105:13): [True: 38.1k, False: 50.3k]
  ------------------
16106|  38.1k|                return token_type::end_of_input;
16107|       |
16108|       |            // error
16109|  4.03k|            default:
  ------------------
  |  Branch (16109:13): [True: 4.03k, False: 84.3k]
  ------------------
16110|  4.03k|                error_message = "invalid literal";
16111|  4.03k|                return token_type::parse_error;
16112|  88.4k|        }
16113|  88.4k|    }
_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|    468|    {
15288|    468|        constexpr std::size_t length = N - 1;
15289|    468|        if (scan_literal_bulk(rest, length, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (15289:13): [True: 18, False: 450]
  ------------------
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: 450, False: 210]
  |  |  ------------------
  ------------------
15296|    450|            {
15297|    450|                error_message = "invalid literal";
15298|    450|                return token_type::parse_error;
15299|    450|            }
15300|    660|        }
15301|      0|        return return_type;
15302|    450|    }
_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|    720|    {
15309|       |        // called right after scan_after_whitespace() read current (see
15310|       |        // get_after_string_run()), so no unget is pending
15311|    720|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|    720|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15311:9): [True: 720, False: 0]
  ------------------
15312|    720|        if (ia.bulk_remaining() < length
  ------------------
  |  Branch (15312:13): [True: 246, False: 474]
  ------------------
15313|    474|                || std::memcmp(ia.bulk_data(), rest, length) != 0)
  ------------------
  |  Branch (15313:20): [True: 438, False: 36]
  ------------------
15314|    684|        {
15315|    684|            return false;
15316|    684|        }
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|    720|    }
_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|    252|    {
15288|    252|        constexpr std::size_t length = N - 1;
15289|    252|        if (scan_literal_bulk(rest, length, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (15289:13): [True: 18, False: 234]
  ------------------
15290|     18|        {
15291|     18|            return return_type;
15292|     18|        }
15293|    534|        for (std::size_t i = 0; i < length; ++i)
  ------------------
  |  Branch (15293:33): [True: 534, False: 0]
  ------------------
15294|    534|        {
15295|    534|            if (JSON_HEDLEY_UNLIKELY(char_traits<char_type>::to_char_type(get()) != static_cast<char_type>(rest[i])))
  ------------------
  |  | 1697|    534|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 234, False: 300]
  |  |  ------------------
  ------------------
15296|    234|            {
15297|    234|                error_message = "invalid literal";
15298|    234|                return token_type::parse_error;
15299|    234|            }
15300|    534|        }
15301|      0|        return return_type;
15302|    234|    }
_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|  4.24k|    {
14053|       |        // reset token_buffer (ignore opening quote)
14054|  4.24k|        reset();
14055|       |
14056|       |        // we entered the function by reading an open quote
14057|  4.24k|        JSON_ASSERT(current == '\"');
  ------------------
  |  | 2653|  4.24k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (14057:9): [True: 4.24k, False: 0]
  ------------------
14058|       |
14059|  10.3k|        while (true)
  ------------------
  |  Branch (14059:16): [True: 10.3k, Folded]
  ------------------
14060|  10.3k|        {
14061|       |            // bulk-consume ordinary characters from contiguous input, then
14062|       |            // get the next character, the one that ends the run
14063|  10.3k|            switch (get_after_string_run(std::integral_constant<bool, bulk_scan>(), keep))
14064|  10.3k|            {
14065|       |                // end of file while parsing the string
14066|    936|                case char_traits<char_type>::eof():
  ------------------
  |  Branch (14066:17): [True: 936, False: 9.39k]
  ------------------
14067|    936|                {
14068|    936|                    error_message = "invalid string: missing closing quote";
14069|    936|                    return token_type::parse_error;
14070|      0|                }
14071|       |
14072|       |                // closing quote
14073|     66|                case '\"':
  ------------------
  |  Branch (14073:17): [True: 66, False: 10.2k]
  ------------------
14074|     66|                {
14075|     66|                    return token_type::value_string;
14076|      0|                }
14077|       |
14078|       |                // escapes
14079|  6.72k|                case '\\':
  ------------------
  |  Branch (14079:17): [True: 6.72k, False: 3.60k]
  ------------------
14080|  6.72k|                {
14081|  6.72k|                    switch (get())
14082|  6.72k|                    {
14083|       |                        // quotation mark
14084|    660|                        case '\"':
  ------------------
  |  Branch (14084:25): [True: 660, False: 6.06k]
  ------------------
14085|    660|                            add_string_char(keep, '\"');
14086|    660|                            break;
14087|       |                        // reverse solidus
14088|  1.70k|                        case '\\':
  ------------------
  |  Branch (14088:25): [True: 1.70k, False: 5.02k]
  ------------------
14089|  1.70k|                            add_string_char(keep, '\\');
14090|  1.70k|                            break;
14091|       |                        // solidus
14092|    222|                        case '/':
  ------------------
  |  Branch (14092:25): [True: 222, False: 6.50k]
  ------------------
14093|    222|                            add_string_char(keep, '/');
14094|    222|                            break;
14095|       |                        // backspace
14096|    264|                        case 'b':
  ------------------
  |  Branch (14096:25): [True: 264, False: 6.46k]
  ------------------
14097|    264|                            add_string_char(keep, '\b');
14098|    264|                            break;
14099|       |                        // form feed
14100|    840|                        case 'f':
  ------------------
  |  Branch (14100:25): [True: 840, False: 5.88k]
  ------------------
14101|    840|                            add_string_char(keep, '\f');
14102|    840|                            break;
14103|       |                        // line feed
14104|    486|                        case 'n':
  ------------------
  |  Branch (14104:25): [True: 486, False: 6.24k]
  ------------------
14105|    486|                            add_string_char(keep, '\n');
14106|    486|                            break;
14107|       |                        // carriage return
14108|    276|                        case 'r':
  ------------------
  |  Branch (14108:25): [True: 276, False: 6.45k]
  ------------------
14109|    276|                            add_string_char(keep, '\r');
14110|    276|                            break;
14111|       |                        // tab
14112|    516|                        case 't':
  ------------------
  |  Branch (14112:25): [True: 516, False: 6.21k]
  ------------------
14113|    516|                            add_string_char(keep, '\t');
14114|    516|                            break;
14115|       |
14116|       |                        // unicode escapes
14117|  1.63k|                        case 'u':
  ------------------
  |  Branch (14117:25): [True: 1.63k, False: 5.08k]
  ------------------
14118|  1.63k|                        {
14119|  1.63k|                            const int codepoint1 = get_codepoint();
14120|  1.63k|                            int codepoint = codepoint1; // start with codepoint1
14121|       |
14122|  1.63k|                            if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
  ------------------
  |  | 1697|  1.63k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 228, False: 1.41k]
  |  |  ------------------
  ------------------
14123|    228|                            {
14124|    228|                                error_message = "invalid string: '\\u' must be followed by 4 hex digits";
14125|    228|                                return token_type::parse_error;
14126|    228|                            }
14127|       |
14128|       |                            // check if code point is a high surrogate
14129|  1.41k|                            if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
  ------------------
  |  Branch (14129:33): [True: 840, False: 570]
  |  Branch (14129:57): [True: 444, False: 396]
  ------------------
14130|    444|                            {
14131|       |                                // expect next \uxxxx entry
14132|    444|                                if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
  ------------------
  |  | 1696|    786|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 324, False: 120]
  |  |  |  Branch (1696:94): [True: 342, False: 102]
  |  |  |  Branch (1696:94): [True: 324, False: 18]
  |  |  ------------------
  ------------------
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|    516|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 204, False: 96]
  |  |  |  Branch (1696:94): [True: 216, False: 84]
  |  |  |  Branch (1696:94): [True: 204, False: 12]
  |  |  ------------------
  ------------------
14144|    204|                                    {
14145|       |                                        // overwrite codepoint
14146|    204|                                        codepoint = static_cast<int>(
14147|       |                                                        // high surrogate occupies the most significant 22 bits
14148|    204|                                                        (static_cast<unsigned int>(codepoint1) << 10u)
14149|       |                                                        // low surrogate occupies the least significant 15 bits
14150|    204|                                                        + 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|    204|                                                        - 0x35FDC00u);
14155|    204|                                    }
14156|     96|                                    else
14157|     96|                                    {
14158|     96|                                        error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
14159|     96|                                        return token_type::parse_error;
14160|     96|                                    }
14161|    300|                                }
14162|    120|                                else
14163|    120|                                {
14164|    120|                                    error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
14165|    120|                                    return token_type::parse_error;
14166|    120|                                }
14167|    444|                            }
14168|    966|                            else
14169|    966|                            {
14170|    966|                                if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
  ------------------
  |  | 1697|  1.36k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 918]
  |  |  |  Branch (1697:94): [True: 396, False: 570]
  |  |  |  Branch (1697:94): [True: 48, False: 348]
  |  |  ------------------
  ------------------
14171|     48|                                {
14172|     48|                                    error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
14173|     48|                                    return token_type::parse_error;
14174|     48|                                }
14175|    966|                            }
14176|       |
14177|       |                            // the result of the above calculation yields a proper codepoint
14178|  1.12k|                            JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
  ------------------
  |  | 2653|  1.12k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (14178:29): [True: 1.12k, False: 0]
  |  Branch (14178:29): [True: 1.12k, False: 0]
  |  Branch (14178:29): [True: 1.12k, False: 0]
  ------------------
14179|       |
14180|       |                            // translate codepoint into bytes
14181|  1.12k|                            add_codepoint(keep, codepoint);
14182|       |
14183|  1.12k|                            break;
14184|  1.12k|                        }
14185|       |
14186|       |                        // other characters after escape
14187|    120|                        default:
  ------------------
  |  Branch (14187:25): [True: 120, False: 6.60k]
  ------------------
14188|    120|                            error_message = "invalid string: forbidden character after backslash";
14189|    120|                            return token_type::parse_error;
14190|  6.72k|                    }
14191|       |
14192|  6.09k|                    break;
14193|  6.72k|                }
14194|       |
14195|       |                // invalid control characters
14196|  6.09k|                case 0x00:
  ------------------
  |  Branch (14196:17): [True: 0, False: 10.3k]
  ------------------
14197|     18|                case 0x01:
  ------------------
  |  Branch (14197:17): [True: 18, False: 10.3k]
  ------------------
14198|     36|                case 0x02:
  ------------------
  |  Branch (14198:17): [True: 18, False: 10.3k]
  ------------------
14199|     54|                case 0x03:
  ------------------
  |  Branch (14199:17): [True: 18, False: 10.3k]
  ------------------
14200|     78|                case 0x04:
  ------------------
  |  Branch (14200:17): [True: 24, False: 10.3k]
  ------------------
14201|    102|                case 0x05:
  ------------------
  |  Branch (14201:17): [True: 24, False: 10.3k]
  ------------------
14202|    120|                case 0x06:
  ------------------
  |  Branch (14202:17): [True: 18, False: 10.3k]
  ------------------
14203|    138|                case 0x07:
  ------------------
  |  Branch (14203:17): [True: 18, False: 10.3k]
  ------------------
14204|    162|                case 0x08:
  ------------------
  |  Branch (14204:17): [True: 24, False: 10.3k]
  ------------------
14205|    180|                case 0x09:
  ------------------
  |  Branch (14205:17): [True: 18, False: 10.3k]
  ------------------
14206|    198|                case 0x0A:
  ------------------
  |  Branch (14206:17): [True: 18, False: 10.3k]
  ------------------
14207|    216|                case 0x0B:
  ------------------
  |  Branch (14207:17): [True: 18, False: 10.3k]
  ------------------
14208|    240|                case 0x0C:
  ------------------
  |  Branch (14208:17): [True: 24, False: 10.3k]
  ------------------
14209|    270|                case 0x0D:
  ------------------
  |  Branch (14209:17): [True: 30, False: 10.3k]
  ------------------
14210|    288|                case 0x0E:
  ------------------
  |  Branch (14210:17): [True: 18, False: 10.3k]
  ------------------
14211|    306|                case 0x0F:
  ------------------
  |  Branch (14211:17): [True: 18, False: 10.3k]
  ------------------
14212|    330|                case 0x10:
  ------------------
  |  Branch (14212:17): [True: 24, False: 10.3k]
  ------------------
14213|    366|                case 0x11:
  ------------------
  |  Branch (14213:17): [True: 36, False: 10.2k]
  ------------------
14214|    384|                case 0x12:
  ------------------
  |  Branch (14214:17): [True: 18, False: 10.3k]
  ------------------
14215|    414|                case 0x13:
  ------------------
  |  Branch (14215:17): [True: 30, False: 10.3k]
  ------------------
14216|    438|                case 0x14:
  ------------------
  |  Branch (14216:17): [True: 24, False: 10.3k]
  ------------------
14217|    456|                case 0x15:
  ------------------
  |  Branch (14217:17): [True: 18, False: 10.3k]
  ------------------
14218|    474|                case 0x16:
  ------------------
  |  Branch (14218:17): [True: 18, False: 10.3k]
  ------------------
14219|    492|                case 0x17:
  ------------------
  |  Branch (14219:17): [True: 18, False: 10.3k]
  ------------------
14220|    510|                case 0x18:
  ------------------
  |  Branch (14220:17): [True: 18, False: 10.3k]
  ------------------
14221|    528|                case 0x19:
  ------------------
  |  Branch (14221:17): [True: 18, False: 10.3k]
  ------------------
14222|    558|                case 0x1A:
  ------------------
  |  Branch (14222:17): [True: 30, False: 10.3k]
  ------------------
14223|    576|                case 0x1B:
  ------------------
  |  Branch (14223:17): [True: 18, False: 10.3k]
  ------------------
14224|    600|                case 0x1C:
  ------------------
  |  Branch (14224:17): [True: 24, False: 10.3k]
  ------------------
14225|    624|                case 0x1D:
  ------------------
  |  Branch (14225:17): [True: 24, False: 10.3k]
  ------------------
14226|    660|                case 0x1E:
  ------------------
  |  Branch (14226:17): [True: 36, False: 10.2k]
  ------------------
14227|    690|                case 0x1F:
  ------------------
  |  Branch (14227:17): [True: 30, False: 10.3k]
  ------------------
14228|    690|                {
14229|    690|                    static const std::array<const char*, 32> control_character_messages = {{
14230|    690|                            "invalid string: control character U+0000 (NUL) must be escaped to \\u0000",
14231|    690|                            "invalid string: control character U+0001 (SOH) must be escaped to \\u0001",
14232|    690|                            "invalid string: control character U+0002 (STX) must be escaped to \\u0002",
14233|    690|                            "invalid string: control character U+0003 (ETX) must be escaped to \\u0003",
14234|    690|                            "invalid string: control character U+0004 (EOT) must be escaped to \\u0004",
14235|    690|                            "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005",
14236|    690|                            "invalid string: control character U+0006 (ACK) must be escaped to \\u0006",
14237|    690|                            "invalid string: control character U+0007 (BEL) must be escaped to \\u0007",
14238|    690|                            "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b",
14239|    690|                            "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t",
14240|    690|                            "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n",
14241|    690|                            "invalid string: control character U+000B (VT) must be escaped to \\u000B",
14242|    690|                            "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f",
14243|    690|                            "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r",
14244|    690|                            "invalid string: control character U+000E (SO) must be escaped to \\u000E",
14245|    690|                            "invalid string: control character U+000F (SI) must be escaped to \\u000F",
14246|    690|                            "invalid string: control character U+0010 (DLE) must be escaped to \\u0010",
14247|    690|                            "invalid string: control character U+0011 (DC1) must be escaped to \\u0011",
14248|    690|                            "invalid string: control character U+0012 (DC2) must be escaped to \\u0012",
14249|    690|                            "invalid string: control character U+0013 (DC3) must be escaped to \\u0013",
14250|    690|                            "invalid string: control character U+0014 (DC4) must be escaped to \\u0014",
14251|    690|                            "invalid string: control character U+0015 (NAK) must be escaped to \\u0015",
14252|    690|                            "invalid string: control character U+0016 (SYN) must be escaped to \\u0016",
14253|    690|                            "invalid string: control character U+0017 (ETB) must be escaped to \\u0017",
14254|    690|                            "invalid string: control character U+0018 (CAN) must be escaped to \\u0018",
14255|    690|                            "invalid string: control character U+0019 (EM) must be escaped to \\u0019",
14256|    690|                            "invalid string: control character U+001A (SUB) must be escaped to \\u001A",
14257|    690|                            "invalid string: control character U+001B (ESC) must be escaped to \\u001B",
14258|    690|                            "invalid string: control character U+001C (FS) must be escaped to \\u001C",
14259|    690|                            "invalid string: control character U+001D (GS) must be escaped to \\u001D",
14260|    690|                            "invalid string: control character U+001E (RS) must be escaped to \\u001E",
14261|    690|                            "invalid string: control character U+001F (US) must be escaped to \\u001F"
14262|    690|                        }
14263|    690|                    };
14264|    690|                    error_message = control_character_messages[static_cast<std::size_t>(current)];
14265|    690|                    return token_type::parse_error;
14266|    660|                }
14267|       |
14268|       |                // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
14269|      0|                case 0x20:
  ------------------
  |  Branch (14269:17): [True: 0, False: 10.3k]
  ------------------
14270|      0|                case 0x21:
  ------------------
  |  Branch (14270:17): [True: 0, False: 10.3k]
  ------------------
14271|      0|                case 0x23:
  ------------------
  |  Branch (14271:17): [True: 0, False: 10.3k]
  ------------------
14272|      0|                case 0x24:
  ------------------
  |  Branch (14272:17): [True: 0, False: 10.3k]
  ------------------
14273|      0|                case 0x25:
  ------------------
  |  Branch (14273:17): [True: 0, False: 10.3k]
  ------------------
14274|      0|                case 0x26:
  ------------------
  |  Branch (14274:17): [True: 0, False: 10.3k]
  ------------------
14275|      0|                case 0x27:
  ------------------
  |  Branch (14275:17): [True: 0, False: 10.3k]
  ------------------
14276|      0|                case 0x28:
  ------------------
  |  Branch (14276:17): [True: 0, False: 10.3k]
  ------------------
14277|      0|                case 0x29:
  ------------------
  |  Branch (14277:17): [True: 0, False: 10.3k]
  ------------------
14278|      0|                case 0x2A:
  ------------------
  |  Branch (14278:17): [True: 0, False: 10.3k]
  ------------------
14279|      0|                case 0x2B:
  ------------------
  |  Branch (14279:17): [True: 0, False: 10.3k]
  ------------------
14280|      0|                case 0x2C:
  ------------------
  |  Branch (14280:17): [True: 0, False: 10.3k]
  ------------------
14281|      0|                case 0x2D:
  ------------------
  |  Branch (14281:17): [True: 0, False: 10.3k]
  ------------------
14282|      0|                case 0x2E:
  ------------------
  |  Branch (14282:17): [True: 0, False: 10.3k]
  ------------------
14283|      0|                case 0x2F:
  ------------------
  |  Branch (14283:17): [True: 0, False: 10.3k]
  ------------------
14284|      0|                case 0x30:
  ------------------
  |  Branch (14284:17): [True: 0, False: 10.3k]
  ------------------
14285|      0|                case 0x31:
  ------------------
  |  Branch (14285:17): [True: 0, False: 10.3k]
  ------------------
14286|      0|                case 0x32:
  ------------------
  |  Branch (14286:17): [True: 0, False: 10.3k]
  ------------------
14287|      0|                case 0x33:
  ------------------
  |  Branch (14287:17): [True: 0, False: 10.3k]
  ------------------
14288|      0|                case 0x34:
  ------------------
  |  Branch (14288:17): [True: 0, False: 10.3k]
  ------------------
14289|      0|                case 0x35:
  ------------------
  |  Branch (14289:17): [True: 0, False: 10.3k]
  ------------------
14290|      0|                case 0x36:
  ------------------
  |  Branch (14290:17): [True: 0, False: 10.3k]
  ------------------
14291|      0|                case 0x37:
  ------------------
  |  Branch (14291:17): [True: 0, False: 10.3k]
  ------------------
14292|      0|                case 0x38:
  ------------------
  |  Branch (14292:17): [True: 0, False: 10.3k]
  ------------------
14293|      0|                case 0x39:
  ------------------
  |  Branch (14293:17): [True: 0, False: 10.3k]
  ------------------
14294|      0|                case 0x3A:
  ------------------
  |  Branch (14294:17): [True: 0, False: 10.3k]
  ------------------
14295|      0|                case 0x3B:
  ------------------
  |  Branch (14295:17): [True: 0, False: 10.3k]
  ------------------
14296|      0|                case 0x3C:
  ------------------
  |  Branch (14296:17): [True: 0, False: 10.3k]
  ------------------
14297|      0|                case 0x3D:
  ------------------
  |  Branch (14297:17): [True: 0, False: 10.3k]
  ------------------
14298|      0|                case 0x3E:
  ------------------
  |  Branch (14298:17): [True: 0, False: 10.3k]
  ------------------
14299|      0|                case 0x3F:
  ------------------
  |  Branch (14299:17): [True: 0, False: 10.3k]
  ------------------
14300|      0|                case 0x40:
  ------------------
  |  Branch (14300:17): [True: 0, False: 10.3k]
  ------------------
14301|      0|                case 0x41:
  ------------------
  |  Branch (14301:17): [True: 0, False: 10.3k]
  ------------------
14302|      0|                case 0x42:
  ------------------
  |  Branch (14302:17): [True: 0, False: 10.3k]
  ------------------
14303|      0|                case 0x43:
  ------------------
  |  Branch (14303:17): [True: 0, False: 10.3k]
  ------------------
14304|      0|                case 0x44:
  ------------------
  |  Branch (14304:17): [True: 0, False: 10.3k]
  ------------------
14305|      0|                case 0x45:
  ------------------
  |  Branch (14305:17): [True: 0, False: 10.3k]
  ------------------
14306|      0|                case 0x46:
  ------------------
  |  Branch (14306:17): [True: 0, False: 10.3k]
  ------------------
14307|      0|                case 0x47:
  ------------------
  |  Branch (14307:17): [True: 0, False: 10.3k]
  ------------------
14308|      0|                case 0x48:
  ------------------
  |  Branch (14308:17): [True: 0, False: 10.3k]
  ------------------
14309|      0|                case 0x49:
  ------------------
  |  Branch (14309:17): [True: 0, False: 10.3k]
  ------------------
14310|      0|                case 0x4A:
  ------------------
  |  Branch (14310:17): [True: 0, False: 10.3k]
  ------------------
14311|      0|                case 0x4B:
  ------------------
  |  Branch (14311:17): [True: 0, False: 10.3k]
  ------------------
14312|      0|                case 0x4C:
  ------------------
  |  Branch (14312:17): [True: 0, False: 10.3k]
  ------------------
14313|      0|                case 0x4D:
  ------------------
  |  Branch (14313:17): [True: 0, False: 10.3k]
  ------------------
14314|      0|                case 0x4E:
  ------------------
  |  Branch (14314:17): [True: 0, False: 10.3k]
  ------------------
14315|      0|                case 0x4F:
  ------------------
  |  Branch (14315:17): [True: 0, False: 10.3k]
  ------------------
14316|      0|                case 0x50:
  ------------------
  |  Branch (14316:17): [True: 0, False: 10.3k]
  ------------------
14317|      0|                case 0x51:
  ------------------
  |  Branch (14317:17): [True: 0, False: 10.3k]
  ------------------
14318|      0|                case 0x52:
  ------------------
  |  Branch (14318:17): [True: 0, False: 10.3k]
  ------------------
14319|      0|                case 0x53:
  ------------------
  |  Branch (14319:17): [True: 0, False: 10.3k]
  ------------------
14320|      0|                case 0x54:
  ------------------
  |  Branch (14320:17): [True: 0, False: 10.3k]
  ------------------
14321|      0|                case 0x55:
  ------------------
  |  Branch (14321:17): [True: 0, False: 10.3k]
  ------------------
14322|      0|                case 0x56:
  ------------------
  |  Branch (14322:17): [True: 0, False: 10.3k]
  ------------------
14323|      0|                case 0x57:
  ------------------
  |  Branch (14323:17): [True: 0, False: 10.3k]
  ------------------
14324|      0|                case 0x58:
  ------------------
  |  Branch (14324:17): [True: 0, False: 10.3k]
  ------------------
14325|      0|                case 0x59:
  ------------------
  |  Branch (14325:17): [True: 0, False: 10.3k]
  ------------------
14326|      0|                case 0x5A:
  ------------------
  |  Branch (14326:17): [True: 0, False: 10.3k]
  ------------------
14327|      0|                case 0x5B:
  ------------------
  |  Branch (14327:17): [True: 0, False: 10.3k]
  ------------------
14328|      0|                case 0x5D:
  ------------------
  |  Branch (14328:17): [True: 0, False: 10.3k]
  ------------------
14329|      0|                case 0x5E:
  ------------------
  |  Branch (14329:17): [True: 0, False: 10.3k]
  ------------------
14330|      0|                case 0x5F:
  ------------------
  |  Branch (14330:17): [True: 0, False: 10.3k]
  ------------------
14331|      0|                case 0x60:
  ------------------
  |  Branch (14331:17): [True: 0, False: 10.3k]
  ------------------
14332|      0|                case 0x61:
  ------------------
  |  Branch (14332:17): [True: 0, False: 10.3k]
  ------------------
14333|      0|                case 0x62:
  ------------------
  |  Branch (14333:17): [True: 0, False: 10.3k]
  ------------------
14334|      0|                case 0x63:
  ------------------
  |  Branch (14334:17): [True: 0, False: 10.3k]
  ------------------
14335|      0|                case 0x64:
  ------------------
  |  Branch (14335:17): [True: 0, False: 10.3k]
  ------------------
14336|      0|                case 0x65:
  ------------------
  |  Branch (14336:17): [True: 0, False: 10.3k]
  ------------------
14337|      0|                case 0x66:
  ------------------
  |  Branch (14337:17): [True: 0, False: 10.3k]
  ------------------
14338|      0|                case 0x67:
  ------------------
  |  Branch (14338:17): [True: 0, False: 10.3k]
  ------------------
14339|      0|                case 0x68:
  ------------------
  |  Branch (14339:17): [True: 0, False: 10.3k]
  ------------------
14340|      0|                case 0x69:
  ------------------
  |  Branch (14340:17): [True: 0, False: 10.3k]
  ------------------
14341|      0|                case 0x6A:
  ------------------
  |  Branch (14341:17): [True: 0, False: 10.3k]
  ------------------
14342|      0|                case 0x6B:
  ------------------
  |  Branch (14342:17): [True: 0, False: 10.3k]
  ------------------
14343|      0|                case 0x6C:
  ------------------
  |  Branch (14343:17): [True: 0, False: 10.3k]
  ------------------
14344|      0|                case 0x6D:
  ------------------
  |  Branch (14344:17): [True: 0, False: 10.3k]
  ------------------
14345|      0|                case 0x6E:
  ------------------
  |  Branch (14345:17): [True: 0, False: 10.3k]
  ------------------
14346|      0|                case 0x6F:
  ------------------
  |  Branch (14346:17): [True: 0, False: 10.3k]
  ------------------
14347|      0|                case 0x70:
  ------------------
  |  Branch (14347:17): [True: 0, False: 10.3k]
  ------------------
14348|      0|                case 0x71:
  ------------------
  |  Branch (14348:17): [True: 0, False: 10.3k]
  ------------------
14349|      0|                case 0x72:
  ------------------
  |  Branch (14349:17): [True: 0, False: 10.3k]
  ------------------
14350|      0|                case 0x73:
  ------------------
  |  Branch (14350:17): [True: 0, False: 10.3k]
  ------------------
14351|      0|                case 0x74:
  ------------------
  |  Branch (14351:17): [True: 0, False: 10.3k]
  ------------------
14352|      0|                case 0x75:
  ------------------
  |  Branch (14352:17): [True: 0, False: 10.3k]
  ------------------
14353|      0|                case 0x76:
  ------------------
  |  Branch (14353:17): [True: 0, False: 10.3k]
  ------------------
14354|      0|                case 0x77:
  ------------------
  |  Branch (14354:17): [True: 0, False: 10.3k]
  ------------------
14355|      0|                case 0x78:
  ------------------
  |  Branch (14355:17): [True: 0, False: 10.3k]
  ------------------
14356|      0|                case 0x79:
  ------------------
  |  Branch (14356:17): [True: 0, False: 10.3k]
  ------------------
14357|      0|                case 0x7A:
  ------------------
  |  Branch (14357:17): [True: 0, False: 10.3k]
  ------------------
14358|      0|                case 0x7B:
  ------------------
  |  Branch (14358:17): [True: 0, False: 10.3k]
  ------------------
14359|      0|                case 0x7C:
  ------------------
  |  Branch (14359:17): [True: 0, False: 10.3k]
  ------------------
14360|      0|                case 0x7D:
  ------------------
  |  Branch (14360:17): [True: 0, False: 10.3k]
  ------------------
14361|      0|                case 0x7E:
  ------------------
  |  Branch (14361:17): [True: 0, False: 10.3k]
  ------------------
14362|      0|                case 0x7F:
  ------------------
  |  Branch (14362:17): [True: 0, False: 10.3k]
  ------------------
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|     18|                case 0xC2:
  ------------------
  |  Branch (14369:17): [True: 18, False: 10.3k]
  ------------------
14370|     36|                case 0xC3:
  ------------------
  |  Branch (14370:17): [True: 18, False: 10.3k]
  ------------------
14371|     60|                case 0xC4:
  ------------------
  |  Branch (14371:17): [True: 24, False: 10.3k]
  ------------------
14372|     78|                case 0xC5:
  ------------------
  |  Branch (14372:17): [True: 18, False: 10.3k]
  ------------------
14373|     96|                case 0xC6:
  ------------------
  |  Branch (14373:17): [True: 18, False: 10.3k]
  ------------------
14374|    114|                case 0xC7:
  ------------------
  |  Branch (14374:17): [True: 18, False: 10.3k]
  ------------------
14375|    132|                case 0xC8:
  ------------------
  |  Branch (14375:17): [True: 18, False: 10.3k]
  ------------------
14376|    150|                case 0xC9:
  ------------------
  |  Branch (14376:17): [True: 18, False: 10.3k]
  ------------------
14377|    198|                case 0xCA:
  ------------------
  |  Branch (14377:17): [True: 48, False: 10.2k]
  ------------------
14378|    234|                case 0xCB:
  ------------------
  |  Branch (14378:17): [True: 36, False: 10.2k]
  ------------------
14379|    258|                case 0xCC:
  ------------------
  |  Branch (14379:17): [True: 24, False: 10.3k]
  ------------------
14380|    276|                case 0xCD:
  ------------------
  |  Branch (14380:17): [True: 18, False: 10.3k]
  ------------------
14381|    294|                case 0xCE:
  ------------------
  |  Branch (14381:17): [True: 18, False: 10.3k]
  ------------------
14382|    324|                case 0xCF:
  ------------------
  |  Branch (14382:17): [True: 30, False: 10.3k]
  ------------------
14383|    348|                case 0xD0:
  ------------------
  |  Branch (14383:17): [True: 24, False: 10.3k]
  ------------------
14384|    378|                case 0xD1:
  ------------------
  |  Branch (14384:17): [True: 30, False: 10.3k]
  ------------------
14385|    426|                case 0xD2:
  ------------------
  |  Branch (14385:17): [True: 48, False: 10.2k]
  ------------------
14386|    444|                case 0xD3:
  ------------------
  |  Branch (14386:17): [True: 18, False: 10.3k]
  ------------------
14387|    462|                case 0xD4:
  ------------------
  |  Branch (14387:17): [True: 18, False: 10.3k]
  ------------------
14388|    498|                case 0xD5:
  ------------------
  |  Branch (14388:17): [True: 36, False: 10.2k]
  ------------------
14389|    516|                case 0xD6:
  ------------------
  |  Branch (14389:17): [True: 18, False: 10.3k]
  ------------------
14390|    540|                case 0xD7:
  ------------------
  |  Branch (14390:17): [True: 24, False: 10.3k]
  ------------------
14391|    558|                case 0xD8:
  ------------------
  |  Branch (14391:17): [True: 18, False: 10.3k]
  ------------------
14392|    582|                case 0xD9:
  ------------------
  |  Branch (14392:17): [True: 24, False: 10.3k]
  ------------------
14393|    606|                case 0xDA:
  ------------------
  |  Branch (14393:17): [True: 24, False: 10.3k]
  ------------------
14394|    624|                case 0xDB:
  ------------------
  |  Branch (14394:17): [True: 18, False: 10.3k]
  ------------------
14395|    642|                case 0xDC:
  ------------------
  |  Branch (14395:17): [True: 18, False: 10.3k]
  ------------------
14396|    666|                case 0xDD:
  ------------------
  |  Branch (14396:17): [True: 24, False: 10.3k]
  ------------------
14397|    684|                case 0xDE:
  ------------------
  |  Branch (14397:17): [True: 18, False: 10.3k]
  ------------------
14398|    702|                case 0xDF:
  ------------------
  |  Branch (14398:17): [True: 18, False: 10.3k]
  ------------------
14399|    702|                {
14400|    702|                    if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range(keep, {0x80, 0xBF})))
  ------------------
  |  | 1697|    702|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 702, False: 0]
  |  |  ------------------
  ------------------
14401|    702|                    {
14402|    702|                        return token_type::parse_error;
14403|    702|                    }
14404|      0|                    break;
14405|    702|                }
14406|       |
14407|       |                // U+0800..U+0FFF: bytes E0 A0..BF 80..BF
14408|     96|                case 0xE0:
  ------------------
  |  Branch (14408:17): [True: 96, False: 10.2k]
  ------------------
14409|     96|                {
14410|     96|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0xA0, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|     96|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 96, False: 0]
  |  |  ------------------
  ------------------
14411|     96|                    {
14412|     96|                        return token_type::parse_error;
14413|     96|                    }
14414|      0|                    break;
14415|     96|                }
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|     48|                case 0xE1:
  ------------------
  |  Branch (14419:17): [True: 48, False: 10.2k]
  ------------------
14420|     72|                case 0xE2:
  ------------------
  |  Branch (14420:17): [True: 24, False: 10.3k]
  ------------------
14421|     96|                case 0xE3:
  ------------------
  |  Branch (14421:17): [True: 24, False: 10.3k]
  ------------------
14422|    114|                case 0xE4:
  ------------------
  |  Branch (14422:17): [True: 18, False: 10.3k]
  ------------------
14423|    138|                case 0xE5:
  ------------------
  |  Branch (14423:17): [True: 24, False: 10.3k]
  ------------------
14424|    156|                case 0xE6:
  ------------------
  |  Branch (14424:17): [True: 18, False: 10.3k]
  ------------------
14425|    174|                case 0xE7:
  ------------------
  |  Branch (14425:17): [True: 18, False: 10.3k]
  ------------------
14426|    216|                case 0xE8:
  ------------------
  |  Branch (14426:17): [True: 42, False: 10.2k]
  ------------------
14427|    246|                case 0xE9:
  ------------------
  |  Branch (14427:17): [True: 30, False: 10.3k]
  ------------------
14428|    264|                case 0xEA:
  ------------------
  |  Branch (14428:17): [True: 18, False: 10.3k]
  ------------------
14429|    294|                case 0xEB:
  ------------------
  |  Branch (14429:17): [True: 30, False: 10.3k]
  ------------------
14430|    324|                case 0xEC:
  ------------------
  |  Branch (14430:17): [True: 30, False: 10.3k]
  ------------------
14431|    342|                case 0xEE:
  ------------------
  |  Branch (14431:17): [True: 18, False: 10.3k]
  ------------------
14432|    372|                case 0xEF:
  ------------------
  |  Branch (14432:17): [True: 30, False: 10.3k]
  ------------------
14433|    372|                {
14434|    372|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    372|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 372, False: 0]
  |  |  ------------------
  ------------------
14435|    372|                    {
14436|    372|                        return token_type::parse_error;
14437|    372|                    }
14438|      0|                    break;
14439|    372|                }
14440|       |
14441|       |                // U+D000..U+D7FF: bytes ED 80..9F 80..BF
14442|    156|                case 0xED:
  ------------------
  |  Branch (14442:17): [True: 156, False: 10.1k]
  ------------------
14443|    156|                {
14444|    156|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0x9F, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    156|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 156, False: 0]
  |  |  ------------------
  ------------------
14445|    156|                    {
14446|    156|                        return token_type::parse_error;
14447|    156|                    }
14448|      0|                    break;
14449|    156|                }
14450|       |
14451|       |                // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
14452|    114|                case 0xF0:
  ------------------
  |  Branch (14452:17): [True: 114, False: 10.2k]
  ------------------
14453|    114|                {
14454|    114|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    114|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 0]
  |  |  ------------------
  ------------------
14455|    114|                    {
14456|    114|                        return token_type::parse_error;
14457|    114|                    }
14458|      0|                    break;
14459|    114|                }
14460|       |
14461|       |                // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
14462|     78|                case 0xF1:
  ------------------
  |  Branch (14462:17): [True: 78, False: 10.2k]
  ------------------
14463|    138|                case 0xF2:
  ------------------
  |  Branch (14463:17): [True: 60, False: 10.2k]
  ------------------
14464|    192|                case 0xF3:
  ------------------
  |  Branch (14464:17): [True: 54, False: 10.2k]
  ------------------
14465|    192|                {
14466|    192|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    192|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 192, False: 0]
  |  |  ------------------
  ------------------
14467|    192|                    {
14468|    192|                        return token_type::parse_error;
14469|    192|                    }
14470|      0|                    break;
14471|    192|                }
14472|       |
14473|       |                // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
14474|    108|                case 0xF4:
  ------------------
  |  Branch (14474:17): [True: 108, False: 10.2k]
  ------------------
14475|    108|                {
14476|    108|                    if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range(keep, {0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
  ------------------
  |  | 1697|    108|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 108, False: 0]
  |  |  ------------------
  ------------------
14477|    108|                    {
14478|    108|                        return token_type::parse_error;
14479|    108|                    }
14480|      0|                    break;
14481|    108|                }
14482|       |
14483|       |                // the remaining bytes (80..C1 and F5..FF) are ill-formed
14484|    174|                default:
  ------------------
  |  Branch (14484:17): [True: 174, False: 10.1k]
  ------------------
14485|    174|                {
14486|    174|                    error_message = "invalid string: ill-formed UTF-8 byte";
14487|    174|                    return token_type::parse_error;
14488|    108|                }
14489|  10.3k|            }
14490|  10.3k|        }
14491|  4.24k|    }
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE5resetEv:
15334|  44.5k|    {
15335|  44.5k|        token_buffer.clear();
15336|  44.5k|        pending_number_text = nullptr;
15337|  44.5k|        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|  44.5k|        note_token_start(std::integral_constant<bool, lazy_token_string> {});
15345|  44.5k|    }
_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|  44.5k|    {
15352|  44.5k|        note_token_start_lazy(std::integral_constant<bool, adapter_token> {});
15353|  44.5k|    }
_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|  44.5k|    {
15357|  44.5k|        token_string_start = ia.get_consumed_count() - 1;
15358|  44.5k|    }
_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|  10.3k|    {
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|  10.3k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  10.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13966:9): [True: 10.3k, False: 0]
  ------------------
13967|  10.3k|        const std::size_t remaining = ia.bulk_remaining();
13968|  10.3k|        if (remaining == 0)
  ------------------
  |  Branch (13968:13): [True: 624, False: 9.70k]
  ------------------
13969|    624|        {
13970|    624|            return get();
13971|    624|        }
13972|  9.70k|        const auto* const raw = ia.bulk_data();
13973|  9.70k|        const auto* const data = reinterpret_cast<const unsigned char*>(raw);
13974|       |
13975|  9.70k|        const std::size_t pos = lexer_string_bulk_run(data, remaining);
13976|  9.70k|        if (pos != 0)
  ------------------
  |  Branch (13976:13): [True: 2.24k, False: 7.46k]
  ------------------
13977|  2.24k|        {
13978|  2.24k|            append_string_run(keep, data, pos);
13979|  2.24k|            bulk_consume(reinterpret_cast<const char*>(data), pos);
13980|  2.24k|        }
13981|  9.70k|        if (pos == remaining)
  ------------------
  |  Branch (13981:13): [True: 312, False: 9.39k]
  ------------------
13982|    312|        {
13983|    312|            return get(); // end of the contiguous input
13984|    312|        }
13985|       |        // what get() does, with the byte at hand
13986|  9.39k|        advance_position();
13987|  9.39k|        ia.bulk_skip(1);
13988|  9.39k|        current = char_traits<char_type>::to_int_type(raw[pos]);
13989|  9.39k|        return track_after_read();
13990|  9.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21lexer_string_bulk_runEPKhm:
13478|  9.70k|{
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|  9.70k|    return string_bulk_run(data, n);
13494|  9.70k|#endif
13495|  9.70k|}
_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.24k|    {
15593|  2.24k|        token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), n);
15594|  2.24k|    }
_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|  7.16k|    {
15574|  7.16k|        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
15575|  7.16k|    }
_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|  1.96k|    {
13872|       |        // this function only makes sense after reading `\u`
13873|  1.96k|        JSON_ASSERT(current == 'u');
  ------------------
  |  | 2653|  1.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13873:9): [True: 1.96k, False: 0]
  ------------------
13874|       |
13875|       |        // contiguous input: decode all 4 hex digits directly from the buffer
13876|  1.96k|        int fast_codepoint = 0;
13877|  1.96k|        if (get_codepoint_bulk(std::integral_constant<bool, bulk_scan> {}, fast_codepoint))
  ------------------
  |  Branch (13877:13): [True: 1.71k, False: 252]
  ------------------
13878|  1.71k|        {
13879|  1.71k|            return fast_codepoint;
13880|  1.71k|        }
13881|       |
13882|    252|        int codepoint = 0;
13883|       |
13884|    252|        const auto factors = { 12u, 8u, 4u, 0u };
13885|    252|        for (const auto factor : factors)
  ------------------
  |  Branch (13885:32): [True: 552, False: 0]
  ------------------
13886|    552|        {
13887|    552|            get();
13888|       |
13889|    552|            if (current >= '0' && current <= '9')
  ------------------
  |  Branch (13889:17): [True: 378, False: 174]
  |  Branch (13889:35): [True: 108, False: 270]
  ------------------
13890|    108|            {
13891|    108|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
13892|    108|            }
13893|    444|            else if (current >= 'A' && current <= 'F')
  ------------------
  |  Branch (13893:22): [True: 264, False: 180]
  |  Branch (13893:40): [True: 96, False: 168]
  ------------------
13894|     96|            {
13895|     96|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
13896|     96|            }
13897|    348|            else if (current >= 'a' && current <= 'f')
  ------------------
  |  Branch (13897:22): [True: 144, False: 204]
  |  Branch (13897:40): [True: 96, False: 48]
  ------------------
13898|     96|            {
13899|     96|                codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
13900|     96|            }
13901|    252|            else
13902|    252|            {
13903|    252|                return -1;
13904|    252|            }
13905|    552|        }
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|  1.96k|    {
13831|       |        // no unget is pending inside a string (see get_after_string_run())
13832|  1.96k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  1.96k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13832:9): [True: 1.96k, False: 0]
  ------------------
13833|  1.96k|        if (ia.bulk_remaining() < 4)
  ------------------
  |  Branch (13833:13): [True: 162, False: 1.80k]
  ------------------
13834|    162|        {
13835|    162|            return false;
13836|    162|        }
13837|  1.80k|        const char_type* const raw = ia.bulk_data();
13838|  1.80k|        const int codepoint = hex_codepoint(reinterpret_cast<const unsigned char*>(raw));
13839|  1.80k|        if (codepoint < 0)
  ------------------
  |  Branch (13839:13): [True: 90, False: 1.71k]
  ------------------
13840|     90|        {
13841|     90|            return false;
13842|     90|        }
13843|  1.71k|        bulk_consume(reinterpret_cast<const char*>(raw), 4);
13844|  1.71k|        current = char_traits<char_type>::to_int_type(raw[3]);
13845|  1.71k|        out = codepoint;
13846|  1.71k|        return true;
13847|  1.80k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13hex_codepointEPKh:
13506|  1.80k|{
13507|  1.80k|    static const std::array<std::uint8_t, 256> hex_digit_table = // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
13508|  1.80k|    {
13509|  1.80k|        {
13510|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 00..0F
13511|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 10..1F
13512|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 20..2F
13513|  1.80k|            0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 30..3F ('0'..'9')
13514|  1.80k|            0xFF, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 40..4F ('A'..'F')
13515|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 50..5F
13516|  1.80k|            0xFF, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 60..6F ('a'..'f')
13517|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 70..7F
13518|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 80..8F
13519|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // 90..9F
13520|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // A0..AF
13521|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // B0..BF
13522|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // C0..CF
13523|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // D0..DF
13524|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // E0..EF
13525|  1.80k|            0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF  // F0..FF
13526|  1.80k|        }
13527|  1.80k|    };
13528|       |
13529|  1.80k|    const std::uint8_t d0 = hex_digit_table[data[0]];
13530|  1.80k|    const std::uint8_t d1 = hex_digit_table[data[1]];
13531|  1.80k|    const std::uint8_t d2 = hex_digit_table[data[2]];
13532|  1.80k|    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|  1.80k|    if ((d0 | d1 | d2 | d3) > 0x0F)
  ------------------
  |  Branch (13535:9): [True: 90, False: 1.71k]
  ------------------
13536|     90|    {
13537|     90|        return -1;
13538|     90|    }
13539|  1.71k|    return (d0 << 12) | (d1 << 8) | (d2 << 4) | d3;
13540|  1.80k|}
_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.12k|    {
15582|  1.12k|        encode_utf8(static_cast<std::uint32_t>(codepoint), [this](std::uint32_t byte)
15583|  1.12k|        {
15584|  1.12k|            add(static_cast<char_int_type>(byte));
15585|  1.12k|        });
15586|  1.12k|    }
_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.12k|{
 7276|  1.12k|    JSON_ASSERT(cp <= 0x10FFFF);
  ------------------
  |  | 2653|  1.12k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7276:5): [True: 1.12k, False: 0]
  ------------------
 7277|       |
 7278|  1.12k|    if (cp < 0x80)
  ------------------
  |  Branch (7278:9): [True: 114, False: 1.00k]
  ------------------
 7279|    114|    {
 7280|       |        // 1-byte characters: 0xxxxxxx (ASCII)
 7281|    114|        out(cp);
 7282|    114|    }
 7283|  1.00k|    else if (cp <= 0x7FF)
  ------------------
  |  Branch (7283:14): [True: 222, False: 786]
  ------------------
 7284|    222|    {
 7285|       |        // 2-byte characters: 110xxxxx 10xxxxxx
 7286|    222|        out(0xC0u | (cp >> 6u));
 7287|    222|        out(0x80u | (cp & 0x3Fu));
 7288|    222|    }
 7289|    786|    else if (cp <= 0xFFFF)
  ------------------
  |  Branch (7289:14): [True: 582, False: 204]
  ------------------
 7290|    582|    {
 7291|       |        // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
 7292|    582|        out(0xE0u | (cp >> 12u));
 7293|    582|        out(0x80u | ((cp >> 6u) & 0x3Fu));
 7294|    582|        out(0x80u | (cp & 0x3Fu));
 7295|    582|    }
 7296|    204|    else
 7297|    204|    {
 7298|       |        // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
 7299|    204|        out(0xF0u | (cp >> 18u));
 7300|    204|        out(0x80u | ((cp >> 12u) & 0x3Fu));
 7301|    204|        out(0x80u | ((cp >> 6u) & 0x3Fu));
 7302|    204|        out(0x80u | (cp & 0x3Fu));
 7303|    204|    }
 7304|  1.12k|}
_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.12k|        {
15584|  3.12k|            add(static_cast<char_int_type>(byte));
15585|  3.12k|        });
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EE3addEi:
15566|  27.0k|    {
15567|  27.0k|        token_buffer.push_back(static_cast<typename string_t::value_type>(c));
15568|  27.0k|    }
_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|  1.74k|    {
13931|  1.74k|        JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
  ------------------
  |  | 2653|  1.74k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (13931:9): [True: 702, False: 1.03k]
  |  Branch (13931:9): [True: 624, False: 414]
  |  Branch (13931:9): [True: 414, False: 0]
  |  Branch (13931:9): [True: 1.74k, False: 0]
  ------------------
13932|  1.74k|        add_string_char(keep, current);
13933|       |
13934|  2.19k|        for (auto range = ranges.begin(); range != ranges.end(); ++range)
  ------------------
  |  Branch (13934:43): [True: 2.19k, False: 0]
  ------------------
13935|  2.19k|        {
13936|  2.19k|            get();
13937|  2.19k|            if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions)
  ------------------
  |  | 1696|  3.06k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 456, False: 1.74k]
  |  |  |  Branch (1696:94): [True: 864, False: 1.33k]
  |  |  |  Branch (1696:94): [True: 456, False: 408]
  |  |  ------------------
  ------------------
13938|    456|            {
13939|    456|                add_string_char(keep, current);
13940|    456|            }
13941|  1.74k|            else
13942|  1.74k|            {
13943|  1.74k|                error_message = "invalid string: ill-formed UTF-8 byte";
13944|  1.74k|                return false;
13945|  1.74k|            }
13946|  2.19k|        }
13947|       |
13948|      0|        return true;
13949|  1.74k|    }
_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|  40.3k|    {
15268|  40.3k|        const token_type t = scan_number_bulk_contiguous();
15269|  40.3k|        return (t != token_type::uninitialized) ? t : scan_number();
  ------------------
  |  Branch (15269:16): [True: 30.2k, False: 10.0k]
  ------------------
15270|  40.3k|    }
_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|  40.3k|    {
15044|       |        // called right after scan_after_whitespace() read current (see
15045|       |        // get_after_string_run()), so no unget is pending
15046|  40.3k|        JSON_ASSERT(!next_unget);
  ------------------
  |  | 2653|  40.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (15046:9): [True: 40.3k, False: 0]
  ------------------
15047|  40.3k|        const std::size_t rem = ia.bulk_remaining();
15048|  40.3k|        if (rem == 0)
  ------------------
  |  Branch (15048:13): [True: 8.43k, False: 31.8k]
  ------------------
15049|  8.43k|        {
15050|       |            // the first digit is the last input byte; let scan_number() finish
15051|  8.43k|            return token_type::uninitialized;
15052|  8.43k|        }
15053|       |        // the byte before the next unread one is current (contiguous input)
15054|  31.8k|        const char* const data = reinterpret_cast<const char*>(ia.bulk_data()) - 1;
15055|  31.8k|        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|  31.8k|        std::size_t i = 0;
15061|  31.8k|        std::size_t dot_index = std::string::npos;
15062|  31.8k|        token_type number_type = token_type::value_unsigned;
15063|  31.8k|        std::uint64_t w = 0;
15064|  31.8k|        if (data[0] == '-')
  ------------------
  |  Branch (15064:13): [True: 4.99k, False: 26.8k]
  ------------------
15065|  4.99k|        {
15066|  4.99k|            number_type = token_type::value_integer;
15067|  4.99k|            i = 1; // avail >= 2: rem == 0 returned above
15068|  4.99k|        }
15069|  31.8k|        const std::size_t integer_begin = i;
15070|  31.8k|        if (data[i] == '0')
  ------------------
  |  Branch (15070:13): [True: 5.07k, False: 26.8k]
  ------------------
15071|  5.07k|        {
15072|  5.07k|            ++i;
15073|  5.07k|        }
15074|  26.8k|        else if (data[i] >= '1' && data[i] <= '9')
  ------------------
  |  Branch (15074:18): [True: 26.7k, False: 84]
  |  Branch (15074:36): [True: 26.6k, False: 54]
  ------------------
15075|  26.6k|        {
15076|  26.6k|            i = accumulate_digits(data, i, avail, w);
15077|  26.6k|        }
15078|    138|        else
15079|    138|        {
15080|    138|            return token_type::uninitialized;
15081|    138|        }
15082|  31.7k|        std::size_t digit_count = i - integer_begin;
15083|  31.7k|        std::size_t fraction_digits = 0;
15084|  31.7k|        if (i < avail && data[i] == '.')
  ------------------
  |  Branch (15084:13): [True: 26.1k, False: 5.59k]
  |  Branch (15084:26): [True: 10.1k, False: 16.0k]
  ------------------
15085|  10.1k|        {
15086|  10.1k|            number_type = token_type::value_float;
15087|  10.1k|            dot_index = i;
15088|  10.1k|            ++i;
15089|  10.1k|            if (i >= avail || !(data[i] >= '0' && data[i] <= '9'))
  ------------------
  |  Branch (15089:17): [True: 216, False: 9.88k]
  |  Branch (15089:33): [True: 9.75k, False: 132]
  |  Branch (15089:51): [True: 9.68k, False: 72]
  ------------------
15090|    420|            {
15091|    420|                return token_type::uninitialized;
15092|    420|            }
15093|  9.68k|            const std::size_t fraction_begin = i;
15094|  9.68k|            i = accumulate_digits(data, i, avail, w);
15095|  9.68k|            fraction_digits = i - fraction_begin;
15096|  9.68k|            digit_count += fraction_digits;
15097|  9.68k|        }
15098|       |        // the mantissa ends here, whether or not an exponent part follows
15099|  31.3k|        const std::size_t mantissa_end = i;
15100|  31.3k|        std::int64_t exponent = 0;
15101|  31.3k|        if (i < avail && (data[i] == 'e' || data[i] == 'E'))
  ------------------
  |  Branch (15101:13): [True: 19.9k, False: 11.4k]
  |  Branch (15101:27): [True: 11.3k, False: 8.52k]
  |  Branch (15101:45): [True: 4.26k, False: 4.26k]
  ------------------
15102|  15.6k|        {
15103|  15.6k|            number_type = token_type::value_float;
15104|  15.6k|            ++i;
15105|  15.6k|            bool negative_exponent = false;
15106|  15.6k|            if (i < avail && (data[i] == '+' || data[i] == '-'))
  ------------------
  |  Branch (15106:17): [True: 15.0k, False: 594]
  |  Branch (15106:31): [True: 546, False: 14.5k]
  |  Branch (15106:49): [True: 5.61k, False: 8.89k]
  ------------------
15107|  6.15k|            {
15108|  6.15k|                negative_exponent = data[i] == '-';
15109|  6.15k|                ++i;
15110|  6.15k|            }
15111|  15.6k|            if (i >= avail || !(data[i] >= '0' && data[i] <= '9'))
  ------------------
  |  Branch (15111:17): [True: 624, False: 15.0k]
  |  Branch (15111:33): [True: 14.7k, False: 306]
  |  Branch (15111:51): [True: 14.5k, False: 174]
  ------------------
15112|  1.10k|            {
15113|  1.10k|                return token_type::uninitialized;
15114|  1.10k|            }
15115|       |            // saturated far beyond every range, see parse_float_exponent()
15116|  14.5k|            constexpr std::int64_t saturation = 100000000000000000; // 10^17
15117|  78.9k|            while (i < avail && data[i] >= '0' && data[i] <= '9')
  ------------------
  |  Branch (15117:20): [True: 66.4k, False: 12.5k]
  |  Branch (15117:33): [True: 65.3k, False: 1.10k]
  |  Branch (15117:51): [True: 64.4k, False: 912]
  ------------------
15118|  64.4k|            {
15119|  64.4k|                if (exponent < saturation)
  ------------------
  |  Branch (15119:21): [True: 61.8k, False: 2.61k]
  ------------------
15120|  61.8k|                {
15121|  61.8k|                    exponent = (exponent * 10) + (data[i] - '0');
15122|  61.8k|                }
15123|  64.4k|                ++i;
15124|  64.4k|            }
15125|  14.5k|            exponent = negative_exponent ? -exponent : exponent;
  ------------------
  |  Branch (15125:24): [True: 5.55k, False: 8.98k]
  ------------------
15126|  14.5k|        }
15127|  30.2k|        const std::size_t len = i;
15128|  30.2k|        if (number_may_continue(len == avail, std::integral_constant<bool, bulk_window> {}))
  ------------------
  |  Branch (15128:13): [True: 0, False: 30.2k]
  ------------------
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|  30.2k|        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|  30.2k|#if !JSON_DIAGNOSTIC_POSITIONS
15144|  30.2k|        if (number_type != token_type::value_float)
  ------------------
  |  Branch (15144:13): [True: 7.90k, False: 22.3k]
  ------------------
15145|  7.90k|        {
15146|       |            // up to 18 digits always fit into std::uint64_t and std::int64_t
15147|  7.90k|            const token_type integer_result = (digit_count <= 18)
  ------------------
  |  Branch (15147:47): [True: 4.23k, False: 3.67k]
  ------------------
15148|  7.90k|                                              ? store_integer(number_type, w)
15149|  7.90k|                                              : convert_integer(number_type, data, data + len);
15150|  7.90k|            if (JSON_HEDLEY_LIKELY(integer_result != token_type::uninitialized))
  ------------------
  |  | 1696|  7.90k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 5.17k, False: 2.73k]
  |  |  ------------------
  ------------------
15151|  5.17k|            {
15152|  5.17k|                bulk_consume(data + 1, len - 1);
15153|  5.17k|                read_number_terminator(std::integral_constant<bool, bulk_window> {});
15154|  5.17k|                return integer_result;
15155|  5.17k|            }
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|  2.73k|            number_type = token_type::value_float;
15160|  2.73k|        }
15161|  25.0k|#endif
15162|       |
15163|  25.0k|        decimal_point_position = dot_index;
15164|       |
15165|  25.0k|        bulk_consume(data + 1, len - 1);
15166|  25.0k|        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|  25.0k|        if (number_type == token_type::value_float && digit_count <= 19)
  ------------------
  |  Branch (15170:13): [True: 25.0k, False: 0]
  |  Branch (15170:55): [True: 14.6k, False: 10.3k]
  ------------------
15171|  14.6k|        {
15172|  14.6k|            float_significand s;
15173|  14.6k|            s.w = w;
15174|  14.6k|            s.exponent = exponent - static_cast<std::int64_t>(fraction_digits);
15175|  14.6k|            s.negative = data[0] == '-';
15176|  14.6k|            if (convert_accumulated_float(s, std::integral_constant<bool, has_native_float_format<number_float_t>::value> {}))
  ------------------
  |  Branch (15176:17): [True: 14.6k, False: 0]
  ------------------
15177|  14.6k|            {
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|  14.6k|                if (bulk_window)
  ------------------
  |  Branch (15182:21): [Folded, False: 14.6k]
  ------------------
15183|      0|                {
15184|      0|                    token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), len);
15185|      0|                }
15186|  14.6k|                else
15187|  14.6k|                {
15188|  14.6k|                    pending_number_text = data;
15189|  14.6k|                    pending_number_length = len;
15190|  14.6k|                }
15191|  14.6k|                return token_type::value_float;
15192|  14.6k|            }
15193|  14.6k|        }
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|  10.3k|        token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(data), len);
15199|  10.3k|        return convert_number(number_type, mantissa_end);
15200|  25.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17accumulate_digitsEPKcmmRm:
11703|  36.3k|{
11704|  67.6k|    while (avail - i >= 8)
  ------------------
  |  Branch (11704:12): [True: 41.5k, False: 26.0k]
  ------------------
11705|  41.5k|    {
11706|  41.5k|        const std::uint64_t v = read_eight_bytes(data + i);
11707|  41.5k|        if (!is_eight_digits(v))
  ------------------
  |  Branch (11707:13): [True: 10.2k, False: 31.2k]
  ------------------
11708|  10.2k|        {
11709|  10.2k|            break;
11710|  10.2k|        }
11711|  31.2k|        w = (w * 100000000u) + parse_eight_digits(v);
11712|  31.2k|        i += 8;
11713|  31.2k|    }
11714|   124k|    while (i < avail && data[i] >= '0' && data[i] <= '9')
  ------------------
  |  Branch (11714:12): [True: 113k, False: 10.7k]
  |  Branch (11714:25): [True: 102k, False: 10.9k]
  |  Branch (11714:43): [True: 88.2k, False: 14.6k]
  ------------------
11715|  88.2k|    {
11716|  88.2k|        w = (w * 10u) + static_cast<std::uint64_t>(data[i] - '0');
11717|  88.2k|        ++i;
11718|  88.2k|    }
11719|  36.3k|    return i;
11720|  36.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail15is_eight_digitsEm:
11690|  41.5k|{
11691|  41.5k|    return ((v & 0xF0F0F0F0F0F0F0F0u) | (((v + 0x0606060606060606u) & 0xF0F0F0F0F0F0F0F0u) >> 4u)) == 0x3333333333333333u;
11692|  41.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail18parse_eight_digitsEm:
11681|  50.1k|{
11682|  50.1k|    v = ((v & 0x0F0F0F0F0F0F0F0Fu) * 2561u) >> 8u;
11683|  50.1k|    v = ((v & 0x00FF00FF00FF00FFu) * 6553601u) >> 16u;
11684|  50.1k|    return static_cast<std::uint32_t>(((v & 0x0000FFFF0000FFFFu) * 42949672960001u) >> 32u);
11685|  50.1k|}
_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|  30.2k|    {
15212|  30.2k|        return false;
15213|  30.2k|    }
_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|  4.23k|    {
15254|  4.23k|        if (number_type == token_type::value_unsigned)
  ------------------
  |  Branch (15254:13): [True: 2.18k, False: 2.04k]
  ------------------
15255|  2.18k|        {
15256|  2.18k|            value_unsigned = static_cast<number_unsigned_t>(w);
15257|       |            // reject values that do not round-trip into a narrower type
15258|  2.18k|            return (static_cast<std::uint64_t>(value_unsigned) == w) ? token_type::value_unsigned : token_type::uninitialized;
  ------------------
  |  Branch (15258:20): [True: 2.18k, False: 0]
  ------------------
15259|  2.18k|        }
15260|  2.04k|        const std::int64_t x = -static_cast<std::int64_t>(w);
15261|  2.04k|        value_integer = static_cast<number_integer_t>(x);
15262|  2.04k|        return (static_cast<std::int64_t>(value_integer) == x) ? token_type::value_integer : token_type::uninitialized;
  ------------------
  |  Branch (15262:16): [True: 2.04k, False: 0]
  ------------------
15263|  4.23k|    }
_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|  12.0k|    {
14931|  12.0k|        if (number_type == token_type::value_unsigned)
  ------------------
  |  Branch (14931:13): [True: 10.6k, False: 1.42k]
  ------------------
14932|  10.6k|        {
14933|  10.6k|            if (parse_integer_unsigned(first, last, value_unsigned))
  ------------------
  |  Branch (14933:17): [True: 8.55k, False: 2.08k]
  ------------------
14934|  8.55k|            {
14935|  8.55k|                return token_type::value_unsigned;
14936|  8.55k|            }
14937|  10.6k|        }
14938|  1.42k|        else // value_integer (the callers handle value_float themselves)
14939|  1.42k|        {
14940|  1.42k|            if (parse_integer_signed(first, last, value_integer))
  ------------------
  |  Branch (14940:17): [True: 780, False: 648]
  ------------------
14941|    780|            {
14942|    780|                return token_type::value_integer;
14943|    780|            }
14944|  1.42k|        }
14945|       |
14946|  2.73k|        return token_type::uninitialized;
14947|  12.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22parse_integer_unsignedImEEbPKcS4_RT_:
11493|  10.6k|{
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|  10.6k|    std::uint64_t x = 0;
11497|  10.6k|    constexpr std::uint64_t cutoff = (std::numeric_limits<std::uint64_t>::max)() / 10u;
11498|  10.6k|    constexpr std::uint64_t cutlim = (std::numeric_limits<std::uint64_t>::max)() % 10u;
11499|  61.8k|    for (const char* p = first; p != last; ++p)
  ------------------
  |  Branch (11499:33): [True: 53.2k, False: 8.55k]
  ------------------
11500|  53.2k|    {
11501|  53.2k|        const auto digit = static_cast<std::uint64_t>(static_cast<unsigned char>(*p) - static_cast<unsigned char>('0'));
11502|  53.2k|        if (JSON_HEDLEY_UNLIKELY(x > cutoff || (x == cutoff && digit > cutlim)))
  ------------------
  |  | 1697|   155k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.08k, False: 51.2k]
  |  |  |  Branch (1697:94): [True: 102, False: 51.1k]
  |  |  |  Branch (1697:94): [True: 72, False: 30]
  |  |  |  Branch (1697:94): [True: 2.01k, False: 51.2k]
  |  |  ------------------
  ------------------
11503|  2.08k|        {
11504|  2.08k|            return false;
11505|  2.08k|        }
11506|  51.2k|        x = (x * 10u) + digit;
11507|  51.2k|    }
11508|  8.55k|    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|  8.55k|    return static_cast<std::uint64_t>(value) == x && !is_negative_integer(value, std::is_signed<NumberUnsignedType>());
  ------------------
  |  Branch (11512:12): [True: 8.55k, False: 0]
  |  Branch (11512:54): [True: 8.55k, False: 0]
  ------------------
11513|  10.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail19is_negative_integerImEEbT_NSt3__117integral_constantIbLb0EEE:
11472|  8.55k|{
11473|  8.55k|    return false;
11474|  8.55k|}
_ZN8nlohmann16json_abi_v3_12_06detail20parse_integer_signedIlEEbPKcS4_RT_:
11525|  1.42k|{
11526|       |    // the state machine only reaches the signed path via a leading '-'
11527|  1.42k|    JSON_ASSERT(first != last && *first == '-');
  ------------------
  |  | 2653|  1.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (11527:5): [True: 1.42k, False: 0]
  |  Branch (11527:5): [True: 1.42k, False: 0]
  |  Branch (11527:5): [True: 1.42k, False: 0]
  ------------------
11528|  1.42k|    std::uint64_t magnitude = 0;
11529|       |    // |INT64_MIN| == INT64_MAX + 1; this is the largest admissible magnitude
11530|  1.42k|    constexpr std::uint64_t limit = static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()) + 1u;
11531|  28.2k|    for (const char* p = first + 1; p != last; ++p)
  ------------------
  |  Branch (11531:37): [True: 27.4k, False: 780]
  ------------------
11532|  27.4k|    {
11533|  27.4k|        const auto digit = static_cast<std::uint64_t>(static_cast<unsigned char>(*p) - static_cast<unsigned char>('0'));
11534|  27.4k|        if (JSON_HEDLEY_UNLIKELY(magnitude > (limit - digit) / 10u))
  ------------------
  |  | 1697|  27.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 648, False: 26.7k]
  |  |  ------------------
  ------------------
11535|    648|        {
11536|    648|            return false;
11537|    648|        }
11538|  26.7k|        magnitude = (magnitude * 10u) + digit;
11539|  26.7k|    }
11540|    780|    const std::int64_t x = (magnitude == limit)
  ------------------
  |  Branch (11540:28): [True: 108, False: 672]
  ------------------
11541|    780|                           ? (std::numeric_limits<std::int64_t>::min)()
11542|    780|                           : -static_cast<std::int64_t>(magnitude);
11543|    780|    value = static_cast<NumberIntegerType>(x);
11544|       |    // reject values that do not round-trip into a narrower NumberIntegerType
11545|    780|    return static_cast<std::int64_t>(value) == x;
11546|  1.42k|}
_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|  30.2k|    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|  14.6k|    {
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|  14.6k|        if (JSON_HEDLEY_UNLIKELY(discard_values() && s.exponent + 19 <= std::numeric_limits<number_float_t>::max_exponent10))
  ------------------
  |  | 1697|  14.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 14.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 14.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
15236|      0|        {
15237|      0|            value_float = 0;
15238|      0|            return true;
15239|      0|        }
15240|  14.6k|        value_float = decimal_to_float<number_float_t>(s);
15241|  14.6k|        return true;
15242|  14.6k|    }
_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.4k|    {
16176|  33.4k|        return DiscardValues;
16177|  33.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16decimal_to_floatIdEET_RKNS1_17float_significandE:
12245|  18.6k|{
12246|  18.6k|    using result_type = native_float_t<FloatType>;
12247|  18.6k|    using format = ieee_binary_format<std::numeric_limits<FloatType>::digits>;
12248|  18.6k|    JSON_ASSERT(!s.truncated);
  ------------------
  |  | 2653|  18.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (12248:5): [True: 18.6k, False: 0]
  ------------------
12249|       |
12250|  18.6k|#if !defined(FLT_EVAL_METHOD) || FLT_EVAL_METHOD == 0
12251|  18.6k|    if (s.exponent >= -format::max_exponent_fast_path() && s.exponent <= format::max_exponent_fast_path()
  ------------------
  |  Branch (12251:9): [True: 14.5k, False: 4.12k]
  |  Branch (12251:60): [True: 9.72k, False: 4.82k]
  ------------------
12252|  9.72k|            && s.w <= format::max_mantissa_fast_path())
  ------------------
  |  Branch (12252:16): [True: 6.15k, False: 3.57k]
  ------------------
12253|  6.15k|    {
12254|  6.15k|        auto value = static_cast<result_type>(s.w);
12255|  6.15k|        if (s.exponent < 0)
  ------------------
  |  Branch (12255:13): [True: 2.90k, False: 3.25k]
  ------------------
12256|  2.90k|        {
12257|  2.90k|            value /= exact_power_of_ten(-s.exponent, result_type{});
12258|  2.90k|        }
12259|  3.25k|        else
12260|  3.25k|        {
12261|  3.25k|            value *= exact_power_of_ten(s.exponent, result_type{});
12262|  3.25k|        }
12263|  6.15k|        const FloatType result = s.negative ? -value : value;
  ------------------
  |  Branch (12263:34): [True: 780, False: 5.37k]
  ------------------
12264|  6.15k|        return result;
12265|  6.15k|    }
12266|  12.5k|#endif
12267|       |
12268|  12.5k|    result_type value{};
12269|  12.5k|    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: 588, False: 11.9k]
  ------------------
12270|  12.5k|    const FloatType result = value;
12271|  12.5k|    return result;
12272|  18.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE22max_exponent_fast_pathEv:
11645|  33.2k|    {
11646|  33.2k|        return 22;
11647|  33.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE22max_mantissa_fast_pathEv:
11649|  9.72k|    {
11650|  9.72k|        return std::uint64_t{2} << 52u;
11651|  9.72k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18exact_power_of_tenEld:
12206|  6.15k|{
12207|  6.15k|    static const std::array<double, 23> powers =
12208|  6.15k|    {
12209|  6.15k|        {
12210|  6.15k|            1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
12211|  6.15k|            1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22
12212|  6.15k|        }
12213|  6.15k|    };
12214|  6.15k|    return powers[static_cast<std::size_t>(n)];
12215|  6.15k|}
_ZN8nlohmann16json_abi_v3_12_06detail15float_from_bitsEmRd:
12192|  18.8k|{
12193|  18.8k|    static_assert(sizeof(double) == sizeof(std::uint64_t), "double must have 64 bits");
12194|  18.8k|    value = bit_cast<double>(bits);
12195|  18.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail8bit_castIdmEET_RKT0_:
 9129|  18.8k|{
 9130|  18.8k|    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|  18.8k|    To to {};
 9135|  18.8k|    std::memcpy(&to, &from, sizeof(To));
 9136|  18.8k|    return to;
 9137|  18.8k|#endif
 9138|  18.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail12eisel_lemireINS1_18ieee_binary_formatILi53EEEEEmlm:
11896|  25.2k|{
11897|  25.2k|    constexpr int mantissa_bits = Format::mantissa_bits();
11898|  25.2k|    constexpr std::uint64_t infinity = static_cast<std::uint64_t>(Format::infinite_power()) << mantissa_bits;
11899|  25.2k|    if (w == 0 || q < Format::smallest_power_of_ten())
  ------------------
  |  Branch (11899:9): [True: 672, False: 24.5k]
  |  Branch (11899:19): [True: 2.02k, False: 22.5k]
  ------------------
11900|  2.69k|    {
11901|  2.69k|        return 0;
11902|  2.69k|    }
11903|  22.5k|    if (q > Format::largest_power_of_ten())
  ------------------
  |  Branch (11903:9): [True: 2.10k, False: 20.4k]
  ------------------
11904|  2.10k|    {
11905|  2.10k|        return infinity;
11906|  2.10k|    }
11907|       |
11908|  20.4k|    const int lz = count_leading_zeros(w);
11909|  20.4k|    w <<= static_cast<unsigned>(lz);
11910|  20.4k|    const auto index = static_cast<std::size_t>(2 * (q - pow5_128_smallest_power));
11911|  20.4k|    uint128_parts product = full_multiplication(w, pow5_128()[index]);
11912|  20.4k|    constexpr std::uint64_t precision_mask = 0xFFFFFFFFFFFFFFFFu >> (mantissa_bits + 3);
11913|  20.4k|    if ((product.high & precision_mask) == precision_mask)
  ------------------
  |  Branch (11913:9): [True: 4.02k, False: 16.4k]
  ------------------
11914|  4.02k|    {
11915|       |        // the lower bits may carry into the result: use the next 64 bits of 5^q
11916|  4.02k|        const uint128_parts second = full_multiplication(w, pow5_128()[index + 1]);
11917|  4.02k|        product.low += second.high;
11918|  4.02k|        if (second.high > product.low)
  ------------------
  |  Branch (11918:13): [True: 1.25k, False: 2.76k]
  ------------------
11919|  1.25k|        {
11920|  1.25k|            ++product.high;
11921|  1.25k|        }
11922|  4.02k|    }
11923|       |
11924|  20.4k|    const auto upperbit = static_cast<int>(product.high >> 63u);
11925|  20.4k|    const int shift = upperbit + 64 - mantissa_bits - 3;
11926|  20.4k|    std::uint64_t mantissa = product.high >> static_cast<unsigned>(shift);
11927|       |    // floor(log2(10^q)) + 63 + bias, with log2(10) ~ 217706 / 2^16
11928|  20.4k|    std::int64_t power2 = (((152170 + 65536) * q) >> 16) + 63 + upperbit - lz - Format::minimum_exponent();
11929|       |
11930|  20.4k|    if (power2 <= 0) // subnormal
  ------------------
  |  Branch (11930:9): [True: 2.73k, False: 17.7k]
  ------------------
11931|  2.73k|    {
11932|  2.73k|        if (-power2 + 1 >= 64)
  ------------------
  |  Branch (11932:13): [True: 498, False: 2.23k]
  ------------------
11933|    498|        {
11934|    498|            return 0;
11935|    498|        }
11936|  2.23k|        mantissa >>= static_cast<unsigned>(-power2 + 1);
11937|       |        // no tie is possible here: that needs a small |q|
11938|  2.23k|        mantissa += (mantissa & 1u);
11939|  2.23k|        mantissa >>= 1u;
11940|       |        // rounding up may produce the smallest normal number
11941|  2.23k|        power2 = (mantissa < (std::uint64_t{1} << mantissa_bits)) ? 0 : 1;
  ------------------
  |  Branch (11941:18): [True: 2.23k, False: 0]
  ------------------
11942|  2.23k|        return (mantissa & ((std::uint64_t{1} << mantissa_bits) - 1)) | (static_cast<std::uint64_t>(power2) << mantissa_bits);
11943|  2.73k|    }
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|  17.7k|    if (product.low <= 1 && q >= Format::min_exponent_round_to_even() && q <= Format::max_exponent_round_to_even()
  ------------------
  |  Branch (11947:9): [True: 7.11k, False: 10.6k]
  |  Branch (11947:29): [True: 5.82k, False: 1.29k]
  |  Branch (11947:74): [True: 5.05k, False: 768]
  ------------------
11948|  5.05k|            && (mantissa & 3u) == 1 && (mantissa << static_cast<unsigned>(shift)) == product.high)
  ------------------
  |  Branch (11948:16): [True: 2.46k, False: 2.59k]
  |  Branch (11948:40): [True: 1.12k, False: 1.33k]
  ------------------
11949|  1.12k|    {
11950|  1.12k|        mantissa &= ~std::uint64_t{1};
11951|  1.12k|    }
11952|  17.7k|    mantissa += (mantissa & 1u);
11953|  17.7k|    mantissa >>= 1u;
11954|  17.7k|    if (mantissa >= (std::uint64_t{2} << mantissa_bits))
  ------------------
  |  Branch (11954:9): [True: 456, False: 17.2k]
  ------------------
11955|    456|    {
11956|    456|        mantissa = std::uint64_t{1} << mantissa_bits;
11957|    456|        ++power2;
11958|    456|    }
11959|  17.7k|    mantissa &= ~(std::uint64_t{1} << mantissa_bits);
11960|  17.7k|    if (power2 >= Format::infinite_power())
  ------------------
  |  Branch (11960:9): [True: 138, False: 17.5k]
  ------------------
11961|    138|    {
11962|    138|        return infinity;
11963|    138|    }
11964|  17.5k|    return mantissa | (static_cast<std::uint64_t>(power2) << mantissa_bits);
11965|  17.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE21smallest_power_of_tenEv:
11629|  24.5k|    {
11630|  24.5k|        return -342;
11631|  24.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE20largest_power_of_tenEv:
11633|  22.5k|    {
11634|  22.5k|        return 308;
11635|  22.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE16minimum_exponentEv:
11621|  23.0k|    {
11622|  23.0k|        return -1023;
11623|  23.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE26min_exponent_round_to_evenEv:
11637|  7.11k|    {
11638|  7.11k|        return -4;
11639|  7.11k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE26max_exponent_round_to_evenEv:
11641|  5.82k|    {
11642|  5.82k|        return 23;
11643|  5.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE14infinite_powerEv:
11625|  17.7k|    {
11626|  17.7k|        return 0x7FF;
11627|  17.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE8sign_bitEv:
11617|  18.8k|    {
11618|  18.8k|        return 63;
11619|  18.8k|    }
_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|  18.7k|    {
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|  18.7k|        if (discard_values())
  ------------------
  |  Branch (14990:13): [True: 0, False: 18.7k]
  ------------------
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|  18.7k|        const char* const num_begin = token_buffer.data();
15004|  18.7k|        const char* const num_end = num_begin + token_buffer.size();
15005|       |
15006|  18.7k|        if (number_type != token_type::value_float)
  ------------------
  |  Branch (15006:13): [True: 8.39k, False: 10.3k]
  ------------------
15007|  8.39k|        {
15008|  8.39k|            const token_type integer_result = convert_integer(number_type, num_begin, num_end);
15009|  8.39k|            if (integer_result != token_type::uninitialized)
  ------------------
  |  Branch (15009:17): [True: 8.39k, False: 0]
  ------------------
15010|  8.39k|            {
15011|  8.39k|                return integer_result;
15012|  8.39k|            }
15013|  8.39k|        }
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|  10.3k|        if (convert_float_fast(num_begin, num_end, decimal_point_position, mantissa_end, value_float))
  ------------------
  |  Branch (15021:13): [True: 10.3k, False: 0]
  ------------------
15022|  10.3k|        {
15023|  10.3k|            return token_type::value_float;
15024|  10.3k|        }
15025|       |
15026|      0|        convert_float_locale_aware(token_buffer, decimal_point_position, value_float);
15027|      0|        return token_type::value_float;
15028|  10.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18convert_float_fastIdEEbPKcS4_mmRT_:
12387|  10.3k|{
12388|  10.3k|    return convert_float_fast(first, last, decimal_point_position, mantissa_end, value,
12389|  10.3k|                              std::integral_constant<bool, has_native_float_format<FloatType>::value> {});
12390|  10.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail18convert_float_fastIdEEbPKcS4_mmRT_NSt3__117integral_constantIbLb1EEE:
12354|  10.3k|{
12355|  10.3k|    value = parse_float_native<FloatType>(first, last, decimal_point_position, mantissa_end);
12356|  10.3k|    return true;
12357|  10.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail18parse_float_nativeIdEET_PKcS5_mm:
12298|  10.3k|{
12299|  10.3k|    using result_type = native_float_t<FloatType>;
12300|  10.3k|    using format = ieee_binary_format<std::numeric_limits<FloatType>::digits>;
12301|  10.3k|    static_assert(std::numeric_limits<result_type>::digits == std::numeric_limits<FloatType>::digits, "unexpected float format");
12302|       |
12303|  10.3k|    const float_significand s = parse_float_significand(first, last, decimal_point_position, mantissa_end);
12304|  10.3k|    if (JSON_HEDLEY_LIKELY(!s.truncated))
  ------------------
  |  | 1696|  10.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.00k, False: 6.37k]
  |  |  ------------------
  ------------------
12305|  4.00k|    {
12306|  4.00k|        return decimal_to_float<FloatType>(s);
12307|  4.00k|    }
12308|       |
12309|  6.37k|    std::uint64_t bits = eisel_lemire<format>(s.exponent, s.w);
12310|  6.37k|    if (JSON_HEDLEY_UNLIKELY(bits != eisel_lemire<format>(s.exponent, s.w + 1)))
  ------------------
  |  | 1697|  6.37k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 2.55k, False: 3.82k]
  |  |  ------------------
  ------------------
12311|  2.55k|    {
12312|  2.55k|        bits = digit_comparison<format>(first, last, bits);
12313|  2.55k|    }
12314|  6.37k|    result_type value{};
12315|  6.37k|    float_from_bits(bits | (s.negative ? (std::uint64_t{1} << format::sign_bit()) : 0u), value);
  ------------------
  |  Branch (12315:29): [True: 468, False: 5.90k]
  ------------------
12316|  6.37k|    const FloatType result = value;
12317|  6.37k|    return result;
12318|  10.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23parse_float_significandEPKcS3_mm:
11829|  10.3k|{
11830|  10.3k|    float_significand s;
11831|  10.3k|    const char* p = first;
11832|  10.3k|    s.negative = *p == '-';
11833|  10.3k|    p += s.negative ? 1 : 0;
  ------------------
  |  Branch (11833:10): [True: 906, False: 9.47k]
  ------------------
11834|  10.3k|    const bool has_dot = decimal_point_position != std::string::npos;
11835|  10.3k|    const char* const mantissa_last = first + mantissa_end;
11836|  10.3k|    const char* const integer_last = has_dot ? first + decimal_point_position : mantissa_last;
  ------------------
  |  Branch (11836:38): [True: 5.71k, False: 4.66k]
  ------------------
11837|       |
11838|  10.3k|    std::uint64_t w = 0;
11839|  10.3k|    int remaining = 19; // digits that still fit into w
11840|  10.3k|    if (*p != '0') // the integer part is "0" or [1-9][0-9]*
  ------------------
  |  Branch (11840:9): [True: 9.00k, False: 1.38k]
  ------------------
11841|  9.00k|    {
11842|  9.00k|        p = accumulate_significant_digits(p, integer_last, remaining, w);
11843|  9.00k|        s.exponent = integer_last - p;
11844|  9.00k|        s.truncated = has_nonzero_digit(p, integer_last);
11845|  9.00k|    }
11846|       |
11847|  10.3k|    if (has_dot)
  ------------------
  |  Branch (11847:9): [True: 5.71k, False: 4.66k]
  ------------------
11848|  5.71k|    {
11849|  5.71k|        p = integer_last + 1;
11850|  5.71k|        if (w == 0)
  ------------------
  |  Branch (11850:13): [True: 1.38k, False: 4.33k]
  ------------------
11851|  1.38k|        {
11852|       |            // zeros after the decimal point of "0." are not significant
11853|  1.38k|            const char* const zeros = p;
11854|  11.8k|            while (p != mantissa_last && *p == '0')
  ------------------
  |  Branch (11854:20): [True: 11.6k, False: 174]
  |  Branch (11854:42): [True: 10.4k, False: 1.20k]
  ------------------
11855|  10.4k|            {
11856|  10.4k|                ++p;
11857|  10.4k|            }
11858|  1.38k|            s.exponent -= p - zeros;
11859|  1.38k|        }
11860|  5.71k|        const char* const digits = p;
11861|  5.71k|        p = accumulate_significant_digits(p, mantissa_last, remaining, w);
11862|  5.71k|        s.exponent -= p - digits;
11863|  5.71k|        s.truncated = s.truncated || has_nonzero_digit(p, mantissa_last);
  ------------------
  |  Branch (11863:23): [True: 180, False: 5.53k]
  |  Branch (11863:38): [True: 3.03k, False: 2.50k]
  ------------------
11864|  5.71k|    }
11865|       |
11866|  10.3k|    if (mantissa_last != last)
  ------------------
  |  Branch (11866:9): [True: 3.58k, False: 6.79k]
  ------------------
11867|  3.58k|    {
11868|  3.58k|        s.exponent += parse_float_exponent(mantissa_last + 1, last);
11869|  3.58k|    }
11870|  10.3k|    s.w = w;
11871|  10.3k|    return s;
11872|  10.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail29accumulate_significant_digitsEPKcS3_RiRm:
11770|  14.7k|{
11771|  33.5k|    while (remaining >= 8 && last - p >= 8)
  ------------------
  |  Branch (11771:12): [True: 22.0k, False: 11.5k]
  |  Branch (11771:30): [True: 18.8k, False: 3.13k]
  ------------------
11772|  18.8k|    {
11773|  18.8k|        w = (w * 100000000u) + parse_eight_digits(read_eight_bytes(p));
11774|  18.8k|        p += 8;
11775|  18.8k|        remaining -= 8;
11776|  18.8k|    }
11777|  53.1k|    for (; remaining > 0 && p != last; ++p, --remaining)
  ------------------
  |  Branch (11777:12): [True: 43.3k, False: 9.82k]
  |  Branch (11777:29): [True: 38.4k, False: 4.89k]
  ------------------
11778|  38.4k|    {
11779|  38.4k|        w = (w * 10u) + static_cast<std::uint64_t>(*p - '0');
11780|  38.4k|    }
11781|  14.7k|    return p;
11782|  14.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail17has_nonzero_digitEPKcS3_:
11749|  14.5k|{
11750|  29.5k|    for (; first != last; ++first)
  ------------------
  |  Branch (11750:12): [True: 21.3k, False: 8.16k]
  ------------------
11751|  21.3k|    {
11752|  21.3k|        if (*first != '0')
  ------------------
  |  Branch (11752:13): [True: 6.37k, False: 15.0k]
  ------------------
11753|  6.37k|        {
11754|  6.37k|            return true;
11755|  6.37k|        }
11756|  21.3k|    }
11757|  8.16k|    return false;
11758|  14.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail20parse_float_exponentEPKcS3_:
11787|  4.23k|{
11788|  4.23k|    const bool negative = *first == '-';
11789|  4.23k|    first += (*first == '-' || *first == '+') ? 1 : 0;
  ------------------
  |  Branch (11789:15): [True: 2.27k, False: 1.96k]
  |  Branch (11789:32): [True: 126, False: 1.83k]
  ------------------
11790|  4.23k|    constexpr std::int64_t saturation = 100000000000000000; // 10^17
11791|  4.23k|    std::int64_t value = 0;
11792|  36.5k|    for (; first != last; ++first)
  ------------------
  |  Branch (11792:12): [True: 32.3k, False: 4.23k]
  ------------------
11793|  32.3k|    {
11794|  32.3k|        if (value < saturation)
  ------------------
  |  Branch (11794:13): [True: 30.3k, False: 2.01k]
  ------------------
11795|  30.3k|        {
11796|  30.3k|            value = (value * 10) + (*first - '0');
11797|  30.3k|        }
11798|  32.3k|    }
11799|  4.23k|    return negative ? -value : value;
  ------------------
  |  Branch (11799:12): [True: 2.27k, False: 1.96k]
  ------------------
11800|  4.23k|}
_ZN8nlohmann16json_abi_v3_12_06detail16digit_comparisonINS1_18ieee_binary_formatILi53EEEEEmPKcS6_m:
12090|  2.55k|{
12091|  2.55k|    const char* p = first + ((*first == '-') ? 1 : 0);
  ------------------
  |  Branch (12091:30): [True: 48, False: 2.50k]
  ------------------
12092|       |
12093|       |    // D, in chunks of up to 9 digits, and s
12094|  2.55k|    float_bigint digits(0);
12095|  2.55k|    std::int64_t count = 0;
12096|  2.55k|    std::int64_t point = 0; // the value is 0.D... * 10^point
12097|  2.55k|    bool truncated = false;
12098|  2.55k|    std::uint32_t chunk = 0;
12099|  2.55k|    int chunk_digits = 0;
12100|  2.55k|    static const std::array<std::uint32_t, 10> powers_of_ten = {{1u, 10u, 100u, 1000u, 10000u, 100000u, 1000000u, 10000000u, 100000000u, 1000000000u}};
12101|  2.55k|    const auto append = [&](char c) noexcept
12102|  2.55k|    {
12103|  2.55k|        if (count < Format::max_digits())
12104|  2.55k|        {
12105|  2.55k|            chunk = (chunk * 10u) + static_cast<std::uint32_t>(c - '0');
12106|  2.55k|            ++count;
12107|  2.55k|            if (++chunk_digits == 9)
12108|  2.55k|            {
12109|  2.55k|                digits.multiply_add(powers_of_ten[9], chunk);
12110|  2.55k|                chunk = 0;
12111|  2.55k|                chunk_digits = 0;
12112|  2.55k|            }
12113|  2.55k|        }
12114|  2.55k|        else
12115|  2.55k|        {
12116|  2.55k|            truncated = truncated || c != '0';
12117|  2.55k|        }
12118|  2.55k|    };
12119|  2.55k|    bool significant = false;
12120|  39.7k|    for (; p != last && *p >= '0' && *p <= '9'; ++p)
  ------------------
  |  Branch (12120:12): [True: 38.8k, False: 846]
  |  Branch (12120:25): [True: 37.3k, False: 1.47k]
  |  Branch (12120:38): [True: 37.1k, False: 228]
  ------------------
12121|  37.1k|    {
12122|  37.1k|        significant = significant || *p != '0';
  ------------------
  |  Branch (12122:23): [True: 34.6k, False: 2.55k]
  |  Branch (12122:38): [True: 2.29k, False: 252]
  ------------------
12123|  37.1k|        if (significant)
  ------------------
  |  Branch (12123:13): [True: 36.9k, False: 252]
  ------------------
12124|  36.9k|        {
12125|  36.9k|            append(*p);
12126|  36.9k|            ++point;
12127|  36.9k|        }
12128|  37.1k|    }
12129|  2.55k|    if (p != last && *p == '.')
  ------------------
  |  Branch (12129:9): [True: 1.70k, False: 846]
  |  Branch (12129:22): [True: 1.47k, False: 228]
  ------------------
12130|  1.47k|    {
12131|  32.0k|        for (++p; p != last && *p >= '0' && *p <= '9'; ++p)
  ------------------
  |  Branch (12131:19): [True: 31.0k, False: 1.05k]
  |  Branch (12131:32): [True: 31.0k, False: 0]
  |  Branch (12131:45): [True: 30.5k, False: 426]
  ------------------
12132|  30.5k|        {
12133|  30.5k|            significant = significant || *p != '0';
  ------------------
  |  Branch (12133:27): [True: 29.8k, False: 756]
  |  Branch (12133:42): [True: 252, False: 504]
  ------------------
12134|  30.5k|            if (significant)
  ------------------
  |  Branch (12134:17): [True: 30.0k, False: 504]
  ------------------
12135|  30.0k|            {
12136|  30.0k|                append(*p);
12137|  30.0k|            }
12138|    504|            else
12139|    504|            {
12140|    504|                --point;
12141|    504|            }
12142|  30.5k|        }
12143|  1.47k|    }
12144|  2.55k|    if (chunk_digits != 0)
  ------------------
  |  Branch (12144:9): [True: 2.38k, False: 162]
  ------------------
12145|  2.38k|    {
12146|  2.38k|        digits.multiply_add(powers_of_ten[static_cast<std::size_t>(chunk_digits)], chunk);
12147|  2.38k|    }
12148|  2.55k|    if (p != last)
  ------------------
  |  Branch (12148:9): [True: 654, False: 1.89k]
  ------------------
12149|    654|    {
12150|    654|        point += parse_float_exponent(p + 1, last);
12151|    654|    }
12152|  2.55k|    const std::int64_t s = point - count; // v = D * 10^s
12153|       |
12154|       |    // the midpoint above the lower candidate
12155|  2.55k|    constexpr int mantissa_bits = Format::mantissa_bits();
12156|  2.55k|    const std::uint64_t exponent_field = lower >> mantissa_bits;
12157|  2.55k|    std::uint64_t mantissa = lower & ((std::uint64_t{1} << mantissa_bits) - 1);
12158|  2.55k|    std::int64_t e = 1 + Format::minimum_exponent() - mantissa_bits; // of the smallest subnormal number
12159|  2.55k|    if (exponent_field != 0)
  ------------------
  |  Branch (12159:9): [True: 2.31k, False: 240]
  ------------------
12160|  2.31k|    {
12161|  2.31k|        mantissa |= std::uint64_t{1} << mantissa_bits;
12162|  2.31k|        e += static_cast<std::int64_t>(exponent_field) - 1;
12163|  2.31k|    }
12164|  2.55k|    float_bigint midpoint((2 * mantissa) + 1);
12165|  2.55k|    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.55k|    if (s >= 0)
  ------------------
  |  Branch (12168:9): [True: 1.18k, False: 1.36k]
  ------------------
12169|  1.18k|    {
12170|  1.18k|        digits.multiply_power_of_five(s);
12171|  1.18k|    }
12172|  1.36k|    else
12173|  1.36k|    {
12174|  1.36k|        midpoint.multiply_power_of_five(-s);
12175|  1.36k|    }
12176|  2.55k|    const std::int64_t shift = s - midpoint_exponent;
12177|  2.55k|    if (shift >= 0)
  ------------------
  |  Branch (12177:9): [True: 966, False: 1.58k]
  ------------------
12178|    966|    {
12179|    966|        digits.shift_left(shift);
12180|    966|    }
12181|  1.58k|    else
12182|  1.58k|    {
12183|  1.58k|        midpoint.shift_left(-shift);
12184|  1.58k|    }
12185|  2.55k|    const int order = digits.compare(midpoint);
12186|  2.55k|    const bool round_up = order > 0 || (order == 0 && (truncated || (mantissa & 1u) != 0));
  ------------------
  |  Branch (12186:27): [True: 1.14k, False: 1.41k]
  |  Branch (12186:41): [True: 366, False: 1.04k]
  |  Branch (12186:56): [True: 0, False: 366]
  |  Branch (12186:69): [True: 66, False: 300]
  ------------------
12187|  2.55k|    return lower + (round_up ? 1u : 0u);
  ------------------
  |  Branch (12187:21): [True: 1.20k, False: 1.34k]
  ------------------
12188|  2.55k|}
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigintC2Em:
11973|  5.10k|    {
11974|  10.2k|        for (; value != 0; value >>= 32u)
  ------------------
  |  Branch (11974:16): [True: 5.10k, False: 5.10k]
  ------------------
11975|  5.10k|        {
11976|  5.10k|            limbs[count++] = static_cast<std::uint32_t>(value);
11977|  5.10k|        }
11978|  5.10k|    }
_ZZN8nlohmann16json_abi_v3_12_06detail16digit_comparisonINS1_18ieee_binary_formatILi53EEEEEmPKcS6_mENKUlcE_clEc:
12102|  66.9k|    {
12103|  66.9k|        if (count < Format::max_digits())
  ------------------
  |  Branch (12103:13): [True: 66.9k, False: 0]
  ------------------
12104|  66.9k|        {
12105|  66.9k|            chunk = (chunk * 10u) + static_cast<std::uint32_t>(c - '0');
12106|  66.9k|            ++count;
12107|  66.9k|            if (++chunk_digits == 9)
  ------------------
  |  Branch (12107:17): [True: 6.75k, False: 60.2k]
  ------------------
12108|  6.75k|            {
12109|  6.75k|                digits.multiply_add(powers_of_ten[9], chunk);
12110|  6.75k|                chunk = 0;
12111|  6.75k|                chunk_digits = 0;
12112|  6.75k|            }
12113|  66.9k|        }
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|  66.9k|    };
_ZN8nlohmann16json_abi_v3_12_06detail18ieee_binary_formatILi53EE10max_digitsEv:
11653|  66.9k|    {
11654|  66.9k|        return 769;
11655|  66.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint12multiply_addEjj:
11982|  20.4k|    {
11983|  20.4k|        std::uint64_t carry = summand;
11984|   158k|        for (std::size_t i = 0; i < count; ++i)
  ------------------
  |  Branch (11984:33): [True: 137k, False: 20.4k]
  ------------------
11985|   137k|        {
11986|   137k|            const std::uint64_t product = (static_cast<std::uint64_t>(limbs[i]) * factor) + carry;
11987|   137k|            limbs[i] = static_cast<std::uint32_t>(product);
11988|   137k|            carry = product >> 32u;
11989|   137k|        }
11990|  20.4k|        if (carry != 0)
  ------------------
  |  Branch (11990:13): [True: 17.8k, False: 2.64k]
  ------------------
11991|  17.8k|        {
11992|  17.8k|            JSON_ASSERT(count < limbs.size());
  ------------------
  |  | 2653|  17.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (11992:13): [True: 17.8k, False: 0]
  ------------------
11993|  17.8k|            limbs[count++] = static_cast<std::uint32_t>(carry);
11994|  17.8k|        }
11995|  20.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint22multiply_power_of_fiveEl:
11999|  2.55k|    {
12000|  2.55k|        static const std::array<std::uint32_t, 14> powers =
12001|  2.55k|        {
12002|  2.55k|            {1u, 5u, 25u, 125u, 625u, 3125u, 15625u, 78125u, 390625u, 1953125u, 9765625u, 48828125u, 244140625u, 1220703125u}
12003|  2.55k|        };
12004|  11.3k|        for (; n >= 13; n -= 13)
  ------------------
  |  Branch (12004:16): [True: 8.76k, False: 2.55k]
  ------------------
12005|  8.76k|        {
12006|  8.76k|            multiply_add(powers[13], 0);
12007|  8.76k|        }
12008|  2.55k|        multiply_add(powers[static_cast<std::size_t>(n)], 0);
12009|  2.55k|    }
_ZN8nlohmann16json_abi_v3_12_06detail12float_bigint10shift_leftEl:
12013|  2.55k|    {
12014|  2.55k|        if (count == 0)
  ------------------
  |  Branch (12014:13): [True: 0, False: 2.55k]
  ------------------
12015|      0|        {
12016|      0|            return;
12017|      0|        }
12018|  2.55k|        const auto limb_shift = static_cast<std::size_t>(n / 32);
12019|  2.55k|        const auto bit_shift = static_cast<unsigned>(n % 32);
12020|  2.55k|        JSON_ASSERT(count + limb_shift + 1 <= limbs.size());
  ------------------
  |  | 2653|  2.55k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (12020:9): [True: 2.55k, False: 0]
  ------------------
12021|  2.55k|        if (bit_shift != 0)
  ------------------
  |  Branch (12021:13): [True: 2.34k, False: 204]
  ------------------
12022|  2.34k|        {
12023|  2.34k|            std::uint32_t carry = 0;
12024|  8.40k|            for (std::size_t i = 0; i < count; ++i)
  ------------------
  |  Branch (12024:37): [True: 6.06k, False: 2.34k]
  ------------------
12025|  6.06k|            {
12026|  6.06k|                const std::uint32_t limb = limbs[i];
12027|  6.06k|                limbs[i] = (limb << bit_shift) | carry;
12028|  6.06k|                carry = limb >> (32u - bit_shift);
12029|  6.06k|            }
12030|  2.34k|            if (carry != 0)
  ------------------
  |  Branch (12030:17): [True: 1.51k, False: 834]
  ------------------
12031|  1.51k|            {
12032|  1.51k|                limbs[count++] = carry;
12033|  1.51k|            }
12034|  2.34k|        }
12035|  2.55k|        if (limb_shift != 0)
  ------------------
  |  Branch (12035:13): [True: 960, False: 1.59k]
  ------------------
12036|    960|        {
12037|  3.99k|            for (std::size_t i = count; i-- > 0;)
  ------------------
  |  Branch (12037:41): [True: 3.03k, False: 960]
  ------------------
12038|  3.03k|            {
12039|  3.03k|                limbs[i + limb_shift] = limbs[i];
12040|  3.03k|            }
12041|  9.04k|            for (std::size_t i = 0; i < limb_shift; ++i)
  ------------------
  |  Branch (12041:37): [True: 8.08k, False: 960]
  ------------------
12042|  8.08k|            {
12043|  8.08k|                limbs[i] = 0;
12044|  8.08k|            }
12045|    960|            count += limb_shift;
12046|    960|        }
12047|  2.55k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail12float_bigint7compareERKS2_:
12051|  2.55k|    {
12052|  2.55k|        if (count != other.count)
  ------------------
  |  Branch (12052:13): [True: 0, False: 2.55k]
  ------------------
12053|      0|        {
12054|      0|            return count < other.count ? -1 : 1;
  ------------------
  |  Branch (12054:20): [True: 0, False: 0]
  ------------------
12055|      0|        }
12056|  7.83k|        for (std::size_t i = count; i-- > 0;)
  ------------------
  |  Branch (12056:37): [True: 7.46k, False: 366]
  ------------------
12057|  7.46k|        {
12058|  7.46k|            if (limbs[i] != other.limbs[i])
  ------------------
  |  Branch (12058:17): [True: 2.18k, False: 5.28k]
  ------------------
12059|  2.18k|            {
12060|  2.18k|                return limbs[i] < other.limbs[i] ? -1 : 1;
  ------------------
  |  Branch (12060:24): [True: 1.04k, False: 1.14k]
  ------------------
12061|  2.18k|            }
12062|  7.46k|        }
12063|    366|        return 0;
12064|  2.55k|    }
_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|  10.0k|    {
14622|       |        // reset token_buffer to store the number's bytes
14623|  10.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|  10.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|  10.0k|        std::size_t mantissa_end = std::string::npos;
14634|       |
14635|       |        // state (init): we just found out we need to scan a number
14636|  10.0k|        switch (current)
14637|  10.0k|        {
14638|    372|            case '-':
  ------------------
  |  Branch (14638:13): [True: 372, False: 9.72k]
  ------------------
14639|    372|            {
14640|    372|                add(current);
14641|    372|                goto scan_number_minus;
14642|      0|            }
14643|       |
14644|  1.17k|            case '0':
  ------------------
  |  Branch (14644:13): [True: 1.17k, False: 8.91k]
  ------------------
14645|  1.17k|            {
14646|  1.17k|                add(current);
14647|  1.17k|                goto scan_number_zero;
14648|      0|            }
14649|       |
14650|  1.54k|            case '1':
  ------------------
  |  Branch (14650:13): [True: 1.54k, False: 8.55k]
  ------------------
14651|  2.70k|            case '2':
  ------------------
  |  Branch (14651:13): [True: 1.16k, False: 8.92k]
  ------------------
14652|  3.55k|            case '3':
  ------------------
  |  Branch (14652:13): [True: 846, False: 9.24k]
  ------------------
14653|  4.77k|            case '4':
  ------------------
  |  Branch (14653:13): [True: 1.22k, False: 8.86k]
  ------------------
14654|  5.75k|            case '5':
  ------------------
  |  Branch (14654:13): [True: 978, False: 9.11k]
  ------------------
14655|  6.55k|            case '6':
  ------------------
  |  Branch (14655:13): [True: 798, False: 9.29k]
  ------------------
14656|  7.10k|            case '7':
  ------------------
  |  Branch (14656:13): [True: 552, False: 9.54k]
  ------------------
14657|  7.98k|            case '8':
  ------------------
  |  Branch (14657:13): [True: 876, False: 9.21k]
  ------------------
14658|  8.54k|            case '9':
  ------------------
  |  Branch (14658:13): [True: 564, False: 9.52k]
  ------------------
14659|  8.54k|            {
14660|  8.54k|                add(current);
14661|  8.54k|                goto scan_number_any1;
14662|  7.98k|            }
14663|       |
14664|       |            // all other characters are rejected outside scan_number()
14665|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (14665:13): [True: 0, False: 10.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|  10.0k|        }
14668|       |
14669|    372|scan_number_minus:
14670|       |        // state: we just parsed a leading minus sign
14671|    372|        number_type = token_type::value_integer;
14672|    372|        switch (get())
14673|    372|        {
14674|     18|            case '0':
  ------------------
  |  Branch (14674:13): [True: 18, False: 354]
  ------------------
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: 354]
  ------------------
14681|     36|            case '2':
  ------------------
  |  Branch (14681:13): [True: 18, False: 354]
  ------------------
14682|     60|            case '3':
  ------------------
  |  Branch (14682:13): [True: 24, False: 348]
  ------------------
14683|     84|            case '4':
  ------------------
  |  Branch (14683:13): [True: 24, False: 348]
  ------------------
14684|    102|            case '5':
  ------------------
  |  Branch (14684:13): [True: 18, False: 354]
  ------------------
14685|    120|            case '6':
  ------------------
  |  Branch (14685:13): [True: 18, False: 354]
  ------------------
14686|    138|            case '7':
  ------------------
  |  Branch (14686:13): [True: 18, False: 354]
  ------------------
14687|    162|            case '8':
  ------------------
  |  Branch (14687:13): [True: 24, False: 348]
  ------------------
14688|    180|            case '9':
  ------------------
  |  Branch (14688:13): [True: 18, False: 354]
  ------------------
14689|    180|            {
14690|    180|                add(current);
14691|    180|                goto scan_number_any1;
14692|    162|            }
14693|       |
14694|    174|            default:
  ------------------
  |  Branch (14694:13): [True: 174, False: 198]
  ------------------
14695|    174|            {
14696|    174|                error_message = "invalid number; expected digit after '-'";
14697|    174|                return token_type::parse_error;
14698|    162|            }
14699|    372|        }
14700|       |
14701|  1.19k|scan_number_zero:
14702|       |        // state: we just parse a zero (maybe with a leading minus sign)
14703|  1.19k|        switch (get())
14704|  1.19k|        {
14705|    150|            case '.':
  ------------------
  |  Branch (14705:13): [True: 150, False: 1.04k]
  ------------------
14706|    150|            {
14707|    150|                add(current);
14708|    150|                decimal_point_position = token_buffer.size() - 1;
14709|    150|                goto scan_number_decimal1;
14710|      0|            }
14711|       |
14712|     42|            case 'e':
  ------------------
  |  Branch (14712:13): [True: 42, False: 1.15k]
  ------------------
14713|    120|            case 'E':
  ------------------
  |  Branch (14713:13): [True: 78, False: 1.11k]
  ------------------
14714|    120|            {
14715|    120|                add(current);
14716|    120|                goto scan_number_exponent;
14717|     42|            }
14718|       |
14719|    924|            default:
  ------------------
  |  Branch (14719:13): [True: 924, False: 270]
  ------------------
14720|    924|                goto scan_number_done;
14721|  1.19k|        }
14722|       |
14723|  14.4k|scan_number_any1:
14724|       |        // state: we just parsed a number 0-9 (maybe with a leading minus sign)
14725|  14.4k|        switch (get())
14726|  14.4k|        {
14727|    660|            case '0':
  ------------------
  |  Branch (14727:13): [True: 660, False: 13.8k]
  ------------------
14728|  1.19k|            case '1':
  ------------------
  |  Branch (14728:13): [True: 534, False: 13.9k]
  ------------------
14729|  1.77k|            case '2':
  ------------------
  |  Branch (14729:13): [True: 576, False: 13.8k]
  ------------------
14730|  2.37k|            case '3':
  ------------------
  |  Branch (14730:13): [True: 606, False: 13.8k]
  ------------------
14731|  2.90k|            case '4':
  ------------------
  |  Branch (14731:13): [True: 528, False: 13.9k]
  ------------------
14732|  3.58k|            case '5':
  ------------------
  |  Branch (14732:13): [True: 684, False: 13.7k]
  ------------------
14733|  4.14k|            case '6':
  ------------------
  |  Branch (14733:13): [True: 552, False: 13.9k]
  ------------------
14734|  4.65k|            case '7':
  ------------------
  |  Branch (14734:13): [True: 510, False: 13.9k]
  ------------------
14735|  5.20k|            case '8':
  ------------------
  |  Branch (14735:13): [True: 558, False: 13.9k]
  ------------------
14736|  5.74k|            case '9':
  ------------------
  |  Branch (14736:13): [True: 540, False: 13.9k]
  ------------------
14737|  5.74k|            {
14738|  5.74k|                add(current);
14739|  5.74k|                goto scan_number_any1;
14740|  5.20k|            }
14741|       |
14742|    696|            case '.':
  ------------------
  |  Branch (14742:13): [True: 696, False: 13.7k]
  ------------------
14743|    696|            {
14744|    696|                add(current);
14745|    696|                decimal_point_position = token_buffer.size() - 1;
14746|    696|                goto scan_number_decimal1;
14747|  5.20k|            }
14748|       |
14749|    294|            case 'e':
  ------------------
  |  Branch (14749:13): [True: 294, False: 14.1k]
  ------------------
14750|    558|            case 'E':
  ------------------
  |  Branch (14750:13): [True: 264, False: 14.2k]
  ------------------
14751|    558|            {
14752|    558|                add(current);
14753|    558|                goto scan_number_exponent;
14754|    294|            }
14755|       |
14756|  7.47k|            default:
  ------------------
  |  Branch (14756:13): [True: 7.47k, False: 7.00k]
  ------------------
14757|  7.47k|                goto scan_number_done;
14758|  14.4k|        }
14759|       |
14760|    846|scan_number_decimal1:
14761|       |        // state: we just parsed a decimal point
14762|    846|        number_type = token_type::value_float;
14763|    846|        switch (get())
14764|    846|        {
14765|     90|            case '0':
  ------------------
  |  Branch (14765:13): [True: 90, False: 756]
  ------------------
14766|    168|            case '1':
  ------------------
  |  Branch (14766:13): [True: 78, False: 768]
  ------------------
14767|    198|            case '2':
  ------------------
  |  Branch (14767:13): [True: 30, False: 816]
  ------------------
14768|    270|            case '3':
  ------------------
  |  Branch (14768:13): [True: 72, False: 774]
  ------------------
14769|    288|            case '4':
  ------------------
  |  Branch (14769:13): [True: 18, False: 828]
  ------------------
14770|    330|            case '5':
  ------------------
  |  Branch (14770:13): [True: 42, False: 804]
  ------------------
14771|    360|            case '6':
  ------------------
  |  Branch (14771:13): [True: 30, False: 816]
  ------------------
14772|    384|            case '7':
  ------------------
  |  Branch (14772:13): [True: 24, False: 822]
  ------------------
14773|    390|            case '8':
  ------------------
  |  Branch (14773:13): [True: 6, False: 840]
  ------------------
14774|    426|            case '9':
  ------------------
  |  Branch (14774:13): [True: 36, False: 810]
  ------------------
14775|    426|            {
14776|    426|                add(current);
14777|    426|                goto scan_number_decimal2;
14778|    390|            }
14779|       |
14780|    420|            default:
  ------------------
  |  Branch (14780:13): [True: 420, False: 426]
  ------------------
14781|    420|            {
14782|    420|                error_message = "invalid number; expected digit after '.'";
14783|    420|                return token_type::parse_error;
14784|    390|            }
14785|    846|        }
14786|       |
14787|  5.89k|scan_number_decimal2:
14788|       |        // we just parsed at least one number after a decimal point
14789|  5.89k|        switch (get())
14790|  5.89k|        {
14791|    660|            case '0':
  ------------------
  |  Branch (14791:13): [True: 660, False: 5.23k]
  ------------------
14792|  1.19k|            case '1':
  ------------------
  |  Branch (14792:13): [True: 534, False: 5.36k]
  ------------------
14793|  1.73k|            case '2':
  ------------------
  |  Branch (14793:13): [True: 540, False: 5.35k]
  ------------------
14794|  2.24k|            case '3':
  ------------------
  |  Branch (14794:13): [True: 510, False: 5.38k]
  ------------------
14795|  2.76k|            case '4':
  ------------------
  |  Branch (14795:13): [True: 516, False: 5.38k]
  ------------------
14796|  3.28k|            case '5':
  ------------------
  |  Branch (14796:13): [True: 528, False: 5.37k]
  ------------------
14797|  3.88k|            case '6':
  ------------------
  |  Branch (14797:13): [True: 600, False: 5.29k]
  ------------------
14798|  4.41k|            case '7':
  ------------------
  |  Branch (14798:13): [True: 522, False: 5.37k]
  ------------------
14799|  4.96k|            case '8':
  ------------------
  |  Branch (14799:13): [True: 552, False: 5.34k]
  ------------------
14800|  5.47k|            case '9':
  ------------------
  |  Branch (14800:13): [True: 510, False: 5.38k]
  ------------------
14801|  5.47k|            {
14802|  5.47k|                add(current);
14803|  5.47k|                goto scan_number_decimal2;
14804|  4.96k|            }
14805|       |
14806|    228|            case 'e':
  ------------------
  |  Branch (14806:13): [True: 228, False: 5.67k]
  ------------------
14807|    426|            case 'E':
  ------------------
  |  Branch (14807:13): [True: 198, False: 5.70k]
  ------------------
14808|    426|            {
14809|    426|                add(current);
14810|    426|                goto scan_number_exponent;
14811|    228|            }
14812|       |
14813|      0|            default:
  ------------------
  |  Branch (14813:13): [True: 0, False: 5.89k]
  ------------------
14814|      0|                goto scan_number_done;
14815|  5.89k|        }
14816|       |
14817|  1.10k|scan_number_exponent:
14818|       |        // we just parsed an exponent
14819|  1.10k|        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.10k|        mantissa_end = token_buffer.size() - 1;
14823|  1.10k|        switch (get())
14824|  1.10k|        {
14825|     30|            case '+':
  ------------------
  |  Branch (14825:13): [True: 30, False: 1.07k]
  ------------------
14826|     84|            case '-':
  ------------------
  |  Branch (14826:13): [True: 54, False: 1.05k]
  ------------------
14827|     84|            {
14828|     84|                add(current);
14829|     84|                goto scan_number_sign;
14830|     30|            }
14831|       |
14832|      0|            case '0':
  ------------------
  |  Branch (14832:13): [True: 0, False: 1.10k]
  ------------------
14833|      0|            case '1':
  ------------------
  |  Branch (14833:13): [True: 0, False: 1.10k]
  ------------------
14834|      0|            case '2':
  ------------------
  |  Branch (14834:13): [True: 0, False: 1.10k]
  ------------------
14835|      0|            case '3':
  ------------------
  |  Branch (14835:13): [True: 0, False: 1.10k]
  ------------------
14836|      0|            case '4':
  ------------------
  |  Branch (14836:13): [True: 0, False: 1.10k]
  ------------------
14837|      0|            case '5':
  ------------------
  |  Branch (14837:13): [True: 0, False: 1.10k]
  ------------------
14838|      0|            case '6':
  ------------------
  |  Branch (14838:13): [True: 0, False: 1.10k]
  ------------------
14839|      0|            case '7':
  ------------------
  |  Branch (14839:13): [True: 0, False: 1.10k]
  ------------------
14840|      0|            case '8':
  ------------------
  |  Branch (14840:13): [True: 0, False: 1.10k]
  ------------------
14841|      0|            case '9':
  ------------------
  |  Branch (14841:13): [True: 0, False: 1.10k]
  ------------------
14842|      0|            {
14843|      0|                add(current);
14844|      0|                goto scan_number_any2;
14845|      0|            }
14846|       |
14847|  1.02k|            default:
  ------------------
  |  Branch (14847:13): [True: 1.02k, False: 84]
  ------------------
14848|  1.02k|            {
14849|  1.02k|                error_message =
14850|  1.02k|                    "invalid number; expected '+', '-', or digit after exponent";
14851|  1.02k|                return token_type::parse_error;
14852|      0|            }
14853|  1.10k|        }
14854|       |
14855|     84|scan_number_sign:
14856|       |        // we just parsed an exponent sign
14857|     84|        switch (get())
14858|     84|        {
14859|      0|            case '0':
  ------------------
  |  Branch (14859:13): [True: 0, False: 84]
  ------------------
14860|      0|            case '1':
  ------------------
  |  Branch (14860:13): [True: 0, False: 84]
  ------------------
14861|      0|            case '2':
  ------------------
  |  Branch (14861:13): [True: 0, False: 84]
  ------------------
14862|      0|            case '3':
  ------------------
  |  Branch (14862:13): [True: 0, False: 84]
  ------------------
14863|      0|            case '4':
  ------------------
  |  Branch (14863:13): [True: 0, False: 84]
  ------------------
14864|      0|            case '5':
  ------------------
  |  Branch (14864:13): [True: 0, False: 84]
  ------------------
14865|      0|            case '6':
  ------------------
  |  Branch (14865:13): [True: 0, False: 84]
  ------------------
14866|      0|            case '7':
  ------------------
  |  Branch (14866:13): [True: 0, False: 84]
  ------------------
14867|      0|            case '8':
  ------------------
  |  Branch (14867:13): [True: 0, False: 84]
  ------------------
14868|      0|            case '9':
  ------------------
  |  Branch (14868:13): [True: 0, False: 84]
  ------------------
14869|      0|            {
14870|      0|                add(current);
14871|      0|                goto scan_number_any2;
14872|      0|            }
14873|       |
14874|     84|            default:
  ------------------
  |  Branch (14874:13): [True: 84, False: 0]
  ------------------
14875|     84|            {
14876|     84|                error_message = "invalid number; expected digit after exponent sign";
14877|     84|                return token_type::parse_error;
14878|      0|            }
14879|     84|        }
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|  8.39k|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|  8.39k|        unget();
14908|       |
14909|       |        // no exponent was scanned: the mantissa spans the whole token
14910|  8.39k|        if (mantissa_end == std::string::npos)
  ------------------
  |  Branch (14910:13): [True: 8.39k, False: 0]
  ------------------
14911|  8.39k|        {
14912|  8.39k|            mantissa_end = token_buffer.size();
14913|  8.39k|        }
14914|       |
14915|  8.39k|        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|  54.6k|    {
15793|  54.6k|        std::vector<char_type> reconstructed;
15794|  54.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|  54.6k|        constexpr std::size_t shown = token_text_buffer<char_type>::head();
15800|  54.6k|        std::string result;
15801|  54.6k|        if (chars.size() > 2 * shown)
  ------------------
  |  Branch (15801:13): [True: 0, False: 54.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|  54.6k|        else
15813|  54.6k|        {
15814|  54.6k|            append_escaped(result, chars.begin(), chars.end());
15815|  54.6k|        }
15816|  54.6k|        return result;
15817|  54.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|  54.6k|    {
15743|  54.6k|        return collect_token_chars_lazy(out, std::integral_constant<bool, adapter_token> {});
15744|  54.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|  54.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|  54.6k|        const bool pending_real_unget = next_unget && current != char_traits<char_type>::eof();
  ------------------
  |  Branch (15760:41): [True: 8.39k, False: 46.2k]
  |  Branch (15760:55): [True: 0, False: 8.39k]
  ------------------
15761|  54.6k|        const std::size_t stop = ia.get_consumed_count() - (pending_real_unget ? 1u : 0u);
  ------------------
  |  Branch (15761:61): [True: 0, False: 54.6k]
  ------------------
15762|  54.6k|        if (JSON_HEDLEY_LIKELY(stop >= token_string_start))
  ------------------
  |  | 1696|  54.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 54.6k, False: 0]
  |  |  ------------------
  ------------------
15763|  54.6k|        {
15764|       |            // only the beginning and the end of a long token are shown (see
15765|       |            // get_token_string), so copy only these
15766|  54.6k|            constexpr std::size_t head = token_text_buffer<char_type>::head();
15767|  54.6k|            constexpr std::size_t tail = token_text_buffer<char_type>::tail();
15768|  54.6k|            if (stop - token_string_start > head + tail)
  ------------------
  |  Branch (15768:17): [True: 0, False: 54.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|  54.6k|            else
15774|  54.6k|            {
15775|  54.6k|                ia.copy_consumed_range(token_string_start, stop, out);
15776|  54.6k|            }
15777|  54.6k|        }
15778|  54.6k|        return out;
15779|  54.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKcS4_E19copy_consumed_rangeINSt3__16vectorIcNS7_9allocatorIcEEEEEEvmmRT_:
10314|  54.6k|    {
10315|  54.6k|        const auto from = std::next(begin, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(first_index));
10316|  54.6k|        const auto to = std::next(begin, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(last_index));
10317|  54.6k|        out.insert(out.end(), from, to);
10318|  54.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|  54.6k|    {
15873|   683k|        for (; first != last; ++first)
  ------------------
  |  Branch (15873:16): [True: 628k, False: 54.6k]
  ------------------
15874|   628k|        {
15875|   628k|            const auto c = *first;
15876|   628k|            if (static_cast<unsigned char>(c) <= '\x1F')
  ------------------
  |  Branch (15876:17): [True: 7.54k, False: 620k]
  ------------------
15877|  7.54k|            {
15878|       |                // escape control characters
15879|  7.54k|                std::array<char, 9> cs{{}};
15880|  7.54k|                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.54k|                result += cs.data();
15882|  7.54k|            }
15883|   620k|            else
15884|   620k|            {
15885|       |                // add character as is
15886|   620k|                result.push_back(static_cast<std::string::value_type>(c));
15887|   620k|            }
15888|   628k|        }
15889|  54.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|  44.2k|    {
15624|  44.2k|        if (pending_number_text != nullptr)
  ------------------
  |  Branch (15624:13): [True: 14.3k, False: 29.9k]
  ------------------
15625|  14.3k|        {
15626|  14.3k|            token_buffer.append(reinterpret_cast<const typename string_t::value_type*>(pending_number_text), pending_number_length);
15627|  14.3k|            pending_number_text = nullptr;
15628|  14.3k|        }
15629|       |        // a number token holds '.' regardless of the locale (#4084)
15630|  44.2k|        return token_buffer;
15631|  44.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA22_KcS9_EEET_DpOT0_:
 5537|  10.3k|{
 5538|  10.3k|    OutStringType str;
 5539|  10.3k|    str.reserve(concat_length(args...));
 5540|  10.3k|    concat_into(str, std::forward<Args>(args)...);
 5541|  10.3k|    return str;
 5542|  10.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|  10.3k|{
 5501|  10.3k|    out.append(std::forward<Arg>(arg));
 5502|  10.3k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.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.73k|    {
15606|  2.73k|        return value_integer;
15607|  2.73k|    }
_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|  9.87k|    {
15612|  9.87k|        return value_unsigned;
15613|  9.87k|    }
_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|  21.3k|    {
15618|  21.3k|        return value_float;
15619|  21.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA26_KcRKS9_cEEET_DpOT0_:
 5537|  1.26k|{
 5538|  1.26k|    OutStringType str;
 5539|  1.26k|    str.reserve(concat_length(args...));
 5540|  1.26k|    concat_into(str, std::forward<Args>(args)...);
 5541|  1.26k|    return str;
 5542|  1.26k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcEEEmPKcDpRKT_:
 5441|  1.26k|{
 5442|  1.26k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  1.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcEEEmRKT_DpRKT0_:
 5447|  1.26k|{
 5448|  1.26k|    return str.size() + concat_length(rest...);
 5449|  1.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJEEEmcDpRKT_:
 5435|  1.26k|{
 5436|  1.26k|    return 1 + concat_length(rest...);
 5437|  1.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA26_KcJRKS9_cETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  1.26k|{
 5501|  1.26k|    out.append(std::forward<Arg>(arg));
 5502|  1.26k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  1.26k|{
 5501|  1.26k|    out.append(std::forward<Arg>(arg));
 5502|  1.26k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  1.26k|}
_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.26k|{
 5510|  1.26k|    out += std::forward<Arg>(arg);
 5511|  1.26k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  1.26k|}
_ZN8nlohmann16json_abi_v3_12_06detail5lexerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKcSJ_EELb0EED2Ev:
13811|  44.2k|    ~lexer() = default;
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcED2Ev:
 9416|   107k|    ~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|   497k|    {
22708|   497k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|   497k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|   497k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 671, False: 497k]
  |  |  ------------------
  ------------------
22710|    671|        {
22711|    671|            return false;
22712|    671|        }
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|   497k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 21.7k, False: 475k]
  ------------------
22718|  21.7k|        {
22719|  21.7k|            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|  21.7k|            const bool nd_is_char = size_and_type.second == 'C';
22727|  21.7k|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 1.74k, False: 19.9k]
  |  Branch (22727:48): [True: 1.26k, False: 18.7k]
  ------------------
22728|  3.00k|            {
22729|  3.00k|                size_and_type.second = 'U';
22730|  3.00k|            }
22731|       |
22732|  21.7k|            string_t key = "_ArrayData_";
22733|  21.7k|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|  43.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 21.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 21.7k]
  |  |  |  Branch (1697:94): [True: 3, False: 21.7k]
  |  |  ------------------
  ------------------
22734|      1|            {
22735|      1|                return false;
22736|      1|            }
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|  21.7k|            std::size_t remaining = size_and_type.first;
22741|  21.7k|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|  19.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 19.9k]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 19.9k, False: 1.74k]
  |  Branch (22741:17): [True: 0, False: 21.7k]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|  36.3k|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 14.8k, False: 21.5k]
  ------------------
22747|  14.8k|            {
22748|  14.8k|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 8.19k, False: 6.60k]
  ------------------
22749|  8.19k|                {
22750|  8.19k|                    get();
22751|  8.19k|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  8.19k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 24, False: 8.17k]
  |  |  ------------------
  ------------------
22752|     24|                    {
22753|     24|                        return false;
22754|     24|                    }
22755|  8.17k|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  8.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 8.16k]
  |  |  ------------------
  ------------------
22756|      9|                    {
22757|      9|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      9|                    }
22759|  8.16k|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|  8.16k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.16k]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|  8.16k|                    continue;
22764|  8.16k|                }
22765|       |
22766|  6.60k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|  6.60k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 171, False: 6.43k]
  |  |  ------------------
  ------------------
22767|    171|                {
22768|    171|                    return false;
22769|    171|                }
22770|  6.60k|            }
22771|       |
22772|  21.5k|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 21.1k, False: 392]
  |  Branch (22772:41): [True: 21.1k, False: 0]
  ------------------
22773|  21.7k|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|   475k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 180k, False: 294k]
  |  Branch (22776:44): [True: 10.4k, False: 170k]
  ------------------
22777|  10.4k|        {
22778|  10.4k|            binary_t result;
22779|  10.4k|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 10.0k, False: 405]
  |  Branch (22779:63): [True: 10.0k, False: 0]
  ------------------
22780|  10.4k|        }
22781|       |
22782|   464k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 170k, False: 294k]
  ------------------
22783|   170k|        {
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|   170k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|   681k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 170k]
  |  |  |  Branch (1697:94): [True: 0, False: 170k]
  |  |  |  Branch (1697:94): [True: 0, False: 170k]
  |  |  |  Branch (1697:94): [True: 0, False: 170k]
  |  |  ------------------
  ------------------
22789|      0|            {
22790|      0|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22791|      0|                {
22792|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|      0|                }
22794|      0|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22795|      0|                {
22796|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|      0|                }
22798|      0|            }
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|   170k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 0, False: 170k]
  ------------------
22804|   170k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|   170k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 127, False: 170k]
  |  |  ------------------
  ------------------
22805|    127|            {
22806|    127|                return false;
22807|    127|            }
22808|       |
22809|   170k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 149k, False: 20.7k]
  ------------------
22810|  20.7k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 20.7k, False: 0]
  ------------------
22811|   170k|        }
22812|       |
22813|   294k|        return enter_array(detail::unknown_size());
22814|   464k|    }
_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.7k|    {
22563|  40.7k|        switch (type)
22564|  40.7k|        {
22565|  6.41k|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 6.41k, False: 34.3k]
  ------------------
22566|  6.41k|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|  8.82k|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 8.82k, False: 31.9k]
  ------------------
22568|  8.82k|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|  2.64k|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 2.64k, False: 38.1k]
  ------------------
22570|  2.64k|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|  3.03k|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 3.03k, False: 37.7k]
  ------------------
22572|  3.03k|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|  2.58k|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 2.58k, False: 38.1k]
  ------------------
22574|  2.58k|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|  3.05k|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 3.05k, False: 37.7k]
  ------------------
22576|  3.05k|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|  2.74k|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 2.74k, False: 38.0k]
  ------------------
22578|  2.74k|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|  2.28k|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 2.28k, False: 38.4k]
  ------------------
22580|  2.28k|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|  2.46k|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 2.46k, False: 38.3k]
  ------------------
22582|  2.46k|                return parse_ubjson_typed_run<float>(remaining);
22583|  3.43k|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 3.43k, False: 37.3k]
  ------------------
22584|  3.43k|                return parse_ubjson_typed_run<double>(remaining);
22585|  3.29k|            default:
  ------------------
  |  Branch (22585:13): [True: 3.29k, False: 37.4k]
  ------------------
22586|  3.29k|                return true;
22587|  40.7k|        }
22588|  40.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_EEE22parse_ubjson_typed_runIhEEbRm:
22598|  6.41k|    {
22599|  6.41k|        constexpr std::size_t size = sizeof(NumberType);
22600|  6.41k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  6.41k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 777, False: 5.63k]
  ------------------
22602|    777|        {
22603|    777|            return true;
22604|    777|        }
22605|  5.63k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  5.63k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  5.63k|        const std::size_t start = chars_read;
22609|  5.63k|        std::size_t read = 0;
22610|  5.63k|        bool accepted = true;
22611|  39.4k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 33.7k, False: 5.63k]
  |  Branch (22611:32): [True: 33.7k, False: 0]
  ------------------
22612|  33.7k|        {
22613|  33.7k|            NumberType number{};
22614|  33.7k|            std::memcpy(&number, data + (read * size), size);
22615|  33.7k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 33.7k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  33.7k|            ++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|  33.7k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  33.7k|            accepted = emit_ubjson_number(number);
22625|  33.7k|        }
22626|       |        // get_number() does not change current
22627|  5.63k|        ia.bulk_skip(read * size);
22628|  5.63k|        chars_read = start + (read * size);
22629|  5.63k|        remaining -= read;
22630|  5.63k|        return accepted;
22631|  6.41k|    }
_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|   175k|    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|  33.7k|    {
22668|  33.7k|        return emit_unsigned(number);
22669|  33.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_EEE22parse_ubjson_typed_runIaEEbRm:
22598|  8.82k|    {
22599|  8.82k|        constexpr std::size_t size = sizeof(NumberType);
22600|  8.82k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  8.82k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 729, False: 8.09k]
  ------------------
22602|    729|        {
22603|    729|            return true;
22604|    729|        }
22605|  8.09k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  8.09k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  8.09k|        const std::size_t start = chars_read;
22609|  8.09k|        std::size_t read = 0;
22610|  8.09k|        bool accepted = true;
22611|  45.2k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 37.1k, False: 8.09k]
  |  Branch (22611:32): [True: 37.1k, False: 0]
  ------------------
22612|  37.1k|        {
22613|  37.1k|            NumberType number{};
22614|  37.1k|            std::memcpy(&number, data + (read * size), size);
22615|  37.1k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 37.1k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  37.1k|            ++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|  37.1k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  37.1k|            accepted = emit_ubjson_number(number);
22625|  37.1k|        }
22626|       |        // get_number() does not change current
22627|  8.09k|        ia.bulk_skip(read * size);
22628|  8.09k|        chars_read = start + (read * size);
22629|  8.09k|        remaining -= read;
22630|  8.09k|        return accepted;
22631|  8.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE18emit_ubjson_numberIaTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22661|  37.1k|    {
22662|  37.1k|        return emit_signed(number);
22663|  37.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_EEE22parse_ubjson_typed_runIsEEbRm:
22598|  2.64k|    {
22599|  2.64k|        constexpr std::size_t size = sizeof(NumberType);
22600|  2.64k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  2.64k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 711, False: 1.93k]
  ------------------
22602|    711|        {
22603|    711|            return true;
22604|    711|        }
22605|  1.93k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  1.93k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  1.93k|        const std::size_t start = chars_read;
22609|  1.93k|        std::size_t read = 0;
22610|  1.93k|        bool accepted = true;
22611|  16.5k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 14.6k, False: 1.93k]
  |  Branch (22611:32): [True: 14.6k, False: 0]
  ------------------
22612|  14.6k|        {
22613|  14.6k|            NumberType number{};
22614|  14.6k|            std::memcpy(&number, data + (read * size), size);
22615|  14.6k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 14.6k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  14.6k|            ++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.6k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  14.6k|            accepted = emit_ubjson_number(number);
22625|  14.6k|        }
22626|       |        // get_number() does not change current
22627|  1.93k|        ia.bulk_skip(read * size);
22628|  1.93k|        chars_read = start + (read * size);
22629|  1.93k|        remaining -= read;
22630|  1.93k|        return accepted;
22631|  2.64k|    }
_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|  14.6k|    {
22662|  14.6k|        return emit_signed(number);
22663|  14.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_EEE22parse_ubjson_typed_runIiEEbRm:
22598|  3.03k|    {
22599|  3.03k|        constexpr std::size_t size = sizeof(NumberType);
22600|  3.03k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  3.03k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 663, False: 2.37k]
  ------------------
22602|    663|        {
22603|    663|            return true;
22604|    663|        }
22605|  2.37k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  2.37k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  2.37k|        const std::size_t start = chars_read;
22609|  2.37k|        std::size_t read = 0;
22610|  2.37k|        bool accepted = true;
22611|  10.4k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 8.03k, False: 2.37k]
  |  Branch (22611:32): [True: 8.03k, False: 0]
  ------------------
22612|  8.03k|        {
22613|  8.03k|            NumberType number{};
22614|  8.03k|            std::memcpy(&number, data + (read * size), size);
22615|  8.03k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 8.03k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  8.03k|            ++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|  8.03k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  8.03k|            accepted = emit_ubjson_number(number);
22625|  8.03k|        }
22626|       |        // get_number() does not change current
22627|  2.37k|        ia.bulk_skip(read * size);
22628|  2.37k|        chars_read = start + (read * size);
22629|  2.37k|        remaining -= read;
22630|  2.37k|        return accepted;
22631|  3.03k|    }
_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|  8.03k|    {
22662|  8.03k|        return emit_signed(number);
22663|  8.03k|    }
_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|  2.58k|    {
22599|  2.58k|        constexpr std::size_t size = sizeof(NumberType);
22600|  2.58k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  2.58k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 681, False: 1.90k]
  ------------------
22602|    681|        {
22603|    681|            return true;
22604|    681|        }
22605|  1.90k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  1.90k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  1.90k|        const std::size_t start = chars_read;
22609|  1.90k|        std::size_t read = 0;
22610|  1.90k|        bool accepted = true;
22611|  7.68k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 5.78k, False: 1.90k]
  |  Branch (22611:32): [True: 5.78k, False: 0]
  ------------------
22612|  5.78k|        {
22613|  5.78k|            NumberType number{};
22614|  5.78k|            std::memcpy(&number, data + (read * size), size);
22615|  5.78k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 5.78k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  5.78k|            ++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.78k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  5.78k|            accepted = emit_ubjson_number(number);
22625|  5.78k|        }
22626|       |        // get_number() does not change current
22627|  1.90k|        ia.bulk_skip(read * size);
22628|  1.90k|        chars_read = start + (read * size);
22629|  1.90k|        remaining -= read;
22630|  1.90k|        return accepted;
22631|  2.58k|    }
_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|  5.78k|    {
22662|  5.78k|        return emit_signed(number);
22663|  5.78k|    }
_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_runItEEbRm:
22598|  3.05k|    {
22599|  3.05k|        constexpr std::size_t size = sizeof(NumberType);
22600|  3.05k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  3.05k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 726, False: 2.32k]
  ------------------
22602|    726|        {
22603|    726|            return true;
22604|    726|        }
22605|  2.32k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  2.32k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  2.32k|        const std::size_t start = chars_read;
22609|  2.32k|        std::size_t read = 0;
22610|  2.32k|        bool accepted = true;
22611|  13.1k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 10.8k, False: 2.32k]
  |  Branch (22611:32): [True: 10.8k, False: 0]
  ------------------
22612|  10.8k|        {
22613|  10.8k|            NumberType number{};
22614|  10.8k|            std::memcpy(&number, data + (read * size), size);
22615|  10.8k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 10.8k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  10.8k|            ++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|  10.8k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  10.8k|            accepted = emit_ubjson_number(number);
22625|  10.8k|        }
22626|       |        // get_number() does not change current
22627|  2.32k|        ia.bulk_skip(read * size);
22628|  2.32k|        chars_read = start + (read * size);
22629|  2.32k|        remaining -= read;
22630|  2.32k|        return accepted;
22631|  3.05k|    }
_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_numberItTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22667|  10.8k|    {
22668|  10.8k|        return emit_unsigned(number);
22669|  10.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_EEE22parse_ubjson_typed_runIjEEbRm:
22598|  2.74k|    {
22599|  2.74k|        constexpr std::size_t size = sizeof(NumberType);
22600|  2.74k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  2.74k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 651, False: 2.09k]
  ------------------
22602|    651|        {
22603|    651|            return true;
22604|    651|        }
22605|  2.09k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  2.09k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  2.09k|        const std::size_t start = chars_read;
22609|  2.09k|        std::size_t read = 0;
22610|  2.09k|        bool accepted = true;
22611|  8.54k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 6.44k, False: 2.09k]
  |  Branch (22611:32): [True: 6.44k, False: 0]
  ------------------
22612|  6.44k|        {
22613|  6.44k|            NumberType number{};
22614|  6.44k|            std::memcpy(&number, data + (read * size), size);
22615|  6.44k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 6.44k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  6.44k|            ++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|  6.44k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  6.44k|            accepted = emit_ubjson_number(number);
22625|  6.44k|        }
22626|       |        // get_number() does not change current
22627|  2.09k|        ia.bulk_skip(read * size);
22628|  2.09k|        chars_read = start + (read * size);
22629|  2.09k|        remaining -= read;
22630|  2.09k|        return accepted;
22631|  2.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_EEE18emit_ubjson_numberIjTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22667|  6.44k|    {
22668|  6.44k|        return emit_unsigned(number);
22669|  6.44k|    }
_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_runImEEbRm:
22598|  2.28k|    {
22599|  2.28k|        constexpr std::size_t size = sizeof(NumberType);
22600|  2.28k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  2.28k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 756, False: 1.52k]
  ------------------
22602|    756|        {
22603|    756|            return true;
22604|    756|        }
22605|  1.52k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  1.52k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  1.52k|        const std::size_t start = chars_read;
22609|  1.52k|        std::size_t read = 0;
22610|  1.52k|        bool accepted = true;
22611|  5.76k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.23k, False: 1.52k]
  |  Branch (22611:32): [True: 4.23k, False: 0]
  ------------------
22612|  4.23k|        {
22613|  4.23k|            NumberType number{};
22614|  4.23k|            std::memcpy(&number, data + (read * size), size);
22615|  4.23k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 4.23k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  4.23k|            ++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.23k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.23k|            accepted = emit_ubjson_number(number);
22625|  4.23k|        }
22626|       |        // get_number() does not change current
22627|  1.52k|        ia.bulk_skip(read * size);
22628|  1.52k|        chars_read = start + (read * size);
22629|  1.52k|        remaining -= read;
22630|  1.52k|        return accepted;
22631|  2.28k|    }
_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_numberImTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISQ_EE5valueEiE4typeELi0EEEbSQ_:
22667|  4.23k|    {
22668|  4.23k|        return emit_unsigned(number);
22669|  4.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_EEE22parse_ubjson_typed_runIfEEbRm:
22598|  2.46k|    {
22599|  2.46k|        constexpr std::size_t size = sizeof(NumberType);
22600|  2.46k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  2.46k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 762, False: 1.70k]
  ------------------
22602|    762|        {
22603|    762|            return true;
22604|    762|        }
22605|  1.70k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  1.70k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  1.70k|        const std::size_t start = chars_read;
22609|  1.70k|        std::size_t read = 0;
22610|  1.70k|        bool accepted = true;
22611|  11.5k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 9.85k, False: 1.70k]
  |  Branch (22611:32): [True: 9.85k, False: 0]
  ------------------
22612|  9.85k|        {
22613|  9.85k|            NumberType number{};
22614|  9.85k|            std::memcpy(&number, data + (read * size), size);
22615|  9.85k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 9.85k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  9.85k|            ++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|  9.85k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  9.85k|            accepted = emit_ubjson_number(number);
22625|  9.85k|        }
22626|       |        // get_number() does not change current
22627|  1.70k|        ia.bulk_skip(read * size);
22628|  1.70k|        chars_read = start + (read * size);
22629|  1.70k|        remaining -= read;
22630|  1.70k|        return accepted;
22631|  2.46k|    }
_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|  9.85k|    {
22656|  9.85k|        return emit_float(number);
22657|  9.85k|    }
_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|  3.43k|    {
22599|  3.43k|        constexpr std::size_t size = sizeof(NumberType);
22600|  3.43k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  3.43k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 666, False: 2.76k]
  ------------------
22602|    666|        {
22603|    666|            return true;
22604|    666|        }
22605|  2.76k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|  2.76k|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|  2.76k|        const std::size_t start = chars_read;
22609|  2.76k|        std::size_t read = 0;
22610|  2.76k|        bool accepted = true;
22611|  47.7k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 44.9k, False: 2.76k]
  |  Branch (22611:32): [True: 44.9k, False: 0]
  ------------------
22612|  44.9k|        {
22613|  44.9k|            NumberType number{};
22614|  44.9k|            std::memcpy(&number, data + (read * size), size);
22615|  44.9k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 44.9k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  44.9k|            ++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|  44.9k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  44.9k|            accepted = emit_ubjson_number(number);
22625|  44.9k|        }
22626|       |        // get_number() does not change current
22627|  2.76k|        ia.bulk_skip(read * size);
22628|  2.76k|        chars_read = start + (read * size);
22629|  2.76k|        remaining -= read;
22630|  2.76k|        return accepted;
22631|  3.43k|    }
_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|  44.9k|    {
22656|  44.9k|        return emit_float(number);
22657|  44.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_binaryImEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  10.4k|    {
23868|  10.4k|        return get_bytes(len, "binary", result);
23869|  10.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_EEE17get_ubjson_objectEv:
22820|  94.2k|    {
22821|  94.2k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  94.2k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  94.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 94.1k]
  |  |  ------------------
  ------------------
22823|    153|        {
22824|    153|            return false;
22825|    153|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  94.1k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 6, False: 94.1k]
  ------------------
22829|      6|        {
22830|      6|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      6|        }
22832|       |
22833|  94.1k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 33.2k, False: 60.8k]
  ------------------
22834|  33.2k|        {
22835|  33.2k|            return enter_object(size_and_type.first, size_and_type.second);
22836|  33.2k|        }
22837|       |
22838|  60.8k|        return enter_object(detail::unknown_size());
22839|  94.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_EEE17get_ubjson_stringERSC_bPKc:
21943|   234k|    {
21944|   234k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 134k, False: 100k]
  ------------------
21945|   134k|        {
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|   134k|            get();
21951|   134k|        }
21952|       |
21953|   234k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|   234k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 337, False: 234k]
  |  |  ------------------
  ------------------
21954|    337|        {
21955|    337|            return false;
21956|    337|        }
21957|       |
21958|   234k|        switch (current)
21959|   234k|        {
21960|  65.6k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 65.6k, False: 168k]
  ------------------
21961|  65.6k|            {
21962|  65.6k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|   156k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 156k, False: 77.4k]
  ------------------
21966|   156k|            {
21967|   156k|                std::int8_t len{};
21968|   156k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 156k, False: 6]
  |  Branch (21968:43): [True: 156k, False: 15]
  |  Branch (21968:78): [True: 156k, False: 111]
  |  Branch (21968:105): [True: 156k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|  2.06k|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 2.06k, False: 232k]
  ------------------
21972|  2.06k|            {
21973|  2.06k|                std::int16_t len{};
21974|  2.06k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 2.04k, False: 21]
  |  Branch (21974:43): [True: 2.03k, False: 9]
  |  Branch (21974:78): [True: 1.89k, False: 144]
  |  Branch (21974:105): [True: 1.89k, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|  1.59k|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 1.59k, False: 232k]
  ------------------
21978|  1.59k|            {
21979|  1.59k|                std::int32_t len{};
21980|  1.59k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 1.56k, False: 30]
  |  Branch (21980:43): [True: 1.47k, False: 96]
  |  Branch (21980:78): [True: 1.23k, False: 240]
  |  Branch (21980:105): [True: 1.23k, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|  1.62k|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 1.62k, False: 232k]
  ------------------
21984|  1.62k|            {
21985|  1.62k|                std::int64_t len{};
21986|  1.62k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 1.58k, False: 42]
  |  Branch (21986:43): [True: 1.39k, False: 189]
  |  Branch (21986:78): [True: 951, False: 447]
  |  Branch (21986:105): [True: 951, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|  2.65k|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 2.65k, False: 231k]
  ------------------
21990|  2.65k|            {
21991|  2.65k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 0, False: 2.65k]
  ------------------
21992|      0|                {
21993|      0|                    break;
21994|      0|                }
21995|  2.65k|                return get_string_with_length<std::uint16_t>(result, context);
21996|  2.65k|            }
21997|       |
21998|  1.30k|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 1.30k, False: 233k]
  ------------------
21999|  1.30k|            {
22000|  1.30k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 0, False: 1.30k]
  ------------------
22001|      0|                {
22002|      0|                    break;
22003|      0|                }
22004|  1.30k|                return get_string_with_length<std::uint32_t>(result, context);
22005|  1.30k|            }
22006|       |
22007|  1.75k|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 1.75k, False: 232k]
  ------------------
22008|  1.75k|            {
22009|  1.75k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 0, False: 1.75k]
  ------------------
22010|      0|                {
22011|      0|                    break;
22012|      0|                }
22013|  1.75k|                return get_string_with_length<std::uint64_t>(result, context);
22014|  1.75k|            }
22015|       |
22016|    129|            default:
  ------------------
  |  Branch (22016:13): [True: 129, False: 234k]
  ------------------
22017|    129|                break;
22018|   234k|        }
22019|    129|        return length_type_error("", "string");
22020|   234k|    }
_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|   156k|    {
21921|   156k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|   156k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 15, False: 156k]
  |  |  ------------------
  ------------------
21922|     15|        {
21923|     15|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     15|        }
21925|   156k|        return true;
21926|   156k|    }
_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|   156k|    {
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|   156k|        return get_bytes(len, "string", result);
23778|   156k|    }
_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|   156k|    {
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|   156k|        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|   156k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 131k, False: 25.4k]
  ------------------
23898|   131k|        {
23899|   131k|            return true;
23900|   131k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  25.4k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  25.4k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 111, False: 25.3k]
  ------------------
23906|    111|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    111|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 111, False: 0]
  ------------------
23910|    111|                                       ? static_cast<std::size_t>(len)
23911|    111|                                       : chunk_size;
23912|    111|            const std::size_t old_size = result.size();
23913|    111|            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|    111|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    111|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 111, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    111|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    111|            chars_read += bytes_read;
23921|    111|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    111|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 111, False: 0]
  |  |  ------------------
  ------------------
23922|    111|            {
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|    111|                result.resize(old_size + bytes_read);
23927|    111|                ++chars_read;
23928|    111|                current = char_traits<char_type>::eof();
23929|    111|                return unexpect_eof(context);
23930|    111|            }
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|  25.3k|        return true;
23936|  25.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_EEE17append_from_blockIaEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|   156k|    {
23943|   156k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 25.3k, False: 131k]
  ------------------
23944|  25.3k|        {
23945|  25.3k|            return false;
23946|  25.3k|        }
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|   131k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|   131k|        const std::size_t remaining = ia.bulk_remaining();
23951|   131k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 111, False: 131k]
  ------------------
23952|    111|        {
23953|    111|            return false; // (the loop reports the premature end)
23954|    111|        }
23955|   131k|        const auto n = static_cast<std::size_t>(ulen);
23956|   131k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|   131k|        ia.bulk_skip(n);
23958|   131k|        chars_read += n;
23959|   131k|        return true;
23960|   131k|    }
_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.04k|    {
21921|  2.04k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 2.03k]
  |  |  ------------------
  ------------------
21922|      9|        {
21923|      9|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      9|        }
21925|  2.03k|        return true;
21926|  2.04k|    }
_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.03k|    {
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.03k|        return get_bytes(len, "string", result);
23778|  2.03k|    }
_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.03k|    {
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.03k|        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.03k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 1.19k, False: 849]
  ------------------
23898|  1.19k|        {
23899|  1.19k|            return true;
23900|  1.19k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    849|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    849|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 144, False: 705]
  ------------------
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: 87, False: 57]
  ------------------
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|    705|        return true;
23936|    849|    }
_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.03k|    {
23943|  2.03k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 705, False: 1.33k]
  ------------------
23944|    705|        {
23945|    705|            return false;
23946|    705|        }
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.33k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  1.33k|        const std::size_t remaining = ia.bulk_remaining();
23951|  1.33k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 144, False: 1.19k]
  ------------------
23952|    144|        {
23953|    144|            return false; // (the loop reports the premature end)
23954|    144|        }
23955|  1.19k|        const auto n = static_cast<std::size_t>(ulen);
23956|  1.19k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  1.19k|        ia.bulk_skip(n);
23958|  1.19k|        chars_read += n;
23959|  1.19k|        return true;
23960|  1.33k|    }
_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.56k|    {
21921|  1.56k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  1.56k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 96, False: 1.47k]
  |  |  ------------------
  ------------------
21922|     96|        {
21923|     96|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     96|        }
21925|  1.47k|        return true;
21926|  1.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE26check_ubjson_string_lengthIlEEbT_:
21920|  1.58k|    {
21921|  1.58k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 189, False: 1.39k]
  |  |  ------------------
  ------------------
21922|    189|        {
21923|    189|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|    189|        }
21925|  1.39k|        return true;
21926|  1.58k|    }
_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.39k|    {
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.39k|        return get_bytes(len, "string", result);
23778|  1.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_EEE9get_bytesIlSC_EEbT_PKcRT0_:
23893|  1.39k|    {
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.39k|        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.39k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 423, False: 975]
  ------------------
23898|    423|        {
23899|    423|            return true;
23900|    423|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    975|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    975|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 447, False: 528]
  ------------------
23906|    447|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    447|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 105, False: 342]
  ------------------
23910|    447|                                       ? static_cast<std::size_t>(len)
23911|    447|                                       : chunk_size;
23912|    447|            const std::size_t old_size = result.size();
23913|    447|            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|    447|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    447|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 447, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    447|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    447|            chars_read += bytes_read;
23921|    447|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    447|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 447, False: 0]
  |  |  ------------------
  ------------------
23922|    447|            {
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|    447|                result.resize(old_size + bytes_read);
23927|    447|                ++chars_read;
23928|    447|                current = char_traits<char_type>::eof();
23929|    447|                return unexpect_eof(context);
23930|    447|            }
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|    528|        return true;
23936|    975|    }
_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.39k|    {
23943|  1.39k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 528, False: 870]
  ------------------
23944|    528|        {
23945|    528|            return false;
23946|    528|        }
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|    870|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    870|        const std::size_t remaining = ia.bulk_remaining();
23951|    870|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 447, False: 423]
  ------------------
23952|    447|        {
23953|    447|            return false; // (the loop reports the premature end)
23954|    447|        }
23955|    423|        const auto n = static_cast<std::size_t>(ulen);
23956|    423|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    423|        ia.bulk_skip(n);
23958|    423|        chars_read += n;
23959|    423|        return true;
23960|    870|    }
_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_lengthImEEbRSC_PKc:
23846|  1.75k|    {
23847|  1.75k|        NumberType len{};
23848|  1.75k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 1.69k, False: 60]
  |  Branch (23848:35): [True: 1.17k, False: 516]
  |  Branch (23848:62): [True: 1.17k, False: 0]
  ------------------
23849|  1.75k|    }
_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_stringImEEbT_RSC_:
23767|  1.69k|    {
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.69k|        return get_bytes(len, "string", result);
23778|  1.69k|    }
_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.67k|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|  2.67k|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|  2.67k|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 2.27k, False: 399]
  ------------------
24059|  2.67k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRKS9_RPKcRA16_SC_S9_EEET_DpOT0_:
 5537|    798|{
 5538|    798|    OutStringType str;
 5539|    798|    str.reserve(concat_length(args...));
 5540|    798|    concat_into(str, std::forward<Args>(args)...);
 5541|    798|    return str;
 5542|    798|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJPKcA16_cS9_EEEmRKT_DpRKT0_:
 5447|    798|{
 5448|    798|    return str.size() + concat_length(rest...);
 5449|    798|}
_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|    798|{
 5501|    798|    out.append(std::forward<Arg>(arg));
 5502|    798|    concat_into(out, std::forward<Args>(rest)...);
 5503|    798|}
_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|  2.32M|    {
23523|  2.32M|        do
23524|  2.34M|        {
23525|  2.34M|            get();
23526|  2.34M|        }
23527|  2.34M|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 17.8k, False: 2.32M]
  ------------------
23528|       |
23529|  2.32M|        return current;
23530|  2.32M|    }
_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|  3.04M|    {
23489|  3.04M|        ++chars_read;
23490|  3.04M|        return current = ia.get_character();
23491|  3.04M|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E13get_characterEv:
10272|  3.04M|    {
10273|  3.04M|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  3.04M|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.96M, False: 80.2k]
  |  |  ------------------
  ------------------
10274|  2.96M|        {
10275|  2.96M|            auto result = char_traits<char_type>::to_int_type(*current);
10276|  2.96M|            std::advance(current, 1);
10277|  2.96M|            return result;
10278|  2.96M|        }
10279|       |
10280|  80.2k|        ++eof_reads;
10281|  80.2k|        return char_traits<char_type>::eof();
10282|  3.04M|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE11to_int_typeEh:
 4453|  3.47M|    {
 4454|  3.47M|        return static_cast<int_type>(c);
 4455|  3.47M|    }
_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|  95.3k|        {
19135|  95.3k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 95.3k, False: 0]
  ------------------
19136|  95.3k|            {
19137|  95.3k|                parser->set_reserve_state(saved);
19138|  95.3k|            }
19139|  95.3k|        }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17set_reserve_stateERKNS2_13reserve_stateE:
16673|   143k|    {
16674|   143k|        input_position = state.position;
16675|   143k|        credit_position = state.position_at_refill;
16676|   143k|        reserve_credit = state.credit;
16677|   143k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ENS0_6detail7value_tE:
42516|   929k|        : m_data(stored_kind(v))
42517|   929k|    {
42518|   929k|        assert_invariant();
42519|   929k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11stored_kindENS0_6detail7value_tE:
40726|   929k|    {
40727|   929k|        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: 929k]
  |  Branch (40727:77): [True: 0, False: 0]
  ------------------
40728|   929k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2ENS0_6detail7value_tE:
46514|   929k|            : m_type(v), m_value(v)
46515|   929k|        {
46516|   929k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ENS0_6detail7value_tE:
40813|   929k|        {
40814|   929k|            switch (t)
40815|   929k|            {
40816|   169k|                case value_t::object:
  ------------------
  |  Branch (40816:17): [True: 169k, False: 760k]
  ------------------
40817|   922k|                case value_t::array:
  ------------------
  |  Branch (40817:17): [True: 752k, False: 177k]
  ------------------
40818|   922k|                case value_t::string:
  ------------------
  |  Branch (40818:17): [True: 0, False: 929k]
  ------------------
40819|   922k|                case value_t::binary:
  ------------------
  |  Branch (40819:17): [True: 0, False: 929k]
  ------------------
40820|   922k|                {
40821|       |                    // allocating: kept out of line, so the scalar cases below inline
40822|   922k|                    init_owned(t);
40823|   922k|                    break;
40824|   922k|                }
40825|       |
40826|      0|                case value_t::boolean:
  ------------------
  |  Branch (40826:17): [True: 0, False: 929k]
  ------------------
40827|      0|                {
40828|      0|                    boolean = static_cast<boolean_t>(false);
40829|      0|                    break;
40830|   922k|                }
40831|       |
40832|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40832:17): [True: 0, False: 929k]
  ------------------
40833|      0|                {
40834|      0|                    number_integer = static_cast<number_integer_t>(0);
40835|      0|                    break;
40836|   922k|                }
40837|       |
40838|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40838:17): [True: 0, False: 929k]
  ------------------
40839|      0|                {
40840|      0|                    number_unsigned = static_cast<number_unsigned_t>(0);
40841|      0|                    break;
40842|   922k|                }
40843|       |
40844|      0|                case value_t::number_float:
  ------------------
  |  Branch (40844:17): [True: 0, False: 929k]
  ------------------
40845|      0|                {
40846|      0|                    number_float = static_cast<number_float_t>(0.0);
40847|      0|                    break;
40848|   922k|                }
40849|       |
40850|      0|                case value_t::null:
  ------------------
  |  Branch (40850:17): [True: 0, False: 929k]
  ------------------
40851|      0|                {
40852|      0|                    object = nullptr;  // silence warning, see #821
40853|      0|                    break;
40854|   922k|                }
40855|       |
40856|  7.54k|                case value_t::discarded:
  ------------------
  |  Branch (40856:17): [True: 7.54k, False: 922k]
  ------------------
40857|  7.54k|                default:
  ------------------
  |  Branch (40857:17): [True: 0, False: 929k]
  ------------------
40858|  7.54k|                {
40859|  7.54k|                    object = nullptr;  // silence warning, see #821
40860|  7.54k|                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
  ------------------
  |  | 1697|  7.54k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.54k]
  |  |  ------------------
  ------------------
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|  7.54k|                    break;
40865|  7.54k|                }
40866|   929k|            }
40867|   929k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value10init_ownedENS0_6detail7value_tE:
40871|   922k|        {
40872|   922k|            switch (t)
40873|   922k|            {
40874|   169k|                case value_t::object:
  ------------------
  |  Branch (40874:17): [True: 169k, False: 752k]
  ------------------
40875|   169k|                    object = create<object_t>();
40876|   169k|                    break;
40877|   752k|                case value_t::array:
  ------------------
  |  Branch (40877:17): [True: 752k, False: 169k]
  ------------------
40878|   752k|                    array = create<array_t>();
40879|   752k|                    break;
40880|      0|                case value_t::string:
  ------------------
  |  Branch (40880:17): [True: 0, False: 922k]
  ------------------
40881|      0|                    string = create<string_t>("");
40882|      0|                    break;
40883|      0|                case value_t::binary:
  ------------------
  |  Branch (40883:17): [True: 0, False: 922k]
  ------------------
40884|      0|                    binary = create<binary_t>();
40885|      0|                    break;
40886|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (40886:17): [True: 0, False: 922k]
  ------------------
40887|      0|                case value_t::boolean:
  ------------------
  |  Branch (40887:17): [True: 0, False: 922k]
  ------------------
40888|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40888:17): [True: 0, False: 922k]
  ------------------
40889|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40889:17): [True: 0, False: 922k]
  ------------------
40890|      0|                case value_t::number_float:
  ------------------
  |  Branch (40890:17): [True: 0, False: 922k]
  ------------------
40891|      0|                case value_t::discarded:
  ------------------
  |  Branch (40891:17): [True: 0, False: 922k]
  ------------------
40892|      0|                default:
  ------------------
  |  Branch (40892:17): [True: 0, False: 922k]
  ------------------
40893|      0|                    break; // LCOV_EXCL_LINE
40894|   922k|            }
40895|   922k|        }
_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|   169k|    {
40735|   169k|        AllocatorType<T> alloc;
40736|   169k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|   169k|        auto deleter = [&](T * obj)
40739|   169k|        {
40740|   169k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|   169k|        };
40742|   169k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|   169k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|   169k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|   169k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 169k, False: 0]
  ------------------
40745|   169k|        return obj.release();
40746|   169k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS4_ISE_NS8_ISE_EEEEJEEEPT_DpOT0_:
40734|   752k|    {
40735|   752k|        AllocatorType<T> alloc;
40736|   752k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|   752k|        auto deleter = [&](T * obj)
40739|   752k|        {
40740|   752k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|   752k|        };
40742|   752k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|   752k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|   752k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|   752k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 752k, False: 0]
  ------------------
40745|   752k|        return obj.release();
40746|   752k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEaSESE_:
42928|   448k|    {
42929|       |        // check that the passed value is valid
42930|   448k|        other.assert_invariant();
42931|       |
42932|   448k|        using std::swap;
42933|   448k|        swap(m_data.m_type, other.m_data.m_type);
42934|   448k|        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|   448k|        json_base_class_t::operator=(std::move(other));
42942|       |
42943|   448k|        set_parents();
42944|   448k|        assert_invariant();
42945|   448k|        return *this;
42946|   448k|    }
_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|  95.3k|    ~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|  95.3k|    ~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|  79.4k|{
10853|  79.4k|    return input_adapter(container.data(), container.data() + container.size());
10854|  79.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterIPKhS4_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES6_S7_:
10755|  95.3k|{
10756|  95.3k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  95.3k|    return factory_type::create(first, last);
10758|  95.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryIPKhS4_vE6createES4_S4_:
10617|  95.3k|    {
10618|  95.3k|        return adapter_type(std::move(first), std::move(last));
10619|  95.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_EC2ES4_S4_:
10268|  95.3k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  95.3k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9to_bjdataERKSE_bbNS0_6detail16bjdata_version_tENSH_15error_handler_tE:
46698|  47.5k|    {
46699|  47.5k|        return to_binary_vector(j, error_handler, [&](vector_binary_writer<std::uint8_t>& w)
46700|  47.5k|        {
46701|  47.5k|            w.write_ubjson(j, use_size, use_type, true, true, version);
46702|  47.5k|        });
46703|  47.5k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16to_binary_vectorIZNSE_9to_bjdataERKSE_bbNS0_6detail16bjdata_version_tENSI_15error_handler_tEEUlRNSI_13binary_writerISE_hNSI_18output_vector_sinkIhSC_EEEEE_EESD_SH_SK_T_:
43400|  47.5k|    {
43401|  47.5k|        std::vector<std::uint8_t> result;
43402|  47.5k|        result.reserve(detail::binary_initial_capacity(j));
43403|  47.5k|        {
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|  47.5k|            auto writer = vector_writer(result, error_handler);
43407|  47.5k|            write(writer);
43408|  47.5k|        }
43409|  47.5k|        return result;
43410|  47.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23binary_initial_capacityINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30426|  47.5k|{
30427|  47.5k|    return (std::max)(binary_reserve_hint(j), min_vector_sink_capacity);
30428|  47.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail19binary_reserve_hintINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30401|  47.5k|{
30402|  47.5k|    if (j.is_array())
  ------------------
  |  Branch (30402:9): [True: 20.9k, False: 26.6k]
  ------------------
30403|  20.9k|    {
30404|  20.9k|        return j.size() + 1;
30405|  20.9k|    }
30406|       |
30407|  26.6k|    if (j.is_object())
  ------------------
  |  Branch (30407:9): [True: 11.0k, False: 15.6k]
  ------------------
30408|  11.0k|    {
30409|  11.0k|        return (j.size() * 2) + 1;
30410|  11.0k|    }
30411|       |
30412|  15.6k|    return 0;
30413|  26.6k|}
_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|  47.5k|    {
40417|  47.5k|        return vector_binary_writer<CharType>(::nlohmann::detail::output_vector_sink<CharType>(v), error_handler);
40418|  47.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2ERNS3_6vectorIhS5_EE:
29861|  47.5k|        : v(&vec), cursor(vec.data() + vec.size()), limit(cursor)
29862|  47.5k|    {}
_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|  47.5k|        : oa(std::move(sink)), error_handler(error_handler_)
30459|  47.5k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2EOS6_:
29869|  47.5k|        : v(other.v), cursor(other.cursor), limit(other.limit)
29870|  47.5k|    {
29871|  47.5k|        other.v = nullptr;
29872|  47.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEED2Ev:
29875|  95.1k|    {
29876|  95.1k|        if (v != nullptr)
  ------------------
  |  Branch (29876:13): [True: 47.5k, False: 47.5k]
  ------------------
29877|  47.5k|        {
29878|  47.5k|            v->resize(position());
29879|  47.5k|        }
29880|  95.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE8positionEv:
29978|   141k|    {
29979|   141k|        return static_cast<std::size_t>(cursor - v->data());
29980|   141k|    }
_ZZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9to_bjdataERKSE_bbNS0_6detail16bjdata_version_tENSH_15error_handler_tEENKUlRNSH_13binary_writerISE_hNSH_18output_vector_sinkIhSC_EEEEE_clESO_:
46700|  47.5k|        {
46701|  47.5k|            w.write_ubjson(j, use_size, use_type, true, true, version);
46702|  47.5k|        });
_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|   481k|    {
30903|   481k|        if (JSON_HEDLEY_UNLIKELY(depth >= recursion_depth_limit()) && (j.is_array() || j.is_object()))
  ------------------
  |  | 1697|   962k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5.19k, False: 476k]
  |  |  ------------------
  ------------------
  |  Branch (30903:72): [True: 1.62k, False: 3.56k]
  |  Branch (30903:88): [True: 2.59k, False: 967]
  ------------------
30904|  4.22k|        {
30905|  4.22k|            write_ubjson_iterative(j, use_count, use_type, add_prefix, use_bjdata, bjdata_version);
30906|  4.22k|            return;
30907|  4.22k|        }
30908|       |
30909|   477k|        const bool bjdata_draft3 = use_bjdata && bjdata_version == bjdata_version_t::draft3;
  ------------------
  |  Branch (30909:36): [True: 477k, False: 0]
  |  Branch (30909:50): [True: 0, False: 477k]
  ------------------
30910|       |
30911|   477k|        switch (j.type())
30912|   477k|        {
30913|  26.5k|            case value_t::null:
  ------------------
  |  Branch (30913:13): [True: 26.5k, False: 450k]
  ------------------
30914|  26.5k|            {
30915|  26.5k|                if (add_prefix)
  ------------------
  |  Branch (30915:21): [True: 26.5k, False: 0]
  ------------------
30916|  26.5k|                {
30917|  26.5k|                    oa.write_character(to_char_type('Z'));
30918|  26.5k|                }
30919|  26.5k|                break;
30920|      0|            }
30921|       |
30922|  48.0k|            case value_t::boolean:
  ------------------
  |  Branch (30922:13): [True: 48.0k, False: 429k]
  ------------------
30923|  48.0k|            {
30924|  48.0k|                if (add_prefix)
  ------------------
  |  Branch (30924:21): [True: 48.0k, False: 0]
  ------------------
30925|  48.0k|                {
30926|  48.0k|                    oa.write_character(j.m_data.m_value.boolean
  ------------------
  |  Branch (30926:40): [True: 25.0k, False: 23.0k]
  ------------------
30927|  48.0k|                                       ? to_char_type('T')
30928|  48.0k|                                       : to_char_type('F'));
30929|  48.0k|                }
30930|  48.0k|                break;
30931|      0|            }
30932|       |
30933|  14.7k|            case value_t::number_integer:
  ------------------
  |  Branch (30933:13): [True: 14.7k, False: 462k]
  ------------------
30934|  26.6k|            case value_t::number_unsigned:
  ------------------
  |  Branch (30934:13): [True: 11.9k, False: 465k]
  ------------------
30935|  26.6k|            {
30936|  26.6k|                if (j.m_data.m_type == value_t::number_integer)
  ------------------
  |  Branch (30936:21): [True: 14.7k, False: 11.9k]
  ------------------
30937|  14.7k|                {
30938|  14.7k|                    write_number_with_ubjson_prefix(j.m_data.m_value.number_integer, add_prefix, use_bjdata);
30939|  14.7k|                }
30940|  11.9k|                else
30941|  11.9k|                {
30942|  11.9k|                    write_number_with_ubjson_prefix(j.m_data.m_value.number_unsigned, add_prefix, use_bjdata);
30943|  11.9k|                }
30944|  26.6k|                break;
30945|  14.7k|            }
30946|       |
30947|  23.8k|            case value_t::number_float:
  ------------------
  |  Branch (30947:13): [True: 23.8k, False: 453k]
  ------------------
30948|  23.8k|            {
30949|  23.8k|                write_number_with_ubjson_prefix(j.m_data.m_value.number_float, add_prefix, use_bjdata);
30950|  23.8k|                break;
30951|  14.7k|            }
30952|       |
30953|  47.3k|            case value_t::string:
  ------------------
  |  Branch (30953:13): [True: 47.3k, False: 429k]
  ------------------
30954|  47.3k|            {
30955|  47.3k|                write_ubjson_text(*j.m_data.m_value.string, j, add_prefix, use_bjdata);
30956|  47.3k|                break;
30957|  14.7k|            }
30958|       |
30959|   238k|            case value_t::array:
  ------------------
  |  Branch (30959:13): [True: 238k, False: 238k]
  ------------------
30960|   238k|            {
30961|   238k|                bool prefix_required = true;
30962|   238k|                const bool write_closer = write_ubjson_start_container<true>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
30963|       |
30964|   238k|                {
30965|   238k|                    const auto& array = *j.m_data.m_value.array;
30966|   238k|                    if (starts_with_ubjson_number(array, use_bjdata, std::integral_constant<bool, ubjson_integers_fit_64_bits()>()))
  ------------------
  |  Branch (30966:25): [True: 45.0k, False: 193k]
  ------------------
30967|  45.0k|                    {
30968|  45.0k|                        write_ubjson_array_elements(array, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth);
30969|  45.0k|                    }
30970|   193k|                    else
30971|   193k|                    {
30972|   193k|                        for (const auto& el : array)
  ------------------
  |  Branch (30972:45): [True: 379k, False: 193k]
  ------------------
30973|   379k|                        {
30974|   379k|                            write_ubjson(el, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
30975|   379k|                        }
30976|   193k|                    }
30977|   238k|                }
30978|       |
30979|   238k|                if (write_closer)
  ------------------
  |  Branch (30979:21): [True: 88.6k, False: 150k]
  ------------------
30980|  88.6k|                {
30981|  88.6k|                    oa.write_character(to_char_type(']'));
30982|  88.6k|                }
30983|       |
30984|   238k|                break;
30985|  14.7k|            }
30986|       |
30987|  6.73k|            case value_t::binary:
  ------------------
  |  Branch (30987:13): [True: 6.73k, False: 470k]
  ------------------
30988|  6.73k|            {
30989|  6.73k|                if (add_prefix)
  ------------------
  |  Branch (30989:21): [True: 6.73k, False: 0]
  ------------------
30990|  6.73k|                {
30991|  6.73k|                    oa.write_character(to_char_type('['));
30992|  6.73k|                }
30993|       |
30994|  6.73k|                if (use_type && (bjdata_draft3 || !j.m_data.m_value.binary->empty()))
  ------------------
  |  Branch (30994:21): [True: 2.24k, False: 4.48k]
  |  Branch (30994:34): [True: 0, False: 2.24k]
  |  Branch (30994:51): [True: 1.45k, False: 791]
  ------------------
30995|  1.45k|                {
30996|  1.45k|                    if (!use_count)
  ------------------
  |  Branch (30996:25): [True: 0, False: 1.45k]
  ------------------
30997|      0|                    {
30998|      0|                        throw_size_marker_required(j);
30999|      0|                    }
31000|  1.45k|                    oa.write_character(to_char_type('$'));
31001|  1.45k|                    oa.write_character(bjdata_draft3 ? 'B' : 'U');
  ------------------
  |  Branch (31001:40): [True: 0, False: 1.45k]
  ------------------
31002|  1.45k|                }
31003|       |
31004|  6.73k|                if (use_count)
  ------------------
  |  Branch (31004:21): [True: 4.48k, False: 2.24k]
  ------------------
31005|  4.48k|                {
31006|  4.48k|                    oa.write_character(to_char_type('#'));
31007|  4.48k|                    write_number_with_ubjson_prefix(j.m_data.m_value.binary->size(), true, use_bjdata);
31008|  4.48k|                }
31009|       |
31010|  6.73k|                if (use_type)
  ------------------
  |  Branch (31010:21): [True: 2.24k, False: 4.48k]
  ------------------
31011|  2.24k|                {
31012|  2.24k|                    write_bytes(j.m_data.m_value.binary->data(), j.m_data.m_value.binary->size());
31013|  2.24k|                }
31014|  4.48k|                else
31015|  4.48k|                {
31016|  4.48k|                    write_ubjson_binary_bytes(*j.m_data.m_value.binary, bjdata_draft3);
31017|  4.48k|                }
31018|       |
31019|  6.73k|                if (!use_count)
  ------------------
  |  Branch (31019:21): [True: 2.24k, False: 4.48k]
  ------------------
31020|  2.24k|                {
31021|  2.24k|                    oa.write_character(to_char_type(']'));
31022|  2.24k|                }
31023|       |
31024|  6.73k|                break;
31025|  14.7k|            }
31026|       |
31027|  59.2k|            case value_t::object:
  ------------------
  |  Branch (31027:13): [True: 59.2k, False: 417k]
  ------------------
31028|  59.2k|            {
31029|  59.2k|                if (use_bjdata && is_bjdata_ndarray(j))
  ------------------
  |  Branch (31029:21): [True: 59.2k, False: 0]
  |  Branch (31029:35): [True: 22.8k, False: 36.3k]
  ------------------
31030|  22.8k|                {
31031|  22.8k|                    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: 11.9k, False: 10.9k]
  ------------------
31032|  11.9k|                    {
31033|  11.9k|                        break;
31034|  11.9k|                    }
31035|  22.8k|                }
31036|       |
31037|  47.2k|                bool prefix_required = true;
31038|  47.2k|                const bool write_closer = write_ubjson_start_container<false>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31039|       |
31040|  47.2k|                write_ubjson_members(j, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth);
31041|       |
31042|  47.2k|                if (write_closer)
  ------------------
  |  Branch (31042:21): [True: 17.2k, False: 29.9k]
  ------------------
31043|  17.2k|                {
31044|  17.2k|                    oa.write_character(to_char_type('}'));
31045|  17.2k|                }
31046|       |
31047|  47.2k|                break;
31048|  59.2k|            }
31049|       |
31050|      0|            case value_t::discarded:
  ------------------
  |  Branch (31050:13): [True: 0, False: 477k]
  ------------------
31051|      0|            default:
  ------------------
  |  Branch (31051:13): [True: 0, False: 477k]
  ------------------
31052|      0|                throw_on_discarded(j, use_bjdata ? input_format_t::bjdata : input_format_t::ubjson);
  ------------------
  |  Branch (31052:39): [True: 0, False: 0]
  ------------------
31053|   477k|        }
31054|   477k|    }
_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|  4.22k|    {
31691|  4.22k|        std::vector<ubjson_frame> stack;
31692|  4.22k|        write_ubjson_value_or_push(root, add_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31693|       |
31694|  22.2k|        while (!stack.empty())
  ------------------
  |  Branch (31694:16): [True: 17.9k, False: 4.22k]
  ------------------
31695|  17.9k|        {
31696|  17.9k|            const ubjson_frame current = stack.back();
31697|  17.9k|            const BasicJsonType& j = *current.value;
31698|       |
31699|  17.9k|            if (j.is_array())
  ------------------
  |  Branch (31699:17): [True: 12.7k, False: 5.20k]
  ------------------
31700|  12.7k|            {
31701|  12.7k|                const auto& array = *j.m_data.m_value.array;
31702|  12.7k|                if (current.array_it == array.cend())
  ------------------
  |  Branch (31702:21): [True: 3.91k, False: 8.88k]
  ------------------
31703|  3.91k|                {
31704|  3.91k|                    if (!use_count)
  ------------------
  |  Branch (31704:25): [True: 1.37k, False: 2.53k]
  ------------------
31705|  1.37k|                    {
31706|  1.37k|                        oa.write_character(to_char_type(']'));
31707|  1.37k|                    }
31708|  3.91k|                    stack.pop_back();
31709|  3.91k|                    continue;
31710|  3.91k|                }
31711|       |
31712|  8.88k|                const BasicJsonType* child = &(*current.array_it);
31713|  8.88k|                const bool child_prefix = current.prefix_required;
31714|  8.88k|                ++stack.back().array_it;
31715|  8.88k|                write_ubjson_value_or_push(*child, child_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31716|  8.88k|            }
31717|  5.20k|            else
31718|  5.20k|            {
31719|  5.20k|                const auto& object = *j.m_data.m_value.object;
31720|  5.20k|                if (current.object_it == object.cend())
  ------------------
  |  Branch (31720:21): [True: 1.82k, False: 3.37k]
  ------------------
31721|  1.82k|                {
31722|  1.82k|                    if (!use_count)
  ------------------
  |  Branch (31722:25): [True: 668, False: 1.15k]
  ------------------
31723|    668|                    {
31724|    668|                        oa.write_character(to_char_type('}'));
31725|    668|                    }
31726|  1.82k|                    stack.pop_back();
31727|  1.82k|                    continue;
31728|  1.82k|                }
31729|       |
31730|       |                // a converted key must outlive the reference returned by sanitize_utf8_for_write
31731|  3.37k|                const object_key_string_t key_string = current.object_it->first;
31732|  3.37k|                write_ubjson_text(key_string, j, false, use_bjdata);
31733|  3.37k|                const BasicJsonType* child = &(current.object_it->second);
31734|  3.37k|                const bool child_prefix = current.prefix_required;
31735|  3.37k|                ++stack.back().object_it;
31736|  3.37k|                write_ubjson_value_or_push(*child, child_prefix, use_count, use_type, use_bjdata, bjdata_version, stack);
31737|  3.37k|            }
31738|  17.9k|        }
31739|  4.22k|    }
_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|  16.4k|    {
31643|  16.4k|        if (!j.is_array() && !j.is_object())
  ------------------
  |  Branch (31643:13): [True: 11.6k, False: 4.78k]
  |  Branch (31643:30): [True: 8.26k, False: 3.43k]
  ------------------
31644|  8.26k|        {
31645|  8.26k|            write_ubjson(j, use_count, use_type, add_prefix, use_bjdata, bjdata_version);
31646|  8.26k|            return;
31647|  8.26k|        }
31648|       |
31649|  8.21k|        if (use_bjdata && j.is_object() && is_bjdata_ndarray(j)
  ------------------
  |  Branch (31649:13): [True: 8.21k, False: 0]
  |  Branch (31649:27): [True: 3.43k, False: 4.78k]
  |  Branch (31649:44): [True: 440, False: 2.99k]
  ------------------
31650|    440|                && !write_bjdata_ndarray(*j.m_data.m_value.object, use_count, use_type, bjdata_version))
  ------------------
  |  Branch (31650:20): [True: 84, False: 356]
  ------------------
31651|     84|        {
31652|       |            // fully written as an ND-array: nothing below it to come back to
31653|     84|            return;
31654|     84|        }
31655|       |
31656|  8.13k|        const bool is_array = j.is_array();
31657|  8.13k|        bool prefix_required = true;
31658|  8.13k|        if (is_array)
  ------------------
  |  Branch (31658:13): [True: 4.78k, False: 3.34k]
  ------------------
31659|  4.78k|        {
31660|  4.78k|            write_ubjson_start_container<true>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31661|  4.78k|        }
31662|  3.34k|        else
31663|  3.34k|        {
31664|  3.34k|            write_ubjson_start_container<false>(j, use_count, use_type, add_prefix, use_bjdata, prefix_required);
31665|  3.34k|        }
31666|       |
31667|  8.13k|        const bool empty = is_array ? j.m_data.m_value.array->empty() : j.m_data.m_value.object->empty();
  ------------------
  |  Branch (31667:28): [True: 4.78k, False: 3.34k]
  ------------------
31668|  8.13k|        if (!empty)
  ------------------
  |  Branch (31668:13): [True: 5.73k, False: 2.39k]
  ------------------
31669|  5.73k|        {
31670|  5.73k|            stack.emplace_back(&j, prefix_required);
31671|  5.73k|            return;
31672|  5.73k|        }
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|  2.39k|        if (!use_count)
  ------------------
  |  Branch (31677:13): [True: 884, False: 1.51k]
  ------------------
31678|    884|        {
31679|    884|            oa.write_character(to_char_type(is_array ? ']' : '}'));
  ------------------
  |  Branch (31679:45): [True: 320, False: 564]
  ------------------
31680|    884|        }
31681|  2.39k|    }
_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|  5.73k|            : binary_container_frame(value_)
31611|  5.73k|            , prefix_required(prefix_required_)
31612|  5.73k|        {}
_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|  5.73k|            : value(value_)
31316|  5.73k|        {
31317|  5.73k|            if (value->is_object())
  ------------------
  |  Branch (31317:17): [True: 1.82k, False: 3.91k]
  ------------------
31318|  1.82k|            {
31319|  1.82k|                object_it = value->m_data.m_value.object->cbegin();
31320|  1.82k|            }
31321|  3.91k|            else
31322|  3.91k|            {
31323|  3.91k|                array_it = value->m_data.m_value.array->cbegin();
31324|  3.91k|            }
31325|  5.73k|        }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4typeEv:
42997|   758k|    {
42998|   758k|        return m_data.m_type;
42999|   758k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE15write_characterEh:
29886|   661k|    {
29887|   661k|        if (JSON_HEDLEY_UNLIKELY(cursor == limit))
  ------------------
  |  | 1697|   661k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 50.9k, False: 610k]
  |  |  ------------------
  ------------------
29888|  50.9k|        {
29889|  50.9k|            grow(1);
29890|  50.9k|        }
29891|   661k|        *cursor++ = c;
29892|   661k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE4growEm:
29993|  94.2k|    {
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|  94.2k|        const std::size_t written = position();
29998|  94.2k|        const std::size_t needed = written + length;
29999|  94.2k|        const std::size_t capacity = (std::max)(min_vector_sink_capacity, needed <= v->capacity()
  ------------------
  |  Branch (29999:75): [True: 47.5k, False: 46.7k]
  ------------------
30000|  94.2k|                                                ? v->capacity()
30001|  94.2k|                                                : (std::max)(needed, v->capacity() * 2));
30002|  94.2k|        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|  94.2k|        v->resize((std::min)(capacity, (std::max)(needed, written + vector_sink_window)));
30010|  94.2k|        cursor = v->data() + written;
30011|  94.2k|        limit = v->data() + v->size();
30012|  94.2k|    }
_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|  1.68M|    {
35773|  1.68M|        return x;
35774|  1.68M|    }
_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|  20.2k|    {
33848|  20.2k|        const CharType prefix = ubjson_integer_prefix(n, use_bjdata);
33849|  20.2k|        if (add_prefix)
  ------------------
  |  Branch (33849:13): [True: 18.1k, False: 2.07k]
  ------------------
33850|  18.1k|        {
33851|  18.1k|            oa.write_character(prefix);
33852|  18.1k|        }
33853|  20.2k|        write_ubjson_integer_payload(prefix, n, use_bjdata);
33854|  20.2k|    }
_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.1k|    {
34242|  37.1k|        if (value_in_range_of<std::int8_t>(n))
  ------------------
  |  Branch (34242:13): [True: 16.6k, False: 20.5k]
  ------------------
34243|  16.6k|        {
34244|  16.6k|            return 'i';
34245|  16.6k|        }
34246|  20.5k|        if (value_in_range_of<std::uint8_t>(n))
  ------------------
  |  Branch (34246:13): [True: 1.46k, False: 19.1k]
  ------------------
34247|  1.46k|        {
34248|  1.46k|            return 'U';
34249|  1.46k|        }
34250|  19.1k|        if (value_in_range_of<std::int16_t>(n))
  ------------------
  |  Branch (34250:13): [True: 6.21k, False: 12.8k]
  ------------------
34251|  6.21k|        {
34252|  6.21k|            return 'I';
34253|  6.21k|        }
34254|  12.8k|        if (use_bjdata && value_in_range_of<std::uint16_t>(n))
  ------------------
  |  Branch (34254:13): [True: 12.8k, False: 0]
  |  Branch (34254:27): [True: 749, False: 12.1k]
  ------------------
34255|    749|        {
34256|    749|            return 'u';
34257|    749|        }
34258|  12.1k|        if (value_in_range_of<std::int32_t>(n))
  ------------------
  |  Branch (34258:13): [True: 5.01k, False: 7.13k]
  ------------------
34259|  5.01k|        {
34260|  5.01k|            return 'l';
34261|  5.01k|        }
34262|  7.13k|        if (use_bjdata && value_in_range_of<std::uint32_t>(n))
  ------------------
  |  Branch (34262:13): [True: 7.13k, False: 0]
  |  Branch (34262:27): [True: 699, False: 6.43k]
  ------------------
34263|    699|        {
34264|    699|            return 'm';
34265|    699|        }
34266|  6.43k|        if (value_in_range_of<std::int64_t>(n))
  ------------------
  |  Branch (34266:13): [True: 6.43k, False: 0]
  ------------------
34267|  6.43k|        {
34268|  6.43k|            return 'L';
34269|  6.43k|        }
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|  49.5k|{
 5317|  49.5k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  49.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IalLb0EvE4testEl:
 5300|  49.5k|    {
 5301|  49.5k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  49.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IalLb1ELb1EE4testEl:
 5284|  49.5k|    {
 5285|  49.5k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  49.5k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 41.3k, False: 8.21k]
  ------------------
 5287|  41.3k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 27.7k, False: 13.5k]
  ------------------
 5288|  49.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIhlEEbT0_:
 5316|  22.4k|{
 5317|  22.4k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  22.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IhlLb0EvE4testEl:
 5300|  22.4k|    {
 5301|  22.4k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  22.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IhlLb0ELb1EE4testEl:
 5274|  22.4k|    {
 5275|  22.4k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  22.4k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 14.5k, False: 7.93k]
  |  Branch (5276:28): [True: 2.65k, False: 11.9k]
  ------------------
 5277|  22.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIslEEbT0_:
 5316|  26.4k|{
 5317|  26.4k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  26.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IslLb0EvE4testEl:
 5300|  26.4k|    {
 5301|  26.4k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  26.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IslLb1ELb1EE4testEl:
 5284|  26.4k|    {
 5285|  26.4k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  26.4k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 21.8k, False: 4.60k]
  ------------------
 5287|  21.8k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 13.3k, False: 8.49k]
  ------------------
 5288|  26.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofItlEEbT0_:
 5316|  14.6k|{
 5317|  14.6k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  14.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ItlLb0EvE4testEl:
 5300|  14.6k|    {
 5301|  14.6k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  14.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ItlLb0ELb1EE4testEl:
 5274|  14.6k|    {
 5275|  14.6k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  14.6k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 9.72k, False: 4.90k]
  |  Branch (5276:28): [True: 1.84k, False: 7.87k]
  ------------------
 5277|  14.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIilEEbT0_:
 5316|  16.1k|{
 5317|  16.1k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  16.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IilLb0EvE4testEl:
 5300|  16.1k|    {
 5301|  16.1k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  16.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IilLb1ELb1EE4testEl:
 5284|  16.1k|    {
 5285|  16.1k|        using CommonType = typename std::common_type<OfType, T>::type;
 5286|  16.1k|        return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
  ------------------
  |  Branch (5286:16): [True: 13.3k, False: 2.79k]
  ------------------
 5287|  13.3k|               && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5287:19): [True: 8.71k, False: 4.62k]
  ------------------
 5288|  16.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIjlEEbT0_:
 5316|  8.90k|{
 5317|  8.90k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  8.90k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IjlLb0EvE4testEl:
 5300|  8.90k|    {
 5301|  8.90k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  8.90k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IjlLb0ELb1EE4testEl:
 5274|  8.90k|    {
 5275|  8.90k|        using CommonType = typename std::common_type<OfType, T>::type;
 5276|  8.90k|        return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
  ------------------
  |  Branch (5276:16): [True: 5.99k, False: 2.90k]
  |  Branch (5276:28): [True: 1.84k, False: 4.15k]
  ------------------
 5277|  8.90k|    }
_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|  20.2k|    {
34285|  20.2k|        switch (prefix)
34286|  20.2k|        {
34287|  6.48k|            case 'i':
  ------------------
  |  Branch (34287:13): [True: 6.48k, False: 13.7k]
  ------------------
34288|  6.48k|                write_number(static_cast<std::int8_t>(n), use_bjdata);
34289|  6.48k|                break;
34290|  1.05k|            case 'U':
  ------------------
  |  Branch (34290:13): [True: 1.05k, False: 19.1k]
  ------------------
34291|  1.05k|                write_number(static_cast<std::uint8_t>(n), use_bjdata);
34292|  1.05k|                break;
34293|  4.15k|            case 'I':
  ------------------
  |  Branch (34293:13): [True: 4.15k, False: 16.0k]
  ------------------
34294|  4.15k|                write_number(static_cast<std::int16_t>(n), use_bjdata);
34295|  4.15k|                break;
34296|    546|            case 'u':
  ------------------
  |  Branch (34296:13): [True: 546, False: 19.7k]
  ------------------
34297|    546|                write_number(static_cast<std::uint16_t>(n), use_bjdata);
34298|    546|                break;
34299|  3.44k|            case 'l':
  ------------------
  |  Branch (34299:13): [True: 3.44k, False: 16.8k]
  ------------------
34300|  3.44k|                write_number(static_cast<std::int32_t>(n), use_bjdata);
34301|  3.44k|                break;
34302|    474|            case 'm':
  ------------------
  |  Branch (34302:13): [True: 474, False: 19.7k]
  ------------------
34303|    474|                write_number(static_cast<std::uint32_t>(n), use_bjdata);
34304|    474|                break;
34305|  4.09k|            case 'L':
  ------------------
  |  Branch (34305:13): [True: 4.09k, False: 16.1k]
  ------------------
34306|  4.09k|                write_number(static_cast<std::int64_t>(n), use_bjdata);
34307|  4.09k|                break;
34308|      0|            case 'M':
  ------------------
  |  Branch (34308:13): [True: 0, False: 20.2k]
  ------------------
34309|      0|                write_number(static_cast<std::uint64_t>(n), use_bjdata);
34310|      0|                break;
34311|      0|            default:
  ------------------
  |  Branch (34311:13): [True: 0, False: 20.2k]
  ------------------
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|  20.2k|        }
34318|  20.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_numberIaEEvT_b:
35638|  14.3k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  14.3k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  14.3k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  14.3k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 14.3k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  14.3k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  14.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE16write_charactersEPKhm:
29899|  71.5k|    {
29900|  71.5k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|  71.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.93k, False: 69.5k]
  |  |  ------------------
  ------------------
29901|  1.93k|        {
29902|  1.93k|            if (length >= max_reserve_size)
  ------------------
  |  Branch (29902:17): [True: 113, False: 1.82k]
  ------------------
29903|    113|            {
29904|    113|                append(s, length);
29905|    113|                return;
29906|    113|            }
29907|  1.82k|            grow(length);
29908|  1.82k|        }
29909|  71.4k|        if (length <= 32)
  ------------------
  |  Branch (29909:13): [True: 71.1k, False: 289]
  ------------------
29910|  71.1k|        {
29911|  71.1k|            copy_short(cursor, s, length, std::integral_constant<bool, sizeof(CharType) == 1>());
29912|  71.1k|            cursor += length;
29913|  71.1k|        }
29914|    289|        else
29915|    289|        {
29916|    289|            std::memcpy(cursor, s, length * sizeof(CharType));
29917|    289|            cursor += length;
29918|    289|        }
29919|  71.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE5spaceEv:
29984|   462k|    {
29985|   462k|        return static_cast<std::size_t>(limit - cursor);
29986|   462k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6appendEPKhm:
30020|    113|    {
30021|    113|        const std::size_t written = position();
30022|    113|        v->resize(written);
30023|    113|        if (v->capacity() - written < length)
  ------------------
  |  Branch (30023:13): [True: 113, False: 0]
  ------------------
30024|    113|        {
30025|       |            // grow geometrically, with room for the writes that follow, so
30026|       |            // that the next grow() need not reallocate right away
30027|    113|            v->reserve((std::max)(v->capacity() * 2, written + length + max_reserve_size));
30028|    113|        }
30029|    113|        v->insert(v->end(), s, s + length);
30030|    113|        cursor = v->data() + v->size();
30031|    113|        limit = cursor;
30032|    113|    }
_ZN8nlohmann16json_abi_v3_12_06detail10copy_shortIhEEvPT_PKS3_mNSt3__117integral_constantIbLb1EEE:
29782|   210k|{
29783|   210k|    JSON_ASSERT(length <= 32);
  ------------------
  |  | 2653|   210k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29783:5): [True: 210k, False: 0]
  ------------------
29784|   210k|    if (length >= 16)
  ------------------
  |  Branch (29784:9): [True: 3.02k, False: 207k]
  ------------------
29785|  3.02k|    {
29786|  3.02k|        std::array<char, 16> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29787|  3.02k|        std::array<char, 16> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29788|  3.02k|        std::memcpy(first.data(), src, 16);
29789|  3.02k|        std::memcpy(last.data(), src + (length - 16), 16);
29790|  3.02k|        std::memcpy(dst, first.data(), 16);
29791|  3.02k|        std::memcpy(dst + (length - 16), last.data(), 16);
29792|  3.02k|    }
29793|   207k|    else if (length >= 8)
  ------------------
  |  Branch (29793:14): [True: 70.7k, False: 136k]
  ------------------
29794|  70.7k|    {
29795|  70.7k|        std::array<char, 8> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29796|  70.7k|        std::array<char, 8> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29797|  70.7k|        std::memcpy(first.data(), src, 8);
29798|  70.7k|        std::memcpy(last.data(), src + (length - 8), 8);
29799|  70.7k|        std::memcpy(dst, first.data(), 8);
29800|  70.7k|        std::memcpy(dst + (length - 8), last.data(), 8);
29801|  70.7k|    }
29802|   136k|    else if (length >= 4)
  ------------------
  |  Branch (29802:14): [True: 23.8k, False: 112k]
  ------------------
29803|  23.8k|    {
29804|  23.8k|        std::array<char, 4> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29805|  23.8k|        std::array<char, 4> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29806|  23.8k|        std::memcpy(first.data(), src, 4);
29807|  23.8k|        std::memcpy(last.data(), src + (length - 4), 4);
29808|  23.8k|        std::memcpy(dst, first.data(), 4);
29809|  23.8k|        std::memcpy(dst + (length - 4), last.data(), 4);
29810|  23.8k|    }
29811|   112k|    else if (length != 0)
  ------------------
  |  Branch (29811:14): [True: 88.9k, False: 24.0k]
  ------------------
29812|  88.9k|    {
29813|       |        // 1 to 3: the first, the middle, and the last character
29814|  88.9k|        const CharType a = src[0];
29815|  88.9k|        const CharType b = src[length >> 1];
29816|  88.9k|        const CharType c = src[length - 1];
29817|  88.9k|        dst[0] = a;
29818|  88.9k|        dst[length >> 1] = b;
29819|  88.9k|        dst[length - 1] = c;
29820|  88.9k|    }
29821|   210k|}
_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.73k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  6.73k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  6.73k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  6.73k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 6.73k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  6.73k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  6.73k|    }
_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|  5.59k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  5.59k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  5.59k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  5.59k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 5.59k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  5.59k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  5.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberItEEvT_b:
35638|  1.88k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  1.88k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  1.88k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  1.88k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 1.88k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  1.88k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  1.88k|    }
_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|  4.74k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  4.74k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  4.74k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  4.74k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 4.74k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  4.74k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  4.74k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIjEEvT_b:
35638|  1.95k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  1.95k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  1.95k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  1.95k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 1.95k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  1.95k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  1.95k|    }
_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|  5.41k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  5.41k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  5.41k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  5.41k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 5.41k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  5.41k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  5.41k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberImEEvT_b:
35638|  2.27k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  2.27k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  2.27k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  2.27k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 2.27k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  2.27k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  2.27k|    }
_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|  22.7k|    {
33848|  22.7k|        const CharType prefix = ubjson_integer_prefix(n, use_bjdata);
33849|  22.7k|        if (add_prefix)
  ------------------
  |  Branch (33849:13): [True: 20.4k, False: 2.22k]
  ------------------
33850|  20.4k|        {
33851|  20.4k|            oa.write_character(prefix);
33852|  20.4k|        }
33853|  22.7k|        write_ubjson_integer_payload(prefix, n, use_bjdata);
33854|  22.7k|    }
_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|  49.9k|    {
34242|  49.9k|        if (value_in_range_of<std::int8_t>(n))
  ------------------
  |  Branch (34242:13): [True: 26.3k, False: 23.5k]
  ------------------
34243|  26.3k|        {
34244|  26.3k|            return 'i';
34245|  26.3k|        }
34246|  23.5k|        if (value_in_range_of<std::uint8_t>(n))
  ------------------
  |  Branch (34246:13): [True: 9.97k, False: 13.6k]
  ------------------
34247|  9.97k|        {
34248|  9.97k|            return 'U';
34249|  9.97k|        }
34250|  13.6k|        if (value_in_range_of<std::int16_t>(n))
  ------------------
  |  Branch (34250:13): [True: 1.87k, False: 11.7k]
  ------------------
34251|  1.87k|        {
34252|  1.87k|            return 'I';
34253|  1.87k|        }
34254|  11.7k|        if (use_bjdata && value_in_range_of<std::uint16_t>(n))
  ------------------
  |  Branch (34254:13): [True: 11.7k, False: 0]
  |  Branch (34254:27): [True: 2.17k, False: 9.57k]
  ------------------
34255|  2.17k|        {
34256|  2.17k|            return 'u';
34257|  2.17k|        }
34258|  9.57k|        if (value_in_range_of<std::int32_t>(n))
  ------------------
  |  Branch (34258:13): [True: 1.60k, False: 7.96k]
  ------------------
34259|  1.60k|        {
34260|  1.60k|            return 'l';
34261|  1.60k|        }
34262|  7.96k|        if (use_bjdata && value_in_range_of<std::uint32_t>(n))
  ------------------
  |  Branch (34262:13): [True: 7.96k, False: 0]
  |  Branch (34262:27): [True: 2.25k, False: 5.71k]
  ------------------
34263|  2.25k|        {
34264|  2.25k|            return 'm';
34265|  2.25k|        }
34266|  5.71k|        if (value_in_range_of<std::int64_t>(n))
  ------------------
  |  Branch (34266:13): [True: 2.03k, False: 3.67k]
  ------------------
34267|  2.03k|        {
34268|  2.03k|            return 'L';
34269|  2.03k|        }
34270|  3.67k|        if (use_bjdata && std::is_unsigned<NumberType>::value && integer_fits_max<std::uint64_t>(n))
  ------------------
  |  Branch (34270:13): [True: 3.67k, False: 0]
  |  Branch (34270:27): [True: 0, Folded]
  |  Branch (34270:66): [True: 3.67k, False: 0]
  ------------------
34271|  3.67k|        {
34272|  3.67k|            return 'M';
34273|  3.67k|        }
34274|       |        // anything else is treated as a high-precision number
34275|      0|        return 'H';
34276|  3.67k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIamEEbT0_:
 5316|  55.3k|{
 5317|  55.3k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  55.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IamLb0EvE4testEm:
 5300|  55.3k|    {
 5301|  55.3k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  55.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IamLb1ELb0EE4testEm:
 5264|  55.3k|    {
 5265|  55.3k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  55.3k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  55.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIhmEEbT0_:
 5316|  34.3k|{
 5317|  34.3k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  34.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IhmLb0EvE4testEm:
 5300|  34.3k|    {
 5301|  34.3k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  34.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IhmLb0ELb0EE4testEm:
 5254|  34.3k|    {
 5255|  34.3k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  34.3k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  34.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIsmEEbT0_:
 5316|  14.3k|{
 5317|  14.3k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  14.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IsmLb0EvE4testEm:
 5300|  14.3k|    {
 5301|  14.3k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  14.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IsmLb1ELb0EE4testEm:
 5264|  14.3k|    {
 5265|  14.3k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  14.3k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  14.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofItmEEbT0_:
 5316|  16.3k|{
 5317|  16.3k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  16.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ItmLb0EvE4testEm:
 5300|  16.3k|    {
 5301|  16.3k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  16.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2ItmLb0ELb0EE4testEm:
 5254|  16.3k|    {
 5255|  16.3k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  16.3k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  16.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIimEEbT0_:
 5316|  9.69k|{
 5317|  9.69k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  9.69k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IimLb0EvE4testEm:
 5300|  9.69k|    {
 5301|  9.69k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  9.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IimLb1ELb0EE4testEm:
 5264|  9.69k|    {
 5265|  9.69k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  9.69k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  9.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIjmEEbT0_:
 5316|  11.5k|{
 5317|  11.5k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  11.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IjmLb0EvE4testEm:
 5300|  11.5k|    {
 5301|  11.5k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  11.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IjmLb0ELb0EE4testEm:
 5254|  11.5k|    {
 5255|  11.5k|        using CommonType = typename std::common_type<OfType, T>::type;
 5256|  11.5k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5257|  11.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_maxImmEEbT0_:
31107|  69.1k|    {
31108|  69.1k|        return integer_fits_max<TargetType>(n, std::integral_constant<bool, integer_range<TargetType, NumberType>::may_exceed_max>());
31109|  69.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_maxImmEEbT0_NS4_17integral_constantIbLb0EEE:
31113|  69.1k|    {
31114|  69.1k|        return true;
31115|  69.1k|    }
_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|  22.7k|    {
34285|  22.7k|        switch (prefix)
34286|  22.7k|        {
34287|  7.88k|            case 'i':
  ------------------
  |  Branch (34287:13): [True: 7.88k, False: 14.8k]
  ------------------
34288|  7.88k|                write_number(static_cast<std::int8_t>(n), use_bjdata);
34289|  7.88k|                break;
34290|  5.68k|            case 'U':
  ------------------
  |  Branch (34290:13): [True: 5.68k, False: 17.0k]
  ------------------
34291|  5.68k|                write_number(static_cast<std::uint8_t>(n), use_bjdata);
34292|  5.68k|                break;
34293|  1.44k|            case 'I':
  ------------------
  |  Branch (34293:13): [True: 1.44k, False: 21.2k]
  ------------------
34294|  1.44k|                write_number(static_cast<std::int16_t>(n), use_bjdata);
34295|  1.44k|                break;
34296|  1.33k|            case 'u':
  ------------------
  |  Branch (34296:13): [True: 1.33k, False: 21.3k]
  ------------------
34297|  1.33k|                write_number(static_cast<std::uint16_t>(n), use_bjdata);
34298|  1.33k|                break;
34299|  1.29k|            case 'l':
  ------------------
  |  Branch (34299:13): [True: 1.29k, False: 21.4k]
  ------------------
34300|  1.29k|                write_number(static_cast<std::int32_t>(n), use_bjdata);
34301|  1.29k|                break;
34302|  1.48k|            case 'm':
  ------------------
  |  Branch (34302:13): [True: 1.48k, False: 21.2k]
  ------------------
34303|  1.48k|                write_number(static_cast<std::uint32_t>(n), use_bjdata);
34304|  1.48k|                break;
34305|  1.31k|            case 'L':
  ------------------
  |  Branch (34305:13): [True: 1.31k, False: 21.3k]
  ------------------
34306|  1.31k|                write_number(static_cast<std::int64_t>(n), use_bjdata);
34307|  1.31k|                break;
34308|  2.27k|            case 'M':
  ------------------
  |  Branch (34308:13): [True: 2.27k, False: 20.4k]
  ------------------
34309|  2.27k|                write_number(static_cast<std::uint64_t>(n), use_bjdata);
34310|  2.27k|                break;
34311|      0|            default:
  ------------------
  |  Branch (34311:13): [True: 0, False: 22.7k]
  ------------------
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|  22.7k|        }
34318|  22.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE7reserveEm:
29930|   390k|    {
29931|   390k|        JSON_ASSERT(length <= max_reserve_size);
  ------------------
  |  | 2653|   390k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29931:9): [True: 390k, False: 0]
  ------------------
29932|   390k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|   390k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 41.5k, False: 349k]
  |  |  ------------------
  ------------------
29933|  41.5k|        {
29934|  41.5k|            grow(length);
29935|  41.5k|        }
29936|   390k|        return cursor;
29937|   390k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6commitEm:
29942|   390k|    {
29943|   390k|        cursor += length;
29944|   390k|    }
_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|  26.0k|    {
33834|  26.0k|        if (add_prefix)
  ------------------
  |  Branch (33834:13): [True: 24.9k, False: 1.10k]
  ------------------
33835|  24.9k|        {
33836|  24.9k|            oa.write_character(get_ubjson_float_prefix<NumberType>());
33837|  24.9k|        }
33838|  26.0k|        write_number(n, use_bjdata);
33839|  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_EEE23get_ubjson_float_prefixIdEEhv:
34424|   158k|    {
34425|   158k|        static_assert(std::is_same<FloatType, float>::value || std::is_same<FloatType, double>::value,
34426|   158k|                      "number_float_t must be float or double for the UBJSON/BJData writer");
34427|   158k|        return std::is_same<FloatType, float>::value ? 'd' : 'D';  // float 32 / float 64
  ------------------
  |  Branch (34427:16): [Folded, False: 158k]
  ------------------
34428|   158k|    }
_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|  26.0k|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|  26.0k|        std::array<CharType, sizeof(NumberType)> vec{};
35641|  26.0k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|  26.0k|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 26.0k]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|  26.0k|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|  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_EEE17write_ubjson_textERKSC_RKSG_bb:
34071|   140k|    {
34072|   140k|        const std::size_t size = value.size();
34073|   140k|        if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep) && JSON_HEDLEY_LIKELY(size <= max_text_in_reservation - 1))
  ------------------
  |  | 1696|   281k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 140k, False: 0]
  |  |  ------------------
  ------------------
                      if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep) && JSON_HEDLEY_LIKELY(size <= max_text_in_reservation - 1))
  ------------------
  |  | 1696|   140k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 140k, False: 316]
  |  |  ------------------
  ------------------
34074|   140k|        {
34075|   140k|            CharType* const out = oa.reserve(size + 3);
34076|   140k|            CharType* p = out;
34077|   140k|            if (add_marker)
  ------------------
  |  Branch (34077:17): [True: 60.3k, False: 80.3k]
  ------------------
34078|  60.3k|            {
34079|  60.3k|                *p++ = to_char_type('S');
34080|  60.3k|            }
34081|   140k|            *p++ = to_char_type(size <= 127 ? 'i' : 'U');
  ------------------
  |  Branch (34081:33): [True: 140k, False: 266]
  ------------------
34082|   140k|            *p++ = to_char_type(static_cast<std::uint8_t>(size));
34083|   140k|            copy_characters(p, reinterpret_cast<const CharType*>(value.data()), size);
34084|   140k|            oa.commit(static_cast<std::size_t>(p - out) + size);
34085|   140k|            return;
34086|   140k|        }
34087|       |
34088|    316|        write_ubjson_checked_text(value, context, add_marker, use_bjdata);
34089|    316|    }
_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|   140k|    {
33647|   140k|        if (length <= 32)
  ------------------
  |  Branch (33647:13): [True: 139k, False: 1.16k]
  ------------------
33648|   139k|        {
33649|   139k|            copy_short(dst, src, length, std::integral_constant<bool, sizeof(CharType) == 1>());
33650|   139k|        }
33651|  1.16k|        else
33652|  1.16k|        {
33653|  1.16k|            std::memcpy(dst, src, length * sizeof(CharType));
33654|  1.16k|        }
33655|   140k|    }
_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|    316|    {
34096|    316|        string_t storage;
34097|    316|        const string_t& sanitized = sanitize_utf8_for_write(value, context, storage);
34098|    316|        if (add_marker)
  ------------------
  |  Branch (34098:13): [True: 172, False: 144]
  ------------------
34099|    172|        {
34100|    172|            oa.write_character(to_char_type('S'));
34101|    172|        }
34102|    316|        write_number_with_ubjson_prefix(sanitized.size(), true, use_bjdata);
34103|    316|        write_bytes(sanitized.data(), sanitized.size());
34104|    316|    }
_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|    316|    {
35415|    316|        switch (error_handler)
35416|    316|        {
35417|    316|            case error_handler_t::keep:
  ------------------
  |  Branch (35417:13): [True: 316, False: 0]
  ------------------
35418|    316|                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: 316]
  ------------------
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: 316]
  ------------------
35425|      0|            case error_handler_t::ignore:
  ------------------
  |  Branch (35425:13): [True: 0, False: 316]
  ------------------
35426|      0|            default:
  ------------------
  |  Branch (35426:13): [True: 0, False: 316]
  ------------------
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|    316|        }
35434|    316|    }
_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|   243k|    {
31527|   243k|        prefix_required = true;
31528|   243k|        if (add_prefix)
  ------------------
  |  Branch (31528:13): [True: 243k, False: 0]
  ------------------
31529|   243k|        {
31530|   243k|            oa.write_character(to_char_type(IsArray ? '[' : '{'));
  ------------------
  |  Branch (31530:45): [True: 243k, Folded]
  ------------------
31531|   243k|        }
31532|       |
31533|   243k|        const std::size_t size = IsArray ? j.m_data.m_value.array->size() : j.m_data.m_value.object->size();
  ------------------
  |  Branch (31533:34): [True: 243k, Folded]
  ------------------
31534|       |
31535|   243k|        if (use_type && size != 0)
  ------------------
  |  Branch (31535:13): [True: 76.5k, False: 166k]
  |  Branch (31535:25): [True: 72.8k, False: 3.74k]
  ------------------
31536|  72.8k|        {
31537|  72.8k|            if (!use_count)
  ------------------
  |  Branch (31537:17): [True: 0, False: 72.8k]
  ------------------
31538|      0|            {
31539|      0|                throw_size_marker_required(j);
31540|      0|            }
31541|  72.8k|            const CharType first_prefix = ubjson_prefix(j.front(), use_bjdata);
31542|       |            // the first element of an array has been compared with itself
31543|  72.8k|            const bool same_prefix = std::all_of(IsArray ? j.begin() + 1 : j.begin(), j.end(),
  ------------------
  |  Branch (31543:50): [True: 72.8k, Folded]
  ------------------
31544|  72.8k|                                                 [this, first_prefix, use_bjdata](const BasicJsonType & v)
31545|  72.8k|            {
31546|  72.8k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  72.8k|            });
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|  72.8k|            if (same_prefix && !(use_bjdata && is_bjdata_excluded_type_marker(first_prefix)))
  ------------------
  |  Branch (31561:17): [True: 64.6k, False: 8.17k]
  |  Branch (31561:34): [True: 64.6k, False: 0]
  |  Branch (31561:48): [True: 53.5k, False: 11.1k]
  ------------------
31562|  11.1k|            {
31563|  11.1k|                const bool valueless_type = IsArray && (first_prefix == 'Z' || first_prefix == 'T' || first_prefix == 'F');
  ------------------
  |  Branch (31563:45): [True: 11.1k, Folded]
  |  Branch (31563:57): [True: 0, False: 11.1k]
  |  Branch (31563:80): [True: 0, False: 11.1k]
  |  Branch (31563:103): [True: 0, False: 11.1k]
  ------------------
31564|  11.1k|                if (valueless_array_fits(valueless_type, size, valueless_elements_written))
  ------------------
  |  Branch (31564:21): [True: 11.1k, False: 0]
  ------------------
31565|  11.1k|                {
31566|  11.1k|                    prefix_required = false;
31567|  11.1k|                    oa.write_character(to_char_type('$'));
31568|  11.1k|                    oa.write_character(first_prefix);
31569|  11.1k|                    if (valueless_type)
  ------------------
  |  Branch (31569:25): [True: 0, False: 11.1k]
  ------------------
31570|      0|                    {
31571|      0|                        valueless_elements_written += size;
31572|      0|                    }
31573|  11.1k|                }
31574|  11.1k|            }
31575|  72.8k|        }
31576|       |
31577|   243k|        if (use_count)
  ------------------
  |  Branch (31577:13): [True: 153k, False: 90.3k]
  ------------------
31578|   153k|        {
31579|   153k|            write_ubjson_count(size, use_bjdata);
31580|   153k|        }
31581|       |
31582|   243k|        return !use_count;
31583|   243k|    }
_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|   203k|    {
34370|   203k|        switch (j.type())
34371|   203k|        {
34372|  10.8k|            case value_t::null:
  ------------------
  |  Branch (34372:13): [True: 10.8k, False: 193k]
  ------------------
34373|  10.8k|                return 'Z';
34374|       |
34375|  10.9k|            case value_t::boolean:
  ------------------
  |  Branch (34375:13): [True: 10.9k, False: 192k]
  ------------------
34376|  10.9k|                return j.m_data.m_value.boolean ? 'T' : 'F';
  ------------------
  |  Branch (34376:24): [True: 8.04k, False: 2.90k]
  ------------------
34377|       |
34378|  16.9k|            case value_t::number_integer:
  ------------------
  |  Branch (34378:13): [True: 16.9k, False: 186k]
  ------------------
34379|  16.9k|                return ubjson_integer_prefix(j.m_data.m_value.number_integer, use_bjdata);
34380|       |
34381|  27.2k|            case value_t::number_unsigned:
  ------------------
  |  Branch (34381:13): [True: 27.2k, False: 176k]
  ------------------
34382|  27.2k|                return ubjson_integer_prefix(j.m_data.m_value.number_unsigned, use_bjdata);
34383|       |
34384|  40.7k|            case value_t::number_float:
  ------------------
  |  Branch (34384:13): [True: 40.7k, False: 163k]
  ------------------
34385|  40.7k|                return get_ubjson_float_prefix<number_float_t>();
34386|       |
34387|  14.7k|            case value_t::string:
  ------------------
  |  Branch (34387:13): [True: 14.7k, False: 189k]
  ------------------
34388|  14.7k|                return 'S';
34389|       |
34390|  67.5k|            case value_t::array: // fallthrough
  ------------------
  |  Branch (34390:13): [True: 67.5k, False: 136k]
  ------------------
34391|  69.0k|            case value_t::binary:
  ------------------
  |  Branch (34391:13): [True: 1.53k, False: 202k]
  ------------------
34392|  69.0k|                return '[';
34393|       |
34394|  13.4k|            case value_t::object:
  ------------------
  |  Branch (34394:13): [True: 13.4k, False: 190k]
  ------------------
34395|  13.4k|                return '{';
34396|       |
34397|      0|            case value_t::discarded:
  ------------------
  |  Branch (34397:13): [True: 0, False: 203k]
  ------------------
34398|      0|            default:  // discarded values
  ------------------
  |  Branch (34398:13): [True: 0, False: 203k]
  ------------------
34399|      0|                return 'N';
34400|   203k|        }
34401|   203k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE5frontEv:
44362|  84.9k|    {
44363|  84.9k|        return *cbegin();
44364|  84.9k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6cbeginEv:
44737|   226k|    {
44738|   226k|        const_iterator result(this);
44739|   226k|        result.set_begin();
44740|   226k|        return result;
44741|   226k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2EPSH_:
26197|   368k|    explicit iter_impl(pointer object) noexcept : m_object(object)
26198|   368k|    {
26199|   368k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   368k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26199:9): [True: 368k, 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|   368k|        if (m_object->is_object())
  ------------------
  |  Branch (26204:13): [True: 36.3k, False: 331k]
  ------------------
26205|  36.3k|        {
26206|  36.3k|            m_it.object_iterator = typename object_t::iterator();
26207|  36.3k|        }
26208|   331k|        else if (m_object->is_array())
  ------------------
  |  Branch (26208:18): [True: 331k, False: 0]
  ------------------
26209|   331k|        {
26210|   331k|            m_it.array_iterator = typename array_t::iterator();
26211|   331k|        }
26212|      0|        else
26213|      0|        {
26214|       |            // primitive (is_primitive(), including discarded)
26215|      0|            m_it.primitive_iterator = primitive_iterator_t();
26216|      0|        }
26217|   368k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9set_beginEv:
26283|   226k|    {
26284|   226k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   226k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26284:9): [True: 226k, False: 0]
  ------------------
26285|       |
26286|   226k|        switch (m_object->m_data.m_type)
26287|   226k|        {
26288|  24.2k|            case value_t::object:
  ------------------
  |  Branch (26288:13): [True: 24.2k, False: 202k]
  ------------------
26289|  24.2k|            {
26290|  24.2k|                m_it.object_iterator = m_object->m_data.m_value.object->begin();
26291|  24.2k|                break;
26292|      0|            }
26293|       |
26294|   202k|            case value_t::array:
  ------------------
  |  Branch (26294:13): [True: 202k, False: 24.2k]
  ------------------
26295|   202k|            {
26296|   202k|                m_it.array_iterator = m_object->m_data.m_value.array->begin();
26297|   202k|                break;
26298|      0|            }
26299|       |
26300|      0|            case value_t::null:
  ------------------
  |  Branch (26300:13): [True: 0, False: 226k]
  ------------------
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: 226k]
  ------------------
26308|      0|            case value_t::boolean:
  ------------------
  |  Branch (26308:13): [True: 0, False: 226k]
  ------------------
26309|      0|            case value_t::number_integer:
  ------------------
  |  Branch (26309:13): [True: 0, False: 226k]
  ------------------
26310|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (26310:13): [True: 0, False: 226k]
  ------------------
26311|      0|            case value_t::number_float:
  ------------------
  |  Branch (26311:13): [True: 0, False: 226k]
  ------------------
26312|      0|            case value_t::binary:
  ------------------
  |  Branch (26312:13): [True: 0, False: 226k]
  ------------------
26313|      0|            case value_t::discarded:
  ------------------
  |  Branch (26313:13): [True: 0, False: 226k]
  ------------------
26314|      0|            default:
  ------------------
  |  Branch (26314:13): [True: 0, False: 226k]
  ------------------
26315|      0|            {
26316|      0|                m_it.primitive_iterator.set_begin();
26317|      0|                break;
26318|      0|            }
26319|   226k|        }
26320|   226k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEdeEv:
26367|   381k|    {
26368|   381k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   381k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26368:9): [True: 381k, 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|   381k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   381k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 36.6k, False: 344k]
  |  |  ------------------
  ------------------
26375|  36.6k|        {
26376|  36.6k|            JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end());
  ------------------
  |  | 2653|  36.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26376:13): [True: 36.6k, False: 0]
  ------------------
26377|  36.6k|            return m_it.object_iterator->second;
26378|  36.6k|        }
26379|       |
26380|   344k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   344k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 344k, False: 0]
  |  |  ------------------
  ------------------
26381|   344k|        {
26382|   344k|            JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end());
  ------------------
  |  | 2653|   344k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26382:13): [True: 344k, False: 0]
  ------------------
26383|   344k|            return *m_it.array_iterator;
26384|   344k|        }
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|   418k|    {
26533|   418k|        return !operator==(other);
26534|   418k|    }
_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|   418k|    {
26503|       |        // if objects are not the same, the comparison is undefined
26504|   418k|        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|   418k|        if (m_object == nullptr)
  ------------------
  |  Branch (26507:13): [True: 0, False: 418k]
  ------------------
26508|      0|        {
26509|      0|            return true;
26510|      0|        }
26511|       |
26512|   418k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   418k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 32.5k, False: 385k]
  |  |  ------------------
  ------------------
26513|  32.5k|        {
26514|  32.5k|            return (m_it.object_iterator == other.m_it.object_iterator);
26515|  32.5k|        }
26516|       |
26517|   385k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   385k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 385k, False: 0]
  |  |  ------------------
  ------------------
26518|   385k|        {
26519|   385k|            return (m_it.array_iterator == other.m_it.array_iterator);
26520|   385k|        }
26521|       |
26522|       |        // neither array nor object: a primitive value
26523|      0|        return (m_it.primitive_iterator == other.m_it.primitive_iterator);
26524|   385k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20check_same_containerISI_EEvRKT_:
26348|   418k|    {
26349|   418k|        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
  ------------------
  |  | 1697|   418k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 418k]
  |  |  ------------------
  ------------------
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|   418k|    }
_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|  94.4k|            {
31546|  94.4k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  94.4k|            });
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEppEv:
26440|   276k|    {
26441|   276k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   276k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26441:9): [True: 276k, False: 0]
  ------------------
26442|       |
26443|   276k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::object))
  ------------------
  |  | 1696|   276k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 20.4k, False: 256k]
  |  |  ------------------
  ------------------
26444|  20.4k|        {
26445|  20.4k|            std::advance(m_it.object_iterator, 1);
26446|  20.4k|            return *this;
26447|  20.4k|        }
26448|       |
26449|   256k|        if (JSON_HEDLEY_LIKELY(m_object->m_data.m_type == value_t::array))
  ------------------
  |  | 1696|   256k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 256k, False: 0]
  |  |  ------------------
  ------------------
26450|   256k|        {
26451|   256k|            ++m_it.array_iterator;
26452|   256k|            return *this;
26453|   256k|        }
26454|       |
26455|       |        // neither array nor object: a primitive value
26456|      0|        ++m_it.primitive_iterator;
26457|      0|        return *this;
26458|   256k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2ERKSI_:
26236|   242k|        : m_object(other.m_object), m_it(other.m_it)
26237|   242k|    {}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE5beginEv:
44730|   141k|    {
44731|   141k|        return cbegin();
44732|   141k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEplEl:
26633|  72.8k|    {
26634|  72.8k|        auto result = *this;
26635|  72.8k|        result += i;
26636|  72.8k|        return result;
26637|  72.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEpLEl:
26598|  72.8k|    {
26599|  72.8k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|  72.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26599:9): [True: 72.8k, False: 0]
  ------------------
26600|       |
26601|  72.8k|        if (m_object->is_object())
  ------------------
  |  Branch (26601:13): [True: 0, False: 72.8k]
  ------------------
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|  72.8k|        if (m_object->is_array())
  ------------------
  |  Branch (26606:13): [True: 72.8k, False: 0]
  ------------------
26607|  72.8k|        {
26608|  72.8k|            std::advance(m_it.array_iterator, i);
26609|  72.8k|        }
26610|      0|        else
26611|      0|        {
26612|       |            // primitive (is_primitive(), including discarded)
26613|      0|            m_it.primitive_iterator += i;
26614|      0|        }
26615|       |
26616|  72.8k|        return *this;
26617|  72.8k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE3endEv:
44755|   141k|    {
44756|   141k|        return cend();
44757|   141k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4cendEv:
44762|   141k|    {
44763|   141k|        const_iterator result(this);
44764|   141k|        result.set_end();
44765|   141k|        return result;
44766|   141k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9iter_implIKNS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE7set_endEv:
26327|   141k|    {
26328|   141k|        JSON_ASSERT(m_object != nullptr);
  ------------------
  |  | 2653|   141k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (26328:9): [True: 141k, False: 0]
  ------------------
26329|       |
26330|   141k|        if (m_object->is_object())
  ------------------
  |  Branch (26330:13): [True: 12.1k, False: 129k]
  ------------------
26331|  12.1k|        {
26332|  12.1k|            m_it.object_iterator = m_object->m_data.m_value.object->end();
26333|  12.1k|        }
26334|   129k|        else if (m_object->is_array())
  ------------------
  |  Branch (26334:18): [True: 129k, False: 0]
  ------------------
26335|   129k|        {
26336|   129k|            m_it.array_iterator = m_object->m_data.m_value.array->end();
26337|   129k|        }
26338|      0|        else
26339|      0|        {
26340|       |            // primitive (is_primitive(), including discarded)
26341|      0|            m_it.primitive_iterator.set_end();
26342|      0|        }
26343|   141k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE30is_bjdata_excluded_type_markerEh:
34413|  72.6k|    {
34414|  72.6k|        return marker == '[' || marker == '{' || marker == 'S' || marker == 'H'
  ------------------
  |  Branch (34414:16): [True: 49.4k, False: 23.2k]
  |  Branch (34414:33): [True: 3.10k, False: 20.1k]
  |  Branch (34414:50): [True: 1.63k, False: 18.4k]
  |  Branch (34414:67): [True: 0, False: 18.4k]
  ------------------
34415|  18.4k|               || marker == 'T' || marker == 'F' || marker == 'N' || marker == 'Z';
  ------------------
  |  Branch (34415:19): [True: 2.09k, False: 16.3k]
  |  Branch (34415:36): [True: 595, False: 15.7k]
  |  Branch (34415:53): [True: 0, False: 15.7k]
  |  Branch (34415:70): [True: 1.07k, False: 14.7k]
  ------------------
34416|  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_EEE20valueless_array_fitsEbmm:
31512|  14.7k|    {
31513|  14.7k|        return !valueless_type || size <= detail::valueless_elements_base - written;
  ------------------
  |  Branch (31513:16): [True: 14.7k, False: 0]
  |  Branch (31513:35): [True: 0, False: 0]
  ------------------
31514|  14.7k|    }
_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|   185k|    {
34045|   185k|        if (JSON_HEDLEY_LIKELY(count <= 127))
  ------------------
  |  | 1696|   185k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 185k, False: 206]
  |  |  ------------------
  ------------------
34046|   185k|        {
34047|   185k|            CharType* const out = oa.reserve(3);
34048|   185k|            out[0] = to_char_type('#');
34049|   185k|            out[1] = to_char_type('i');
34050|   185k|            out[2] = to_char_type(static_cast<std::uint8_t>(count));
34051|   185k|            oa.commit(3);
34052|   185k|            return;
34053|   185k|        }
34054|    206|        oa.write_character(to_char_type('#'));
34055|    206|        write_number_with_ubjson_prefix(count, true, use_bjdata);
34056|    206|    }
_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|   238k|    {
34126|   238k|        if (array.empty() || !array.front().is_number())
  ------------------
  |  Branch (34126:13): [True: 10.9k, False: 227k]
  |  Branch (34126:30): [True: 182k, False: 45.0k]
  ------------------
34127|   193k|        {
34128|   193k|            return false;
34129|   193k|        }
34130|  45.0k|        const BasicJsonType& first = array.front();
34131|  45.0k|        return use_bjdata || first.m_data.m_type != value_t::number_unsigned
  ------------------
  |  Branch (34131:16): [True: 45.0k, False: 0]
  |  Branch (34131:30): [True: 0, False: 0]
  ------------------
34132|      0|               || (static_cast<std::uint64_t>(first.m_data.m_value.number_unsigned) >> 63u) == 0;
  ------------------
  |  Branch (34132:19): [True: 0, False: 0]
  ------------------
34133|   238k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_numberEv:
43037|   553k|    {
43038|   553k|        return is_number_integer() || is_number_float();
  ------------------
  |  Branch (43038:16): [True: 215k, False: 337k]
  |  Branch (43038:39): [True: 142k, False: 195k]
  ------------------
43039|   553k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE17is_number_integerEv:
43045|   672k|    {
43046|   672k|        return m_data.m_type == value_t::number_integer || m_data.m_type == value_t::number_unsigned;
  ------------------
  |  Branch (43046:16): [True: 117k, False: 554k]
  |  Branch (43046:60): [True: 216k, False: 338k]
  ------------------
43047|   672k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE15is_number_floatEv:
43061|   608k|    {
43062|   608k|        return m_data.m_type == value_t::number_float;
43063|   608k|    }
_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|  45.0k|    {
34158|  45.0k|        constexpr std::size_t max_run = max_reserve_size / ubjson_integer_encoding_space;
34159|  45.0k|        const char* const table = ubjson_integer_table(use_bjdata);
34160|  45.0k|        auto it = array.begin();
34161|  45.0k|        const auto end = array.end();
34162|   104k|        while (it != end)
  ------------------
  |  Branch (34162:16): [True: 59.9k, False: 45.0k]
  ------------------
34163|  59.9k|        {
34164|  59.9k|            if (!it->is_number())
  ------------------
  |  Branch (34164:17): [True: 9.86k, False: 50.0k]
  ------------------
34165|  9.86k|            {
34166|  9.86k|                write_ubjson(*it, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34167|  9.86k|                ++it;
34168|  9.86k|                continue;
34169|  9.86k|            }
34170|       |
34171|  50.0k|            CharType* const start = oa.reserve(max_run * ubjson_integer_encoding_space);
34172|  50.0k|            CharType* out = start;
34173|  50.0k|            bool unencodable = false;
34174|   312k|            for (std::size_t n = 0; n < max_run && it != end && it->is_number(); ++n)
  ------------------
  |  Branch (34174:37): [True: 308k, False: 4.22k]
  |  Branch (34174:52): [True: 265k, False: 42.9k]
  |  Branch (34174:65): [True: 262k, False: 2.83k]
  ------------------
34175|   262k|            {
34176|   262k|                CharType* next = nullptr;
34177|   262k|                if (it->is_number_float())
  ------------------
  |  Branch (34177:21): [True: 131k, False: 131k]
  ------------------
34178|   131k|                {
34179|   131k|                    next = encode_ubjson_float(out, it->m_data.m_value.number_float, prefix_required, use_bjdata);
34180|   131k|                }
34181|   131k|                else
34182|   131k|                {
34183|   131k|                    std::uint64_t sign_mask = 0;
34184|   131k|                    const std::uint64_t raw = integer_bits(*it, sign_mask);
34185|   131k|                    next = encode_ubjson_integer(out, raw, sign_mask, prefix_required, use_bjdata, table);
34186|   131k|                }
34187|   262k|                if (JSON_HEDLEY_UNLIKELY(next == nullptr))
  ------------------
  |  | 1697|   262k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 262k]
  |  |  ------------------
  ------------------
34188|      0|                {
34189|      0|                    unencodable = true;
34190|      0|                    break;
34191|      0|                }
34192|   262k|                out = next;
34193|   262k|                ++it;
34194|   262k|            }
34195|  50.0k|            oa.commit(static_cast<std::size_t>(out - start));
34196|       |
34197|  50.0k|            if (unencodable)
  ------------------
  |  Branch (34197:17): [True: 0, False: 50.0k]
  ------------------
34198|      0|            {
34199|      0|                write_ubjson(*it, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34200|      0|                ++it;
34201|      0|            }
34202|  50.0k|        }
34203|  45.0k|    }
_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|  45.0k|    {
33874|       |        // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays): initialized from string literals
33875|  45.0k|        static constexpr char ubjson_table[] =
33876|       |            // the markers for n >= 0, then n < 0
33877|  45.0k|            "i" "iiiiiii" "U" "IIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "H"
33878|  45.0k|            "i" "iiiiiii" "IIIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "L"
33879|       |            // the size classes
33880|  45.0k|            "000000000" "1111111" "2222222222222222" "333333333333333333333333333333333"
33881|  45.0k|            "00000000" "11111111" "2222222222222222" "333333333333333333333333333333333";
33882|       |        // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays): initialized from string literals
33883|  45.0k|        static constexpr char bjdata_table[] =
33884|  45.0k|            "i" "iiiiiii" "U" "IIIIIII" "u" "lllllllllllllll" "m" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "M"
33885|  45.0k|            "i" "iiiiiii" "IIIIIIII" "llllllllllllllll" "LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL" "L"
33886|  45.0k|            "000000000" "11111111" "2222222222222222" "33333333333333333333333333333333"
33887|  45.0k|            "00000000" "11111111" "2222222222222222" "333333333333333333333333333333333";
33888|  45.0k|        static_assert(sizeof(ubjson_table) == 261 && sizeof(bjdata_table) == 261, "two tables of 130 markers and 130 size classes");
33889|  45.0k|        return use_bjdata ? bjdata_table : ubjson_table;
  ------------------
  |  Branch (33889:16): [True: 45.0k, False: 0]
  ------------------
33890|  45.0k|    }
_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|   131k|    {
34113|   131k|        if (add_prefix)
  ------------------
  |  Branch (34113:13): [True: 92.8k, False: 38.3k]
  ------------------
34114|  92.8k|        {
34115|  92.8k|            *out++ = get_ubjson_float_prefix<number_float_t>();
34116|  92.8k|        }
34117|   131k|        return store_number(out, n, use_bjdata);
34118|   131k|    }
_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|   134k|    {
34213|   134k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|   134k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|   134k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 134k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|   134k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|   134k|        return out + sizeof(NumberType);
34221|   134k|    }
_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|   131k|    {
33141|   131k|        const bool is_signed = j.m_data.m_type == value_t::number_integer;
33142|   131k|        const std::uint64_t raw = is_signed
  ------------------
  |  Branch (33142:35): [True: 41.4k, False: 90.2k]
  ------------------
33143|   131k|                                  ? static_cast<std::uint64_t>(j.m_data.m_value.number_integer)
33144|   131k|                                  : static_cast<std::uint64_t>(j.m_data.m_value.number_unsigned);
33145|   131k|        sign_mask = (std::uint64_t{0} - static_cast<std::uint64_t>(is_signed)) & (std::uint64_t{0} - (raw >> 63u));
33146|   131k|        return raw;
33147|   131k|    }
_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|   131k|    {
33913|   131k|        const std::size_t index = ubjson_integer_index(raw, sign_mask);
33914|   131k|        const char marker = table[index];
33915|   131k|        if (JSON_HEDLEY_UNLIKELY(marker == 'H'))
  ------------------
  |  | 1697|   131k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 131k]
  |  |  ------------------
  ------------------
33916|      0|        {
33917|      0|            return nullptr;
33918|      0|        }
33919|   131k|        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|   131k|        out[0] = to_char_type(static_cast<std::uint8_t>(marker));
33924|   131k|        out += add_prefix ? 1 : 0;
  ------------------
  |  Branch (33924:16): [True: 104k, False: 27.5k]
  ------------------
33925|   131k|        const unsigned unused_bits = 64u - (8u << size_class);
33926|       |        // UBJSON in network order, BJData in little-endian
33927|   131k|        std::uint64_t tail = 0;
33928|   131k|        if (use_bjdata)
  ------------------
  |  Branch (33928:13): [True: 131k, False: 0]
  ------------------
33929|   131k|        {
33930|   131k|            tail = is_little_endian ? raw : byteswap(raw);
  ------------------
  |  Branch (33930:20): [True: 131k, False: 0]
  ------------------
33931|   131k|        }
33932|      0|        else
33933|      0|        {
33934|      0|            tail = is_little_endian ? byteswap(raw) >> unused_bits : raw << unused_bits;
  ------------------
  |  Branch (33934:20): [True: 0, False: 0]
  ------------------
33935|      0|        }
33936|   131k|        std::memcpy(out, &tail, sizeof(tail));
33937|   131k|        return out + (std::size_t{1} << size_class);
33938|   131k|    }
_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|   131k|    {
33896|   131k|        const std::size_t sign_offset = sign_mask != 0 ? std::size_t{65} :
  ------------------
  |  Branch (33896:41): [True: 7.65k, False: 123k]
  ------------------
33897|   131k|                                        std::size_t{0};
33898|   131k|        return static_cast<std::size_t>(64 - count_leading_zeros((raw ^ sign_mask) | 1u)) + sign_offset;
33899|   131k|    }
_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|  2.56k|    {
31266|  2.56k|        oa.write_characters(static_cast<const CharType*>(data), size);
31267|  2.56k|    }
_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_binary_bytesERKNS0_27byte_container_with_subtypeISF_EEb:
33959|  4.48k|    {
33960|  4.48k|        const CharType marker = to_char_type(bjdata_draft3 ? 'B' : 'U');
  ------------------
  |  Branch (33960:46): [True: 0, False: 4.48k]
  ------------------
33961|  4.48k|        const auto* const data = binary.data();
33962|  4.48k|        const std::size_t size = binary.size();
33963|  7.43k|        for (std::size_t i = 0; i < size;)
  ------------------
  |  Branch (33963:33): [True: 2.94k, False: 4.48k]
  ------------------
33964|  2.94k|        {
33965|  2.94k|            const std::size_t block = (std::min)(size - i, max_reserve_size / 2);
33966|  2.94k|            CharType* const out = oa.reserve(2 * block);
33967|  26.6k|            for (std::size_t k = 0; k < block; ++k)
  ------------------
  |  Branch (33967:37): [True: 23.7k, False: 2.94k]
  ------------------
33968|  23.7k|            {
33969|  23.7k|                out[2 * k] = marker;
33970|       |                // the cast is needed for binary types whose value type
33971|       |                // is not an integer (e.g., std::byte)
33972|  23.7k|                out[(2 * k) + 1] = to_char_type(static_cast<std::uint8_t>(data[i + k]));
33973|  23.7k|            }
33974|  2.94k|            i += block;
33975|  2.94k|            oa.commit(2 * block);
33976|  2.94k|        }
33977|  4.48k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17is_bjdata_ndarrayERKSG_:
31597|  62.6k|    {
31598|  62.6k|        const auto& object = *j.m_data.m_value.object;
31599|  62.6k|        return object.size() == 3
  ------------------
  |  Branch (31599:16): [True: 25.0k, False: 37.5k]
  ------------------
31600|  25.0k|               && object.find("_ArrayType_") != object.end()
  ------------------
  |  Branch (31600:19): [True: 23.4k, False: 1.64k]
  ------------------
31601|  23.4k|               && object.find("_ArraySize_") != object.end()
  ------------------
  |  Branch (31601:19): [True: 23.3k, False: 84]
  ------------------
31602|  23.3k|               && object.find("_ArrayData_") != object.end();
  ------------------
  |  Branch (31602:19): [True: 23.3k, False: 36]
  ------------------
31603|  62.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20write_bjdata_ndarrayERKNS5_ISC_SG_NS4_4lessISC_EENSA_INS4_4pairIKSC_SG_EEEEEEbbNS1_16bjdata_version_tE:
34679|  23.3k|    {
34680|  23.3k|        const auto& array_type = value.at("_ArrayType_");
34681|       |        // the type name is looked up as a string below; a non-string
34682|       |        // annotation (e.g. a number, null, or an array) cannot name a known
34683|       |        // dtype, so it is treated the same as an unrecognized type name and
34684|       |        // falls back to a plain object encoding instead of throwing
34685|       |        // type_error.302 out of get<string_t>()
34686|  23.3k|        if (!array_type.is_string())
  ------------------
  |  Branch (34686:13): [True: 72, False: 23.2k]
  ------------------
34687|     72|        {
34688|     72|            return true;
34689|     72|        }
34690|       |
34691|       |        // use get<string_t>() instead of static_cast<string_t> to avoid an
34692|       |        // ambiguous conversion under explicit instantiation on C++17 (see #4825)
34693|  23.2k|        const CharType dtype = bjdata_ndarray_type_marker(array_type.template get<string_t>());
34694|  23.2k|        if (dtype == '\0')
  ------------------
  |  Branch (34694:13): [True: 806, False: 22.4k]
  ------------------
34695|    806|        {
34696|    806|            return true;
34697|    806|        }
34698|       |
34699|       |        // the 'B' (byte) marker is only defined from BJData Draft 3 onward;
34700|       |        // emitting it under an earlier draft would produce a stream that an
34701|       |        // earlier-draft reader rejects, so such an object falls back to a
34702|       |        // plain object encoding instead (see the "Binary values" section of
34703|       |        // the BJData documentation)
34704|  22.4k|        if (dtype == 'B' && bjdata_version < bjdata_version_t::draft3)
  ------------------
  |  Branch (34704:13): [True: 1.99k, False: 20.4k]
  |  Branch (34704:29): [True: 1.99k, False: 0]
  ------------------
34705|  1.99k|        {
34706|  1.99k|            return true;
34707|  1.99k|        }
34708|       |
34709|  20.4k|        const auto& array_size = value.at("_ArraySize_");
34710|       |        // the dimensions are written verbatim as the header length below, so a
34711|       |        // value that is not an array cannot produce a valid one: null emits 'Z'
34712|       |        // and an object emits '{', neither of which a reader accepts after '#'.
34713|       |        // Such an object is not a valid ndarray and falls back to a plain object.
34714|  20.4k|        if (!array_size.is_array())
  ------------------
  |  Branch (34714:13): [True: 174, False: 20.2k]
  ------------------
34715|    174|        {
34716|    174|            return true;
34717|    174|        }
34718|       |
34719|       |        // the reader only restores an annotated object from an ND-array header
34720|       |        // with at least two dimensions: an empty dimension vector, a single
34721|       |        // dimension, or a 1xN row vector is read back as a plain array, which
34722|       |        // would silently drop the annotation, so such an object falls back to
34723|       |        // a plain object encoding instead
34724|  20.2k|        const auto& dims = array_size;
34725|  20.2k|        if (dims.size() < 2 || (dims.size() == 2 && dims.at(0).is_number_integer() && dims.at(0).template get<std::int64_t>() == 1))
  ------------------
  |  Branch (34725:13): [True: 81, False: 20.2k]
  |  Branch (34725:33): [True: 13.2k, False: 6.92k]
  |  Branch (34725:53): [True: 13.2k, False: 72]
  |  Branch (34725:87): [True: 78, False: 13.1k]
  ------------------
34726|    159|        {
34727|    159|            return true;
34728|    159|        }
34729|       |
34730|  20.1k|        std::size_t len = 1;
34731|  20.1k|        for (const auto& el : dims)
  ------------------
  |  Branch (34731:29): [True: 50.1k, False: 19.1k]
  ------------------
34732|  50.1k|        {
34733|       |            // a dimension is read as an unsigned value below, so anything that
34734|       |            // is not a non-negative integer in the range of std::uint64_t is
34735|       |            // rejected: a non-integer entry would pun unrelated bytes as the
34736|       |            // dimension, and a negative or wider one would wrap into a
34737|       |            // nonsensical length
34738|  50.1k|            if (!el.is_number_integer() || !bjdata_ndarray_value_in_range<std::uint64_t>(el))
  ------------------
  |  Branch (34738:17): [True: 268, False: 49.8k]
  |  Branch (34738:44): [True: 462, False: 49.3k]
  ------------------
34739|    730|            {
34740|    730|                return true;
34741|    730|            }
34742|       |
34743|       |            // a dimension that does not fit into std::size_t, or a product that
34744|       |            // overflows it, would wrap around and could match the size of
34745|       |            // _ArrayData_ by accident; the resulting header announces an
34746|       |            // element count that no reader can honor (the binary reader rejects
34747|       |            // it with out_of_range.408), so encode as a plain object instead
34748|  49.3k|            const auto dim = el.template get<std::uint64_t>();
34749|  49.3k|            if (!value_in_range_of<std::size_t>(dim))
  ------------------
  |  Branch (34749:17): [True: 0, False: 49.3k]
  ------------------
34750|      0|            {
34751|      0|                return true; // LCOV_EXCL_LINE (size_t is narrower than 64 bits)
34752|      0|            }
34753|  49.3k|            const auto dim_size = static_cast<std::size_t>(dim);
34754|       |
34755|       |            // the reader turns an ND-array with any zero dimension into an
34756|       |            // empty plain array, dropping the annotation, so keep the object
34757|  49.3k|            if (dim_size == 0)
  ------------------
  |  Branch (34757:17): [True: 120, False: 49.2k]
  ------------------
34758|    120|            {
34759|    120|                return true;
34760|    120|            }
34761|  49.2k|            if (len > (std::numeric_limits<std::size_t>::max)() / dim_size)
  ------------------
  |  Branch (34761:17): [True: 118, False: 49.1k]
  ------------------
34762|    118|            {
34763|    118|                return true;
34764|    118|            }
34765|  49.1k|            len *= dim_size;
34766|  49.1k|        }
34767|       |
34768|       |        // the elements are written from _ArrayData_ as a flat list, so it has
34769|       |        // to be an array: size() is 0 for null and 1 for any other scalar, and
34770|       |        // iterating an object visits its values, so any of these could match
34771|       |        // the dimensions by accident and be encoded as an unrelated ND-array
34772|  19.1k|        const auto& array_data = value.at("_ArrayData_");
34773|  19.1k|        if (!array_data.is_array() || array_data.size() != len)
  ------------------
  |  Branch (34773:13): [True: 127, False: 19.0k]
  |  Branch (34773:39): [True: 688, False: 18.3k]
  ------------------
34774|    815|        {
34775|    815|            return true;
34776|    815|        }
34777|       |
34778|       |        // every element is written below as the number kind dtype names, so it
34779|       |        // has to actually be a number of that category: an element of any other
34780|       |        // type would reinterpret unrelated bytes, e.g. a string's heap pointer,
34781|       |        // as that number. Such an object falls back to a plain object encoding.
34782|       |        // dtype names the wire type, not the storage type: whether an integer
34783|       |        // is held as number_integer or number_unsigned depends on how the value
34784|       |        // was built (parsing stores non-negative integers as unsigned, the C++
34785|       |        // API stores int literals as signed), so both are accepted here and the
34786|       |        // writes below go through get<>, which reads the member that is active.
34787|  18.3k|        const bool ndarray_is_float = (dtype == 'd' || dtype == 'D');
  ------------------
  |  Branch (34787:40): [True: 926, False: 17.4k]
  |  Branch (34787:56): [True: 926, False: 16.4k]
  ------------------
34788|  18.3k|        for (const auto& el : array_data)
  ------------------
  |  Branch (34788:29): [True: 63.9k, False: 18.2k]
  ------------------
34789|  63.9k|        {
34790|  63.9k|            if (ndarray_is_float ? !el.is_number_float() : !el.is_number_integer())
  ------------------
  |  Branch (34790:17): [True: 8.24k, False: 55.6k]
  |  Branch (34790:17): [True: 84, False: 63.8k]
  ------------------
34791|     84|            {
34792|     84|                return true;
34793|     84|            }
34794|  63.9k|        }
34795|       |
34796|       |        // every element is cast to the (possibly narrower) C++ type matching
34797|       |        // dtype below; a value that does not fit that type would silently
34798|       |        // wrap (integers) or overflow to infinity (the "single" precision
34799|       |        // float) instead of being reported, so such an object falls back to
34800|       |        // a plain object encoding as well
34801|  18.2k|        if (!bjdata_ndarray_elements_in_range(array_data, dtype))
  ------------------
  |  Branch (34801:13): [True: 6.23k, False: 12.0k]
  ------------------
34802|  6.23k|        {
34803|  6.23k|            return true;
34804|  6.23k|        }
34805|       |
34806|  12.0k|        oa.write_character(to_char_type('['));
34807|  12.0k|        oa.write_character(to_char_type('$'));
34808|  12.0k|        oa.write_character(dtype);
34809|  12.0k|        oa.write_character(to_char_type('#'));
34810|       |
34811|  12.0k|        write_ubjson(array_size, use_count, use_type, true,  true, bjdata_version);
34812|       |
34813|  12.0k|        write_bjdata_ndarray_values(array_data, dtype);
34814|  12.0k|        return false;
34815|  18.2k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_stringEv:
43085|  69.8k|    {
43086|  69.8k|        return m_data.m_type == value_t::string;
43087|  69.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26bjdata_ndarray_type_markerERKSC_:
34456|  23.2k|    {
34457|  23.2k|        if (name == "uint8")
  ------------------
  |  Branch (34457:13): [True: 2.27k, False: 20.9k]
  ------------------
34458|  2.27k|        {
34459|  2.27k|            return 'U';
34460|  2.27k|        }
34461|  20.9k|        if (name == "int8")
  ------------------
  |  Branch (34461:13): [True: 3.29k, False: 17.6k]
  ------------------
34462|  3.29k|        {
34463|  3.29k|            return 'i';
34464|  3.29k|        }
34465|  17.6k|        if (name == "uint16")
  ------------------
  |  Branch (34465:13): [True: 2.26k, False: 15.4k]
  ------------------
34466|  2.26k|        {
34467|  2.26k|            return 'u';
34468|  2.26k|        }
34469|  15.4k|        if (name == "int16")
  ------------------
  |  Branch (34469:13): [True: 2.59k, False: 12.8k]
  ------------------
34470|  2.59k|        {
34471|  2.59k|            return 'I';
34472|  2.59k|        }
34473|  12.8k|        if (name == "uint32")
  ------------------
  |  Branch (34473:13): [True: 2.11k, False: 10.7k]
  ------------------
34474|  2.11k|        {
34475|  2.11k|            return 'm';
34476|  2.11k|        }
34477|  10.7k|        if (name == "int32")
  ------------------
  |  Branch (34477:13): [True: 1.81k, False: 8.89k]
  ------------------
34478|  1.81k|        {
34479|  1.81k|            return 'l';
34480|  1.81k|        }
34481|  8.89k|        if (name == "uint64")
  ------------------
  |  Branch (34481:13): [True: 738, False: 8.15k]
  ------------------
34482|    738|        {
34483|    738|            return 'M';
34484|    738|        }
34485|  8.15k|        if (name == "int64")
  ------------------
  |  Branch (34485:13): [True: 1.09k, False: 7.06k]
  ------------------
34486|  1.09k|        {
34487|  1.09k|            return 'L';
34488|  1.09k|        }
34489|  7.06k|        if (name == "single")
  ------------------
  |  Branch (34489:13): [True: 926, False: 6.13k]
  ------------------
34490|    926|        {
34491|    926|            return 'd';
34492|    926|        }
34493|  6.13k|        if (name == "double")
  ------------------
  |  Branch (34493:13): [True: 926, False: 5.20k]
  ------------------
34494|    926|        {
34495|    926|            return 'D';
34496|    926|        }
34497|  5.20k|        if (name == "char")
  ------------------
  |  Branch (34497:13): [True: 2.41k, False: 2.79k]
  ------------------
34498|  2.41k|        {
34499|  2.41k|            return 'C';
34500|  2.41k|        }
34501|  2.79k|        if (name == "byte")
  ------------------
  |  Branch (34501:13): [True: 1.99k, False: 806]
  ------------------
34502|  1.99k|        {
34503|  1.99k|            return 'B';
34504|  1.99k|        }
34505|    806|        return '\0';
34506|  2.79k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE3getISA_SA_EEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv:
43669|  23.2k|    {
43670|       |        // we cannot static_assert on ValueTypeCV being non-const, because
43671|       |        // there is support for get<const basic_json_t>(), which is why we
43672|       |        // still need the uncvref
43673|  23.2k|        static_assert(!std::is_reference<ValueTypeCV>::value,
43674|  23.2k|                      "get() cannot be used with reference types, you might want to use get_ref()");
43675|  23.2k|        return get_impl<ValueType>(detail::priority_tag<4> {});
43676|  23.2k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8get_implISA_TnNS2_9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISE_SH_EE5valueEiE4typeELi0EEESH_NS0_6detail12priority_tagILj0EEE:
43528|  23.2k|    {
43529|  23.2k|        auto ret = ValueType();
43530|  23.2k|        JSONSerializer<ValueType>::from_json(*this, ret);
43531|       |        // false positive: ret is returned by value, not its address
43532|       |        // @infer-ignore STACK_VARIABLE_ADDRESS_ESCAPE
43533|  23.2k|        return ret;
43534|  23.2k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvE9from_jsonIRKNS0_10basic_jsonINS2_3mapENS2_6vectorES8_blmdS6_S1_NSD_IhNS6_IhEEEEvEES8_EEDTcmclL_ZNS0_12_GLOBAL__N_19from_jsonEEclsr3stdE7forwardIT_Efp_Efp0_Ecvv_EEOSK_RT0_:
 8476|  23.2k|    {
 8477|  23.2k|        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
 8478|  23.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail12from_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERSD_TnNS5_9enable_ifIXsr8negationINS1_28is_adl_only_from_json_sourceIT_EEEE5valueEiE4typeELi0EEEDTcl9from_jsonfp_clsr3stdE7forwardIT0_Efp0_EEERKSL_OSP_:
 7052|  23.2k|    {
 7053|  23.2k|        return from_json(j, std::forward<T>(val));
 7054|  23.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9from_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRKT_RNS1_12json_type_ofISH_vE4type8string_tE:
 6384|  23.2k|{
 6385|  23.2k|    if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
  ------------------
  |  | 1697|  23.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.2k]
  |  |  ------------------
  ------------------
 6386|      0|    {
 6387|      0|        throw_type_must_be("string", j);
 6388|      0|    }
 6389|  23.2k|    s = string_value(j);
 6390|  23.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail12string_valueINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEETnNS4_9enable_ifIXsr8negationINS1_12is_json_viewIT_vEEEE5valueEiE4typeELi0EEERKNSJ_8string_tERKSJ_:
 6244|  23.2k|{
 6245|  23.2k|    return *j.template get_ptr<const typename BasicJsonType::string_t*>();
 6246|  23.2k|}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7get_ptrIPKSA_TnNS2_9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINS2_14remove_pointerISJ_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalISJ_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISJ_EEEEv:
43477|  23.2k|    {
43478|       |        // delegate the call to get_impl_ptr<>() const
43479|  23.2k|        return get_impl_ptr(static_cast<PointerType>(nullptr));
43480|  23.2k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12get_impl_ptrEPKSA_:
43167|  23.2k|    {
43168|  23.2k|        return is_string() ? m_data.m_value.string : nullptr;
  ------------------
  |  Branch (43168:16): [True: 23.2k, False: 0]
  ------------------
43169|  23.2k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE2atEm:
43999|  26.4k|    {
44000|  26.4k|        return array_at(*this, idx);
44001|  26.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8array_atIKSE_EEDTixdedtdtdtfp_6m_data7m_value5arrayfp0_ERT_m:
43929|  26.4k|    {
43930|       |        // at only works for arrays
43931|  26.4k|        if (JSON_HEDLEY_UNLIKELY(!j.is_array()))
  ------------------
  |  | 1697|  26.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 26.4k]
  |  |  ------------------
  ------------------
43932|      0|        {
43933|      0|            detail::throw_cannot_use_with(detail::exception_id::at_wrong_type, "at()", j);
43934|      0|        }
43935|       |
43936|  26.4k|        if (JSON_HEDLEY_UNLIKELY(idx >= j.m_data.m_value.array->size()))
  ------------------
  |  | 1697|  26.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 26.4k]
  |  |  ------------------
  ------------------
43937|      0|        {
43938|      0|            throw_array_index_out_of_range(idx, j);
43939|      0|        }
43940|       |
43941|  26.4k|        return (*j.m_data.m_value.array)[idx];
43942|  26.4k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE3getIllEEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv:
43669|  13.2k|    {
43670|       |        // we cannot static_assert on ValueTypeCV being non-const, because
43671|       |        // there is support for get<const basic_json_t>(), which is why we
43672|       |        // still need the uncvref
43673|  13.2k|        static_assert(!std::is_reference<ValueTypeCV>::value,
43674|  13.2k|                      "get() cannot be used with reference types, you might want to use get_ref()");
43675|  13.2k|        return get_impl<ValueType>(detail::priority_tag<4> {});
43676|  13.2k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8get_implIlTnNS2_9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISE_SH_EE5valueEiE4typeELi0EEESH_NS0_6detail12priority_tagILj0EEE:
43528|  13.2k|    {
43529|  13.2k|        auto ret = ValueType();
43530|  13.2k|        JSONSerializer<ValueType>::from_json(*this, ret);
43531|       |        // false positive: ret is returned by value, not its address
43532|       |        // @infer-ignore STACK_VARIABLE_ADDRESS_ESCAPE
43533|  13.2k|        return ret;
43534|  13.2k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerIlvE9from_jsonIRKNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEElEEDTcmclL_ZNS0_12_GLOBAL__N_19from_jsonEEclsr3stdE7forwardIT_Efp_Efp0_Ecvv_EEOSK_RT0_:
 8476|  13.2k|    {
 8477|  13.2k|        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
 8478|  13.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail12from_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERlTnNS5_9enable_ifIXsr8negationINS1_28is_adl_only_from_json_sourceIT_EEEE5valueEiE4typeELi0EEEDTcl9from_jsonfp_clsr3stdE7forwardIT0_Efp0_EEERKSL_OSP_:
 7052|  13.2k|    {
 7053|  13.2k|        return from_json(j, std::forward<T>(val));
 7054|  13.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9from_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRKT_RNS1_12json_type_ofISH_vE4type16number_integer_tE:
 6423|  13.2k|{
 6424|  13.2k|    get_arithmetic_value(j, val);
 6425|  13.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail20get_arithmetic_valueINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEElTnNS4_9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISI_NS1_12json_type_ofIT_vE4type9boolean_tEEE5valueEiE4typeELi0EEEvRKSK_RSI_:
 6365|  13.2k|{
 6366|  13.2k|    if (JSON_HEDLEY_UNLIKELY(!get_number_value(j, val)))
  ------------------
  |  | 1697|  13.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 13.2k]
  |  |  ------------------
  ------------------
 6367|      0|    {
 6368|      0|        throw_type_must_be("number", j);
 6369|      0|    }
 6370|  13.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail16get_number_valueINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEElTnNS4_9enable_ifIXsr8negationINS1_12is_json_viewIT_vEEEE5valueEiE4typeELi0EEEbRKSJ_RT0_:
 6312|  13.2k|{
 6313|  13.2k|    switch (static_cast<value_t>(j))
 6314|  13.2k|    {
 6315|  9.17k|        case value_t::number_unsigned:
  ------------------
  |  Branch (6315:9): [True: 9.17k, False: 4.03k]
  ------------------
 6316|  9.17k|        {
 6317|       |            // never null: a basic_json whose number_unsigned_t is number_integer_t
 6318|       |            // stores no number_unsigned values (#2573)
 6319|  9.17k|            const auto* ptr = j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>();
 6320|  9.17k|            JSON_ASSERT(ptr != nullptr);
  ------------------
  |  | 2653|  9.17k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (6320:13): [True: 9.17k, False: 0]
  ------------------
 6321|  9.17k|            val = static_cast<ArithmeticType>(*ptr);
 6322|  9.17k|            return true;
 6323|  9.17k|        }
 6324|  4.03k|        case value_t::number_integer:
  ------------------
  |  Branch (6324:9): [True: 4.03k, False: 9.17k]
  ------------------
 6325|  4.03k|        {
 6326|  4.03k|            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
 6327|  4.03k|            return true;
 6328|  9.17k|        }
 6329|      0|        case value_t::number_float:
  ------------------
  |  Branch (6329:9): [True: 0, False: 13.2k]
  ------------------
 6330|      0|        {
 6331|      0|            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
 6332|      0|            return true;
 6333|  9.17k|        }
 6334|       |
 6335|      0|        case value_t::null:
  ------------------
  |  Branch (6335:9): [True: 0, False: 13.2k]
  ------------------
 6336|      0|        case value_t::object:
  ------------------
  |  Branch (6336:9): [True: 0, False: 13.2k]
  ------------------
 6337|      0|        case value_t::array:
  ------------------
  |  Branch (6337:9): [True: 0, False: 13.2k]
  ------------------
 6338|      0|        case value_t::string:
  ------------------
  |  Branch (6338:9): [True: 0, False: 13.2k]
  ------------------
 6339|      0|        case value_t::boolean:
  ------------------
  |  Branch (6339:9): [True: 0, False: 13.2k]
  ------------------
 6340|      0|        case value_t::binary:
  ------------------
  |  Branch (6340:9): [True: 0, False: 13.2k]
  ------------------
 6341|      0|        case value_t::discarded:
  ------------------
  |  Branch (6341:9): [True: 0, False: 13.2k]
  ------------------
 6342|      0|        default:
  ------------------
  |  Branch (6342:9): [True: 0, False: 13.2k]
  ------------------
 6343|      0|            return false;
 6344|  13.2k|    }
 6345|  13.2k|}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEcvNS0_6detail7value_tEEv:
43108|  62.6k|    {
43109|  62.6k|        return m_data.m_type;
43110|  62.6k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7get_ptrIPKmTnNS2_9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINS2_14remove_pointerISJ_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalISJ_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISJ_EEEEv:
43477|  47.1k|    {
43478|       |        // delegate the call to get_impl_ptr<>() const
43479|  47.1k|        return get_impl_ptr(static_cast<PointerType>(nullptr));
43480|  47.1k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12get_impl_ptrEPKm:
43205|  47.1k|    {
43206|  47.1k|        return is_number_unsigned() ? &m_data.m_value.number_unsigned : nullptr;
  ------------------
  |  Branch (43206:16): [True: 47.1k, False: 0]
  ------------------
43207|  47.1k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE18is_number_unsignedEv:
43053|   199k|    {
43054|   199k|        return m_data.m_type == value_t::number_unsigned;
43055|   199k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7get_ptrIPKlTnNS2_9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINS2_14remove_pointerISJ_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalISJ_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISJ_EEEEv:
43477|  15.4k|    {
43478|       |        // delegate the call to get_impl_ptr<>() const
43479|  15.4k|        return get_impl_ptr(static_cast<PointerType>(nullptr));
43480|  15.4k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12get_impl_ptrEPKl:
43191|  15.4k|    {
43192|  15.4k|        return m_data.m_type == value_t::number_integer ? &m_data.m_value.number_integer : nullptr;
  ------------------
  |  Branch (43192:16): [True: 15.4k, False: 0]
  ------------------
43193|  15.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeImEEbRKSG_:
34440|  52.0k|    {
34441|  52.0k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 40.1k, False: 11.9k]
  ------------------
34442|  52.0k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 40.1k, False: 0]
  |  Branch (34442:88): [True: 40.1k, False: 0]
  ------------------
34443|  52.0k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 11.9k, False: 0]
  |  Branch (34443:82): [True: 11.4k, False: 502]
  ------------------
34444|  52.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12integer_fitsIllEEbT0_:
31153|  44.0k|    {
31154|  44.0k|        return integer_fits_min<TargetType>(n) && integer_fits_max<TargetType>(n);
  ------------------
  |  Branch (31154:16): [True: 44.0k, False: 0]
  |  Branch (31154:51): [True: 44.0k, False: 0]
  ------------------
31155|  44.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_minIllEEbT0_:
31130|  44.0k|    {
31131|  44.0k|        return integer_fits_min<TargetType>(n, std::integral_constant<bool, integer_range<TargetType, NumberType>::may_fall_below_min>());
31132|  44.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_minIllEEbT0_NS4_17integral_constantIbLb0EEE:
31136|  44.0k|    {
31137|  44.0k|        return true;
31138|  44.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_maxIllEEbT0_:
31107|  44.0k|    {
31108|  44.0k|        return integer_fits_max<TargetType>(n, std::integral_constant<bool, integer_range<TargetType, NumberType>::may_exceed_max>());
31109|  44.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16integer_fits_maxIllEEbT0_NS4_17integral_constantIbLb0EEE:
31113|  44.0k|    {
31114|  44.0k|        return true;
31115|  44.0k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE3getImmEEDTcldtclL_ZNS2_7declvalB8ne220000IRKSE_EEDTclsr3stdE9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv:
43669|  49.3k|    {
43670|       |        // we cannot static_assert on ValueTypeCV being non-const, because
43671|       |        // there is support for get<const basic_json_t>(), which is why we
43672|       |        // still need the uncvref
43673|  49.3k|        static_assert(!std::is_reference<ValueTypeCV>::value,
43674|  49.3k|                      "get() cannot be used with reference types, you might want to use get_ref()");
43675|  49.3k|        return get_impl<ValueType>(detail::priority_tag<4> {});
43676|  49.3k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8get_implImTnNS2_9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISE_SH_EE5valueEiE4typeELi0EEESH_NS0_6detail12priority_tagILj0EEE:
43528|  49.3k|    {
43529|  49.3k|        auto ret = ValueType();
43530|  49.3k|        JSONSerializer<ValueType>::from_json(*this, ret);
43531|       |        // false positive: ret is returned by value, not its address
43532|       |        // @infer-ignore STACK_VARIABLE_ADDRESS_ESCAPE
43533|  49.3k|        return ret;
43534|  49.3k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerImvE9from_jsonIRKNS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEEmEEDTcmclL_ZNS0_12_GLOBAL__N_19from_jsonEEclsr3stdE7forwardIT_Efp_Efp0_Ecvv_EEOSK_RT0_:
 8476|  49.3k|    {
 8477|  49.3k|        ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
 8478|  49.3k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail12from_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERmTnNS5_9enable_ifIXsr8negationINS1_28is_adl_only_from_json_sourceIT_EEEE5valueEiE4typeELi0EEEDTcl9from_jsonfp_clsr3stdE7forwardIT0_Efp0_EEERKSL_OSP_:
 7052|  49.3k|    {
 7053|  49.3k|        return from_json(j, std::forward<T>(val));
 7054|  49.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9from_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRKT_RNS4_11conditionalIXsr3std7is_sameINS1_12json_type_ofISH_vE4type16number_integer_tENSN_17number_unsigned_tEEE5valueENS1_27same_as_number_integer_typeESP_E4typeE:
 6417|  49.3k|{
 6418|  49.3k|    get_arithmetic_value(j, val);
 6419|  49.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail20get_arithmetic_valueINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEmTnNS4_9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISI_NS1_12json_type_ofIT_vE4type9boolean_tEEE5valueEiE4typeELi0EEEvRKSK_RSI_:
 6365|  49.3k|{
 6366|  49.3k|    if (JSON_HEDLEY_UNLIKELY(!get_number_value(j, val)))
  ------------------
  |  | 1697|  49.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 49.3k]
  |  |  ------------------
  ------------------
 6367|      0|    {
 6368|      0|        throw_type_must_be("number", j);
 6369|      0|    }
 6370|  49.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail16get_number_valueINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEmTnNS4_9enable_ifIXsr8negationINS1_12is_json_viewIT_vEEEE5valueEiE4typeELi0EEEbRKSJ_RT0_:
 6312|  49.3k|{
 6313|  49.3k|    switch (static_cast<value_t>(j))
 6314|  49.3k|    {
 6315|  38.0k|        case value_t::number_unsigned:
  ------------------
  |  Branch (6315:9): [True: 38.0k, False: 11.3k]
  ------------------
 6316|  38.0k|        {
 6317|       |            // never null: a basic_json whose number_unsigned_t is number_integer_t
 6318|       |            // stores no number_unsigned values (#2573)
 6319|  38.0k|            const auto* ptr = j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>();
 6320|  38.0k|            JSON_ASSERT(ptr != nullptr);
  ------------------
  |  | 2653|  38.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (6320:13): [True: 38.0k, False: 0]
  ------------------
 6321|  38.0k|            val = static_cast<ArithmeticType>(*ptr);
 6322|  38.0k|            return true;
 6323|  38.0k|        }
 6324|  11.3k|        case value_t::number_integer:
  ------------------
  |  Branch (6324:9): [True: 11.3k, False: 38.0k]
  ------------------
 6325|  11.3k|        {
 6326|  11.3k|            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
 6327|  11.3k|            return true;
 6328|  38.0k|        }
 6329|      0|        case value_t::number_float:
  ------------------
  |  Branch (6329:9): [True: 0, False: 49.3k]
  ------------------
 6330|      0|        {
 6331|      0|            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
 6332|      0|            return true;
 6333|  38.0k|        }
 6334|       |
 6335|      0|        case value_t::null:
  ------------------
  |  Branch (6335:9): [True: 0, False: 49.3k]
  ------------------
 6336|      0|        case value_t::object:
  ------------------
  |  Branch (6336:9): [True: 0, False: 49.3k]
  ------------------
 6337|      0|        case value_t::array:
  ------------------
  |  Branch (6337:9): [True: 0, False: 49.3k]
  ------------------
 6338|      0|        case value_t::string:
  ------------------
  |  Branch (6338:9): [True: 0, False: 49.3k]
  ------------------
 6339|      0|        case value_t::boolean:
  ------------------
  |  Branch (6339:9): [True: 0, False: 49.3k]
  ------------------
 6340|      0|        case value_t::binary:
  ------------------
  |  Branch (6340:9): [True: 0, False: 49.3k]
  ------------------
 6341|      0|        case value_t::discarded:
  ------------------
  |  Branch (6341:9): [True: 0, False: 49.3k]
  ------------------
 6342|      0|        default:
  ------------------
  |  Branch (6342:9): [True: 0, False: 49.3k]
  ------------------
 6343|      0|            return false;
 6344|  49.3k|    }
 6345|  49.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE32bjdata_ndarray_elements_in_rangeERKSG_h:
34624|  18.2k|    {
34625|  18.2k|        for (const auto& el : array_data)
  ------------------
  |  Branch (34625:29): [True: 63.1k, False: 12.0k]
  ------------------
34626|  63.1k|        {
34627|  63.1k|            bool ok = true;
34628|  63.1k|            switch (dtype)
34629|  63.1k|            {
34630|  7.99k|                case 'U':
  ------------------
  |  Branch (34630:17): [True: 7.99k, False: 55.1k]
  ------------------
34631|  7.99k|                case 'B':
  ------------------
  |  Branch (34631:17): [True: 0, False: 63.1k]
  ------------------
34632|  7.99k|                    ok = bjdata_ndarray_value_in_range<std::uint8_t>(el);
34633|  7.99k|                    break;
34634|  5.84k|                case 'C':
  ------------------
  |  Branch (34634:17): [True: 5.84k, False: 57.3k]
  ------------------
34635|       |                    // BJData limits a char to 0..127 (the intersection of the int8 and uint8 ranges)
34636|  5.84k|                    ok = bjdata_ndarray_value_in_range<std::int8_t>(el) && bjdata_ndarray_value_in_range<std::uint8_t>(el);
  ------------------
  |  Branch (34636:26): [True: 4.69k, False: 1.14k]
  |  Branch (34636:76): [True: 4.62k, False: 72]
  ------------------
34637|  5.84k|                    break;
34638|  11.9k|                case 'i':
  ------------------
  |  Branch (34638:17): [True: 11.9k, False: 51.1k]
  ------------------
34639|  11.9k|                    ok = bjdata_ndarray_value_in_range<std::int8_t>(el);
34640|  11.9k|                    break;
34641|  6.30k|                case 'u':
  ------------------
  |  Branch (34641:17): [True: 6.30k, False: 56.8k]
  ------------------
34642|  6.30k|                    ok = bjdata_ndarray_value_in_range<std::uint16_t>(el);
34643|  6.30k|                    break;
34644|  8.09k|                case 'I':
  ------------------
  |  Branch (34644:17): [True: 8.09k, False: 55.0k]
  ------------------
34645|  8.09k|                    ok = bjdata_ndarray_value_in_range<std::int16_t>(el);
34646|  8.09k|                    break;
34647|  5.36k|                case 'm':
  ------------------
  |  Branch (34647:17): [True: 5.36k, False: 57.7k]
  ------------------
34648|  5.36k|                    ok = bjdata_ndarray_value_in_range<std::uint32_t>(el);
34649|  5.36k|                    break;
34650|  4.10k|                case 'l':
  ------------------
  |  Branch (34650:17): [True: 4.10k, False: 59.0k]
  ------------------
34651|  4.10k|                    ok = bjdata_ndarray_value_in_range<std::int32_t>(el);
34652|  4.10k|                    break;
34653|  2.18k|                case 'M':
  ------------------
  |  Branch (34653:17): [True: 2.18k, False: 60.9k]
  ------------------
34654|  2.18k|                    ok = bjdata_ndarray_value_in_range<std::uint64_t>(el);
34655|  2.18k|                    break;
34656|  3.09k|                case 'L':
  ------------------
  |  Branch (34656:17): [True: 3.09k, False: 60.0k]
  ------------------
34657|  3.09k|                    ok = bjdata_ndarray_value_in_range<std::int64_t>(el);
34658|  3.09k|                    break;
34659|  5.17k|                case 'd':
  ------------------
  |  Branch (34659:17): [True: 5.17k, False: 57.9k]
  ------------------
34660|  5.17k|                    ok = bjdata_ndarray_float_in_range(el);
34661|  5.17k|                    break;
34662|  3.02k|                case 'D':
  ------------------
  |  Branch (34662:17): [True: 3.02k, False: 60.1k]
  ------------------
34663|  3.02k|                default:
  ------------------
  |  Branch (34663:17): [True: 0, False: 63.1k]
  ------------------
34664|       |                    // 'D' (double) already spans the full range of number_float_t
34665|  3.02k|                    break;
34666|  63.1k|            }
34667|  63.1k|            if (!ok)
  ------------------
  |  Branch (34667:17): [True: 6.23k, False: 56.9k]
  ------------------
34668|  6.23k|            {
34669|  6.23k|                return false;
34670|  6.23k|            }
34671|  63.1k|        }
34672|  12.0k|        return true;
34673|  18.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIhEEbRKSG_:
34440|  12.6k|    {
34441|  12.6k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 10.7k, False: 1.92k]
  ------------------
34442|  12.6k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 10.7k, False: 0]
  |  Branch (34442:88): [True: 10.5k, False: 175]
  ------------------
34443|  12.6k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 1.92k, False: 0]
  |  Branch (34443:82): [True: 1.19k, False: 725]
  ------------------
34444|  12.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIaEEbRKSG_:
34440|  17.8k|    {
34441|  17.8k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 5.44k, False: 12.3k]
  ------------------
34442|  17.8k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 5.44k, False: 0]
  |  Branch (34442:88): [True: 4.36k, False: 1.07k]
  ------------------
34443|  17.8k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 12.3k, False: 0]
  |  Branch (34443:82): [True: 11.1k, False: 1.20k]
  ------------------
34444|  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_EEE29bjdata_ndarray_value_in_rangeItEEbRKSG_:
34440|  6.30k|    {
34441|  6.30k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 4.57k, False: 1.72k]
  ------------------
34442|  6.30k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 4.57k, False: 0]
  |  Branch (34442:88): [True: 4.12k, False: 458]
  ------------------
34443|  6.30k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 1.72k, False: 0]
  |  Branch (34443:82): [True: 1.09k, False: 626]
  ------------------
34444|  6.30k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIsEEbRKSG_:
34440|  8.09k|    {
34441|  8.09k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 724, False: 7.36k]
  ------------------
34442|  8.09k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 724, False: 0]
  |  Branch (34442:88): [True: 282, False: 442]
  ------------------
34443|  8.09k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 7.36k, False: 0]
  |  Branch (34443:82): [True: 7.16k, False: 202]
  ------------------
34444|  8.09k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIjEEbRKSG_:
34440|  5.36k|    {
34441|  5.36k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 3.60k, False: 1.76k]
  ------------------
34442|  5.36k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 3.60k, False: 0]
  |  Branch (34442:88): [True: 3.24k, False: 355]
  ------------------
34443|  5.36k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 1.76k, False: 0]
  |  Branch (34443:82): [True: 1.14k, False: 621]
  ------------------
34444|  5.36k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIiEEbRKSG_:
34440|  4.10k|    {
34441|  4.10k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 129, False: 3.97k]
  ------------------
34442|  4.10k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 129, False: 0]
  |  Branch (34442:88): [True: 111, False: 18]
  ------------------
34443|  4.10k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 3.97k, False: 0]
  |  Branch (34443:82): [True: 3.69k, False: 280]
  ------------------
34444|  4.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_value_in_rangeIlEEbRKSG_:
34440|  3.09k|    {
34441|  3.09k|        return el.is_number_unsigned()
  ------------------
  |  Branch (34441:16): [True: 124, False: 2.97k]
  ------------------
34442|  3.09k|               ? integer_fits_max<std::uint64_t>(el.m_data.m_value.number_unsigned) && value_in_range_of<TargetType>(static_cast<std::uint64_t>(el.m_data.m_value.number_unsigned))
  ------------------
  |  Branch (34442:18): [True: 124, False: 0]
  |  Branch (34442:88): [True: 108, False: 16]
  ------------------
34443|  3.09k|               : integer_fits<std::int64_t>(el.m_data.m_value.number_integer) && value_in_range_of<TargetType>(static_cast<std::int64_t>(el.m_data.m_value.number_integer));
  ------------------
  |  Branch (34443:18): [True: 2.97k, False: 0]
  |  Branch (34443:82): [True: 2.97k, False: 0]
  ------------------
34444|  3.09k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE29bjdata_ndarray_float_in_rangeERKSG_:
34514|  5.17k|    {
34515|  5.17k|        const auto dval = static_cast<double>(el.m_data.m_value.number_float);
34516|  5.17k|#ifdef __GNUC__
34517|  5.17k|        JSON_HEDLEY_DIAGNOSTIC_PUSH
34518|  5.17k|        JSON_HEDLEY_PRAGMA(GCC diagnostic ignored "-Wfloat-equal")
34519|  5.17k|#endif
34520|       |        // a value that would be rounded (rather than exactly represented) by the
34521|       |        // narrowing to float is treated like an out-of-range integer element; this
34522|       |        // is the same criterion write_compact_float() uses for CBOR/MessagePack
34523|  5.17k|        return std::isnan(dval) ||
  ------------------
  |  Branch (34523:16): [True: 942, False: 4.23k]
  ------------------
34524|  4.23k|               (dval >= static_cast<double>(std::numeric_limits<float>::lowest()) &&
  ------------------
  |  Branch (34524:17): [True: 4.15k, False: 78]
  ------------------
34525|  4.15k|                dval <= static_cast<double>((std::numeric_limits<float>::max)()) &&
  ------------------
  |  Branch (34525:17): [True: 4.08k, False: 72]
  ------------------
34526|  4.08k|                static_cast<double>(static_cast<float>(dval)) == dval) ||
  ------------------
  |  Branch (34526:17): [True: 4.08k, False: 0]
  ------------------
34527|    150|               std::isinf(dval);
  ------------------
  |  Branch (34527:16): [True: 150, False: 0]
  ------------------
34528|  5.17k|#ifdef __GNUC__
34529|  5.17k|        JSON_HEDLEY_DIAGNOSTIC_POP
34530|  5.17k|#endif
34531|  5.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27write_bjdata_ndarray_valuesERKSG_h:
34541|  12.0k|    {
34542|  12.0k|        switch (dtype)
34543|  12.0k|        {
34544|  1.31k|            case 'U':
  ------------------
  |  Branch (34544:13): [True: 1.31k, False: 10.7k]
  ------------------
34545|  2.22k|            case 'C':
  ------------------
  |  Branch (34545:13): [True: 914, False: 11.1k]
  ------------------
34546|  2.22k|            case 'B':
  ------------------
  |  Branch (34546:13): [True: 0, False: 12.0k]
  ------------------
34547|  2.22k|                write_bjdata_ndarray_block<std::uint8_t>(array_data);
34548|  2.22k|                break;
34549|  2.08k|            case 'i':
  ------------------
  |  Branch (34549:13): [True: 2.08k, False: 9.93k]
  ------------------
34550|  2.08k|                write_bjdata_ndarray_block<std::int8_t>(array_data);
34551|  2.08k|                break;
34552|  1.17k|            case 'u':
  ------------------
  |  Branch (34552:13): [True: 1.17k, False: 10.8k]
  ------------------
34553|  1.17k|                write_bjdata_ndarray_block<std::uint16_t>(array_data);
34554|  1.17k|                break;
34555|    890|            case 'I':
  ------------------
  |  Branch (34555:13): [True: 890, False: 11.1k]
  ------------------
34556|    890|                write_bjdata_ndarray_block<std::int16_t>(array_data);
34557|    890|                break;
34558|  1.13k|            case 'm':
  ------------------
  |  Branch (34558:13): [True: 1.13k, False: 10.8k]
  ------------------
34559|  1.13k|                write_bjdata_ndarray_block<std::uint32_t>(array_data);
34560|  1.13k|                break;
34561|  1.16k|            case 'l':
  ------------------
  |  Branch (34561:13): [True: 1.16k, False: 10.8k]
  ------------------
34562|  1.16k|                write_bjdata_ndarray_block<std::int32_t>(array_data);
34563|  1.16k|                break;
34564|    692|            case 'M':
  ------------------
  |  Branch (34564:13): [True: 692, False: 11.3k]
  ------------------
34565|    692|                write_bjdata_ndarray_block<std::uint64_t>(array_data);
34566|    692|                break;
34567|    840|            case 'L':
  ------------------
  |  Branch (34567:13): [True: 840, False: 11.1k]
  ------------------
34568|    840|                write_bjdata_ndarray_block<std::int64_t>(array_data);
34569|    840|                break;
34570|    890|            case 'd':
  ------------------
  |  Branch (34570:13): [True: 890, False: 11.1k]
  ------------------
34571|    890|                write_bjdata_ndarray_block<float>(array_data);
34572|    890|                break;
34573|    920|            case 'D':
  ------------------
  |  Branch (34573:13): [True: 920, False: 11.0k]
  ------------------
34574|    920|            default:
  ------------------
  |  Branch (34574:13): [True: 0, False: 12.0k]
  ------------------
34575|       |                // 'D' (double) already spans the full range of number_float_t
34576|    920|                write_bjdata_ndarray_block<double>(array_data);
34577|    920|                break;
34578|  12.0k|        }
34579|  12.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIhEEvRKSG_:
34601|  2.22k|    {
34602|  2.22k|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|  2.22k|        auto it = array_data.m_data.m_value.array->begin();
34604|  2.22k|        const auto end = array_data.m_data.m_value.array->end();
34605|  4.46k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 2.23k, False: 2.22k]
  ------------------
34606|  2.23k|        {
34607|  2.23k|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|  2.23k|            CharType* out = start;
34609|  12.2k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 12.2k, False: 12]
  |  Branch (34609:54): [True: 10.0k, False: 2.22k]
  ------------------
34610|  10.0k|            {
34611|  10.0k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  10.0k|            }
34613|  2.23k|            oa.commit(static_cast<std::size_t>(out - start));
34614|  2.23k|        }
34615|  2.22k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIhEEPhSL_T_b:
34212|  10.0k|    {
34213|  10.0k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  10.0k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  10.0k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 10.0k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  10.0k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  10.0k|        return out + sizeof(NumberType);
34221|  10.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIhEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  10.0k|    {
34585|  10.0k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  10.0k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 9.96k, False: 42]
  ------------------
34587|  10.0k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  10.0k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  10.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIaEEvRKSG_:
34601|  2.08k|    {
34602|  2.08k|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|  2.08k|        auto it = array_data.m_data.m_value.array->begin();
34604|  2.08k|        const auto end = array_data.m_data.m_value.array->end();
34605|  4.17k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 2.08k, False: 2.08k]
  ------------------
34606|  2.08k|        {
34607|  2.08k|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|  2.08k|            CharType* out = start;
34609|  11.8k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 11.7k, False: 6]
  |  Branch (34609:54): [True: 9.71k, False: 2.08k]
  ------------------
34610|  9.71k|            {
34611|  9.71k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  9.71k|            }
34613|  2.08k|            oa.commit(static_cast<std::size_t>(out - start));
34614|  2.08k|        }
34615|  2.08k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIaEEPhSL_T_b:
34212|  9.71k|    {
34213|  9.71k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  9.71k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  9.71k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 9.71k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  9.71k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  9.71k|        return out + sizeof(NumberType);
34221|  9.71k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIaEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  9.71k|    {
34585|  9.71k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  9.71k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 0, False: 9.71k]
  ------------------
34587|  9.71k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  9.71k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  9.71k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockItEEvRKSG_:
34601|  1.17k|    {
34602|  1.17k|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|  1.17k|        auto it = array_data.m_data.m_value.array->begin();
34604|  1.17k|        const auto end = array_data.m_data.m_value.array->end();
34605|  2.36k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 1.18k, False: 1.17k]
  ------------------
34606|  1.18k|        {
34607|  1.18k|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|  1.18k|            CharType* out = start;
34609|  5.33k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 5.32k, False: 12]
  |  Branch (34609:54): [True: 4.15k, False: 1.17k]
  ------------------
34610|  4.15k|            {
34611|  4.15k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  4.15k|            }
34613|  1.18k|            oa.commit(static_cast<std::size_t>(out - start));
34614|  1.18k|        }
34615|  1.17k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberItEEPhSL_T_b:
34212|  4.15k|    {
34213|  4.15k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  4.15k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  4.15k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 4.15k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  4.15k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  4.15k|        return out + sizeof(NumberType);
34221|  4.15k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerItEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  4.15k|    {
34585|  4.15k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  4.15k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 4.07k, False: 75]
  ------------------
34587|  4.15k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  4.15k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  4.15k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIsEEvRKSG_:
34601|    890|    {
34602|    890|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|    890|        auto it = array_data.m_data.m_value.array->begin();
34604|    890|        const auto end = array_data.m_data.m_value.array->end();
34605|  1.79k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 908, False: 890]
  ------------------
34606|    908|        {
34607|    908|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|    908|            CharType* out = start;
34609|  7.99k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 7.97k, False: 18]
  |  Branch (34609:54): [True: 7.08k, False: 890]
  ------------------
34610|  7.08k|            {
34611|  7.08k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  7.08k|            }
34613|    908|            oa.commit(static_cast<std::size_t>(out - start));
34614|    908|        }
34615|    890|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIsEEPhSL_T_b:
34212|  7.08k|    {
34213|  7.08k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  7.08k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  7.08k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 7.08k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  7.08k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  7.08k|        return out + sizeof(NumberType);
34221|  7.08k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIsEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  7.08k|    {
34585|  7.08k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  7.08k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 135, False: 6.95k]
  ------------------
34587|  7.08k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  7.08k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  7.08k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIjEEvRKSG_:
34601|  1.13k|    {
34602|  1.13k|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|  1.13k|        auto it = array_data.m_data.m_value.array->begin();
34604|  1.13k|        const auto end = array_data.m_data.m_value.array->end();
34605|  2.27k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 1.14k, False: 1.13k]
  ------------------
34606|  1.14k|        {
34607|  1.14k|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|  1.14k|            CharType* out = start;
34609|  4.56k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 4.54k, False: 12]
  |  Branch (34609:54): [True: 3.41k, False: 1.13k]
  ------------------
34610|  3.41k|            {
34611|  3.41k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  3.41k|            }
34613|  1.14k|            oa.commit(static_cast<std::size_t>(out - start));
34614|  1.14k|        }
34615|  1.13k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIjEEPhSL_T_b:
34212|  3.41k|    {
34213|  3.41k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  3.41k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  3.41k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 3.41k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  3.41k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  3.41k|        return out + sizeof(NumberType);
34221|  3.41k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIjEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  3.41k|    {
34585|  3.41k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  3.41k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 3.22k, False: 198]
  ------------------
34587|  3.41k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  3.41k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  3.41k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIiEEvRKSG_:
34601|  1.16k|    {
34602|  1.16k|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|  1.16k|        auto it = array_data.m_data.m_value.array->begin();
34604|  1.16k|        const auto end = array_data.m_data.m_value.array->end();
34605|  2.33k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 1.17k, False: 1.16k]
  ------------------
34606|  1.17k|        {
34607|  1.17k|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|  1.17k|            CharType* out = start;
34609|  4.76k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 4.75k, False: 12]
  |  Branch (34609:54): [True: 3.59k, False: 1.15k]
  ------------------
34610|  3.59k|            {
34611|  3.59k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  3.59k|            }
34613|  1.17k|            oa.commit(static_cast<std::size_t>(out - start));
34614|  1.17k|        }
34615|  1.16k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIiEEPhSL_T_b:
34212|  3.59k|    {
34213|  3.59k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  3.59k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  3.59k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 3.59k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  3.59k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  3.59k|        return out + sizeof(NumberType);
34221|  3.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIiEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  3.59k|    {
34585|  3.59k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  3.59k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 78, False: 3.51k]
  ------------------
34587|  3.59k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  3.59k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  3.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockImEEvRKSG_:
34601|    692|    {
34602|    692|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|    692|        auto it = array_data.m_data.m_value.array->begin();
34604|    692|        const auto end = array_data.m_data.m_value.array->end();
34605|  1.40k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 714, False: 692]
  ------------------
34606|    714|        {
34607|    714|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|    714|            CharType* out = start;
34609|  2.81k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 2.79k, False: 22]
  |  Branch (34609:54): [True: 2.10k, False: 692]
  ------------------
34610|  2.10k|            {
34611|  2.10k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  2.10k|            }
34613|    714|            oa.commit(static_cast<std::size_t>(out - start));
34614|    714|        }
34615|    692|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberImEEPhSL_T_b:
34212|  2.10k|    {
34213|  2.10k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  2.10k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  2.10k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 2.10k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  2.10k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  2.10k|        return out + sizeof(NumberType);
34221|  2.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerImEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  2.10k|    {
34585|  2.10k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  2.10k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 2.08k, False: 21]
  ------------------
34587|  2.10k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  2.10k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  2.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIlEEvRKSG_:
34601|    840|    {
34602|    840|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|    840|        auto it = array_data.m_data.m_value.array->begin();
34604|    840|        const auto end = array_data.m_data.m_value.array->end();
34605|  1.71k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 876, False: 840]
  ------------------
34606|    876|        {
34607|    876|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|    876|            CharType* out = start;
34609|  3.94k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 3.89k, False: 42]
  |  Branch (34609:54): [True: 3.06k, False: 834]
  ------------------
34610|  3.06k|            {
34611|  3.06k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  3.06k|            }
34613|    876|            oa.commit(static_cast<std::size_t>(out - start));
34614|    876|        }
34615|    840|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIlEEPhSL_T_b:
34212|  3.06k|    {
34213|  3.06k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  3.06k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  3.06k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 3.06k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  3.06k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  3.06k|        return out + sizeof(NumberType);
34221|  3.06k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIlEET_RKSG_NS4_17integral_constantIbLb1EEE:
34584|  3.06k|    {
34585|  3.06k|        using storage_type = typename std::conditional<std::is_unsigned<T>::value, std::uint64_t, std::int64_t>::type;
34586|  3.06k|        return static_cast<T>(el.is_number_unsigned()
  ------------------
  |  Branch (34586:31): [True: 99, False: 2.96k]
  ------------------
34587|  3.06k|                              ? static_cast<storage_type>(el.m_data.m_value.number_unsigned)
34588|  3.06k|                              : static_cast<storage_type>(el.m_data.m_value.number_integer));
34589|  3.06k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIfEEvRKSG_:
34601|    890|    {
34602|    890|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|    890|        auto it = array_data.m_data.m_value.array->begin();
34604|    890|        const auto end = array_data.m_data.m_value.array->end();
34605|  1.79k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 904, False: 890]
  ------------------
34606|    904|        {
34607|    904|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|    904|            CharType* out = start;
34609|  6.07k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 6.05k, False: 20]
  |  Branch (34609:54): [True: 5.17k, False: 884]
  ------------------
34610|  5.17k|            {
34611|  5.17k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  5.17k|            }
34613|    904|            oa.commit(static_cast<std::size_t>(out - start));
34614|    904|        }
34615|    890|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12store_numberIfEEPhSL_T_b:
34212|  5.17k|    {
34213|  5.17k|        std::array<CharType, sizeof(NumberType)> vec{};
34214|  5.17k|        std::memcpy(vec.data(), &n, sizeof(NumberType));
34215|  5.17k|        if (is_little_endian != output_little_endian)
  ------------------
  |  Branch (34215:13): [True: 0, False: 5.17k]
  ------------------
34216|      0|        {
34217|      0|            reverse_bytes(vec);
34218|      0|        }
34219|  5.17k|        std::memcpy(out, vec.data(), sizeof(NumberType));
34220|  5.17k|        return out + sizeof(NumberType);
34221|  5.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIfEET_RKSG_NS4_17integral_constantIbLb0EEE:
34594|  5.17k|    {
34595|  5.17k|        return static_cast<T>(static_cast<double>(el.m_data.m_value.number_float));
34596|  5.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE26write_bjdata_ndarray_blockIdEEvRKSG_:
34601|    920|    {
34602|    920|        constexpr std::size_t per_block = max_reserve_size / sizeof(T);
34603|    920|        auto it = array_data.m_data.m_value.array->begin();
34604|    920|        const auto end = array_data.m_data.m_value.array->end();
34605|  1.88k|        while (it != end)
  ------------------
  |  Branch (34605:16): [True: 962, False: 920]
  ------------------
34606|    962|        {
34607|    962|            CharType* const start = oa.reserve(per_block * sizeof(T));
34608|    962|            CharType* out = start;
34609|  3.98k|            for (std::size_t n = 0; n < per_block && it != end; ++n, ++it)
  ------------------
  |  Branch (34609:37): [True: 3.94k, False: 48]
  |  Branch (34609:54): [True: 3.02k, False: 914]
  ------------------
34610|  3.02k|            {
34611|  3.02k|                out = store_number(out, bjdata_ndarray_integer<T>(*it, std::is_integral<T>()), true);
34612|  3.02k|            }
34613|    962|            oa.commit(static_cast<std::size_t>(out - start));
34614|    962|        }
34615|    920|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE22bjdata_ndarray_integerIdEET_RKSG_NS4_17integral_constantIbLb0EEE:
34594|  3.02k|    {
34595|  3.02k|        return static_cast<T>(static_cast<double>(el.m_data.m_value.number_float));
34596|  3.02k|    }
_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|  50.6k|    {
31527|  50.6k|        prefix_required = true;
31528|  50.6k|        if (add_prefix)
  ------------------
  |  Branch (31528:13): [True: 50.6k, False: 0]
  ------------------
31529|  50.6k|        {
31530|  50.6k|            oa.write_character(to_char_type(IsArray ? '[' : '{'));
  ------------------
  |  Branch (31530:45): [Folded, False: 50.6k]
  ------------------
31531|  50.6k|        }
31532|       |
31533|  50.6k|        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: 50.6k]
  ------------------
31534|       |
31535|  50.6k|        if (use_type && size != 0)
  ------------------
  |  Branch (31535:13): [True: 16.0k, False: 34.5k]
  |  Branch (31535:25): [True: 12.1k, False: 3.94k]
  ------------------
31536|  12.1k|        {
31537|  12.1k|            if (!use_count)
  ------------------
  |  Branch (31537:17): [True: 0, False: 12.1k]
  ------------------
31538|      0|            {
31539|      0|                throw_size_marker_required(j);
31540|      0|            }
31541|  12.1k|            const CharType first_prefix = ubjson_prefix(j.front(), use_bjdata);
31542|       |            // the first element of an array has been compared with itself
31543|  12.1k|            const bool same_prefix = std::all_of(IsArray ? j.begin() + 1 : j.begin(), j.end(),
  ------------------
  |  Branch (31543:50): [Folded, False: 12.1k]
  ------------------
31544|  12.1k|                                                 [this, first_prefix, use_bjdata](const BasicJsonType & v)
31545|  12.1k|            {
31546|  12.1k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  12.1k|            });
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|  12.1k|            if (same_prefix && !(use_bjdata && is_bjdata_excluded_type_marker(first_prefix)))
  ------------------
  |  Branch (31561:17): [True: 8.01k, False: 4.09k]
  |  Branch (31561:34): [True: 8.01k, False: 0]
  |  Branch (31561:48): [True: 4.39k, False: 3.61k]
  ------------------
31562|  3.61k|            {
31563|  3.61k|                const bool valueless_type = IsArray && (first_prefix == 'Z' || first_prefix == 'T' || first_prefix == 'F');
  ------------------
  |  Branch (31563:45): [Folded, False: 3.61k]
  |  Branch (31563:57): [True: 0, False: 0]
  |  Branch (31563:80): [True: 0, False: 0]
  |  Branch (31563:103): [True: 0, False: 0]
  ------------------
31564|  3.61k|                if (valueless_array_fits(valueless_type, size, valueless_elements_written))
  ------------------
  |  Branch (31564:21): [True: 3.61k, False: 0]
  ------------------
31565|  3.61k|                {
31566|  3.61k|                    prefix_required = false;
31567|  3.61k|                    oa.write_character(to_char_type('$'));
31568|  3.61k|                    oa.write_character(first_prefix);
31569|  3.61k|                    if (valueless_type)
  ------------------
  |  Branch (31569:25): [Folded, False: 3.61k]
  ------------------
31570|      0|                    {
31571|      0|                        valueless_elements_written += size;
31572|      0|                    }
31573|  3.61k|                }
31574|  3.61k|            }
31575|  12.1k|        }
31576|       |
31577|  50.6k|        if (use_count)
  ------------------
  |  Branch (31577:13): [True: 32.1k, False: 18.5k]
  ------------------
31578|  32.1k|        {
31579|  32.1k|            write_ubjson_count(size, use_bjdata);
31580|  32.1k|        }
31581|       |
31582|  50.6k|        return !use_count;
31583|  50.6k|    }
_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|  24.5k|            {
31546|  24.5k|                return ubjson_prefix(v, use_bjdata) == first_prefix;
31547|  24.5k|            });
_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|  47.2k|    {
33991|  47.2k|        for (const auto& el : *j.m_data.m_value.object)
  ------------------
  |  Branch (33991:29): [True: 77.0k, False: 47.2k]
  ------------------
33992|  77.0k|        {
33993|       |            // a converted key must outlive the reference returned by sanitize_utf8_for_write
33994|  77.0k|            const object_key_string_t key_string = el.first;
33995|  77.0k|            write_ubjson_text(key_string, j, false, use_bjdata);
33996|       |
33997|  77.0k|            const BasicJsonType& value = el.second;
33998|  77.0k|            switch (value.type())
33999|  77.0k|            {
34000|  15.6k|                case value_t::null:
  ------------------
  |  Branch (34000:17): [True: 15.6k, False: 61.4k]
  ------------------
34001|  15.6k|                    if (prefix_required)
  ------------------
  |  Branch (34001:25): [True: 15.6k, False: 0]
  ------------------
34002|  15.6k|                    {
34003|  15.6k|                        oa.write_character(to_char_type('Z'));
34004|  15.6k|                    }
34005|  15.6k|                    break;
34006|       |
34007|  10.6k|                case value_t::boolean:
  ------------------
  |  Branch (34007:17): [True: 10.6k, False: 66.4k]
  ------------------
34008|  10.6k|                    if (prefix_required)
  ------------------
  |  Branch (34008:25): [True: 10.6k, False: 0]
  ------------------
34009|  10.6k|                    {
34010|  10.6k|                        oa.write_character(value.m_data.m_value.boolean ? to_char_type('T') : to_char_type('F'));
  ------------------
  |  Branch (34010:44): [True: 9.85k, False: 788]
  ------------------
34011|  10.6k|                    }
34012|  10.6k|                    break;
34013|       |
34014|  5.54k|                case value_t::number_integer:
  ------------------
  |  Branch (34014:17): [True: 5.54k, False: 71.5k]
  ------------------
34015|  5.54k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_integer, prefix_required, use_bjdata);
34016|  5.54k|                    break;
34017|       |
34018|  5.77k|                case value_t::number_unsigned:
  ------------------
  |  Branch (34018:17): [True: 5.77k, False: 71.3k]
  ------------------
34019|  5.77k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_unsigned, prefix_required, use_bjdata);
34020|  5.77k|                    break;
34021|       |
34022|  2.20k|                case value_t::number_float:
  ------------------
  |  Branch (34022:17): [True: 2.20k, False: 74.8k]
  ------------------
34023|  2.20k|                    write_number_with_ubjson_prefix(value.m_data.m_value.number_float, prefix_required, use_bjdata);
34024|  2.20k|                    break;
34025|       |
34026|  13.1k|                case value_t::string:
  ------------------
  |  Branch (34026:17): [True: 13.1k, False: 63.9k]
  ------------------
34027|  13.1k|                    write_ubjson_text(*value.m_data.m_value.string, value, prefix_required, use_bjdata);
34028|  13.1k|                    break;
34029|       |
34030|  1.45k|                case value_t::object:
  ------------------
  |  Branch (34030:17): [True: 1.45k, False: 75.6k]
  ------------------
34031|  23.8k|                case value_t::array:
  ------------------
  |  Branch (34031:17): [True: 22.3k, False: 54.7k]
  ------------------
34032|  24.1k|                case value_t::binary:
  ------------------
  |  Branch (34032:17): [True: 348, False: 76.7k]
  ------------------
34033|  24.1k|                case value_t::discarded:
  ------------------
  |  Branch (34033:17): [True: 0, False: 77.0k]
  ------------------
34034|  24.1k|                default:
  ------------------
  |  Branch (34034:17): [True: 0, False: 77.0k]
  ------------------
34035|  24.1k|                    write_ubjson(value, use_count, use_type, prefix_required, use_bjdata, bjdata_version, depth + 1);
34036|  24.1k|                    break;
34037|  77.0k|            }
34038|  77.0k|        }
34039|  47.2k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataISD_EESE_OT_bbNS0_6detail15error_handler_tE:
46956|  22.4k|    {
46957|  22.4k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46958|  22.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataIPKhSH_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SJ_SK_bbNS0_6detail15error_handler_tE:
46969|  15.9k|    {
46970|  15.9k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46971|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataIRNS2_19basic_istringstreamIcS7_S9_EEEESE_OT_bbNS0_6detail15error_handler_tE:
46956|  15.9k|    {
46957|  15.9k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46958|  15.9k|    }
_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|  15.9k|    {
46576|  15.9k|        basic_json result;
46577|  15.9k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  15.9k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  15.9k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 15.9k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  15.9k|        return result;
46584|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEEC2ERSG_bPNS1_5lexerISG_SH_Lb0EEE:
17821|  15.9k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  15.9k|    {}
_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|  15.9k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  15.9k|    {
18994|  15.9k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2EOS2_:
 9815|  15.9k|        : 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|  15.9k|        , token_carry(std::move(rhs.token_carry))
 9821|  15.9k|        , token_segment(rhs.token_segment)
 9822|  15.9k|        , current_in_get_area(rhs.current_in_get_area)
 9823|  15.9k|        , tracking_token(rhs.tracking_token)
 9824|  15.9k|        , no_get_area(rhs.no_get_area)
 9825|       |#endif
 9826|  15.9k|    {
 9827|  15.9k|        rhs.is = nullptr;
 9828|  15.9k|        rhs.sb = nullptr;
 9829|       |#if JSON_PRECISE_STREAM_POSITION
 9830|       |        rhs.lookahead = false;
 9831|       |#endif
 9832|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2EOS3_:
 9404|  31.8k|        : m_data(std::move(rhs.m_data)), m_end(rhs.m_end), m_capacity_end(rhs.m_capacity_end)
 9405|  31.8k|    {
 9406|  31.8k|        rhs.m_end = rhs.m_capacity_end = nullptr;
 9407|  31.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_EEE9sax_parseEPSJ_bNS1_18cbor_tag_handler_tE:
19017|  15.9k|    {
19018|  15.9k|        sax = sax_;
19019|  15.9k|        container_stack.clear();
19020|  15.9k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  15.9k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  15.9k|        bool result = false;
19024|       |
19025|  15.9k|        switch (input_format)
19026|  15.9k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 15.9k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 15.9k]
  ------------------
19040|  15.9k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 15.9k, False: 0]
  ------------------
19041|  15.9k|                result = parse_ubjson_internal();
19042|  15.9k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 15.9k]
  ------------------
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|  15.9k|        }
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|  8.48k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 8.48k, False: 0]
  |  Branch (19058:23): [True: 0, False: 8.48k]
  |  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|  8.48k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 8.48k, False: 0]
  |  Branch (19065:23): [True: 8.48k, False: 0]
  ------------------
19066|  8.48k|        {
19067|  8.48k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 8.48k]
  |  Branch (19067:59): [True: 8.48k, False: 0]
  ------------------
19068|  8.48k|            {
19069|  8.48k|                get_ignore_noop();
19070|  8.48k|            }
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|  8.48k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  8.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 104, False: 8.38k]
  |  |  ------------------
  ------------------
19082|    104|            {
19083|    104|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    104|            }
19085|  8.48k|        }
19086|       |
19087|  8.38k|        return result;
19088|  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_EEE12bound_parserEPSJ_NS4_17integral_constantIbLb1EEE:
19096|  15.9k|    {
19097|  15.9k|        return s;
19098|  15.9k|    }
_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|  15.9k|            : parser(parser_), saved()
19120|  15.9k|        {
19121|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 15.9k, False: 0]
  ------------------
19122|  15.9k|            {
19123|  15.9k|                saved = parser->get_reserve_state();
19124|  15.9k|                parser->set_input_position(position);
19125|  15.9k|            }
19126|  15.9k|        }
_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.29k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.29k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.29k|        chars_read += new_chars_read;
23508|  2.29k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 2.18k]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|  2.18k|        return true;
23516|  2.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIiEEmPT_m:
 9930|  2.29k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.29k|#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.29k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.29k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.29k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  4.48k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.18k, False: 105]
  |  |  |  Branch (1696:94): [True: 2.18k, False: 105]
  |  |  |  Branch (1696:94): [True: 2.18k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.18k|        {
 9941|  2.18k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.18k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.18k|            return count * sizeof(T);
 9944|  2.18k|        }
 9945|    105|#endif
 9946|    105|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    105|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    105|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 0]
  |  |  ------------------
  ------------------
 9948|    105|        {
 9949|    105|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    105|        }
 9951|    105|        return res;
 9952|  2.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_ptrEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10087|   673k|        {
10088|   673k|            return (s->*(&streambuf_access::gptr))();
10089|   673k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_endEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10091|   650k|        {
10092|   650k|            return (s->*(&streambuf_access::egptr))();
10093|   650k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access4bumpEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEEi:
10099|   612k|        {
10100|   612k|            (s->*(&streambuf_access::gbump))(n);
10101|   612k|        }
_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|  4.37k|    {
23992|  4.37k|        return sax->parse_error(chars_read, "<end of file>",
23993|  4.37k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  4.37k|    }
_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|  7.06k|    {
24103|  7.06k|        std::string error_msg = "syntax error while parsing ";
24104|  7.06k|        error_msg += input_format_name(input_format);
24105|       |
24106|  7.06k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  7.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_EEE15enter_containerEbmi:
19201|  89.4k|    {
19202|  89.4k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   178k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 89.4k]
  |  |  |  Branch (1697:94): [True: 14.3k, False: 75.1k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  89.4k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  89.4k|        return true;
19209|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12start_objectEm:
17878|  17.8k|    {
17879|  17.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|  17.8k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  17.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_adapterEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  99.5k|    {
17962|  99.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10.1k, False: 89.4k]
  ------------------
17963|  10.1k|        {
17964|  10.1k|            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.1k|            return &root;
17971|  10.1k|        }
17972|       |
17973|  89.4k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  89.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 76.2k, False: 13.1k]
  |  Branch (17973:9): [True: 13.1k, False: 0]
  |  Branch (17973:9): [True: 89.4k, False: 0]
  ------------------
17974|       |
17975|  89.4k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 76.2k, False: 13.1k]
  ------------------
17976|  76.2k|        {
17977|  76.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|  76.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  76.2k|        }
17985|       |
17986|  13.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 13.1k, False: 0]
  ------------------
17987|  13.1k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 13.1k, False: 0]
  ------------------
17988|  13.1k|        *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.1k|        return object_element;
17995|  13.1k|    }
_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|  99.5k|{
16470|  99.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|   116k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 99.3k]
  |  |  |  Branch (1697:94): [True: 17.3k, False: 82.2k]
  |  |  |  Branch (1697:94): [True: 270, False: 17.0k]
  |  |  ------------------
  ------------------
16471|    270|    {
16472|    270|        return container_too_large_error(sax, len, kind, ref);
16473|    270|    }
16474|  99.3k|    return true;
16475|  99.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|    270|{
16464|    270|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    270|}
_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|  81.7k|    {
17916|  81.7k|        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|  81.7k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  81.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 81.7k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  81.7k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 13.3k, False: 68.3k]
  ------------------
17929|  13.3k|        {
17930|  13.3k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  13.3k|        }
17932|       |
17933|  81.7k|        return true;
17934|  81.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_EEE15container_frameC2Embi:
19167|  89.2k|            : 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|  56.5k|    {
19234|  56.5k|        const bool is_object = container_stack.back().is_object;
19235|  56.5k|        container_stack.pop_back();
19236|  56.5k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 10.8k, False: 45.6k]
  ------------------
19237|  56.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_adapterEE10end_objectEv:
17901|  13.9k|    {
17902|  13.9k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 13.9k, False: 0]
  ------------------
17903|  13.9k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 13.9k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  13.9k|        ref_stack.back()->set_parents();
17910|  13.9k|        ref_stack.pop_back();
17911|  13.9k|        return true;
17912|  13.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE9end_arrayEv:
17937|  52.0k|    {
17938|  52.0k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 52.0k, False: 0]
  ------------------
17939|  52.0k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 52.0k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  52.0k|        ref_stack.back()->set_parents();
17946|  52.0k|        ref_stack.pop_back();
17947|  52.0k|        return true;
17948|  52.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_EEE12unexpect_eofEPKc:
23974|   214k|    {
23975|   214k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   214k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.10k, False: 210k]
  |  |  ------------------
  ------------------
23976|  3.10k|        {
23977|  3.10k|            return report_eof(context);
23978|  3.10k|        }
23979|   210k|        return true;
23980|   214k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter14bulk_remainingEv:
 9974|  47.7k|    {
 9975|  47.7k|        if (!current_in_get_area)
  ------------------
  |  Branch (9975:13): [True: 0, False: 47.7k]
  ------------------
 9976|      0|        {
 9977|      0|            return 0;
 9978|      0|        }
 9979|  47.7k|        return static_cast<std::size_t>(streambuf_access::get_end(sb) - current_end());
 9980|  47.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter11current_endEv:
10112|  70.1k|    {
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|  70.1k|        return streambuf_access::get_ptr(sb);
10119|  70.1k|#endif
10120|  70.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_dataEv:
 9968|  22.3k|    {
 9969|  22.3k|        return current_end();
 9970|  22.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_skipEm:
 9985|  22.3k|    {
 9986|  22.3k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  22.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9986:9): [True: 22.3k, False: 0]
  ------------------
 9987|       |        // gbump() takes an int, but a get area (e.g., of a std::stringbuf) can
 9988|       |        // be larger
 9989|  22.3k|        constexpr auto max_bump = static_cast<std::size_t>((std::numeric_limits<int>::max)());
 9990|  22.3k|        for (; n > max_bump; n -= max_bump)
  ------------------
  |  Branch (9990:16): [True: 0, False: 22.3k]
  ------------------
 9991|      0|        {
 9992|      0|            streambuf_access::bump(sb, static_cast<int>(max_bump));
 9993|      0|        }
 9994|  22.3k|        streambuf_access::bump(sb, static_cast<int>(n));
 9995|  22.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_EEE17check_string_utf8ERSC_PKc:
23811|  30.0k|    {
23812|  30.0k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 30.0k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE3keyERSC_:
17890|  33.5k|    {
17891|  33.5k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 33.5k, False: 0]
  ------------------
17892|  33.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 33.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|  33.5k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  33.5k|        return true;
17898|  33.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_EEE6get_toIdEEbRT_PKc:
23503|    526|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    526|        auto new_chars_read = ia.get_elements(&dest);
23507|    526|        chars_read += new_chars_read;
23508|    526|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    526|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 70, False: 456]
  |  |  ------------------
  ------------------
23509|     70|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     70|            ++chars_read;
23512|     70|            static_cast<void>(report_eof(context));
23513|     70|            return false;
23514|     70|        }
23515|    456|        return true;
23516|    526|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIdEEmPT_m:
 9930|    526|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    526|#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|    526|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    526|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    526|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|    982|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 456, False: 70]
  |  |  |  Branch (1696:94): [True: 456, False: 70]
  |  |  |  Branch (1696:94): [True: 456, False: 0]
  |  |  ------------------
  ------------------
 9940|    456|        {
 9941|    456|            std::memcpy(dest, first, count * sizeof(T));
 9942|    456|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|    456|            return count * sizeof(T);
 9944|    456|        }
 9945|     70|#endif
 9946|     70|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     70|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     70|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 70, False: 0]
  |  |  ------------------
  ------------------
 9948|     70|        {
 9949|     70|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     70|        }
 9951|     70|        return res;
 9952|    526|    }
_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.52k|    {
23683|  1.52k|        const auto result = static_cast<number_float_t>(number);
23684|  1.52k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.94k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.52k]
  |  |  |  Branch (1697:94): [True: 1.41k, False: 104]
  |  |  |  Branch (1697:94): [True: 0, False: 1.41k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.52k|        return sax->number_float(result, no_source);
23689|  1.52k|    }
_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|     79|    {
24002|     79|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     79|    }
_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.53k|    {
24092|  1.53k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.53k|    }
_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|  40.9k|    {
17857|  40.9k|        handle_value(val);
17858|  40.9k|        return true;
17859|  40.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRdEEPSG_OT_:
17961|  40.9k|    {
17962|  40.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.52k, False: 39.3k]
  ------------------
17963|  1.52k|        {
17964|  1.52k|            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.52k|            return &root;
17971|  1.52k|        }
17972|       |
17973|  39.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  39.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 38.7k, False: 678]
  |  Branch (17973:9): [True: 678, False: 0]
  |  Branch (17973:9): [True: 39.3k, False: 0]
  ------------------
17974|       |
17975|  39.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 38.7k, False: 678]
  ------------------
17976|  38.7k|        {
17977|  38.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|  38.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  38.7k|        }
17985|       |
17986|    678|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 678, False: 0]
  ------------------
17987|    678|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 678, False: 0]
  ------------------
17988|    678|        *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|    678|        return object_element;
17995|    678|    }
_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|    491|    {
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|    491|        return get_bytes(len, "string", result);
23778|    491|    }
_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|    491|    {
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|    491|        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|    491|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 223, False: 268]
  ------------------
23898|    223|        {
23899|    223|            return true;
23900|    223|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    268|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    268|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 80, False: 188]
  ------------------
23906|     80|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     80|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 33, False: 47]
  ------------------
23910|     80|                                       ? static_cast<std::size_t>(len)
23911|     80|                                       : chunk_size;
23912|     80|            const std::size_t old_size = result.size();
23913|     80|            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|     80|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     80|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 80, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     80|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     80|            chars_read += bytes_read;
23921|     80|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     80|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 80, False: 0]
  |  |  ------------------
  ------------------
23922|     80|            {
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|     80|                result.resize(old_size + bytes_read);
23927|     80|                ++chars_read;
23928|     80|                current = char_traits<char_type>::eof();
23929|     80|                return unexpect_eof(context);
23930|     80|            }
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|    188|        return true;
23936|    268|    }
_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|    491|    {
23943|    491|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 188, False: 303]
  ------------------
23944|    188|        {
23945|    188|            return false;
23946|    188|        }
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|    303|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    303|        const std::size_t remaining = ia.bulk_remaining();
23951|    303|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 80, False: 223]
  ------------------
23952|     80|        {
23953|     80|            return false; // (the loop reports the premature end)
23954|     80|        }
23955|    223|        const auto n = static_cast<std::size_t>(ulen);
23956|    223|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    223|        ia.bulk_skip(n);
23958|    223|        chars_read += n;
23959|    223|        return true;
23960|    303|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIcEEmPT_m:
 9930|    692|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    692|#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|    692|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    692|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    692|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|    692|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 0, False: 692]
  |  |  |  Branch (1696:94): [True: 0, False: 692]
  |  |  |  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|    692|#endif
 9946|    692|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    692|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    692|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 692, False: 0]
  |  |  ------------------
  ------------------
 9948|    692|        {
 9949|    692|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    692|        }
 9951|    692|        return res;
 9952|    692|    }
_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|  17.5k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  17.5k|        handle_value(std::move(val));
17866|  17.5k|        return true;
17867|  17.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_adapterEE12handle_valueISC_EEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 456, False: 17.0k]
  ------------------
17963|    456|        {
17964|    456|            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|    456|            return &root;
17971|    456|        }
17972|       |
17973|  17.0k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.2k, False: 6.85k]
  |  Branch (17973:9): [True: 6.85k, False: 0]
  |  Branch (17973:9): [True: 17.0k, False: 0]
  ------------------
17974|       |
17975|  17.0k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.2k, False: 6.85k]
  ------------------
17976|  10.2k|        {
17977|  10.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|  10.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.2k|        }
17985|       |
17986|  6.85k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.85k, False: 0]
  ------------------
17987|  6.85k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.85k, False: 0]
  ------------------
17988|  6.85k|        *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.85k|        return object_element;
17995|  6.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIhEEmPT_m:
 9930|  41.1k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  41.1k|#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|  41.1k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  41.1k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  41.1k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  81.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 40.8k, False: 309]
  |  |  |  Branch (1696:94): [True: 40.8k, False: 309]
  |  |  |  Branch (1696:94): [True: 40.8k, False: 0]
  |  |  ------------------
  ------------------
 9940|  40.8k|        {
 9941|  40.8k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  40.8k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  40.8k|            return count * sizeof(T);
 9944|  40.8k|        }
 9945|    309|#endif
 9946|    309|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    309|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    309|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 309, False: 0]
  |  |  ------------------
  ------------------
 9948|    309|        {
 9949|    309|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    309|        }
 9951|    309|        return res;
 9952|  41.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  3.34k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  3.34k|        handle_value(std::move(val));
17874|  3.34k|        return true;
17875|  3.34k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  3.34k|    {
17962|  3.34k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 77, False: 3.26k]
  ------------------
17963|     77|        {
17964|     77|            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|     77|            return &root;
17971|     77|        }
17972|       |
17973|  3.26k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.26k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.78k, False: 480]
  |  Branch (17973:9): [True: 480, False: 0]
  |  Branch (17973:9): [True: 3.26k, False: 0]
  ------------------
17974|       |
17975|  3.26k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.78k, False: 480]
  ------------------
17976|  2.78k|        {
17977|  2.78k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.78k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.78k|        }
17985|       |
17986|    480|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 480, False: 0]
  ------------------
17987|    480|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 480, False: 0]
  ------------------
17988|    480|        *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|    480|        return object_element;
17995|    480|    }
_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|  39.3k|    {
23597|       |        // read in the original format
23598|       |
23599|  39.3k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  39.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 39.3k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  39.3k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 39.3k]
  |  Branch (23603:34): [Folded, False: 39.2k]
  |  Branch (23603:57): [True: 39.2k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  39.3k|        return true;
23608|  39.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|  39.3k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  39.3k|        auto new_chars_read = ia.get_elements(&dest);
23507|  39.3k|        chars_read += new_chars_read;
23508|  39.3k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  39.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 174, False: 39.2k]
  |  |  ------------------
  ------------------
23509|    174|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    174|            ++chars_read;
23512|    174|            static_cast<void>(report_eof(context));
23513|    174|            return false;
23514|    174|        }
23515|  39.2k|        return true;
23516|  39.3k|    }
_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|  17.5k|    {
17839|  17.5k|        handle_value(val);
17840|  17.5k|        return true;
17841|  17.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_adapterEE12handle_valueIRbEEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 22, False: 17.5k]
  ------------------
17963|     22|        {
17964|     22|            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|     22|            return &root;
17971|     22|        }
17972|       |
17973|  17.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 13.0k, False: 4.52k]
  |  Branch (17973:9): [True: 4.52k, False: 0]
  |  Branch (17973:9): [True: 17.5k, False: 0]
  ------------------
17974|       |
17975|  17.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 13.0k, False: 4.52k]
  ------------------
17976|  13.0k|        {
17977|  13.0k|            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|  13.0k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  13.0k|        }
17985|       |
17986|  4.52k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.52k, False: 0]
  ------------------
17987|  4.52k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.52k, False: 0]
  ------------------
17988|  4.52k|        *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.52k|        return object_element;
17995|  4.52k|    }
_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|  11.5k|    {
17833|  11.5k|        handle_value(nullptr);
17834|  11.5k|        return true;
17835|  11.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_adapterEE12handle_valueIDnEEPSG_OT_:
17961|  11.5k|    {
17962|  11.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 7, False: 11.5k]
  ------------------
17963|      7|        {
17964|      7|            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|      7|            return &root;
17971|      7|        }
17972|       |
17973|  11.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.88k, False: 4.65k]
  |  Branch (17973:9): [True: 4.65k, False: 0]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  ------------------
17974|       |
17975|  11.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.88k, False: 4.65k]
  ------------------
17976|  6.88k|        {
17977|  6.88k|            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.88k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.88k|        }
17985|       |
17986|  4.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.65k, False: 0]
  ------------------
17987|  4.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.65k, False: 0]
  ------------------
17988|  4.65k|        *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.65k|        return object_element;
17995|  4.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_EEE11emit_signedIiEEbT_:
23628|  2.10k|    {
23629|  2.10k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.10k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.10k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.10k|        {
23631|  2.10k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.10k|        }
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|  17.1k|    {
17845|  17.1k|        handle_value(val);
17846|  17.1k|        return true;
17847|  17.1k|    }
_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|  17.1k|    {
17962|  17.1k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 318, False: 16.8k]
  ------------------
17963|    318|        {
17964|    318|            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|    318|            return &root;
17971|    318|        }
17972|       |
17973|  16.8k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 15.6k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 16.8k, False: 0]
  ------------------
17974|       |
17975|  16.8k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 15.6k, False: 1.17k]
  ------------------
17976|  15.6k|        {
17977|  15.6k|            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|  15.6k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  15.6k|        }
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_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE15number_unsignedEm:
17850|  30.0k|    {
17851|  30.0k|        handle_value(val);
17852|  30.0k|        return true;
17853|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  30.0k|    {
17962|  30.0k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 398, False: 29.6k]
  ------------------
17963|    398|        {
17964|    398|            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|    398|            return &root;
17971|    398|        }
17972|       |
17973|  29.6k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  29.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 27.9k, False: 1.65k]
  |  Branch (17973:9): [True: 1.65k, False: 0]
  |  Branch (17973:9): [True: 29.6k, False: 0]
  ------------------
17974|       |
17975|  29.6k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 27.9k, False: 1.65k]
  ------------------
17976|  27.9k|        {
17977|  27.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|  27.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  27.9k|        }
17985|       |
17986|  1.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.65k, False: 0]
  ------------------
17987|  1.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.65k, False: 0]
  ------------------
17988|  1.65k|        *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.65k|        return object_element;
17995|  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_EEE6get_toIlEEbRT_PKc:
23503|  2.68k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.68k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.68k|        chars_read += new_chars_read;
23508|  2.68k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 116, False: 2.57k]
  |  |  ------------------
  ------------------
23509|    116|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    116|            ++chars_read;
23512|    116|            static_cast<void>(report_eof(context));
23513|    116|            return false;
23514|    116|        }
23515|  2.57k|        return true;
23516|  2.68k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIlEEmPT_m:
 9930|  2.68k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.68k|#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.68k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.68k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.68k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  5.26k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.57k, False: 116]
  |  |  |  Branch (1696:94): [True: 2.57k, False: 116]
  |  |  |  Branch (1696:94): [True: 2.57k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.57k|        {
 9941|  2.57k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.57k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.57k|            return count * sizeof(T);
 9944|  2.57k|        }
 9945|    116|#endif
 9946|    116|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    116|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    116|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 116, False: 0]
  |  |  ------------------
  ------------------
 9948|    116|        {
 9949|    116|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    116|        }
 9951|    116|        return res;
 9952|  2.68k|    }
_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|  2.15k|    {
23629|  2.15k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.15k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.15k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.15k|        {
23631|  2.15k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.15k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toImEEbRT_PKc:
23503|  4.72k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.72k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.72k|        chars_read += new_chars_read;
23508|  4.72k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.72k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 142, False: 4.58k]
  |  |  ------------------
  ------------------
23509|    142|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    142|            ++chars_read;
23512|    142|            static_cast<void>(report_eof(context));
23513|    142|            return false;
23514|    142|        }
23515|  4.58k|        return true;
23516|  4.72k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsImEEmPT_m:
 9930|  4.72k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  4.72k|#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.72k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  4.72k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  4.72k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  9.31k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.58k, False: 142]
  |  |  |  Branch (1696:94): [True: 4.58k, False: 142]
  |  |  |  Branch (1696:94): [True: 4.58k, False: 0]
  |  |  ------------------
  ------------------
 9940|  4.58k|        {
 9941|  4.58k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  4.58k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  4.58k|            return count * sizeof(T);
 9944|  4.58k|        }
 9945|    142|#endif
 9946|    142|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    142|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    142|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 142, False: 0]
  |  |  ------------------
  ------------------
 9948|    142|        {
 9949|    142|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    142|        }
 9951|    142|        return res;
 9952|  4.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_EEE13emit_unsignedImEEbT_:
23656|  12.8k|    {
23657|  12.8k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  12.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.8k, False: 0]
  |  |  ------------------
  ------------------
23658|  12.8k|        {
23659|  12.8k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  12.8k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  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_EEE10get_numberItLb0EEEbRT_:
23596|  4.33k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.33k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.33k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.33k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 4.33k]
  |  Branch (23603:34): [Folded, False: 4.17k]
  |  Branch (23603:57): [True: 4.17k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  4.33k|        return true;
23608|  4.33k|    }
_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_toItEEbRT_PKc:
23503|  4.33k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.33k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.33k|        chars_read += new_chars_read;
23508|  4.33k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 4.17k]
  |  |  ------------------
  ------------------
23509|    153|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    153|            ++chars_read;
23512|    153|            static_cast<void>(report_eof(context));
23513|    153|            return false;
23514|    153|        }
23515|  4.17k|        return true;
23516|  4.33k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsItEEmPT_m:
 9930|  4.33k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  4.33k|#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.33k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  4.33k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  4.33k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  8.51k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.17k, False: 153]
  |  |  |  Branch (1696:94): [True: 4.17k, False: 153]
  |  |  |  Branch (1696:94): [True: 4.17k, False: 0]
  |  |  ------------------
  ------------------
 9940|  4.17k|        {
 9941|  4.17k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  4.17k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  4.17k|            return count * sizeof(T);
 9944|  4.17k|        }
 9945|    153|#endif
 9946|    153|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    153|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    153|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 0]
  |  |  ------------------
  ------------------
 9948|    153|        {
 9949|    153|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    153|        }
 9951|    153|        return res;
 9952|  4.33k|    }
_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_numberIjLb0EEEbRT_:
23596|  2.28k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.28k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.28k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.28k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.28k]
  |  Branch (23603:34): [Folded, False: 2.15k]
  |  Branch (23603:57): [True: 2.15k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.28k|        return true;
23608|  2.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_EEE6get_toIjEEbRT_PKc:
23503|  2.28k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.28k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.28k|        chars_read += new_chars_read;
23508|  2.28k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 2.15k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  2.15k|        return true;
23516|  2.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIjEEmPT_m:
 9930|  2.28k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  2.28k|#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.28k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  2.28k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  2.28k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  4.43k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.15k, False: 129]
  |  |  |  Branch (1696:94): [True: 2.15k, False: 129]
  |  |  |  Branch (1696:94): [True: 2.15k, False: 0]
  |  |  ------------------
  ------------------
 9940|  2.15k|        {
 9941|  2.15k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  2.15k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  2.15k|            return count * sizeof(T);
 9944|  2.15k|        }
 9945|    129|#endif
 9946|    129|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    129|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    129|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 0]
  |  |  ------------------
  ------------------
 9948|    129|        {
 9949|    129|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    129|        }
 9951|    129|        return res;
 9952|  2.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_EEE10get_numberImLb0EEEbRT_:
23596|  4.72k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.72k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.72k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.72k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.72k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 4.72k]
  |  Branch (23603:34): [Folded, False: 4.58k]
  |  Branch (23603:57): [True: 4.58k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  4.72k|        return true;
23608|  4.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_EEE10get_stringIjEEbT_RSC_:
23767|    423|    {
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|    423|        return get_bytes(len, "string", result);
23778|    423|    }
_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_bytesIjSC_EEbT_PKcRT0_:
23893|    423|    {
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|    423|        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|    423|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 176, False: 247]
  ------------------
23898|    176|        {
23899|    176|            return true;
23900|    176|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    247|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    247|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 97, False: 150]
  ------------------
23906|     97|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     97|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 41, False: 56]
  ------------------
23910|     97|                                       ? static_cast<std::size_t>(len)
23911|     97|                                       : chunk_size;
23912|     97|            const std::size_t old_size = result.size();
23913|     97|            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|     97|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     97|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 97, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     97|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     97|            chars_read += bytes_read;
23921|     97|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     97|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 0]
  |  |  ------------------
  ------------------
23922|     97|            {
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|     97|                result.resize(old_size + bytes_read);
23927|     97|                ++chars_read;
23928|     97|                current = char_traits<char_type>::eof();
23929|     97|                return unexpect_eof(context);
23930|     97|            }
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|    150|        return true;
23936|    247|    }
_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_blockIjEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    423|    {
23943|    423|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 150, False: 273]
  ------------------
23944|    150|        {
23945|    150|            return false;
23946|    150|        }
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|    273|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    273|        const std::size_t remaining = ia.bulk_remaining();
23951|    273|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 97, False: 176]
  ------------------
23952|     97|        {
23953|     97|            return false; // (the loop reports the premature end)
23954|     97|        }
23955|    176|        const auto n = static_cast<std::size_t>(ulen);
23956|    176|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    176|        ia.bulk_skip(n);
23958|    176|        chars_read += n;
23959|    176|        return true;
23960|    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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  21.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|  21.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|  21.7k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 12.5k, False: 9.20k]
  ------------------
23898|  12.5k|        {
23899|  12.5k|            return true;
23900|  12.5k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  9.20k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  9.20k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 40, False: 9.16k]
  ------------------
23906|     40|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     40|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 40, False: 0]
  ------------------
23910|     40|                                       ? static_cast<std::size_t>(len)
23911|     40|                                       : chunk_size;
23912|     40|            const std::size_t old_size = result.size();
23913|     40|            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|     40|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     40|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 40, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     40|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     40|            chars_read += bytes_read;
23921|     40|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     40|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 40, False: 0]
  |  |  ------------------
  ------------------
23922|     40|            {
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|     40|                result.resize(old_size + bytes_read);
23927|     40|                ++chars_read;
23928|     40|                current = char_traits<char_type>::eof();
23929|     40|                return unexpect_eof(context);
23930|     40|            }
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|  9.16k|        return true;
23936|  9.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_EEE17append_from_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  21.7k|    {
23943|  21.7k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 9.16k, False: 12.5k]
  ------------------
23944|  9.16k|        {
23945|  9.16k|            return false;
23946|  9.16k|        }
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|  12.5k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  12.5k|        const std::size_t remaining = ia.bulk_remaining();
23951|  12.5k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 40, False: 12.5k]
  ------------------
23952|     40|        {
23953|     40|            return false; // (the loop reports the premature end)
23954|     40|        }
23955|  12.5k|        const auto n = static_cast<std::size_t>(ulen);
23956|  12.5k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  12.5k|        ia.bulk_skip(n);
23958|  12.5k|        chars_read += n;
23959|  12.5k|        return true;
23960|  12.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_EEE9get_bytesItSC_EEbT_PKcRT0_:
23893|    874|    {
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|    874|        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|    874|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 437, False: 437]
  ------------------
23898|    437|        {
23899|    437|            return true;
23900|    437|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    437|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    437|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 69, False: 368]
  ------------------
23906|     69|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     69|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 49, False: 20]
  ------------------
23910|     69|                                       ? static_cast<std::size_t>(len)
23911|     69|                                       : chunk_size;
23912|     69|            const std::size_t old_size = result.size();
23913|     69|            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|     69|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     69|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 69, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     69|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     69|            chars_read += bytes_read;
23921|     69|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     69|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 0]
  |  |  ------------------
  ------------------
23922|     69|            {
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|     69|                result.resize(old_size + bytes_read);
23927|     69|                ++chars_read;
23928|     69|                current = char_traits<char_type>::eof();
23929|     69|                return unexpect_eof(context);
23930|     69|            }
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|    368|        return true;
23936|    437|    }
_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_blockItEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    874|    {
23943|    874|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 368, False: 506]
  ------------------
23944|    368|        {
23945|    368|            return false;
23946|    368|        }
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|    506|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    506|        const std::size_t remaining = ia.bulk_remaining();
23951|    506|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 69, False: 437]
  ------------------
23952|     69|        {
23953|     69|            return false; // (the loop reports the premature end)
23954|     69|        }
23955|    437|        const auto n = static_cast<std::size_t>(ulen);
23956|    437|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    437|        ia.bulk_skip(n);
23958|    437|        chars_read += n;
23959|    437|        return true;
23960|    506|    }
_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_bytesImSC_EEbT_PKcRT0_:
23893|    564|    {
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|    564|        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|    564|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 186, False: 378]
  ------------------
23898|    186|        {
23899|    186|            return true;
23900|    186|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    378|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    378|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 172, False: 206]
  ------------------
23906|    172|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    172|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 30, False: 142]
  ------------------
23910|    172|                                       ? static_cast<std::size_t>(len)
23911|    172|                                       : chunk_size;
23912|    172|            const std::size_t old_size = result.size();
23913|    172|            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|    172|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    172|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 172, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    172|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    172|            chars_read += bytes_read;
23921|    172|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    172|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 172, False: 0]
  |  |  ------------------
  ------------------
23922|    172|            {
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|    172|                result.resize(old_size + bytes_read);
23927|    172|                ++chars_read;
23928|    172|                current = char_traits<char_type>::eof();
23929|    172|                return unexpect_eof(context);
23930|    172|            }
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|    206|        return true;
23936|    378|    }
_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_blockImEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    564|    {
23943|    564|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 206, False: 358]
  ------------------
23944|    206|        {
23945|    206|            return false;
23946|    206|        }
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|    358|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    358|        const std::size_t remaining = ia.bulk_remaining();
23951|    358|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 172, False: 186]
  ------------------
23952|    172|        {
23953|    172|            return false; // (the loop reports the premature end)
23954|    172|        }
23955|    186|        const auto n = static_cast<std::size_t>(ulen);
23956|    186|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    186|        ia.bulk_skip(n);
23958|    186|        chars_read += n;
23959|    186|        return true;
23960|    358|    }
_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|  9.04k|    {
23657|  9.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  9.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.04k, False: 0]
  |  |  ------------------
  ------------------
23658|  9.04k|        {
23659|  9.04k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  9.04k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  9.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13emit_unsignedItEEbT_:
23656|  3.09k|    {
23657|  3.09k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  3.09k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.09k, False: 0]
  |  |  ------------------
  ------------------
23658|  3.09k|        {
23659|  3.09k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  3.09k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  3.09k|    }
_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_unsignedIjEEbT_:
23656|  1.82k|    {
23657|  1.82k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.82k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.82k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.82k|        {
23659|  1.82k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.82k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.82k|    }
_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_bytesImNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  3.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|  3.47k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  3.47k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 3.47k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  3.47k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  5.07k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.73k, False: 3.34k]
  ------------------
23906|  1.73k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.73k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.64k, False: 93]
  ------------------
23910|  1.73k|                                       ? static_cast<std::size_t>(len)
23911|  1.73k|                                       : chunk_size;
23912|  1.73k|            const std::size_t old_size = result.size();
23913|  1.73k|            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.73k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.73k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.73k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.73k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.73k|            chars_read += bytes_read;
23921|  1.73k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.73k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 135, False: 1.60k]
  |  |  ------------------
  ------------------
23922|    135|            {
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|    135|                result.resize(old_size + bytes_read);
23927|    135|                ++chars_read;
23928|    135|                current = char_traits<char_type>::eof();
23929|    135|                return unexpect_eof(context);
23930|    135|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.60k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.60k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.60k, False: 0]
  ------------------
23933|  1.60k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.60k|        }
23935|  3.34k|        return true;
23936|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockImNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  3.47k|    {
23965|  3.47k|        return false;
23966|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10emit_floatIfEEbT_:
23682|  2.29k|    {
23683|  2.29k|        const auto result = static_cast<number_float_t>(number);
23684|  2.29k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  4.32k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  |  Branch (1697:94): [True: 2.02k, False: 270]
  |  |  |  Branch (1697:94): [True: 0, False: 2.02k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  2.29k|        return sax->number_float(result, no_source);
23689|  2.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_EEE11enter_arrayEmi:
19213|  75.1k|    {
19214|  75.1k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  75.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_EEE12enter_objectEmi:
19219|  14.3k|    {
19220|  14.3k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  14.3k|    }
_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|     99|    {
24070|     99|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|     99|    }
_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_EEE14get_half_floatEb:
23702|  33.8k|    {
23703|  33.8k|        const auto byte1_raw = get();
23704|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23705|      0|        {
23706|      0|            return false;
23707|      0|        }
23708|  33.8k|        const auto byte2_raw = get();
23709|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23710|      0|        {
23711|      0|            return false;
23712|      0|        }
23713|       |
23714|  33.8k|        const auto byte1 = static_cast<unsigned char>(byte1_raw);
23715|  33.8k|        const auto byte2 = static_cast<unsigned char>(byte2_raw);
23716|       |
23717|       |        // Code from RFC 8949, Appendix D, Figure 3:
23718|       |        // As half-precision floating-point numbers were only added
23719|       |        // to IEEE 754 in 2008, today's programming platforms often
23720|       |        // still only have limited support for them. It is very
23721|       |        // easy to include at least decoding support for them even
23722|       |        // without such support. An example of a small decoder for
23723|       |        // half-precision floating-point numbers in the C language
23724|       |        // is shown in Fig. 3.
23725|  33.8k|        const auto half = little_endian
  ------------------
  |  Branch (23725:27): [True: 33.7k, False: 98]
  ------------------
23726|  33.8k|                          ? static_cast<unsigned int>((byte2 << 8u) + byte1)
23727|  33.8k|                          : static_cast<unsigned int>((byte1 << 8u) + byte2);
23728|  33.8k|        const double val = [&half]
23729|  33.8k|        {
23730|  33.8k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.8k|            const unsigned int mant = half & 0x3FFu;
23732|  33.8k|            JSON_ASSERT(exp <= 31);
23733|  33.8k|            JSON_ASSERT(mant <= 1023);
23734|  33.8k|            switch (exp)
23735|  33.8k|            {
23736|  33.8k|                case 0:
23737|  33.8k|                    return std::ldexp(mant, -24);
23738|  33.8k|                case 31:
23739|  33.8k|                    return (mant == 0)
23740|  33.8k|                    ? std::numeric_limits<double>::infinity()
23741|  33.8k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  33.8k|                default:
23743|  33.8k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.8k|            }
23745|  33.8k|        }();
23746|  33.8k|        return sax->number_float((half & 0x8000u) != 0
  ------------------
  |  Branch (23746:34): [True: 6.67k, False: 27.1k]
  ------------------
23747|  33.8k|                                 ? static_cast<number_float_t>(-val)
23748|  33.8k|                                 : static_cast<number_float_t>(val), no_source);
23749|  33.8k|    }
_ZZN8nlohmann16json_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_EEE14get_half_floatEbENKUlvE_clEv:
23729|  33.7k|        {
23730|  33.7k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.7k|            const unsigned int mant = half & 0x3FFu;
23732|  33.7k|            JSON_ASSERT(exp <= 31);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23732:13): [True: 33.7k, False: 0]
  ------------------
23733|  33.7k|            JSON_ASSERT(mant <= 1023);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23733:13): [True: 33.7k, False: 0]
  ------------------
23734|  33.7k|            switch (exp)
23735|  33.7k|            {
23736|  5.96k|                case 0:
  ------------------
  |  Branch (23736:17): [True: 5.96k, False: 27.7k]
  ------------------
23737|  5.96k|                    return std::ldexp(mant, -24);
23738|  2.11k|                case 31:
  ------------------
  |  Branch (23738:17): [True: 2.11k, False: 31.6k]
  ------------------
23739|  2.11k|                    return (mant == 0)
  ------------------
  |  Branch (23739:28): [True: 1, False: 2.11k]
  ------------------
23740|  2.11k|                    ? std::numeric_limits<double>::infinity()
23741|  2.11k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  25.6k|                default:
  ------------------
  |  Branch (23742:17): [True: 25.6k, False: 8.07k]
  ------------------
23743|  25.6k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.7k|            }
23745|  33.7k|        }();
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIfLb0EEEbRT_:
23596|    842|    {
23597|       |        // read in the original format
23598|       |
23599|    842|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    842|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 842]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    842|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 842]
  |  Branch (23603:34): [Folded, False: 737]
  |  Branch (23603:57): [True: 737, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    842|        return true;
23608|    842|    }
_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|    842|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    842|        auto new_chars_read = ia.get_elements(&dest);
23507|    842|        chars_read += new_chars_read;
23508|    842|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    842|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 737]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|    737|        return true;
23516|    842|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIfEEmPT_m:
 9930|    842|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    842|#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|    842|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    842|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    842|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  1.57k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 737, False: 105]
  |  |  |  Branch (1696:94): [True: 737, False: 105]
  |  |  |  Branch (1696:94): [True: 737, False: 0]
  |  |  ------------------
  ------------------
 9940|    737|        {
 9941|    737|            std::memcpy(dest, first, count * sizeof(T));
 9942|    737|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|    737|            return count * sizeof(T);
 9944|    737|        }
 9945|    105|#endif
 9946|    105|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    105|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    105|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 0]
  |  |  ------------------
  ------------------
 9948|    105|        {
 9949|    105|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    105|        }
 9951|    105|        return res;
 9952|    842|    }
_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|    526|    {
23597|       |        // read in the original format
23598|       |
23599|    526|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    526|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 526]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    526|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 526]
  |  Branch (23603:34): [Folded, False: 456]
  |  Branch (23603:57): [True: 456, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    526|        return true;
23608|    526|    }
_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|  21.7k|    {
23847|  21.7k|        NumberType len{};
23848|  21.7k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 21.7k, False: 10]
  |  Branch (23848:35): [True: 21.6k, False: 40]
  |  Branch (23848:62): [True: 21.6k, False: 0]
  ------------------
23849|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_stringIhEEbT_RSC_:
23767|  21.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|  21.7k|        return get_bytes(len, "string", result);
23778|  21.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_EEE22get_string_with_lengthItEEbRSC_PKc:
23846|    885|    {
23847|    885|        NumberType len{};
23848|    885|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 874, False: 11]
  |  Branch (23848:35): [True: 805, False: 69]
  |  Branch (23848:62): [True: 805, False: 0]
  ------------------
23849|    885|    }
_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_stringItEEbT_RSC_:
23767|    874|    {
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|    874|        return get_bytes(len, "string", result);
23778|    874|    }
_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_lengthIjEEbRSC_PKc:
23846|    435|    {
23847|    435|        NumberType len{};
23848|    435|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 423, False: 12]
  |  Branch (23848:35): [True: 326, False: 97]
  |  Branch (23848:62): [True: 326, False: 0]
  ------------------
23849|    435|    }
_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|  24.8k|    {
23597|       |        // read in the original format
23598|       |
23599|  24.8k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  24.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 24.8k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  24.8k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 24.8k]
  |  Branch (23603:34): [Folded, False: 24.6k]
  |  Branch (23603:57): [True: 24.6k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  24.8k|        return true;
23608|  24.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_toIaEEbRT_PKc:
23503|  24.8k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  24.8k|        auto new_chars_read = ia.get_elements(&dest);
23507|  24.8k|        chars_read += new_chars_read;
23508|  24.8k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  24.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 24.6k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  24.6k|        return true;
23516|  24.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIaEEmPT_m:
 9930|  24.8k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  24.8k|#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|  24.8k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  24.8k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  24.8k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  49.5k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 24.6k, False: 129]
  |  |  |  Branch (1696:94): [True: 24.6k, False: 129]
  |  |  |  Branch (1696:94): [True: 24.6k, False: 0]
  |  |  ------------------
  ------------------
 9940|  24.6k|        {
 9941|  24.6k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  24.6k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  24.6k|            return count * sizeof(T);
 9944|  24.6k|        }
 9945|    129|#endif
 9946|    129|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    129|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    129|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 0]
  |  |  ------------------
  ------------------
 9948|    129|        {
 9949|    129|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    129|        }
 9951|    129|        return res;
 9952|  24.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_EEE11emit_signedIaEEbT_:
23628|  8.80k|    {
23629|  8.80k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  8.80k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.80k, False: 0]
  |  |  ------------------
  ------------------
23630|  8.80k|        {
23631|  8.80k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  8.80k|        }
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|  3.92k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.92k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.92k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.92k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.92k]
  |  Branch (23603:34): [Folded, False: 3.77k]
  |  Branch (23603:57): [True: 3.77k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.92k|        return true;
23608|  3.92k|    }
_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|  3.92k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.92k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.92k|        chars_read += new_chars_read;
23508|  3.92k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 3.77k]
  |  |  ------------------
  ------------------
23509|    148|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    148|            ++chars_read;
23512|    148|            static_cast<void>(report_eof(context));
23513|    148|            return false;
23514|    148|        }
23515|  3.77k|        return true;
23516|  3.92k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIsEEmPT_m:
 9930|  3.92k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  3.92k|#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|  3.92k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  3.92k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  3.92k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  7.70k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.77k, False: 148]
  |  |  |  Branch (1696:94): [True: 3.77k, False: 148]
  |  |  |  Branch (1696:94): [True: 3.77k, False: 0]
  |  |  ------------------
  ------------------
 9940|  3.77k|        {
 9941|  3.77k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  3.77k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  3.77k|            return count * sizeof(T);
 9944|  3.77k|        }
 9945|    148|#endif
 9946|    148|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    148|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    148|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 0]
  |  |  ------------------
  ------------------
 9948|    148|        {
 9949|    148|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    148|        }
 9951|    148|        return res;
 9952|  3.92k|    }
_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.62k|    {
23629|  3.62k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.62k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.62k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.62k|        {
23631|  3.62k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.62k|        }
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.29k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.29k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.29k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.29k]
  |  Branch (23603:34): [Folded, False: 2.18k]
  |  Branch (23603:57): [True: 2.18k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.29k|        return true;
23608|  2.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_EEE10get_numberIlLb0EEEbRT_:
23596|  2.68k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.68k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.68k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.68k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.68k]
  |  Branch (23603:34): [Folded, False: 2.57k]
  |  Branch (23603:57): [True: 2.57k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.68k|        return true;
23608|  2.68k|    }
_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|  15.9k|    {
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|  15.9k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  15.9k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   207k|        while (true)
  ------------------
  |  Branch (21815:16): [True: 200k, Folded]
  ------------------
21816|   200k|        {
21817|   200k|            const std::size_t depth = container_stack.size();
21818|       |
21819|   200k|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   200k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 200k]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   200k|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.09k, False: 197k]
  ------------------
21826|  3.09k|            {
21827|  3.09k|                return true;
21828|  3.09k|            }
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|   197k|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 101k, False: 95.5k]
  |  Branch (21832:52): [True: 63.9k, False: 37.9k]
  ------------------
21833|  63.9k|            {
21834|  63.9k|                get_ignore_noop();
21835|  63.9k|            }
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|   197k|            for (;;)
21842|   242k|            {
21843|   242k|                const container_frame top = container_stack.back();
21844|       |
21845|   242k|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 45.2k, False: 196k]
  ------------------
21846|  45.2k|                {
21847|  45.2k|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 41.0k, False: 4.18k]
  ------------------
21848|  41.0k|                    {
21849|  41.0k|                        --container_stack.back().remaining;
21850|  41.0k|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 994, False: 40.0k]
  ------------------
21851|    994|                        {
21852|    994|                            key.clear();
21853|    994|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 994]
  |  |  |  Branch (1697:94): [True: 87, False: 907]
  |  |  |  Branch (1697:94): [True: 0, False: 907]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|    994|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|  41.0k|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 34.3k, False: 6.74k]
  ------------------
21860|  41.0k|                        break;
21861|  41.0k|                    }
21862|  45.2k|                }
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|   196k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 34.5k, False: 162k]
  |  Branch (21867:26): [True: 144k, False: 52.3k]
  ------------------
21868|   144k|                {
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|   144k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 23.7k, False: 120k]
  ------------------
21873|  23.7k|                    {
21874|  23.7k|                        key.clear();
21875|  23.7k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  46.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.7k]
  |  |  |  Branch (1697:94): [True: 1.00k, False: 22.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 22.7k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  23.7k|                        prefix = get_ignore_noop();
21880|  23.7k|                    }
21881|   120k|                    else
21882|   120k|                    {
21883|   120k|                        prefix = current;
21884|   120k|                    }
21885|   144k|                    break;
21886|   144k|                }
21887|       |
21888|  56.5k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  56.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 56.5k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  56.5k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 5.39k, False: 51.1k]
  ------------------
21893|  5.39k|                {
21894|  5.39k|                    return true;
21895|  5.39k|                }
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|  51.1k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 50.8k, False: 316]
  ------------------
21899|  50.8k|                {
21900|  50.8k|                    get_ignore_noop();
21901|  50.8k|                }
21902|  51.1k|            }
21903|   197k|        }
21904|  15.9k|    }
_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|   202k|    {
22405|   202k|        switch (prefix)
22406|   202k|        {
22407|  1.50k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.50k, False: 201k]
  ------------------
22408|  1.50k|                return unexpect_eof("value");
22409|       |
22410|  10.7k|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 10.7k, False: 192k]
  ------------------
22411|  10.7k|                return sax->boolean(true);
22412|  6.83k|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 6.83k, False: 195k]
  ------------------
22413|  6.83k|                return sax->boolean(false);
22414|       |
22415|  11.5k|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 11.5k, False: 191k]
  ------------------
22416|  11.5k|                return sax->null();
22417|       |
22418|  1.80k|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1.80k, False: 200k]
  ------------------
22419|  1.80k|            {
22420|  1.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 0, False: 1.80k]
  ------------------
22421|      0|                {
22422|      0|                    break;
22423|      0|                }
22424|  1.80k|                std::uint8_t number{};
22425|  1.80k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 1.80k, False: 4]
  |  Branch (22425:46): [True: 1.80k, False: 0]
  ------------------
22426|  1.80k|            }
22427|       |
22428|  2.75k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 2.75k, False: 200k]
  ------------------
22429|  2.75k|            {
22430|  2.75k|                std::uint8_t number{};
22431|  2.75k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 2.63k, False: 122]
  |  Branch (22431:46): [True: 2.63k, False: 0]
  ------------------
22432|  1.80k|            }
22433|       |
22434|  3.81k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 3.81k, False: 198k]
  ------------------
22435|  3.81k|            {
22436|  3.81k|                std::int8_t number{};
22437|  3.81k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 3.71k, False: 101]
  |  Branch (22437:46): [True: 3.71k, False: 0]
  ------------------
22438|  1.80k|            }
22439|       |
22440|  1.59k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 1.59k, False: 201k]
  ------------------
22441|  1.59k|            {
22442|  1.59k|                std::int16_t number{};
22443|  1.59k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 1.50k, False: 98]
  |  Branch (22443:46): [True: 1.50k, False: 0]
  ------------------
22444|  1.80k|            }
22445|       |
22446|    908|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 908, False: 201k]
  ------------------
22447|    908|            {
22448|    908|                std::int32_t number{};
22449|    908|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 850, False: 58]
  |  Branch (22449:46): [True: 850, False: 0]
  ------------------
22450|  1.80k|            }
22451|       |
22452|  1.46k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 1.46k, False: 201k]
  ------------------
22453|  1.46k|            {
22454|  1.46k|                std::int64_t number{};
22455|  1.46k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 1.40k, False: 67]
  |  Branch (22455:46): [True: 1.40k, False: 0]
  ------------------
22456|  1.80k|            }
22457|       |
22458|  1.15k|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 1.15k, False: 201k]
  ------------------
22459|  1.15k|            {
22460|  1.15k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 0, False: 1.15k]
  ------------------
22461|      0|                {
22462|      0|                    break;
22463|      0|                }
22464|  1.15k|                std::uint16_t number{};
22465|  1.15k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 1.05k, False: 102]
  |  Branch (22465:46): [True: 1.05k, False: 0]
  ------------------
22466|  1.15k|            }
22467|       |
22468|  1.01k|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 1.01k, False: 201k]
  ------------------
22469|  1.01k|            {
22470|  1.01k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 0, False: 1.01k]
  ------------------
22471|      0|                {
22472|      0|                    break;
22473|      0|                }
22474|  1.01k|                std::uint32_t number{};
22475|  1.01k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 931, False: 87]
  |  Branch (22475:46): [True: 931, False: 0]
  ------------------
22476|  1.01k|            }
22477|       |
22478|  3.04k|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 3.04k, False: 199k]
  ------------------
22479|  3.04k|            {
22480|  3.04k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 0, False: 3.04k]
  ------------------
22481|      0|                {
22482|      0|                    break;
22483|      0|                }
22484|  3.04k|                std::uint64_t number{};
22485|  3.04k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 2.96k, False: 84]
  |  Branch (22485:46): [True: 2.96k, False: 0]
  ------------------
22486|  3.04k|            }
22487|       |
22488|  33.8k|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 33.8k, False: 168k]
  ------------------
22489|  33.8k|            {
22490|  33.8k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 0, False: 33.8k]
  ------------------
22491|      0|                {
22492|      0|                    break;
22493|      0|                }
22494|  33.8k|                return get_half_float(true);
22495|  33.8k|            }
22496|       |
22497|    842|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 842, False: 201k]
  ------------------
22498|    842|            {
22499|    842|                float number{};
22500|    842|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 737, False: 105]
  |  Branch (22500:46): [True: 737, False: 0]
  ------------------
22501|  33.8k|            }
22502|       |
22503|    526|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 526, False: 202k]
  ------------------
22504|    526|            {
22505|    526|                double number{};
22506|    526|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 456, False: 70]
  |  Branch (22506:46): [True: 456, False: 0]
  ------------------
22507|  33.8k|            }
22508|       |
22509|  7.74k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 7.74k, False: 195k]
  ------------------
22510|  7.74k|            {
22511|  7.74k|                return get_ubjson_high_precision_number();
22512|  33.8k|            }
22513|       |
22514|  7.96k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 7.96k, False: 194k]
  ------------------
22515|  7.96k|            {
22516|  7.96k|                get();
22517|  7.96k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.96k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  7.96k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 7.95k]
  |  |  ------------------
  ------------------
22522|      3|                {
22523|      3|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      3|                }
22525|  7.95k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  7.95k|                return sax->string(s);
22527|  7.96k|            }
22528|       |
22529|  6.51k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 6.51k, False: 196k]
  ------------------
22530|  6.51k|            {
22531|  6.51k|                string_t s;
22532|  6.51k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 6.34k, False: 171]
  |  Branch (22532:48): [True: 6.34k, False: 0]
  ------------------
22533|  7.96k|            }
22534|       |
22535|  82.4k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 82.4k, False: 120k]
  ------------------
22536|  82.4k|                return get_ubjson_array();
22537|       |
22538|  14.5k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 14.5k, False: 188k]
  ------------------
22539|  14.5k|                return get_ubjson_object();
22540|       |
22541|     99|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 99, False: 202k]
  ------------------
22542|     99|                break;
22543|   202k|        }
22544|     99|        return unexpected_byte("invalid byte", "value");
22545|   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_EEE32get_ubjson_high_precision_numberEv:
22845|  7.74k|    {
22846|       |        // get the size of the following number string
22847|  7.74k|        std::size_t size{};
22848|  7.74k|        bool no_ndarray = true;
22849|  7.74k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  7.74k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.74k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  7.74k|        std::vector<char> number_vector;
22857|  98.6k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 90.9k, False: 7.74k]
  ------------------
22858|  90.9k|        {
22859|  90.9k|            get();
22860|  90.9k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 90.9k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|  90.9k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 90.9k]
  |  |  ------------------
  ------------------
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|  90.9k|            number_vector.push_back(static_cast<char>(current));
22871|  90.9k|        }
22872|       |
22873|       |        // parse number string
22874|  7.74k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  7.74k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  7.74k|        const auto result_number = number_lexer.scan();
22877|  7.74k|        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|  7.74k|        const string_t number_text = number_lexer.get_string();
22882|  7.74k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  7.74k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  7.74k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.07k, False: 6.67k]
  |  |  ------------------
  ------------------
22887|  1.07k|        {
22888|  1.07k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.07k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.07k|        }
22891|       |
22892|  6.67k|        switch (result_number)
22893|  6.67k|        {
22894|    455|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 455, False: 6.21k]
  ------------------
22895|    455|                return sax->number_integer(number_lexer.get_number_integer());
22896|  1.64k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 1.64k, False: 5.02k]
  ------------------
22897|  1.64k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.55k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.55k, False: 3.11k]
  ------------------
22899|  3.55k|            {
22900|  3.55k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.55k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.55k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 210, False: 3.34k]
  |  |  ------------------
  ------------------
22902|    210|                {
22903|    210|                    return sax->parse_error(
22904|    210|                               chars_read,
22905|    210|                               number_string,
22906|    210|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    210|                }
22908|  3.34k|                return sax->number_float(parsed_float, number_text);
22909|  3.55k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 6.67k]
  ------------------
22911|      0|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 0, False: 6.67k]
  ------------------
22912|      1|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 6.67k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 1, False: 6.67k]
  ------------------
22914|      5|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 3, False: 6.67k]
  ------------------
22915|      7|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 2, False: 6.67k]
  ------------------
22916|      8|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 6.67k]
  ------------------
22917|      9|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 6.67k]
  ------------------
22918|     10|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 6.67k]
  ------------------
22919|     12|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 2, False: 6.67k]
  ------------------
22920|     13|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 6.67k]
  ------------------
22921|    604|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 591, False: 6.08k]
  ------------------
22922|    650|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 46, False: 6.62k]
  ------------------
22923|    650|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 6.67k]
  ------------------
22924|    650|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 6.67k]
  ------------------
22925|    650|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    650|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  6.67k|        }
22928|  6.67k|    }
_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|  44.0k|    {
22149|  44.0k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 25.0k, False: 18.9k]
  ------------------
22150|  25.0k|        {
22151|  25.0k|            prefix = get_ignore_noop();
22152|  25.0k|        }
22153|       |
22154|  44.0k|        switch (prefix)
22155|  44.0k|        {
22156|  13.0k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 13.0k, False: 30.9k]
  ------------------
22157|  13.0k|            {
22158|  13.0k|                std::uint8_t number{};
22159|  13.0k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  13.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 13.0k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  13.0k|                result = static_cast<std::size_t>(number);
22164|  13.0k|                return true;
22165|  13.0k|            }
22166|       |
22167|  15.4k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 15.4k, False: 28.5k]
  ------------------
22168|  15.4k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.68k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.68k, False: 42.3k]
  ------------------
22171|  1.68k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    852|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 852, False: 43.2k]
  ------------------
22174|    852|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    678|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 678, False: 43.3k]
  ------------------
22177|    678|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|  2.29k|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 2.29k, False: 41.7k]
  ------------------
22180|  2.29k|            {
22181|  2.29k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 0, False: 2.29k]
  ------------------
22182|      0|                {
22183|      0|                    break;
22184|      0|                }
22185|  2.29k|                std::uint16_t number{};
22186|  2.29k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|  2.29k|                result = static_cast<std::size_t>(number);
22191|  2.29k|                return true;
22192|  2.29k|            }
22193|       |
22194|    827|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 827, False: 43.2k]
  ------------------
22195|    827|            {
22196|    827|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 0, False: 827]
  ------------------
22197|      0|                {
22198|      0|                    break;
22199|      0|                }
22200|    827|                std::uint32_t number{};
22201|    827|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    827|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 827]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|    827|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|    827|            }
22207|       |
22208|  1.09k|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1.09k, False: 42.9k]
  ------------------
22209|  1.09k|            {
22210|  1.09k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 0, False: 1.09k]
  ------------------
22211|      0|                {
22212|      0|                    break;
22213|      0|                }
22214|  1.09k|                std::uint64_t number{};
22215|  1.09k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.09k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.09k]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|  1.09k|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 1.09k]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|  1.09k|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|  1.09k|            }
22225|       |
22226|  7.80k|            case '[':
  ------------------
  |  Branch (22226:13): [True: 7.80k, False: 36.2k]
  ------------------
22227|  7.80k|            {
22228|  7.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 0, False: 7.80k]
  ------------------
22229|      0|                {
22230|      0|                    break;
22231|      0|                }
22232|  7.80k|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 7, False: 7.79k]
  ------------------
22233|      7|                {
22234|      7|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      7|                }
22236|  7.79k|                std::vector<size_t> dim;
22237|  7.79k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|  7.79k|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 1.15k, False: 6.64k]
  |  Branch (22241:41): [True: 2.23k, False: 4.40k]
  |  Branch (22241:60): [True: 209, False: 2.03k]
  ------------------
22242|    806|                {
22243|    806|                    result = dim.at(dim.size() - 1);
22244|    806|                    return true;
22245|    806|                }
22246|  6.99k|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 3.61k, False: 3.37k]
  ------------------
22247|  3.61k|                {
22248|  3.61k|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 10.3k, False: 3.41k]
  ------------------
22249|  10.3k|                    {
22250|  10.3k|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 200, False: 10.1k]
  ------------------
22251|    200|                        {
22252|    200|                            result = 0;
22253|    200|                            return true;
22254|    200|                        }
22255|  10.3k|                    }
22256|       |
22257|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|  3.41k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
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|  3.41k|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 3.24k, False: 174]
  ------------------
22266|  3.24k|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|  3.24k|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|  3.24k|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|  3.24k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 3.24k, False: 0]
  ------------------
22270|       |
22271|  3.24k|                        string_t type_key = "_ArrayType_";
22272|  3.24k|                        string_t type = type_name; // sax->string() takes a reference
22273|  3.24k|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|  6.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|  3.24k|                    }
22278|       |
22279|  3.41k|                    string_t key = "_ArraySize_";
22280|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|  6.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|  3.41k|                    result = 1;
22285|  3.41k|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 9.29k, False: 3.34k]
  ------------------
22286|  9.29k|                    {
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|  9.29k|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|  9.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 9.22k]
  |  |  ------------------
  ------------------
22295|     77|                        {
22296|     77|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|     77|                        }
22298|  9.22k|                        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|  9.22k|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 1, False: 9.21k]
  ------------------
22304|      1|                        {
22305|      1|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      1|                        }
22307|  9.21k|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|  9.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.21k]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|  9.21k|                    }
22312|  3.34k|                    is_ndarray = true;
22313|  3.34k|                    return sax->end_array();
22314|  3.41k|                }
22315|  3.37k|                result = 0;
22316|  3.37k|                return true;
22317|  6.99k|            }
22318|       |
22319|    275|            default:
  ------------------
  |  Branch (22319:13): [True: 275, False: 43.7k]
  ------------------
22320|    275|                break;
22321|  44.0k|        }
22322|    275|        return length_type_error(" after '#'", "size");
22323|  44.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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  15.4k|    {
22115|  15.4k|        SignedType number{};
22116|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  15.4k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 15.4k]
  |  |  ------------------
  ------------------
22121|      4|        {
22122|      4|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      4|        }
22124|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  15.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|  15.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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.68k|    {
22115|  1.68k|        SignedType number{};
22116|  1.68k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.68k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.68k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 8, False: 1.67k]
  |  |  ------------------
  ------------------
22121|      8|        {
22122|      8|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      8|        }
22124|  1.67k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.67k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.67k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.67k|        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.67k|    }
_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|    852|    {
22115|    852|        SignedType number{};
22116|    852|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 852]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    852|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 818]
  |  |  ------------------
  ------------------
22121|     34|        {
22122|     34|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     34|        }
22124|    818|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 818]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    818|        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|    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_EEE23get_ubjson_signed_countIlEEbRm:
22114|    678|    {
22115|    678|        SignedType number{};
22116|    678|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 678]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    678|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 68, False: 610]
  |  |  ------------------
  ------------------
22121|     68|        {
22122|     68|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     68|        }
22124|    610|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    610|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 610]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    610|        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|    610|    }
_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|  20.2k|    {
22090|  20.2k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  20.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 20.2k]
  |  |  ------------------
  ------------------
22091|      1|        {
22092|      1|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      1|        }
22094|  20.2k|        result = count;
22095|  20.2k|        return true;
22096|  20.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_ndarray_sizeERNS6_ImNSA_ImEEEE:
22027|  7.79k|    {
22028|  7.79k|        std::pair<std::size_t, char_int_type> size_and_type;
22029|  7.79k|        size_t dimlen = 0;
22030|  7.79k|        bool no_ndarray = true;
22031|       |
22032|  7.79k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type, no_ndarray)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22033|      0|        {
22034|      0|            return false;
22035|      0|        }
22036|       |
22037|  7.79k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22037:13): [True: 1.61k, False: 6.18k]
  ------------------
22038|  1.61k|        {
22039|  1.61k|            if (size_and_type.second != 0)
  ------------------
  |  Branch (22039:17): [True: 1.17k, False: 438]
  ------------------
22040|  1.17k|            {
22041|  9.87k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22041:41): [True: 8.69k, False: 1.17k]
  ------------------
22042|  8.69k|                {
22043|  8.69k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, size_and_type.second)))
  ------------------
  |  | 1697|  8.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.69k]
  |  |  ------------------
  ------------------
22044|      0|                    {
22045|      0|                        return false;
22046|      0|                    }
22047|  8.69k|                    dim.push_back(dimlen);
22048|  8.69k|                }
22049|  1.17k|            }
22050|    438|            else
22051|    438|            {
22052|  1.44k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22052:41): [True: 1.00k, False: 438]
  ------------------
22053|  1.00k|                {
22054|  1.00k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray)))
  ------------------
  |  | 1697|  1.00k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
22055|      0|                    {
22056|      0|                        return false;
22057|      0|                    }
22058|  1.00k|                    dim.push_back(dimlen);
22059|  1.00k|                }
22060|    438|            }
22061|  1.61k|        }
22062|  6.18k|        else
22063|  6.18k|        {
22064|  16.4k|            while (current != ']')
  ------------------
  |  Branch (22064:20): [True: 10.2k, False: 6.18k]
  ------------------
22065|  10.2k|            {
22066|  10.2k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, current)))
  ------------------
  |  | 1697|  10.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.2k]
  |  |  ------------------
  ------------------
22067|      0|                {
22068|      0|                    return false;
22069|      0|                }
22070|  10.2k|                dim.push_back(dimlen);
22071|  10.2k|                get_ignore_noop();
22072|  10.2k|            }
22073|  6.18k|        }
22074|  7.79k|        return true;
22075|  7.79k|    }
_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|   104k|    {
22338|   104k|        result.first = npos; // size
22339|   104k|        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|   104k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|   104k|        get_ignore_noop();
22348|       |
22349|   104k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 12.2k, False: 92.5k]
  ------------------
22350|  12.2k|        {
22351|  12.2k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.2k]
  |  |  ------------------
  ------------------
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|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 17, False: 12.2k]
  |  |  ------------------
  ------------------
22361|     17|            {
22362|     17|                return optimized_type_error();
22363|     17|            }
22364|       |
22365|  12.2k|            get_ignore_noop();
22366|  12.2k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 12.0k]
  |  |  ------------------
  ------------------
22367|    129|            {
22368|    129|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    129|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 129]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    129|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    129|            }
22374|       |
22375|  12.0k|            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|  12.0k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 4.41k, False: 7.67k]
  |  Branch (22379:31): [True: 3.24k, False: 1.17k]
  ------------------
22380|  3.24k|            {
22381|  3.24k|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|  3.24k|            }
22383|  12.0k|            return is_error;
22384|  12.2k|        }
22385|       |
22386|  92.5k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 4.23k, False: 88.3k]
  ------------------
22387|  4.23k|        {
22388|  4.23k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  4.23k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 535, False: 3.70k]
  |  Branch (22389:31): [True: 97, False: 438]
  ------------------
22390|     97|            {
22391|     97|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|     97|            }
22393|  4.14k|            return is_error;
22394|  4.23k|        }
22395|       |
22396|  88.3k|        return true;
22397|  92.5k|    }
_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|  12.2k|    {
24158|  12.2k|        switch (marker)
24159|  12.2k|        {
24160|  1.02k|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 1.02k, False: 11.2k]
  ------------------
24161|  1.82k|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 800, False: 11.4k]
  ------------------
24162|  2.42k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 601, False: 11.6k]
  ------------------
24163|  3.07k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 649, False: 11.5k]
  ------------------
24164|  3.64k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 566, False: 11.6k]
  ------------------
24165|  4.23k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 589, False: 11.6k]
  ------------------
24166|  4.77k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 540, False: 11.6k]
  ------------------
24167|  5.25k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 486, False: 11.7k]
  ------------------
24168|  5.25k|                return true;
24169|      1|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 1, False: 12.2k]
  ------------------
24170|      2|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 1, False: 12.2k]
  ------------------
24171|      3|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 1, False: 12.2k]
  ------------------
24172|      4|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 1, False: 12.2k]
  ------------------
24173|      5|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 1, False: 12.2k]
  ------------------
24174|      6|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 1, False: 12.2k]
  ------------------
24175|      9|            case '[':
  ------------------
  |  Branch (24175:13): [True: 3, False: 12.2k]
  ------------------
24176|     10|            case '{':
  ------------------
  |  Branch (24176:13): [True: 1, False: 12.2k]
  ------------------
24177|     10|                return input_format != input_format_t::bjdata;
24178|  4.08k|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 4.08k, False: 8.15k]
  ------------------
24179|  4.76k|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 673, False: 11.5k]
  ------------------
24180|  5.30k|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 547, False: 11.6k]
  ------------------
24181|  5.98k|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 673, False: 11.5k]
  ------------------
24182|  6.96k|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 984, False: 11.2k]
  ------------------
24183|  6.96k|                return input_format == input_format_t::bjdata;
24184|      7|            default:
  ------------------
  |  Branch (24184:13): [True: 7, False: 12.2k]
  ------------------
24185|      7|                return false;
24186|  12.2k|        }
24187|  12.2k|    }
_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|     17|    {
24015|     17|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     17|    }
_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_EEE13bjd_type_nameEi:
24198|  3.24k|    {
24199|  3.24k|        switch (marker)
24200|  3.24k|        {
24201|    421|            case 'B':
  ------------------
  |  Branch (24201:13): [True: 421, False: 2.82k]
  ------------------
24202|    421|                return "byte";
24203|    277|            case 'C':
  ------------------
  |  Branch (24203:13): [True: 277, False: 2.96k]
  ------------------
24204|    277|                return "char";
24205|    190|            case 'D':
  ------------------
  |  Branch (24205:13): [True: 190, False: 3.05k]
  ------------------
24206|    190|                return "double";
24207|    209|            case 'I':
  ------------------
  |  Branch (24207:13): [True: 209, False: 3.03k]
  ------------------
24208|    209|                return "int16";
24209|    174|            case 'L':
  ------------------
  |  Branch (24209:13): [True: 174, False: 3.07k]
  ------------------
24210|    174|                return "int64";
24211|    149|            case 'M':
  ------------------
  |  Branch (24211:13): [True: 149, False: 3.09k]
  ------------------
24212|    149|                return "uint64";
24213|    282|            case 'U':
  ------------------
  |  Branch (24213:13): [True: 282, False: 2.96k]
  ------------------
24214|    282|                return "uint8";
24215|    188|            case 'd':
  ------------------
  |  Branch (24215:13): [True: 188, False: 3.05k]
  ------------------
24216|    188|                return "single";
24217|    222|            case 'h':
  ------------------
  |  Branch (24217:13): [True: 222, False: 3.02k]
  ------------------
24218|    222|                return "half";
24219|    431|            case 'i':
  ------------------
  |  Branch (24219:13): [True: 431, False: 2.81k]
  ------------------
24220|    431|                return "int8";
24221|    238|            case 'l':
  ------------------
  |  Branch (24221:13): [True: 238, False: 3.00k]
  ------------------
24222|    238|                return "int32";
24223|    194|            case 'm':
  ------------------
  |  Branch (24223:13): [True: 194, False: 3.05k]
  ------------------
24224|    194|                return "uint32";
24225|    270|            case 'u':
  ------------------
  |  Branch (24225:13): [True: 270, False: 2.97k]
  ------------------
24226|    270|                return "uint16";
24227|      0|            default:
  ------------------
  |  Branch (24227:13): [True: 0, False: 3.24k]
  ------------------
24228|      0|                return nullptr;
24229|  3.24k|        }
24230|  3.24k|    }
_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|    318|    {
24082|    318|        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: 318, False: 0]
  ------------------
24083|    318|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    318|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    318|    }
_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|  82.4k|    {
22708|  82.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  82.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 82.4k]
  |  |  ------------------
  ------------------
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|  82.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 3.24k, False: 79.2k]
  ------------------
22718|  3.24k|        {
22719|  3.24k|            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|  3.24k|            const bool nd_is_char = size_and_type.second == 'C';
22727|  3.24k|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 277, False: 2.96k]
  |  Branch (22727:48): [True: 421, False: 2.54k]
  ------------------
22728|    698|            {
22729|    698|                size_and_type.second = 'U';
22730|    698|            }
22731|       |
22732|  3.24k|            string_t key = "_ArrayData_";
22733|  3.24k|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|  6.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 1, False: 3.24k]
  |  |  ------------------
  ------------------
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|  3.24k|            std::size_t remaining = size_and_type.first;
22741|  3.24k|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|  2.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.96k]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 2.96k, False: 278]
  |  Branch (22741:17): [True: 0, False: 3.24k]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|  7.02k|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 3.79k, False: 3.23k]
  ------------------
22747|  3.79k|            {
22748|  3.79k|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 1.58k, False: 2.20k]
  ------------------
22749|  1.58k|                {
22750|  1.58k|                    get();
22751|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.58k]
  |  |  ------------------
  ------------------
22756|      3|                    {
22757|      3|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      3|                    }
22759|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|  1.58k|                    continue;
22764|  1.58k|                }
22765|       |
22766|  2.20k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|  2.20k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.20k]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|  2.20k|            }
22771|       |
22772|  3.23k|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 3.04k, False: 196]
  |  Branch (22772:41): [True: 3.04k, False: 0]
  ------------------
22773|  3.24k|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  79.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 10.3k, False: 68.9k]
  |  Branch (22776:44): [True: 3.47k, False: 6.86k]
  ------------------
22777|  3.47k|        {
22778|  3.47k|            binary_t result;
22779|  3.47k|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 3.34k, False: 135]
  |  Branch (22779:63): [True: 3.34k, False: 0]
  ------------------
22780|  3.47k|        }
22781|       |
22782|  75.7k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.86k, False: 68.9k]
  ------------------
22783|  6.86k|        {
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.86k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  27.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22789|      0|            {
22790|      0|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22791|      0|                {
22792|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|      0|                }
22794|      0|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22795|      0|                {
22796|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|      0|                }
22798|      0|            }
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.86k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 0, False: 6.86k]
  ------------------
22804|  6.86k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.86k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 2.80k, False: 4.06k]
  ------------------
22810|  4.06k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 4.06k, False: 0]
  ------------------
22811|  6.86k|        }
22812|       |
22813|  68.9k|        return enter_array(detail::unknown_size());
22814|  75.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_EEE22parse_ubjson_typed_runERmiNS4_17integral_constantIbLb1EEE:
22562|  7.02k|    {
22563|  7.02k|        switch (type)
22564|  7.02k|        {
22565|  1.02k|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 1.02k, False: 5.99k]
  ------------------
22566|  1.02k|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|    791|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 791, False: 6.23k]
  ------------------
22568|    791|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|    531|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 531, False: 6.49k]
  ------------------
22570|    531|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|    543|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 543, False: 6.48k]
  ------------------
22572|    543|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|    475|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 475, False: 6.55k]
  ------------------
22574|    475|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|    595|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 595, False: 6.43k]
  ------------------
22576|    595|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|    489|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 489, False: 6.53k]
  ------------------
22578|    489|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|    481|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 481, False: 6.54k]
  ------------------
22580|    481|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|    524|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 524, False: 6.50k]
  ------------------
22582|    524|                return parse_ubjson_typed_run<float>(remaining);
22583|    468|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 468, False: 6.55k]
  ------------------
22584|    468|                return parse_ubjson_typed_run<double>(remaining);
22585|  1.09k|            default:
  ------------------
  |  Branch (22585:13): [True: 1.09k, False: 5.92k]
  ------------------
22586|  1.09k|                return true;
22587|  7.02k|        }
22588|  7.02k|    }
_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|  1.02k|    {
22599|  1.02k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.02k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.02k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 259, False: 770]
  ------------------
22602|    259|        {
22603|    259|            return true;
22604|    259|        }
22605|    770|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    770|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    770|        const std::size_t start = chars_read;
22609|    770|        std::size_t read = 0;
22610|    770|        bool accepted = true;
22611|  5.38k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.61k, False: 770]
  |  Branch (22611:32): [True: 4.61k, False: 0]
  ------------------
22612|  4.61k|        {
22613|  4.61k|            NumberType number{};
22614|  4.61k|            std::memcpy(&number, data + (read * size), size);
22615|  4.61k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 4.61k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  4.61k|            ++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.61k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.61k|            accepted = emit_ubjson_number(number);
22625|  4.61k|        }
22626|       |        // get_number() does not change current
22627|    770|        ia.bulk_skip(read * size);
22628|    770|        chars_read = start + (read * size);
22629|    770|        remaining -= read;
22630|    770|        return accepted;
22631|  1.02k|    }
_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|  20.0k|    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.61k|    {
22668|  4.61k|        return emit_unsigned(number);
22669|  4.61k|    }
_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|    791|    {
22599|    791|        constexpr std::size_t size = sizeof(NumberType);
22600|    791|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    791|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 243, False: 548]
  ------------------
22602|    243|        {
22603|    243|            return true;
22604|    243|        }
22605|    548|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    548|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    548|        const std::size_t start = chars_read;
22609|    548|        std::size_t read = 0;
22610|    548|        bool accepted = true;
22611|  5.63k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 5.08k, False: 548]
  |  Branch (22611:32): [True: 5.08k, False: 0]
  ------------------
22612|  5.08k|        {
22613|  5.08k|            NumberType number{};
22614|  5.08k|            std::memcpy(&number, data + (read * size), size);
22615|  5.08k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 5.08k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  5.08k|            ++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.08k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  5.08k|            accepted = emit_ubjson_number(number);
22625|  5.08k|        }
22626|       |        // get_number() does not change current
22627|    548|        ia.bulk_skip(read * size);
22628|    548|        chars_read = start + (read * size);
22629|    548|        remaining -= read;
22630|    548|        return accepted;
22631|    791|    }
_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|  5.08k|    {
22662|  5.08k|        return emit_signed(number);
22663|  5.08k|    }
_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|    531|    {
22599|    531|        constexpr std::size_t size = sizeof(NumberType);
22600|    531|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    531|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 237, False: 294]
  ------------------
22602|    237|        {
22603|    237|            return true;
22604|    237|        }
22605|    294|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    294|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    294|        const std::size_t start = chars_read;
22609|    294|        std::size_t read = 0;
22610|    294|        bool accepted = true;
22611|  2.41k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 2.12k, False: 294]
  |  Branch (22611:32): [True: 2.12k, False: 0]
  ------------------
22612|  2.12k|        {
22613|  2.12k|            NumberType number{};
22614|  2.12k|            std::memcpy(&number, data + (read * size), size);
22615|  2.12k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 2.12k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  2.12k|            ++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.12k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  2.12k|            accepted = emit_ubjson_number(number);
22625|  2.12k|        }
22626|       |        // get_number() does not change current
22627|    294|        ia.bulk_skip(read * size);
22628|    294|        chars_read = start + (read * size);
22629|    294|        remaining -= read;
22630|    294|        return accepted;
22631|    531|    }
_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|  2.12k|    {
22662|  2.12k|        return emit_signed(number);
22663|  2.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIiEEbRm:
22598|    543|    {
22599|    543|        constexpr std::size_t size = sizeof(NumberType);
22600|    543|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    543|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 221, False: 322]
  ------------------
22602|    221|        {
22603|    221|            return true;
22604|    221|        }
22605|    322|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    322|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    322|        const std::size_t start = chars_read;
22609|    322|        std::size_t read = 0;
22610|    322|        bool accepted = true;
22611|  1.57k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.25k, False: 322]
  |  Branch (22611:32): [True: 1.25k, False: 0]
  ------------------
22612|  1.25k|        {
22613|  1.25k|            NumberType number{};
22614|  1.25k|            std::memcpy(&number, data + (read * size), size);
22615|  1.25k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.25k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.25k|            ++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.25k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.25k|            accepted = emit_ubjson_number(number);
22625|  1.25k|        }
22626|       |        // get_number() does not change current
22627|    322|        ia.bulk_skip(read * size);
22628|    322|        chars_read = start + (read * size);
22629|    322|        remaining -= read;
22630|    322|        return accepted;
22631|    543|    }
_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|  1.25k|    {
22662|  1.25k|        return emit_signed(number);
22663|  1.25k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIlEEbRm:
22598|    475|    {
22599|    475|        constexpr std::size_t size = sizeof(NumberType);
22600|    475|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    475|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 227, False: 248]
  ------------------
22602|    227|        {
22603|    227|            return true;
22604|    227|        }
22605|    248|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    248|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    248|        const std::size_t start = chars_read;
22609|    248|        std::size_t read = 0;
22610|    248|        bool accepted = true;
22611|  1.00k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 759, False: 248]
  |  Branch (22611:32): [True: 759, False: 0]
  ------------------
22612|    759|        {
22613|    759|            NumberType number{};
22614|    759|            std::memcpy(&number, data + (read * size), size);
22615|    759|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 759]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    759|            ++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|    759|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    759|            accepted = emit_ubjson_number(number);
22625|    759|        }
22626|       |        // get_number() does not change current
22627|    248|        ia.bulk_skip(read * size);
22628|    248|        chars_read = start + (read * size);
22629|    248|        remaining -= read;
22630|    248|        return accepted;
22631|    475|    }
_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|    759|    {
22662|    759|        return emit_signed(number);
22663|    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_EEE22parse_ubjson_typed_runItEEbRm:
22598|    595|    {
22599|    595|        constexpr std::size_t size = sizeof(NumberType);
22600|    595|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    595|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 242, False: 353]
  ------------------
22602|    242|        {
22603|    242|            return true;
22604|    242|        }
22605|    353|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    353|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    353|        const std::size_t start = chars_read;
22609|    353|        std::size_t read = 0;
22610|    353|        bool accepted = true;
22611|  2.39k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 2.04k, False: 353]
  |  Branch (22611:32): [True: 2.04k, False: 0]
  ------------------
22612|  2.04k|        {
22613|  2.04k|            NumberType number{};
22614|  2.04k|            std::memcpy(&number, data + (read * size), size);
22615|  2.04k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 2.04k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  2.04k|            ++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.04k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  2.04k|            accepted = emit_ubjson_number(number);
22625|  2.04k|        }
22626|       |        // get_number() does not change current
22627|    353|        ia.bulk_skip(read * size);
22628|    353|        chars_read = start + (read * size);
22629|    353|        remaining -= read;
22630|    353|        return accepted;
22631|    595|    }
_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_numberItTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|  2.04k|    {
22668|  2.04k|        return emit_unsigned(number);
22669|  2.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIjEEbRm:
22598|    489|    {
22599|    489|        constexpr std::size_t size = sizeof(NumberType);
22600|    489|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    489|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 217, False: 272]
  ------------------
22602|    217|        {
22603|    217|            return true;
22604|    217|        }
22605|    272|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    272|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    272|        const std::size_t start = chars_read;
22609|    272|        std::size_t read = 0;
22610|    272|        bool accepted = true;
22611|  1.16k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 897, False: 272]
  |  Branch (22611:32): [True: 897, False: 0]
  ------------------
22612|    897|        {
22613|    897|            NumberType number{};
22614|    897|            std::memcpy(&number, data + (read * size), size);
22615|    897|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 897]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    897|            ++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|    897|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    897|            accepted = emit_ubjson_number(number);
22625|    897|        }
22626|       |        // get_number() does not change current
22627|    272|        ia.bulk_skip(read * size);
22628|    272|        chars_read = start + (read * size);
22629|    272|        remaining -= read;
22630|    272|        return accepted;
22631|    489|    }
_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_numberIjTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|    897|    {
22668|    897|        return emit_unsigned(number);
22669|    897|    }
_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_runImEEbRm:
22598|    481|    {
22599|    481|        constexpr std::size_t size = sizeof(NumberType);
22600|    481|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    481|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 252, False: 229]
  ------------------
22602|    252|        {
22603|    252|            return true;
22604|    252|        }
22605|    229|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    229|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    229|        const std::size_t start = chars_read;
22609|    229|        std::size_t read = 0;
22610|    229|        bool accepted = true;
22611|    889|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 660, False: 229]
  |  Branch (22611:32): [True: 660, False: 0]
  ------------------
22612|    660|        {
22613|    660|            NumberType number{};
22614|    660|            std::memcpy(&number, data + (read * size), size);
22615|    660|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 660]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    660|            ++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|    660|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    660|            accepted = emit_ubjson_number(number);
22625|    660|        }
22626|       |        // get_number() does not change current
22627|    229|        ia.bulk_skip(read * size);
22628|    229|        chars_read = start + (read * size);
22629|    229|        remaining -= read;
22630|    229|        return accepted;
22631|    481|    }
_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_numberImTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|    660|    {
22668|    660|        return emit_unsigned(number);
22669|    660|    }
_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|    524|    {
22599|    524|        constexpr std::size_t size = sizeof(NumberType);
22600|    524|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    524|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 254, False: 270]
  ------------------
22602|    254|        {
22603|    254|            return true;
22604|    254|        }
22605|    270|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    270|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    270|        const std::size_t start = chars_read;
22609|    270|        std::size_t read = 0;
22610|    270|        bool accepted = true;
22611|  1.83k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.56k, False: 270]
  |  Branch (22611:32): [True: 1.56k, False: 0]
  ------------------
22612|  1.56k|        {
22613|  1.56k|            NumberType number{};
22614|  1.56k|            std::memcpy(&number, data + (read * size), size);
22615|  1.56k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.56k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.56k|            ++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.56k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.56k|            accepted = emit_ubjson_number(number);
22625|  1.56k|        }
22626|       |        // get_number() does not change current
22627|    270|        ia.bulk_skip(read * size);
22628|    270|        chars_read = start + (read * size);
22629|    270|        remaining -= read;
22630|    270|        return accepted;
22631|    524|    }
_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.56k|    {
22656|  1.56k|        return emit_float(number);
22657|  1.56k|    }
_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|    468|    {
22599|    468|        constexpr std::size_t size = sizeof(NumberType);
22600|    468|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    468|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 222, False: 246]
  ------------------
22602|    222|        {
22603|    222|            return true;
22604|    222|        }
22605|    246|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    246|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    246|        const std::size_t start = chars_read;
22609|    246|        std::size_t read = 0;
22610|    246|        bool accepted = true;
22611|  1.31k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.06k, False: 246]
  |  Branch (22611:32): [True: 1.06k, False: 0]
  ------------------
22612|  1.06k|        {
22613|  1.06k|            NumberType number{};
22614|  1.06k|            std::memcpy(&number, data + (read * size), size);
22615|  1.06k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.06k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.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|  1.06k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.06k|            accepted = emit_ubjson_number(number);
22625|  1.06k|        }
22626|       |        // get_number() does not change current
22627|    246|        ia.bulk_skip(read * size);
22628|    246|        chars_read = start + (read * size);
22629|    246|        remaining -= read;
22630|    246|        return accepted;
22631|    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_EEE18emit_ubjson_numberIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|  1.06k|    {
22656|  1.06k|        return emit_float(number);
22657|  1.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_EEE10get_binaryImEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  3.47k|    {
23868|  3.47k|        return get_bytes(len, "binary", result);
23869|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17get_ubjson_objectEv:
22820|  14.5k|    {
22821|  14.5k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  14.5k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  14.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 14.5k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  14.5k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 2, False: 14.5k]
  ------------------
22829|      2|        {
22830|      2|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      2|        }
22832|       |
22833|  14.5k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 374, False: 14.1k]
  ------------------
22834|    374|        {
22835|    374|            return enter_object(size_and_type.first, size_and_type.second);
22836|    374|        }
22837|       |
22838|  14.1k|        return enter_object(detail::unknown_size());
22839|  14.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  31.2k|    {
21944|  31.2k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 7.50k, False: 23.7k]
  ------------------
21945|  7.50k|        {
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|  7.50k|            get();
21951|  7.50k|        }
21952|       |
21953|  31.2k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  31.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 31.2k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  31.2k|        switch (current)
21959|  31.2k|        {
21960|  21.7k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 21.7k, False: 9.53k]
  ------------------
21961|  21.7k|            {
21962|  21.7k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  5.52k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 5.52k, False: 25.7k]
  ------------------
21966|  5.52k|            {
21967|  5.52k|                std::int8_t len{};
21968|  5.52k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 5.52k, False: 2]
  |  Branch (21968:43): [True: 5.51k, False: 5]
  |  Branch (21968:78): [True: 5.47k, False: 37]
  |  Branch (21968:105): [True: 5.47k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    647|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 647, False: 30.6k]
  ------------------
21972|    647|            {
21973|    647|                std::int16_t len{};
21974|    647|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 640, False: 7]
  |  Branch (21974:43): [True: 637, False: 3]
  |  Branch (21974:78): [True: 589, False: 48]
  |  Branch (21974:105): [True: 589, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    533|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 533, False: 30.7k]
  ------------------
21978|    533|            {
21979|    533|                std::int32_t len{};
21980|    533|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 523, False: 10]
  |  Branch (21980:43): [True: 491, False: 32]
  |  Branch (21980:78): [True: 411, False: 80]
  |  Branch (21980:105): [True: 411, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    543|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 543, False: 30.7k]
  ------------------
21984|    543|            {
21985|    543|                std::int64_t len{};
21986|    543|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 529, False: 14]
  |  Branch (21986:43): [True: 466, False: 63]
  |  Branch (21986:78): [True: 317, False: 149]
  |  Branch (21986:105): [True: 317, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|    885|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 885, False: 30.3k]
  ------------------
21990|    885|            {
21991|    885|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 0, False: 885]
  ------------------
21992|      0|                {
21993|      0|                    break;
21994|      0|                }
21995|    885|                return get_string_with_length<std::uint16_t>(result, context);
21996|    885|            }
21997|       |
21998|    435|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 435, False: 30.8k]
  ------------------
21999|    435|            {
22000|    435|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 0, False: 435]
  ------------------
22001|      0|                {
22002|      0|                    break;
22003|      0|                }
22004|    435|                return get_string_with_length<std::uint32_t>(result, context);
22005|    435|            }
22006|       |
22007|    584|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 584, False: 30.6k]
  ------------------
22008|    584|            {
22009|    584|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 0, False: 584]
  ------------------
22010|      0|                {
22011|      0|                    break;
22012|      0|                }
22013|    584|                return get_string_with_length<std::uint64_t>(result, context);
22014|    584|            }
22015|       |
22016|     43|            default:
  ------------------
  |  Branch (22016:13): [True: 43, False: 31.2k]
  ------------------
22017|     43|                break;
22018|  31.2k|        }
22019|     43|        return length_type_error("", "string");
22020|  31.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  5.52k|    {
21921|  5.52k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  5.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.51k]
  |  |  ------------------
  ------------------
21922|      5|        {
21923|      5|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      5|        }
21925|  5.51k|        return true;
21926|  5.52k|    }
_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|  5.51k|    {
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|  5.51k|        return get_bytes(len, "string", result);
23778|  5.51k|    }
_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|  5.51k|    {
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|  5.51k|        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|  5.51k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 4.77k, False: 744]
  ------------------
23898|  4.77k|        {
23899|  4.77k|            return true;
23900|  4.77k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    744|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    744|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 37, False: 707]
  ------------------
23906|     37|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     37|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 37, False: 0]
  ------------------
23910|     37|                                       ? static_cast<std::size_t>(len)
23911|     37|                                       : chunk_size;
23912|     37|            const std::size_t old_size = result.size();
23913|     37|            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|     37|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     37|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 37, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     37|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     37|            chars_read += bytes_read;
23921|     37|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     37|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 37, False: 0]
  |  |  ------------------
  ------------------
23922|     37|            {
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|     37|                result.resize(old_size + bytes_read);
23927|     37|                ++chars_read;
23928|     37|                current = char_traits<char_type>::eof();
23929|     37|                return unexpect_eof(context);
23930|     37|            }
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|    707|        return true;
23936|    744|    }
_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|  5.51k|    {
23943|  5.51k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 707, False: 4.80k]
  ------------------
23944|    707|        {
23945|    707|            return false;
23946|    707|        }
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|  4.80k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  4.80k|        const std::size_t remaining = ia.bulk_remaining();
23951|  4.80k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 37, False: 4.77k]
  ------------------
23952|     37|        {
23953|     37|            return false; // (the loop reports the premature end)
23954|     37|        }
23955|  4.77k|        const auto n = static_cast<std::size_t>(ulen);
23956|  4.77k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  4.77k|        ia.bulk_skip(n);
23958|  4.77k|        chars_read += n;
23959|  4.77k|        return true;
23960|  4.80k|    }
_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|    640|    {
21921|    640|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    640|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 637]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|    637|        return true;
21926|    640|    }
_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|    637|    {
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|    637|        return get_bytes(len, "string", result);
23778|    637|    }
_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|    637|    {
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|    637|        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|    637|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 354, False: 283]
  ------------------
23898|    354|        {
23899|    354|            return true;
23900|    354|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    283|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    283|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 48, False: 235]
  ------------------
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: 29, False: 19]
  ------------------
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|    235|        return true;
23936|    283|    }
_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|    637|    {
23943|    637|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 235, False: 402]
  ------------------
23944|    235|        {
23945|    235|            return false;
23946|    235|        }
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|    402|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    402|        const std::size_t remaining = ia.bulk_remaining();
23951|    402|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 48, False: 354]
  ------------------
23952|     48|        {
23953|     48|            return false; // (the loop reports the premature end)
23954|     48|        }
23955|    354|        const auto n = static_cast<std::size_t>(ulen);
23956|    354|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    354|        ia.bulk_skip(n);
23958|    354|        chars_read += n;
23959|    354|        return true;
23960|    402|    }
_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|    523|    {
21921|    523|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    523|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 491]
  |  |  ------------------
  ------------------
21922|     32|        {
21923|     32|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     32|        }
21925|    491|        return true;
21926|    523|    }
_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|    529|    {
21921|    529|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    529|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 63, False: 466]
  |  |  ------------------
  ------------------
21922|     63|        {
21923|     63|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     63|        }
21925|    466|        return true;
21926|    529|    }
_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|    466|    {
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|    466|        return get_bytes(len, "string", result);
23778|    466|    }
_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|    466|    {
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|    466|        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|    466|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 141, False: 325]
  ------------------
23898|    141|        {
23899|    141|            return true;
23900|    141|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    325|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    325|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 149, False: 176]
  ------------------
23906|    149|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    149|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 35, False: 114]
  ------------------
23910|    149|                                       ? static_cast<std::size_t>(len)
23911|    149|                                       : chunk_size;
23912|    149|            const std::size_t old_size = result.size();
23913|    149|            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|    149|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    149|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 149, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    149|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    149|            chars_read += bytes_read;
23921|    149|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    149|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 149, False: 0]
  |  |  ------------------
  ------------------
23922|    149|            {
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|    149|                result.resize(old_size + bytes_read);
23927|    149|                ++chars_read;
23928|    149|                current = char_traits<char_type>::eof();
23929|    149|                return unexpect_eof(context);
23930|    149|            }
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|    176|        return true;
23936|    325|    }
_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|    466|    {
23943|    466|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 176, False: 290]
  ------------------
23944|    176|        {
23945|    176|            return false;
23946|    176|        }
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|    290|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    290|        const std::size_t remaining = ia.bulk_remaining();
23951|    290|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 149, False: 141]
  ------------------
23952|    149|        {
23953|    149|            return false; // (the loop reports the premature end)
23954|    149|        }
23955|    141|        const auto n = static_cast<std::size_t>(ulen);
23956|    141|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    141|        ia.bulk_skip(n);
23958|    141|        chars_read += n;
23959|    141|        return true;
23960|    290|    }
_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_lengthImEEbRSC_PKc:
23846|    584|    {
23847|    584|        NumberType len{};
23848|    584|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 564, False: 20]
  |  Branch (23848:35): [True: 392, False: 172]
  |  Branch (23848:62): [True: 392, False: 0]
  ------------------
23849|    584|    }
_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_stringImEEbT_RSC_:
23767|    564|    {
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|    564|        return get_bytes(len, "string", result);
23778|    564|    }
_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|    890|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    890|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    890|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 757, False: 133]
  ------------------
24059|    890|    }
_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|   320k|    {
23523|   320k|        do
23524|   326k|        {
23525|   326k|            get();
23526|   326k|        }
23527|   326k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 5.94k, False: 320k]
  ------------------
23528|       |
23529|   320k|        return current;
23530|   320k|    }
_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|   514k|    {
23489|   514k|        ++chars_read;
23490|   514k|        return current = ia.get_character();
23491|   514k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter13get_characterEv:
 9909|   514k|    {
 9910|   514k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9911|       |        // the character is in the get area: step over it, as sbumpc() does
 9912|   514k|        const char* const next = streambuf_access::get_ptr(sb);
 9913|   514k|        if (JSON_HEDLEY_LIKELY(next != streambuf_access::get_end(sb)))
  ------------------
  |  | 1696|   514k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 503k, False: 10.8k]
  |  |  ------------------
  ------------------
 9914|   503k|        {
 9915|   503k|            current_in_get_area = true;
 9916|   503k|            streambuf_access::bump(sb, 1);
 9917|   503k|            return std::char_traits<char>::to_int_type(*next);
 9918|   503k|        }
 9919|  10.8k|        if (no_get_area)
  ------------------
  |  Branch (9919:13): [True: 0, False: 10.8k]
  ------------------
 9920|      0|        {
 9921|      0|            return get_character_no_get_area();
 9922|      0|        }
 9923|  10.8k|#endif
 9924|  10.8k|        return get_character_slow();
 9925|  10.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18get_character_slowEv:
10051|  10.8k|    {
10052|  10.8k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10053|       |        // the get area is exhausted (get_character() handles the other case),
10054|       |        // so sbumpc() refills it
10055|  10.8k|        save_token_segment();
10056|  10.8k|#endif
10057|       |
10058|  10.8k|        auto res = sb->sbumpc();
10059|       |        // set eof manually, as we don't use the istream interface.
10060|  10.8k|        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
  ------------------
  |  | 1697|  10.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 10.8k, False: 0]
  |  |  ------------------
  ------------------
10061|  10.8k|        {
10062|  10.8k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10063|  10.8k|            current_in_get_area = false;
10064|  10.8k|#endif
10065|  10.8k|            is->clear(is->rdstate() | std::ios::eofbit);
10066|  10.8k|        }
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|  10.8k|#endif
10076|  10.8k|        return res;
10077|  10.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18save_token_segmentEv:
10124|  10.8k|    {
10125|  10.8k|        if (token_segment != nullptr)
  ------------------
  |  Branch (10125:13): [True: 0, False: 10.8k]
  ------------------
10126|      0|        {
10127|      0|            token_carry.append(token_segment, streambuf_access::get_end(sb));
10128|      0|            token_segment = nullptr;
10129|      0|        }
10130|  10.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_bindingD2Ev:
19134|  15.9k|        {
19135|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 15.9k, False: 0]
  ------------------
19136|  15.9k|            {
19137|  15.9k|                parser->set_reserve_state(saved);
19138|  15.9k|            }
19139|  15.9k|        }
_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|  15.9k|    ~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|  15.9k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterERNSt3__113basic_istreamIcNS2_11char_traitsIcEEEE:
10871|  15.9k|{
10872|  15.9k|    if (stream.rdbuf() == nullptr)
  ------------------
  |  Branch (10872:9): [True: 0, False: 15.9k]
  ------------------
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|  15.9k|    return input_stream_adapter(stream);
10877|  15.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2ERNSt3__113basic_istreamIcNS3_11char_traitsIcEEEE:
 9806|  15.9k|        : is(&i), sb(i.rdbuf())
 9807|  15.9k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterD2Ev:
 9785|  31.8k|    {
 9786|       |        // clear stream flags; we use underlying streambuf I/O, do not
 9787|       |        // maintain ifstream flags, except eof
 9788|  31.8k|        if (is != nullptr)
  ------------------
  |  Branch (9788:13): [True: 15.9k, False: 15.9k]
  ------------------
 9789|  15.9k|        {
 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|  15.9k|            if ((is->rdstate() & ~std::ios::eofbit) != 0)
  ------------------
  |  Branch (9798:17): [True: 0, False: 15.9k]
  ------------------
 9799|      0|            {
 9800|      0|                is->clear(is->rdstate() & std::ios::eofbit);
 9801|      0|            }
 9802|  15.9k|        }
 9803|  31.8k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataINS2_21__list_const_iteratorIhPvEESI_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SK_SL_bbNS0_6detail15error_handler_tE:
46969|  15.9k|    {
46970|  15.9k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46971|  15.9k|    }
_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|  15.9k|    {
46576|  15.9k|        basic_json result;
46577|  15.9k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  15.9k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  15.9k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 15.9k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  15.9k|        return result;
46584|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEEC2ERSG_bPNS1_5lexerISG_SL_Lb0EEE:
17821|  15.9k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  15.9k|    {}
_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|  15.9k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  15.9k|    {
18994|  15.9k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  15.9k|    }
_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|  15.9k|    {
19018|  15.9k|        sax = sax_;
19019|  15.9k|        container_stack.clear();
19020|  15.9k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  15.9k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  15.9k|        bool result = false;
19024|       |
19025|  15.9k|        switch (input_format)
19026|  15.9k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 15.9k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 15.9k]
  ------------------
19040|  15.9k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 15.9k, False: 0]
  ------------------
19041|  15.9k|                result = parse_ubjson_internal();
19042|  15.9k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 15.9k]
  ------------------
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|  15.9k|        }
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|  8.48k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 8.48k, False: 0]
  |  Branch (19058:23): [True: 0, False: 8.48k]
  |  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|  8.48k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 8.48k, False: 0]
  |  Branch (19065:23): [True: 8.48k, False: 0]
  ------------------
19066|  8.48k|        {
19067|  8.48k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 8.48k]
  |  Branch (19067:59): [True: 8.48k, False: 0]
  ------------------
19068|  8.48k|            {
19069|  8.48k|                get_ignore_noop();
19070|  8.48k|            }
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|  8.48k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  8.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 104, False: 8.38k]
  |  |  ------------------
  ------------------
19082|    104|            {
19083|    104|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    104|            }
19085|  8.48k|        }
19086|       |
19087|  8.38k|        return result;
19088|  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_EEE12bound_parserEPSN_NS4_17integral_constantIbLb1EEE:
19096|  15.9k|    {
19097|  15.9k|        return s;
19098|  15.9k|    }
_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|  15.9k|            : parser(parser_), saved()
19120|  15.9k|        {
19121|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 15.9k, False: 0]
  ------------------
19122|  15.9k|            {
19123|  15.9k|                saved = parser->get_reserve_state();
19124|  15.9k|                parser->set_input_position(position);
19125|  15.9k|            }
19126|  15.9k|        }
_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|  3.54k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.54k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.54k|        chars_read += new_chars_read;
23508|  3.54k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.54k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 3.43k]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|  3.43k|        return true;
23516|  3.54k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIiEEmPT_m:
10326|  3.54k|    {
10327|  3.54k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  3.54k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIiEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  3.54k|    {
10407|  3.54k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  17.3k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 13.9k, False: 3.43k]
  ------------------
10409|  13.9k|        {
10410|  13.9k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  13.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 13.8k, False: 105]
  |  |  ------------------
  ------------------
10411|  13.8k|            {
10412|  13.8k|                ptr[read_index] = static_cast<char>(*current);
10413|  13.8k|                std::advance(current, 1);
10414|  13.8k|            }
10415|    105|            else
10416|    105|            {
10417|    105|                return read_index;
10418|    105|            }
10419|  13.9k|        }
10420|  3.43k|        return count * sizeof(T);
10421|  3.54k|    }
_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|  4.37k|    {
23992|  4.37k|        return sax->parse_error(chars_read, "<end of file>",
23993|  4.37k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  4.37k|    }
_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|  7.06k|    {
24103|  7.06k|        std::string error_msg = "syntax error while parsing ";
24104|  7.06k|        error_msg += input_format_name(input_format);
24105|       |
24106|  7.06k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  7.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_EEE15enter_containerEbmm:
19201|  89.4k|    {
19202|  89.4k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   178k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 89.4k]
  |  |  |  Branch (1697:94): [True: 14.3k, False: 75.1k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  89.4k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  89.4k|        return true;
19209|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12start_objectEm:
17878|  17.8k|    {
17879|  17.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|  17.8k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  17.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_EEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  99.5k|    {
17962|  99.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10.1k, False: 89.4k]
  ------------------
17963|  10.1k|        {
17964|  10.1k|            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.1k|            return &root;
17971|  10.1k|        }
17972|       |
17973|  89.4k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  89.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 76.2k, False: 13.1k]
  |  Branch (17973:9): [True: 13.1k, False: 0]
  |  Branch (17973:9): [True: 89.4k, False: 0]
  ------------------
17974|       |
17975|  89.4k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 76.2k, False: 13.1k]
  ------------------
17976|  76.2k|        {
17977|  76.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|  76.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  76.2k|        }
17985|       |
17986|  13.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 13.1k, False: 0]
  ------------------
17987|  13.1k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 13.1k, False: 0]
  ------------------
17988|  13.1k|        *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.1k|        return object_element;
17995|  13.1k|    }
_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|  99.5k|{
16470|  99.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|   116k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 99.3k]
  |  |  |  Branch (1697:94): [True: 17.3k, False: 82.2k]
  |  |  |  Branch (1697:94): [True: 270, False: 17.0k]
  |  |  ------------------
  ------------------
16471|    270|    {
16472|    270|        return container_too_large_error(sax, len, kind, ref);
16473|    270|    }
16474|  99.3k|    return true;
16475|  99.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|    270|{
16464|    270|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    270|}
_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|  81.7k|    {
17916|  81.7k|        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|  81.7k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  81.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 81.7k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  81.7k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 13.3k, False: 68.3k]
  ------------------
17929|  13.3k|        {
17930|  13.3k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  13.3k|        }
17932|       |
17933|  81.7k|        return true;
17934|  81.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15container_frameC2Embm:
19167|  89.2k|            : 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|  56.5k|    {
19234|  56.5k|        const bool is_object = container_stack.back().is_object;
19235|  56.5k|        container_stack.pop_back();
19236|  56.5k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 10.8k, False: 45.6k]
  ------------------
19237|  56.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_EEE10end_objectEv:
17901|  13.9k|    {
17902|  13.9k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 13.9k, False: 0]
  ------------------
17903|  13.9k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 13.9k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  13.9k|        ref_stack.back()->set_parents();
17910|  13.9k|        ref_stack.pop_back();
17911|  13.9k|        return true;
17912|  13.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE9end_arrayEv:
17937|  52.0k|    {
17938|  52.0k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 52.0k, False: 0]
  ------------------
17939|  52.0k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 52.0k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  52.0k|        ref_stack.back()->set_parents();
17946|  52.0k|        ref_stack.pop_back();
17947|  52.0k|        return true;
17948|  52.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_EEE12unexpect_eofEPKc:
23974|   214k|    {
23975|   214k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   214k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.10k, False: 210k]
  |  |  ------------------
  ------------------
23976|  3.10k|        {
23977|  3.10k|            return report_eof(context);
23978|  3.10k|        }
23979|   210k|        return true;
23980|   214k|    }
_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|  30.0k|    {
23812|  30.0k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 30.0k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE3keyERSC_:
17890|  33.5k|    {
17891|  33.5k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 33.5k, False: 0]
  ------------------
17892|  33.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 33.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|  33.5k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  33.5k|        return true;
17898|  33.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_EEE6get_toIdEEbRT_PKc:
23503|  1.59k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.59k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.59k|        chars_read += new_chars_read;
23508|  1.59k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.59k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 70, False: 1.52k]
  |  |  ------------------
  ------------------
23509|     70|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     70|            ++chars_read;
23512|     70|            static_cast<void>(report_eof(context));
23513|     70|            return false;
23514|     70|        }
23515|  1.52k|        return true;
23516|  1.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIdEEmPT_m:
10326|  1.59k|    {
10327|  1.59k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  1.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIdEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  1.59k|    {
10407|  1.59k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  13.8k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 12.2k, False: 1.52k]
  ------------------
10409|  12.2k|        {
10410|  12.2k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  12.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.2k, False: 70]
  |  |  ------------------
  ------------------
10411|  12.2k|            {
10412|  12.2k|                ptr[read_index] = static_cast<char>(*current);
10413|  12.2k|                std::advance(current, 1);
10414|  12.2k|            }
10415|     70|            else
10416|     70|            {
10417|     70|                return read_index;
10418|     70|            }
10419|  12.2k|        }
10420|  1.52k|        return count * sizeof(T);
10421|  1.59k|    }
_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.52k|    {
23683|  1.52k|        const auto result = static_cast<number_float_t>(number);
23684|  1.52k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.94k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.52k]
  |  |  |  Branch (1697:94): [True: 1.41k, False: 104]
  |  |  |  Branch (1697:94): [True: 0, False: 1.41k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.52k|        return sax->number_float(result, no_source);
23689|  1.52k|    }
_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|     79|    {
24002|     79|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     79|    }
_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.53k|    {
24092|  1.53k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.53k|    }
_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|  40.9k|    {
17857|  40.9k|        handle_value(val);
17858|  40.9k|        return true;
17859|  40.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRdEEPSG_OT_:
17961|  40.9k|    {
17962|  40.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.52k, False: 39.3k]
  ------------------
17963|  1.52k|        {
17964|  1.52k|            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.52k|            return &root;
17971|  1.52k|        }
17972|       |
17973|  39.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  39.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 38.7k, False: 678]
  |  Branch (17973:9): [True: 678, False: 0]
  |  Branch (17973:9): [True: 39.3k, False: 0]
  ------------------
17974|       |
17975|  39.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 38.7k, False: 678]
  ------------------
17976|  38.7k|        {
17977|  38.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|  38.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  38.7k|        }
17985|       |
17986|    678|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 678, False: 0]
  ------------------
17987|    678|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 678, False: 0]
  ------------------
17988|    678|        *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|    678|        return object_element;
17995|    678|    }
_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|    491|    {
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|    491|        return get_bytes(len, "string", result);
23778|    491|    }
_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|    491|    {
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|    491|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 491]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    491|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 491]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    491|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    714|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 303, False: 411]
  ------------------
23906|    303|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    303|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 256, False: 47]
  ------------------
23910|    303|                                       ? static_cast<std::size_t>(len)
23911|    303|                                       : chunk_size;
23912|    303|            const std::size_t old_size = result.size();
23913|    303|            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|    303|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    303|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 303, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    303|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    303|            chars_read += bytes_read;
23921|    303|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    303|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 80, False: 223]
  |  |  ------------------
  ------------------
23922|     80|            {
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|     80|                result.resize(old_size + bytes_read);
23927|     80|                ++chars_read;
23928|     80|                current = char_traits<char_type>::eof();
23929|     80|                return unexpect_eof(context);
23930|     80|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    223|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    223|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 223, False: 0]
  ------------------
23933|    223|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    223|        }
23935|    411|        return true;
23936|    491|    }
_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|    491|    {
23965|    491|        return false;
23966|    491|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIcEEmPT_m:
10326|  19.5k|    {
10327|  19.5k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  19.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIcEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  19.5k|    {
10407|  19.5k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|   172k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 153k, False: 18.8k]
  ------------------
10409|   153k|        {
10410|   153k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   153k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 153k, False: 692]
  |  |  ------------------
  ------------------
10411|   153k|            {
10412|   153k|                ptr[read_index] = static_cast<char>(*current);
10413|   153k|                std::advance(current, 1);
10414|   153k|            }
10415|    692|            else
10416|    692|            {
10417|    692|                return read_index;
10418|    692|            }
10419|   153k|        }
10420|  18.8k|        return count * sizeof(T);
10421|  19.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_EEE6stringERSC_:
17862|  17.5k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  17.5k|        handle_value(std::move(val));
17866|  17.5k|        return true;
17867|  17.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_EEE12handle_valueISC_EEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 456, False: 17.0k]
  ------------------
17963|    456|        {
17964|    456|            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|    456|            return &root;
17971|    456|        }
17972|       |
17973|  17.0k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.2k, False: 6.85k]
  |  Branch (17973:9): [True: 6.85k, False: 0]
  |  Branch (17973:9): [True: 17.0k, False: 0]
  ------------------
17974|       |
17975|  17.0k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.2k, False: 6.85k]
  ------------------
17976|  10.2k|        {
17977|  10.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|  10.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.2k|        }
17985|       |
17986|  6.85k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.85k, False: 0]
  ------------------
17987|  6.85k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.85k, False: 0]
  ------------------
17988|  6.85k|        *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.85k|        return object_element;
17995|  6.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIhEEmPT_m:
10326|  45.7k|    {
10327|  45.7k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  45.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIhEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  45.7k|    {
10407|  45.7k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|   101k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 56.3k, False: 45.4k]
  ------------------
10409|  56.3k|        {
10410|  56.3k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  56.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 56.0k, False: 309]
  |  |  ------------------
  ------------------
10411|  56.0k|            {
10412|  56.0k|                ptr[read_index] = static_cast<char>(*current);
10413|  56.0k|                std::advance(current, 1);
10414|  56.0k|            }
10415|    309|            else
10416|    309|            {
10417|    309|                return read_index;
10418|    309|            }
10419|  56.3k|        }
10420|  45.4k|        return count * sizeof(T);
10421|  45.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_EEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  3.34k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  3.34k|        handle_value(std::move(val));
17874|  3.34k|        return true;
17875|  3.34k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  3.34k|    {
17962|  3.34k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 77, False: 3.26k]
  ------------------
17963|     77|        {
17964|     77|            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|     77|            return &root;
17971|     77|        }
17972|       |
17973|  3.26k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.26k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.78k, False: 480]
  |  Branch (17973:9): [True: 480, False: 0]
  |  Branch (17973:9): [True: 3.26k, False: 0]
  ------------------
17974|       |
17975|  3.26k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.78k, False: 480]
  ------------------
17976|  2.78k|        {
17977|  2.78k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.78k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.78k|        }
17985|       |
17986|    480|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 480, False: 0]
  ------------------
17987|    480|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 480, False: 0]
  ------------------
17988|    480|        *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|    480|        return object_element;
17995|    480|    }
_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|  43.9k|    {
23597|       |        // read in the original format
23598|       |
23599|  43.9k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  43.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 43.9k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  43.9k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 43.9k]
  |  Branch (23603:34): [Folded, False: 43.8k]
  |  Branch (23603:57): [True: 43.8k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  43.9k|        return true;
23608|  43.9k|    }
_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|  43.9k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  43.9k|        auto new_chars_read = ia.get_elements(&dest);
23507|  43.9k|        chars_read += new_chars_read;
23508|  43.9k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  43.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 174, False: 43.8k]
  |  |  ------------------
  ------------------
23509|    174|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    174|            ++chars_read;
23512|    174|            static_cast<void>(report_eof(context));
23513|    174|            return false;
23514|    174|        }
23515|  43.8k|        return true;
23516|  43.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE7booleanEb:
17838|  17.5k|    {
17839|  17.5k|        handle_value(val);
17840|  17.5k|        return true;
17841|  17.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_EEE12handle_valueIRbEEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 22, False: 17.5k]
  ------------------
17963|     22|        {
17964|     22|            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|     22|            return &root;
17971|     22|        }
17972|       |
17973|  17.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 13.0k, False: 4.52k]
  |  Branch (17973:9): [True: 4.52k, False: 0]
  |  Branch (17973:9): [True: 17.5k, False: 0]
  ------------------
17974|       |
17975|  17.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 13.0k, False: 4.52k]
  ------------------
17976|  13.0k|        {
17977|  13.0k|            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|  13.0k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  13.0k|        }
17985|       |
17986|  4.52k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.52k, False: 0]
  ------------------
17987|  4.52k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.52k, False: 0]
  ------------------
17988|  4.52k|        *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.52k|        return object_element;
17995|  4.52k|    }
_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|  11.5k|    {
17833|  11.5k|        handle_value(nullptr);
17834|  11.5k|        return true;
17835|  11.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_EEE12handle_valueIDnEEPSG_OT_:
17961|  11.5k|    {
17962|  11.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 7, False: 11.5k]
  ------------------
17963|      7|        {
17964|      7|            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|      7|            return &root;
17971|      7|        }
17972|       |
17973|  11.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.88k, False: 4.65k]
  |  Branch (17973:9): [True: 4.65k, False: 0]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  ------------------
17974|       |
17975|  11.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.88k, False: 4.65k]
  ------------------
17976|  6.88k|        {
17977|  6.88k|            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.88k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.88k|        }
17985|       |
17986|  4.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.65k, False: 0]
  ------------------
17987|  4.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.65k, False: 0]
  ------------------
17988|  4.65k|        *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.65k|        return object_element;
17995|  4.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_EEE11emit_signedIiEEbT_:
23628|  2.10k|    {
23629|  2.10k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.10k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.10k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.10k|        {
23631|  2.10k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.10k|        }
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|  17.1k|    {
17845|  17.1k|        handle_value(val);
17846|  17.1k|        return true;
17847|  17.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_EEE12handle_valueIRlEEPSG_OT_:
17961|  17.1k|    {
17962|  17.1k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 318, False: 16.8k]
  ------------------
17963|    318|        {
17964|    318|            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|    318|            return &root;
17971|    318|        }
17972|       |
17973|  16.8k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 15.6k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 16.8k, False: 0]
  ------------------
17974|       |
17975|  16.8k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 15.6k, False: 1.17k]
  ------------------
17976|  15.6k|        {
17977|  15.6k|            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|  15.6k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  15.6k|        }
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_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|  30.0k|    {
17851|  30.0k|        handle_value(val);
17852|  30.0k|        return true;
17853|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRmEEPSG_OT_:
17961|  30.0k|    {
17962|  30.0k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 398, False: 29.6k]
  ------------------
17963|    398|        {
17964|    398|            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|    398|            return &root;
17971|    398|        }
17972|       |
17973|  29.6k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  29.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 27.9k, False: 1.65k]
  |  Branch (17973:9): [True: 1.65k, False: 0]
  |  Branch (17973:9): [True: 29.6k, False: 0]
  ------------------
17974|       |
17975|  29.6k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 27.9k, False: 1.65k]
  ------------------
17976|  27.9k|        {
17977|  27.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|  27.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  27.9k|        }
17985|       |
17986|  1.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.65k, False: 0]
  ------------------
17987|  1.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.65k, False: 0]
  ------------------
17988|  1.65k|        *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.65k|        return object_element;
17995|  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_EEE6get_toIlEEbRT_PKc:
23503|  3.44k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.44k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.44k|        chars_read += new_chars_read;
23508|  3.44k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.44k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 116, False: 3.33k]
  |  |  ------------------
  ------------------
23509|    116|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    116|            ++chars_read;
23512|    116|            static_cast<void>(report_eof(context));
23513|    116|            return false;
23514|    116|        }
23515|  3.33k|        return true;
23516|  3.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIlEEmPT_m:
10326|  3.44k|    {
10327|  3.44k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  3.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIlEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  3.44k|    {
10407|  3.44k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  30.1k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 26.8k, False: 3.33k]
  ------------------
10409|  26.8k|        {
10410|  26.8k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  26.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 26.7k, False: 116]
  |  |  ------------------
  ------------------
10411|  26.7k|            {
10412|  26.7k|                ptr[read_index] = static_cast<char>(*current);
10413|  26.7k|                std::advance(current, 1);
10414|  26.7k|            }
10415|    116|            else
10416|    116|            {
10417|    116|                return read_index;
10418|    116|            }
10419|  26.8k|        }
10420|  3.33k|        return count * sizeof(T);
10421|  3.44k|    }
_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|  2.15k|    {
23629|  2.15k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.15k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.15k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.15k|        {
23631|  2.15k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.15k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toImEEbRT_PKc:
23503|  5.38k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  5.38k|        auto new_chars_read = ia.get_elements(&dest);
23507|  5.38k|        chars_read += new_chars_read;
23508|  5.38k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 142, False: 5.24k]
  |  |  ------------------
  ------------------
23509|    142|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    142|            ++chars_read;
23512|    142|            static_cast<void>(report_eof(context));
23513|    142|            return false;
23514|    142|        }
23515|  5.24k|        return true;
23516|  5.38k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsImEEmPT_m:
10326|  5.38k|    {
10327|  5.38k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  5.38k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implImEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  5.38k|    {
10407|  5.38k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  47.4k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 42.2k, False: 5.24k]
  ------------------
10409|  42.2k|        {
10410|  42.2k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  42.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 42.0k, False: 142]
  |  |  ------------------
  ------------------
10411|  42.0k|            {
10412|  42.0k|                ptr[read_index] = static_cast<char>(*current);
10413|  42.0k|                std::advance(current, 1);
10414|  42.0k|            }
10415|    142|            else
10416|    142|            {
10417|    142|                return read_index;
10418|    142|            }
10419|  42.2k|        }
10420|  5.24k|        return count * sizeof(T);
10421|  5.38k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE13emit_unsignedImEEbT_:
23656|  12.8k|    {
23657|  12.8k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  12.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.8k, False: 0]
  |  |  ------------------
  ------------------
23658|  12.8k|        {
23659|  12.8k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  12.8k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  12.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_EEE10get_numberItLb0EEEbRT_:
23596|  6.37k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.37k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.37k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.37k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  6.37k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 6.37k]
  |  Branch (23603:34): [Folded, False: 6.22k]
  |  Branch (23603:57): [True: 6.22k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  6.37k|        return true;
23608|  6.37k|    }
_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_toItEEbRT_PKc:
23503|  6.37k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.37k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.37k|        chars_read += new_chars_read;
23508|  6.37k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.37k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 6.22k]
  |  |  ------------------
  ------------------
23509|    153|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    153|            ++chars_read;
23512|    153|            static_cast<void>(report_eof(context));
23513|    153|            return false;
23514|    153|        }
23515|  6.22k|        return true;
23516|  6.37k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsItEEmPT_m:
10326|  6.37k|    {
10327|  6.37k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  6.37k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implItEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  6.37k|    {
10407|  6.37k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  18.8k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 12.6k, False: 6.22k]
  ------------------
10409|  12.6k|        {
10410|  12.6k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  12.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.4k, False: 153]
  |  |  ------------------
  ------------------
10411|  12.4k|            {
10412|  12.4k|                ptr[read_index] = static_cast<char>(*current);
10413|  12.4k|                std::advance(current, 1);
10414|  12.4k|            }
10415|    153|            else
10416|    153|            {
10417|    153|                return read_index;
10418|    153|            }
10419|  12.6k|        }
10420|  6.22k|        return count * sizeof(T);
10421|  6.37k|    }
_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_numberIjLb0EEEbRT_:
23596|  3.17k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.17k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.17k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.17k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.17k]
  |  Branch (23603:34): [Folded, False: 3.04k]
  |  Branch (23603:57): [True: 3.04k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.17k|        return true;
23608|  3.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_toIjEEbRT_PKc:
23503|  3.17k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.17k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.17k|        chars_read += new_chars_read;
23508|  3.17k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 3.04k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  3.04k|        return true;
23516|  3.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIjEEmPT_m:
10326|  3.17k|    {
10327|  3.17k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  3.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIjEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  3.17k|    {
10407|  3.17k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  15.4k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 12.3k, False: 3.04k]
  ------------------
10409|  12.3k|        {
10410|  12.3k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  12.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.2k, False: 129]
  |  |  ------------------
  ------------------
10411|  12.2k|            {
10412|  12.2k|                ptr[read_index] = static_cast<char>(*current);
10413|  12.2k|                std::advance(current, 1);
10414|  12.2k|            }
10415|    129|            else
10416|    129|            {
10417|    129|                return read_index;
10418|    129|            }
10419|  12.3k|        }
10420|  3.04k|        return count * sizeof(T);
10421|  3.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_EEE10get_numberImLb0EEEbRT_:
23596|  5.38k|    {
23597|       |        // read in the original format
23598|       |
23599|  5.38k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  5.38k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.38k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  5.38k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 5.38k]
  |  Branch (23603:34): [Folded, False: 5.24k]
  |  Branch (23603:57): [True: 5.24k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  5.38k|        return true;
23608|  5.38k|    }
_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_stringIjEEbT_RSC_:
23767|    423|    {
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|    423|        return get_bytes(len, "string", result);
23778|    423|    }
_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_bytesIjSC_EEbT_PKcRT0_:
23893|    423|    {
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|    423|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 423]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    423|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 423]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    423|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    599|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 273, False: 326]
  ------------------
23906|    273|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    273|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 217, False: 56]
  ------------------
23910|    273|                                       ? static_cast<std::size_t>(len)
23911|    273|                                       : chunk_size;
23912|    273|            const std::size_t old_size = result.size();
23913|    273|            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|    273|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    273|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 273, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    273|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    273|            chars_read += bytes_read;
23921|    273|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    273|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 176]
  |  |  ------------------
  ------------------
23922|     97|            {
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|     97|                result.resize(old_size + bytes_read);
23927|     97|                ++chars_read;
23928|     97|                current = char_traits<char_type>::eof();
23929|     97|                return unexpect_eof(context);
23930|     97|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    176|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    176|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 176, False: 0]
  ------------------
23933|    176|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    176|        }
23935|    326|        return true;
23936|    423|    }
_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_blockIjSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|    423|    {
23965|    423|        return false;
23966|    423|    }
_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|  21.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|  21.7k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 21.7k]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  21.7k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 21.7k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  21.7k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  34.2k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 12.5k, False: 21.6k]
  ------------------
23906|  12.5k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  12.5k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 12.5k, False: 0]
  ------------------
23910|  12.5k|                                       ? static_cast<std::size_t>(len)
23911|  12.5k|                                       : chunk_size;
23912|  12.5k|            const std::size_t old_size = result.size();
23913|  12.5k|            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|  12.5k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  12.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 12.5k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  12.5k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  12.5k|            chars_read += bytes_read;
23921|  12.5k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  12.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 40, False: 12.5k]
  |  |  ------------------
  ------------------
23922|     40|            {
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|     40|                result.resize(old_size + bytes_read);
23927|     40|                ++chars_read;
23928|     40|                current = char_traits<char_type>::eof();
23929|     40|                return unexpect_eof(context);
23930|     40|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  12.5k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  12.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 12.5k, False: 0]
  ------------------
23933|  12.5k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  12.5k|        }
23935|  21.6k|        return true;
23936|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17append_from_blockIhSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  21.7k|    {
23965|  21.7k|        return false;
23966|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE9get_bytesItSC_EEbT_PKcRT0_:
23893|    874|    {
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|    874|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 874]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    874|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 874]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    874|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.31k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 506, False: 805]
  ------------------
23906|    506|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    506|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 486, False: 20]
  ------------------
23910|    506|                                       ? static_cast<std::size_t>(len)
23911|    506|                                       : chunk_size;
23912|    506|            const std::size_t old_size = result.size();
23913|    506|            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|    506|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    506|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 506, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    506|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    506|            chars_read += bytes_read;
23921|    506|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    506|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 437]
  |  |  ------------------
  ------------------
23922|     69|            {
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|     69|                result.resize(old_size + bytes_read);
23927|     69|                ++chars_read;
23928|     69|                current = char_traits<char_type>::eof();
23929|     69|                return unexpect_eof(context);
23930|     69|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    437|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    437|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 437, False: 0]
  ------------------
23933|    437|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    437|        }
23935|    805|        return true;
23936|    874|    }
_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_blockItSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|    874|    {
23965|    874|        return false;
23966|    874|    }
_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_bytesImSC_EEbT_PKcRT0_:
23893|    564|    {
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|    564|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 564]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    564|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 564]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    564|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    750|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 358, False: 392]
  ------------------
23906|    358|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    358|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 216, False: 142]
  ------------------
23910|    358|                                       ? static_cast<std::size_t>(len)
23911|    358|                                       : chunk_size;
23912|    358|            const std::size_t old_size = result.size();
23913|    358|            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|    358|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    358|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 358, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    358|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    358|            chars_read += bytes_read;
23921|    358|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    358|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 172, False: 186]
  |  |  ------------------
  ------------------
23922|    172|            {
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|    172|                result.resize(old_size + bytes_read);
23927|    172|                ++chars_read;
23928|    172|                current = char_traits<char_type>::eof();
23929|    172|                return unexpect_eof(context);
23930|    172|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    186|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    186|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 186, False: 0]
  ------------------
23933|    186|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    186|        }
23935|    392|        return true;
23936|    564|    }
_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_blockImSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|    564|    {
23965|    564|        return false;
23966|    564|    }
_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|  9.04k|    {
23657|  9.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  9.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.04k, False: 0]
  |  |  ------------------
  ------------------
23658|  9.04k|        {
23659|  9.04k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  9.04k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  9.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE13emit_unsignedItEEbT_:
23656|  3.09k|    {
23657|  3.09k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  3.09k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.09k, False: 0]
  |  |  ------------------
  ------------------
23658|  3.09k|        {
23659|  3.09k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  3.09k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  3.09k|    }
_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_unsignedIjEEbT_:
23656|  1.82k|    {
23657|  1.82k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.82k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.82k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.82k|        {
23659|  1.82k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.82k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.82k|    }
_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_bytesImNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  3.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|  3.47k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 3.47k]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  3.47k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 3.47k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  3.47k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  5.07k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.73k, False: 3.34k]
  ------------------
23906|  1.73k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.73k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.64k, False: 93]
  ------------------
23910|  1.73k|                                       ? static_cast<std::size_t>(len)
23911|  1.73k|                                       : chunk_size;
23912|  1.73k|            const std::size_t old_size = result.size();
23913|  1.73k|            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.73k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.73k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.73k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.73k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.73k|            chars_read += bytes_read;
23921|  1.73k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.73k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 135, False: 1.60k]
  |  |  ------------------
  ------------------
23922|    135|            {
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|    135|                result.resize(old_size + bytes_read);
23927|    135|                ++chars_read;
23928|    135|                current = char_traits<char_type>::eof();
23929|    135|                return unexpect_eof(context);
23930|    135|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.60k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.60k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.60k, False: 0]
  ------------------
23933|  1.60k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.60k|        }
23935|  3.34k|        return true;
23936|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17append_from_blockImNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  3.47k|    {
23965|  3.47k|        return false;
23966|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE11enter_arrayEmm:
19213|  75.1k|    {
19214|  75.1k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  75.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_EEE12enter_objectEmm:
19219|  14.3k|    {
19220|  14.3k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  14.3k|    }
_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|     99|    {
24070|     99|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|     99|    }
_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_EEE14get_half_floatEb:
23702|  33.8k|    {
23703|  33.8k|        const auto byte1_raw = get();
23704|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23705|      0|        {
23706|      0|            return false;
23707|      0|        }
23708|  33.8k|        const auto byte2_raw = get();
23709|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23710|      0|        {
23711|      0|            return false;
23712|      0|        }
23713|       |
23714|  33.8k|        const auto byte1 = static_cast<unsigned char>(byte1_raw);
23715|  33.8k|        const auto byte2 = static_cast<unsigned char>(byte2_raw);
23716|       |
23717|       |        // Code from RFC 8949, Appendix D, Figure 3:
23718|       |        // As half-precision floating-point numbers were only added
23719|       |        // to IEEE 754 in 2008, today's programming platforms often
23720|       |        // still only have limited support for them. It is very
23721|       |        // easy to include at least decoding support for them even
23722|       |        // without such support. An example of a small decoder for
23723|       |        // half-precision floating-point numbers in the C language
23724|       |        // is shown in Fig. 3.
23725|  33.8k|        const auto half = little_endian
  ------------------
  |  Branch (23725:27): [True: 33.7k, False: 98]
  ------------------
23726|  33.8k|                          ? static_cast<unsigned int>((byte2 << 8u) + byte1)
23727|  33.8k|                          : static_cast<unsigned int>((byte1 << 8u) + byte2);
23728|  33.8k|        const double val = [&half]
23729|  33.8k|        {
23730|  33.8k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.8k|            const unsigned int mant = half & 0x3FFu;
23732|  33.8k|            JSON_ASSERT(exp <= 31);
23733|  33.8k|            JSON_ASSERT(mant <= 1023);
23734|  33.8k|            switch (exp)
23735|  33.8k|            {
23736|  33.8k|                case 0:
23737|  33.8k|                    return std::ldexp(mant, -24);
23738|  33.8k|                case 31:
23739|  33.8k|                    return (mant == 0)
23740|  33.8k|                    ? std::numeric_limits<double>::infinity()
23741|  33.8k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  33.8k|                default:
23743|  33.8k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.8k|            }
23745|  33.8k|        }();
23746|  33.8k|        return sax->number_float((half & 0x8000u) != 0
  ------------------
  |  Branch (23746:34): [True: 6.67k, False: 27.1k]
  ------------------
23747|  33.8k|                                 ? static_cast<number_float_t>(-val)
23748|  33.8k|                                 : static_cast<number_float_t>(val), no_source);
23749|  33.8k|    }
_ZZN8nlohmann16json_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_EEE14get_half_floatEbENKUlvE_clEv:
23729|  33.7k|        {
23730|  33.7k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.7k|            const unsigned int mant = half & 0x3FFu;
23732|  33.7k|            JSON_ASSERT(exp <= 31);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23732:13): [True: 33.7k, False: 0]
  ------------------
23733|  33.7k|            JSON_ASSERT(mant <= 1023);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23733:13): [True: 33.7k, False: 0]
  ------------------
23734|  33.7k|            switch (exp)
23735|  33.7k|            {
23736|  5.96k|                case 0:
  ------------------
  |  Branch (23736:17): [True: 5.96k, False: 27.7k]
  ------------------
23737|  5.96k|                    return std::ldexp(mant, -24);
23738|  2.11k|                case 31:
  ------------------
  |  Branch (23738:17): [True: 2.11k, False: 31.6k]
  ------------------
23739|  2.11k|                    return (mant == 0)
  ------------------
  |  Branch (23739:28): [True: 1, False: 2.11k]
  ------------------
23740|  2.11k|                    ? std::numeric_limits<double>::infinity()
23741|  2.11k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  25.6k|                default:
  ------------------
  |  Branch (23742:17): [True: 25.6k, False: 8.07k]
  ------------------
23743|  25.6k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.7k|            }
23745|  33.7k|        }();
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberIfLb0EEEbRT_:
23596|  2.40k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.40k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.40k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.40k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.40k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.40k]
  |  Branch (23603:34): [Folded, False: 2.29k]
  |  Branch (23603:57): [True: 2.29k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.40k|        return true;
23608|  2.40k|    }
_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|  2.40k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.40k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.40k|        chars_read += new_chars_read;
23508|  2.40k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.40k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 2.29k]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|  2.29k|        return true;
23516|  2.40k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIfEEmPT_m:
10326|  2.40k|    {
10327|  2.40k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  2.40k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIfEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  2.40k|    {
10407|  2.40k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  11.6k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 9.31k, False: 2.29k]
  ------------------
10409|  9.31k|        {
10410|  9.31k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  9.31k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.21k, False: 105]
  |  |  ------------------
  ------------------
10411|  9.21k|            {
10412|  9.21k|                ptr[read_index] = static_cast<char>(*current);
10413|  9.21k|                std::advance(current, 1);
10414|  9.21k|            }
10415|    105|            else
10416|    105|            {
10417|    105|                return read_index;
10418|    105|            }
10419|  9.31k|        }
10420|  2.29k|        return count * sizeof(T);
10421|  2.40k|    }
_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|  2.29k|    {
23683|  2.29k|        const auto result = static_cast<number_float_t>(number);
23684|  2.29k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  4.32k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  |  Branch (1697:94): [True: 2.02k, False: 270]
  |  |  |  Branch (1697:94): [True: 0, False: 2.02k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  2.29k|        return sax->number_float(result, no_source);
23689|  2.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_EEE10get_numberIdLb0EEEbRT_:
23596|  1.59k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.59k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.59k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.59k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.59k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.59k]
  |  Branch (23603:34): [Folded, False: 1.52k]
  |  Branch (23603:57): [True: 1.52k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.59k|        return true;
23608|  1.59k|    }
_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|  21.7k|    {
23847|  21.7k|        NumberType len{};
23848|  21.7k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 21.7k, False: 10]
  |  Branch (23848:35): [True: 21.6k, False: 40]
  |  Branch (23848:62): [True: 21.6k, False: 0]
  ------------------
23849|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_stringIhEEbT_RSC_:
23767|  21.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|  21.7k|        return get_bytes(len, "string", result);
23778|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE22get_string_with_lengthItEEbRSC_PKc:
23846|    885|    {
23847|    885|        NumberType len{};
23848|    885|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 874, False: 11]
  |  Branch (23848:35): [True: 805, False: 69]
  |  Branch (23848:62): [True: 805, False: 0]
  ------------------
23849|    885|    }
_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_stringItEEbT_RSC_:
23767|    874|    {
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|    874|        return get_bytes(len, "string", result);
23778|    874|    }
_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_lengthIjEEbRSC_PKc:
23846|    435|    {
23847|    435|        NumberType len{};
23848|    435|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 423, False: 12]
  |  Branch (23848:35): [True: 326, False: 97]
  |  Branch (23848:62): [True: 326, False: 0]
  ------------------
23849|    435|    }
_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|  29.9k|    {
23597|       |        // read in the original format
23598|       |
23599|  29.9k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  29.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 29.9k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  29.9k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 29.9k]
  |  Branch (23603:34): [Folded, False: 29.7k]
  |  Branch (23603:57): [True: 29.7k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  29.9k|        return true;
23608|  29.9k|    }
_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|  29.9k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  29.9k|        auto new_chars_read = ia.get_elements(&dest);
23507|  29.9k|        chars_read += new_chars_read;
23508|  29.9k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  29.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 29.7k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  29.7k|        return true;
23516|  29.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIaEEmPT_m:
10326|  29.9k|    {
10327|  29.9k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  29.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIaEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  29.9k|    {
10407|  29.9k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  59.6k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 29.9k, False: 29.7k]
  ------------------
10409|  29.9k|        {
10410|  29.9k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  29.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 29.7k, False: 129]
  |  |  ------------------
  ------------------
10411|  29.7k|            {
10412|  29.7k|                ptr[read_index] = static_cast<char>(*current);
10413|  29.7k|                std::advance(current, 1);
10414|  29.7k|            }
10415|    129|            else
10416|    129|            {
10417|    129|                return read_index;
10418|    129|            }
10419|  29.9k|        }
10420|  29.7k|        return count * sizeof(T);
10421|  29.9k|    }
_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|  8.80k|    {
23629|  8.80k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  8.80k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.80k, False: 0]
  |  |  ------------------
  ------------------
23630|  8.80k|        {
23631|  8.80k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  8.80k|        }
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|  6.04k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.04k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.04k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  6.04k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 6.04k]
  |  Branch (23603:34): [Folded, False: 5.89k]
  |  Branch (23603:57): [True: 5.89k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  6.04k|        return true;
23608|  6.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toIsEEbRT_PKc:
23503|  6.04k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.04k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.04k|        chars_read += new_chars_read;
23508|  6.04k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 5.89k]
  |  |  ------------------
  ------------------
23509|    148|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    148|            ++chars_read;
23512|    148|            static_cast<void>(report_eof(context));
23513|    148|            return false;
23514|    148|        }
23515|  5.89k|        return true;
23516|  6.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIsEEmPT_m:
10326|  6.04k|    {
10327|  6.04k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  6.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIsEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  6.04k|    {
10407|  6.04k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  17.8k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.9k, False: 5.89k]
  ------------------
10409|  11.9k|        {
10410|  11.9k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.8k, False: 148]
  |  |  ------------------
  ------------------
10411|  11.8k|            {
10412|  11.8k|                ptr[read_index] = static_cast<char>(*current);
10413|  11.8k|                std::advance(current, 1);
10414|  11.8k|            }
10415|    148|            else
10416|    148|            {
10417|    148|                return read_index;
10418|    148|            }
10419|  11.9k|        }
10420|  5.89k|        return count * sizeof(T);
10421|  6.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE11emit_signedIsEEbT_:
23628|  3.62k|    {
23629|  3.62k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.62k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.62k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.62k|        {
23631|  3.62k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.62k|        }
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|  3.54k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.54k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.54k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.54k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.54k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.54k]
  |  Branch (23603:34): [Folded, False: 3.43k]
  |  Branch (23603:57): [True: 3.43k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.54k|        return true;
23608|  3.54k|    }
_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.44k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.44k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.44k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.44k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.44k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.44k]
  |  Branch (23603:34): [Folded, False: 3.33k]
  |  Branch (23603:57): [True: 3.33k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.44k|        return true;
23608|  3.44k|    }
_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|  15.9k|    {
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|  15.9k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  15.9k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   216k|        while (true)
  ------------------
  |  Branch (21815:16): [True: 209k, Folded]
  ------------------
21816|   209k|        {
21817|   209k|            const std::size_t depth = container_stack.size();
21818|       |
21819|   209k|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   209k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 209k]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   209k|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.09k, False: 206k]
  ------------------
21826|  3.09k|            {
21827|  3.09k|                return true;
21828|  3.09k|            }
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|   206k|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 110k, False: 95.5k]
  |  Branch (21832:52): [True: 63.9k, False: 46.8k]
  ------------------
21833|  63.9k|            {
21834|  63.9k|                get_ignore_noop();
21835|  63.9k|            }
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|   206k|            for (;;)
21842|   251k|            {
21843|   251k|                const container_frame top = container_stack.back();
21844|       |
21845|   251k|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 54.1k, False: 196k]
  ------------------
21846|  54.1k|                {
21847|  54.1k|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 49.9k, False: 4.18k]
  ------------------
21848|  49.9k|                    {
21849|  49.9k|                        --container_stack.back().remaining;
21850|  49.9k|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 994, False: 48.9k]
  ------------------
21851|    994|                        {
21852|    994|                            key.clear();
21853|    994|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 994]
  |  |  |  Branch (1697:94): [True: 87, False: 907]
  |  |  |  Branch (1697:94): [True: 0, False: 907]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|    994|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|  49.9k|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 43.2k, False: 6.74k]
  ------------------
21860|  49.9k|                        break;
21861|  49.9k|                    }
21862|  54.1k|                }
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|   196k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 34.5k, False: 162k]
  |  Branch (21867:26): [True: 144k, False: 52.3k]
  ------------------
21868|   144k|                {
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|   144k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 23.7k, False: 120k]
  ------------------
21873|  23.7k|                    {
21874|  23.7k|                        key.clear();
21875|  23.7k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  46.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.7k]
  |  |  |  Branch (1697:94): [True: 1.00k, False: 22.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 22.7k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  23.7k|                        prefix = get_ignore_noop();
21880|  23.7k|                    }
21881|   120k|                    else
21882|   120k|                    {
21883|   120k|                        prefix = current;
21884|   120k|                    }
21885|   144k|                    break;
21886|   144k|                }
21887|       |
21888|  56.5k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  56.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 56.5k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  56.5k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 5.39k, False: 51.1k]
  ------------------
21893|  5.39k|                {
21894|  5.39k|                    return true;
21895|  5.39k|                }
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|  51.1k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 50.8k, False: 316]
  ------------------
21899|  50.8k|                {
21900|  50.8k|                    get_ignore_noop();
21901|  50.8k|                }
21902|  51.1k|            }
21903|   206k|        }
21904|  15.9k|    }
_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|   222k|    {
22405|   222k|        switch (prefix)
22406|   222k|        {
22407|  1.50k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.50k, False: 221k]
  ------------------
22408|  1.50k|                return unexpect_eof("value");
22409|       |
22410|  10.7k|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 10.7k, False: 212k]
  ------------------
22411|  10.7k|                return sax->boolean(true);
22412|  6.83k|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 6.83k, False: 215k]
  ------------------
22413|  6.83k|                return sax->boolean(false);
22414|       |
22415|  11.5k|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 11.5k, False: 211k]
  ------------------
22416|  11.5k|                return sax->null();
22417|       |
22418|  1.80k|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1.80k, False: 221k]
  ------------------
22419|  1.80k|            {
22420|  1.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 0, False: 1.80k]
  ------------------
22421|      0|                {
22422|      0|                    break;
22423|      0|                }
22424|  1.80k|                std::uint8_t number{};
22425|  1.80k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 1.80k, False: 4]
  |  Branch (22425:46): [True: 1.80k, False: 0]
  ------------------
22426|  1.80k|            }
22427|       |
22428|  7.37k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 7.37k, False: 215k]
  ------------------
22429|  7.37k|            {
22430|  7.37k|                std::uint8_t number{};
22431|  7.37k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 7.24k, False: 122]
  |  Branch (22431:46): [True: 7.24k, False: 0]
  ------------------
22432|  1.80k|            }
22433|       |
22434|  8.90k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 8.90k, False: 213k]
  ------------------
22435|  8.90k|            {
22436|  8.90k|                std::int8_t number{};
22437|  8.90k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 8.80k, False: 101]
  |  Branch (22437:46): [True: 8.80k, False: 0]
  ------------------
22438|  1.80k|            }
22439|       |
22440|  3.71k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 3.71k, False: 219k]
  ------------------
22441|  3.71k|            {
22442|  3.71k|                std::int16_t number{};
22443|  3.71k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 3.62k, False: 98]
  |  Branch (22443:46): [True: 3.62k, False: 0]
  ------------------
22444|  1.80k|            }
22445|       |
22446|  2.15k|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 2.15k, False: 220k]
  ------------------
22447|  2.15k|            {
22448|  2.15k|                std::int32_t number{};
22449|  2.15k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 2.10k, False: 58]
  |  Branch (22449:46): [True: 2.10k, False: 0]
  ------------------
22450|  1.80k|            }
22451|       |
22452|  2.22k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 2.22k, False: 220k]
  ------------------
22453|  2.22k|            {
22454|  2.22k|                std::int64_t number{};
22455|  2.22k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 2.15k, False: 67]
  |  Branch (22455:46): [True: 2.15k, False: 0]
  ------------------
22456|  1.80k|            }
22457|       |
22458|  3.20k|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 3.20k, False: 219k]
  ------------------
22459|  3.20k|            {
22460|  3.20k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 0, False: 3.20k]
  ------------------
22461|      0|                {
22462|      0|                    break;
22463|      0|                }
22464|  3.20k|                std::uint16_t number{};
22465|  3.20k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 3.09k, False: 102]
  |  Branch (22465:46): [True: 3.09k, False: 0]
  ------------------
22466|  3.20k|            }
22467|       |
22468|  1.91k|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 1.91k, False: 220k]
  ------------------
22469|  1.91k|            {
22470|  1.91k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 0, False: 1.91k]
  ------------------
22471|      0|                {
22472|      0|                    break;
22473|      0|                }
22474|  1.91k|                std::uint32_t number{};
22475|  1.91k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 1.82k, False: 87]
  |  Branch (22475:46): [True: 1.82k, False: 0]
  ------------------
22476|  1.91k|            }
22477|       |
22478|  3.70k|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 3.70k, False: 219k]
  ------------------
22479|  3.70k|            {
22480|  3.70k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 0, False: 3.70k]
  ------------------
22481|      0|                {
22482|      0|                    break;
22483|      0|                }
22484|  3.70k|                std::uint64_t number{};
22485|  3.70k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 3.62k, False: 84]
  |  Branch (22485:46): [True: 3.62k, False: 0]
  ------------------
22486|  3.70k|            }
22487|       |
22488|  33.8k|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 33.8k, False: 188k]
  ------------------
22489|  33.8k|            {
22490|  33.8k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 0, False: 33.8k]
  ------------------
22491|      0|                {
22492|      0|                    break;
22493|      0|                }
22494|  33.8k|                return get_half_float(true);
22495|  33.8k|            }
22496|       |
22497|  2.40k|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 2.40k, False: 220k]
  ------------------
22498|  2.40k|            {
22499|  2.40k|                float number{};
22500|  2.40k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 2.29k, False: 105]
  |  Branch (22500:46): [True: 2.29k, False: 0]
  ------------------
22501|  33.8k|            }
22502|       |
22503|  1.59k|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 1.59k, False: 221k]
  ------------------
22504|  1.59k|            {
22505|  1.59k|                double number{};
22506|  1.59k|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 1.52k, False: 70]
  |  Branch (22506:46): [True: 1.52k, False: 0]
  ------------------
22507|  33.8k|            }
22508|       |
22509|  7.74k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 7.74k, False: 215k]
  ------------------
22510|  7.74k|            {
22511|  7.74k|                return get_ubjson_high_precision_number();
22512|  33.8k|            }
22513|       |
22514|  7.96k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 7.96k, False: 214k]
  ------------------
22515|  7.96k|            {
22516|  7.96k|                get();
22517|  7.96k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.96k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  7.96k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 7.95k]
  |  |  ------------------
  ------------------
22522|      3|                {
22523|      3|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      3|                }
22525|  7.95k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  7.95k|                return sax->string(s);
22527|  7.96k|            }
22528|       |
22529|  6.51k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 6.51k, False: 216k]
  ------------------
22530|  6.51k|            {
22531|  6.51k|                string_t s;
22532|  6.51k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 6.34k, False: 171]
  |  Branch (22532:48): [True: 6.34k, False: 0]
  ------------------
22533|  7.96k|            }
22534|       |
22535|  82.4k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 82.4k, False: 140k]
  ------------------
22536|  82.4k|                return get_ubjson_array();
22537|       |
22538|  14.5k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 14.5k, False: 208k]
  ------------------
22539|  14.5k|                return get_ubjson_object();
22540|       |
22541|     99|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 99, False: 222k]
  ------------------
22542|     99|                break;
22543|   222k|        }
22544|     99|        return unexpected_byte("invalid byte", "value");
22545|   222k|    }
_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|  7.74k|    {
22846|       |        // get the size of the following number string
22847|  7.74k|        std::size_t size{};
22848|  7.74k|        bool no_ndarray = true;
22849|  7.74k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  7.74k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.74k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  7.74k|        std::vector<char> number_vector;
22857|  98.6k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 90.9k, False: 7.74k]
  ------------------
22858|  90.9k|        {
22859|  90.9k|            get();
22860|  90.9k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 90.9k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|  90.9k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 90.9k]
  |  |  ------------------
  ------------------
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|  90.9k|            number_vector.push_back(static_cast<char>(current));
22871|  90.9k|        }
22872|       |
22873|       |        // parse number string
22874|  7.74k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  7.74k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  7.74k|        const auto result_number = number_lexer.scan();
22877|  7.74k|        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|  7.74k|        const string_t number_text = number_lexer.get_string();
22882|  7.74k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  7.74k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  7.74k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.07k, False: 6.67k]
  |  |  ------------------
  ------------------
22887|  1.07k|        {
22888|  1.07k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.07k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.07k|        }
22891|       |
22892|  6.67k|        switch (result_number)
22893|  6.67k|        {
22894|    455|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 455, False: 6.21k]
  ------------------
22895|    455|                return sax->number_integer(number_lexer.get_number_integer());
22896|  1.64k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 1.64k, False: 5.02k]
  ------------------
22897|  1.64k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.55k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.55k, False: 3.11k]
  ------------------
22899|  3.55k|            {
22900|  3.55k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.55k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.55k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 210, False: 3.34k]
  |  |  ------------------
  ------------------
22902|    210|                {
22903|    210|                    return sax->parse_error(
22904|    210|                               chars_read,
22905|    210|                               number_string,
22906|    210|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    210|                }
22908|  3.34k|                return sax->number_float(parsed_float, number_text);
22909|  3.55k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 6.67k]
  ------------------
22911|      0|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 0, False: 6.67k]
  ------------------
22912|      1|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 6.67k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 1, False: 6.67k]
  ------------------
22914|      5|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 3, False: 6.67k]
  ------------------
22915|      7|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 2, False: 6.67k]
  ------------------
22916|      8|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 6.67k]
  ------------------
22917|      9|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 6.67k]
  ------------------
22918|     10|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 6.67k]
  ------------------
22919|     12|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 2, False: 6.67k]
  ------------------
22920|     13|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 6.67k]
  ------------------
22921|    604|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 591, False: 6.08k]
  ------------------
22922|    650|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 46, False: 6.62k]
  ------------------
22923|    650|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 6.67k]
  ------------------
22924|    650|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 6.67k]
  ------------------
22925|    650|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    650|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  6.67k|        }
22928|  6.67k|    }
_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|  44.0k|    {
22149|  44.0k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 25.0k, False: 18.9k]
  ------------------
22150|  25.0k|        {
22151|  25.0k|            prefix = get_ignore_noop();
22152|  25.0k|        }
22153|       |
22154|  44.0k|        switch (prefix)
22155|  44.0k|        {
22156|  13.0k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 13.0k, False: 30.9k]
  ------------------
22157|  13.0k|            {
22158|  13.0k|                std::uint8_t number{};
22159|  13.0k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  13.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 13.0k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  13.0k|                result = static_cast<std::size_t>(number);
22164|  13.0k|                return true;
22165|  13.0k|            }
22166|       |
22167|  15.4k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 15.4k, False: 28.5k]
  ------------------
22168|  15.4k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.68k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.68k, False: 42.3k]
  ------------------
22171|  1.68k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    852|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 852, False: 43.2k]
  ------------------
22174|    852|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    678|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 678, False: 43.3k]
  ------------------
22177|    678|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|  2.29k|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 2.29k, False: 41.7k]
  ------------------
22180|  2.29k|            {
22181|  2.29k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 0, False: 2.29k]
  ------------------
22182|      0|                {
22183|      0|                    break;
22184|      0|                }
22185|  2.29k|                std::uint16_t number{};
22186|  2.29k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|  2.29k|                result = static_cast<std::size_t>(number);
22191|  2.29k|                return true;
22192|  2.29k|            }
22193|       |
22194|    827|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 827, False: 43.2k]
  ------------------
22195|    827|            {
22196|    827|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 0, False: 827]
  ------------------
22197|      0|                {
22198|      0|                    break;
22199|      0|                }
22200|    827|                std::uint32_t number{};
22201|    827|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    827|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 827]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|    827|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|    827|            }
22207|       |
22208|  1.09k|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1.09k, False: 42.9k]
  ------------------
22209|  1.09k|            {
22210|  1.09k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 0, False: 1.09k]
  ------------------
22211|      0|                {
22212|      0|                    break;
22213|      0|                }
22214|  1.09k|                std::uint64_t number{};
22215|  1.09k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.09k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.09k]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|  1.09k|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 1.09k]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|  1.09k|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|  1.09k|            }
22225|       |
22226|  7.80k|            case '[':
  ------------------
  |  Branch (22226:13): [True: 7.80k, False: 36.2k]
  ------------------
22227|  7.80k|            {
22228|  7.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 0, False: 7.80k]
  ------------------
22229|      0|                {
22230|      0|                    break;
22231|      0|                }
22232|  7.80k|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 7, False: 7.79k]
  ------------------
22233|      7|                {
22234|      7|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      7|                }
22236|  7.79k|                std::vector<size_t> dim;
22237|  7.79k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|  7.79k|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 1.15k, False: 6.64k]
  |  Branch (22241:41): [True: 2.23k, False: 4.40k]
  |  Branch (22241:60): [True: 209, False: 2.03k]
  ------------------
22242|    806|                {
22243|    806|                    result = dim.at(dim.size() - 1);
22244|    806|                    return true;
22245|    806|                }
22246|  6.99k|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 3.61k, False: 3.37k]
  ------------------
22247|  3.61k|                {
22248|  3.61k|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 10.3k, False: 3.41k]
  ------------------
22249|  10.3k|                    {
22250|  10.3k|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 200, False: 10.1k]
  ------------------
22251|    200|                        {
22252|    200|                            result = 0;
22253|    200|                            return true;
22254|    200|                        }
22255|  10.3k|                    }
22256|       |
22257|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|  3.41k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
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|  3.41k|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 3.24k, False: 174]
  ------------------
22266|  3.24k|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|  3.24k|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|  3.24k|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|  3.24k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 3.24k, False: 0]
  ------------------
22270|       |
22271|  3.24k|                        string_t type_key = "_ArrayType_";
22272|  3.24k|                        string_t type = type_name; // sax->string() takes a reference
22273|  3.24k|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|  6.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|  3.24k|                    }
22278|       |
22279|  3.41k|                    string_t key = "_ArraySize_";
22280|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|  6.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|  3.41k|                    result = 1;
22285|  3.41k|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 9.29k, False: 3.34k]
  ------------------
22286|  9.29k|                    {
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|  9.29k|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|  9.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 9.22k]
  |  |  ------------------
  ------------------
22295|     77|                        {
22296|     77|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|     77|                        }
22298|  9.22k|                        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|  9.22k|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 1, False: 9.21k]
  ------------------
22304|      1|                        {
22305|      1|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      1|                        }
22307|  9.21k|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|  9.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.21k]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|  9.21k|                    }
22312|  3.34k|                    is_ndarray = true;
22313|  3.34k|                    return sax->end_array();
22314|  3.41k|                }
22315|  3.37k|                result = 0;
22316|  3.37k|                return true;
22317|  6.99k|            }
22318|       |
22319|    275|            default:
  ------------------
  |  Branch (22319:13): [True: 275, False: 43.7k]
  ------------------
22320|    275|                break;
22321|  44.0k|        }
22322|    275|        return length_type_error(" after '#'", "size");
22323|  44.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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  15.4k|    {
22115|  15.4k|        SignedType number{};
22116|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  15.4k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 15.4k]
  |  |  ------------------
  ------------------
22121|      4|        {
22122|      4|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      4|        }
22124|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  15.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|  15.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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.68k|    {
22115|  1.68k|        SignedType number{};
22116|  1.68k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.68k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.68k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 8, False: 1.67k]
  |  |  ------------------
  ------------------
22121|      8|        {
22122|      8|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      8|        }
22124|  1.67k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.67k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.67k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.67k|        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.67k|    }
_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|    852|    {
22115|    852|        SignedType number{};
22116|    852|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 852]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    852|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 818]
  |  |  ------------------
  ------------------
22121|     34|        {
22122|     34|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     34|        }
22124|    818|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 818]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    818|        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|    818|    }
_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|    678|    {
22115|    678|        SignedType number{};
22116|    678|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 678]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    678|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 68, False: 610]
  |  |  ------------------
  ------------------
22121|     68|        {
22122|     68|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     68|        }
22124|    610|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    610|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 610]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    610|        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|    610|    }
_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|  20.2k|    {
22090|  20.2k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  20.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 20.2k]
  |  |  ------------------
  ------------------
22091|      1|        {
22092|      1|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      1|        }
22094|  20.2k|        result = count;
22095|  20.2k|        return true;
22096|  20.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_ndarray_sizeERNS6_ImNSA_ImEEEE:
22027|  7.79k|    {
22028|  7.79k|        std::pair<std::size_t, char_int_type> size_and_type;
22029|  7.79k|        size_t dimlen = 0;
22030|  7.79k|        bool no_ndarray = true;
22031|       |
22032|  7.79k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type, no_ndarray)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22033|      0|        {
22034|      0|            return false;
22035|      0|        }
22036|       |
22037|  7.79k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22037:13): [True: 1.61k, False: 6.18k]
  ------------------
22038|  1.61k|        {
22039|  1.61k|            if (size_and_type.second != 0)
  ------------------
  |  Branch (22039:17): [True: 1.17k, False: 438]
  ------------------
22040|  1.17k|            {
22041|  9.87k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22041:41): [True: 8.69k, False: 1.17k]
  ------------------
22042|  8.69k|                {
22043|  8.69k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, size_and_type.second)))
  ------------------
  |  | 1697|  8.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.69k]
  |  |  ------------------
  ------------------
22044|      0|                    {
22045|      0|                        return false;
22046|      0|                    }
22047|  8.69k|                    dim.push_back(dimlen);
22048|  8.69k|                }
22049|  1.17k|            }
22050|    438|            else
22051|    438|            {
22052|  1.44k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22052:41): [True: 1.00k, False: 438]
  ------------------
22053|  1.00k|                {
22054|  1.00k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray)))
  ------------------
  |  | 1697|  1.00k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
22055|      0|                    {
22056|      0|                        return false;
22057|      0|                    }
22058|  1.00k|                    dim.push_back(dimlen);
22059|  1.00k|                }
22060|    438|            }
22061|  1.61k|        }
22062|  6.18k|        else
22063|  6.18k|        {
22064|  16.4k|            while (current != ']')
  ------------------
  |  Branch (22064:20): [True: 10.2k, False: 6.18k]
  ------------------
22065|  10.2k|            {
22066|  10.2k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, current)))
  ------------------
  |  | 1697|  10.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.2k]
  |  |  ------------------
  ------------------
22067|      0|                {
22068|      0|                    return false;
22069|      0|                }
22070|  10.2k|                dim.push_back(dimlen);
22071|  10.2k|                get_ignore_noop();
22072|  10.2k|            }
22073|  6.18k|        }
22074|  7.79k|        return true;
22075|  7.79k|    }
_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|   104k|    {
22338|   104k|        result.first = npos; // size
22339|   104k|        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|   104k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|   104k|        get_ignore_noop();
22348|       |
22349|   104k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 12.2k, False: 92.5k]
  ------------------
22350|  12.2k|        {
22351|  12.2k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.2k]
  |  |  ------------------
  ------------------
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|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 17, False: 12.2k]
  |  |  ------------------
  ------------------
22361|     17|            {
22362|     17|                return optimized_type_error();
22363|     17|            }
22364|       |
22365|  12.2k|            get_ignore_noop();
22366|  12.2k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 12.0k]
  |  |  ------------------
  ------------------
22367|    129|            {
22368|    129|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    129|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 129]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    129|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    129|            }
22374|       |
22375|  12.0k|            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|  12.0k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 4.41k, False: 7.67k]
  |  Branch (22379:31): [True: 3.24k, False: 1.17k]
  ------------------
22380|  3.24k|            {
22381|  3.24k|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|  3.24k|            }
22383|  12.0k|            return is_error;
22384|  12.2k|        }
22385|       |
22386|  92.5k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 4.23k, False: 88.3k]
  ------------------
22387|  4.23k|        {
22388|  4.23k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  4.23k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 535, False: 3.70k]
  |  Branch (22389:31): [True: 97, False: 438]
  ------------------
22390|     97|            {
22391|     97|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|     97|            }
22393|  4.14k|            return is_error;
22394|  4.23k|        }
22395|       |
22396|  88.3k|        return true;
22397|  92.5k|    }
_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|  12.2k|    {
24158|  12.2k|        switch (marker)
24159|  12.2k|        {
24160|  1.02k|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 1.02k, False: 11.2k]
  ------------------
24161|  1.82k|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 800, False: 11.4k]
  ------------------
24162|  2.42k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 601, False: 11.6k]
  ------------------
24163|  3.07k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 649, False: 11.5k]
  ------------------
24164|  3.64k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 566, False: 11.6k]
  ------------------
24165|  4.23k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 589, False: 11.6k]
  ------------------
24166|  4.77k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 540, False: 11.6k]
  ------------------
24167|  5.25k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 486, False: 11.7k]
  ------------------
24168|  5.25k|                return true;
24169|      1|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 1, False: 12.2k]
  ------------------
24170|      2|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 1, False: 12.2k]
  ------------------
24171|      3|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 1, False: 12.2k]
  ------------------
24172|      4|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 1, False: 12.2k]
  ------------------
24173|      5|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 1, False: 12.2k]
  ------------------
24174|      6|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 1, False: 12.2k]
  ------------------
24175|      9|            case '[':
  ------------------
  |  Branch (24175:13): [True: 3, False: 12.2k]
  ------------------
24176|     10|            case '{':
  ------------------
  |  Branch (24176:13): [True: 1, False: 12.2k]
  ------------------
24177|     10|                return input_format != input_format_t::bjdata;
24178|  4.08k|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 4.08k, False: 8.15k]
  ------------------
24179|  4.76k|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 673, False: 11.5k]
  ------------------
24180|  5.30k|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 547, False: 11.6k]
  ------------------
24181|  5.98k|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 673, False: 11.5k]
  ------------------
24182|  6.96k|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 984, False: 11.2k]
  ------------------
24183|  6.96k|                return input_format == input_format_t::bjdata;
24184|      7|            default:
  ------------------
  |  Branch (24184:13): [True: 7, False: 12.2k]
  ------------------
24185|      7|                return false;
24186|  12.2k|        }
24187|  12.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_EEE20optimized_type_errorEv:
24014|     17|    {
24015|     17|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     17|    }
_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_EEE13bjd_type_nameEm:
24198|  3.24k|    {
24199|  3.24k|        switch (marker)
24200|  3.24k|        {
24201|    421|            case 'B':
  ------------------
  |  Branch (24201:13): [True: 421, False: 2.82k]
  ------------------
24202|    421|                return "byte";
24203|    277|            case 'C':
  ------------------
  |  Branch (24203:13): [True: 277, False: 2.96k]
  ------------------
24204|    277|                return "char";
24205|    190|            case 'D':
  ------------------
  |  Branch (24205:13): [True: 190, False: 3.05k]
  ------------------
24206|    190|                return "double";
24207|    209|            case 'I':
  ------------------
  |  Branch (24207:13): [True: 209, False: 3.03k]
  ------------------
24208|    209|                return "int16";
24209|    174|            case 'L':
  ------------------
  |  Branch (24209:13): [True: 174, False: 3.07k]
  ------------------
24210|    174|                return "int64";
24211|    149|            case 'M':
  ------------------
  |  Branch (24211:13): [True: 149, False: 3.09k]
  ------------------
24212|    149|                return "uint64";
24213|    282|            case 'U':
  ------------------
  |  Branch (24213:13): [True: 282, False: 2.96k]
  ------------------
24214|    282|                return "uint8";
24215|    188|            case 'd':
  ------------------
  |  Branch (24215:13): [True: 188, False: 3.05k]
  ------------------
24216|    188|                return "single";
24217|    222|            case 'h':
  ------------------
  |  Branch (24217:13): [True: 222, False: 3.02k]
  ------------------
24218|    222|                return "half";
24219|    431|            case 'i':
  ------------------
  |  Branch (24219:13): [True: 431, False: 2.81k]
  ------------------
24220|    431|                return "int8";
24221|    238|            case 'l':
  ------------------
  |  Branch (24221:13): [True: 238, False: 3.00k]
  ------------------
24222|    238|                return "int32";
24223|    194|            case 'm':
  ------------------
  |  Branch (24223:13): [True: 194, False: 3.05k]
  ------------------
24224|    194|                return "uint32";
24225|    270|            case 'u':
  ------------------
  |  Branch (24225:13): [True: 270, False: 2.97k]
  ------------------
24226|    270|                return "uint16";
24227|      0|            default:
  ------------------
  |  Branch (24227:13): [True: 0, False: 3.24k]
  ------------------
24228|      0|                return nullptr;
24229|  3.24k|        }
24230|  3.24k|    }
_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|    318|    {
24082|    318|        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: 318, False: 0]
  ------------------
24083|    318|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    318|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    318|    }
_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|  82.4k|    {
22708|  82.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  82.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 82.4k]
  |  |  ------------------
  ------------------
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|  82.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 3.24k, False: 79.2k]
  ------------------
22718|  3.24k|        {
22719|  3.24k|            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|  3.24k|            const bool nd_is_char = size_and_type.second == 'C';
22727|  3.24k|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 277, False: 2.96k]
  |  Branch (22727:48): [True: 421, False: 2.54k]
  ------------------
22728|    698|            {
22729|    698|                size_and_type.second = 'U';
22730|    698|            }
22731|       |
22732|  3.24k|            string_t key = "_ArrayData_";
22733|  3.24k|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|  6.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 1, False: 3.24k]
  |  |  ------------------
  ------------------
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|  3.24k|            std::size_t remaining = size_and_type.first;
22741|  3.24k|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|  2.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.96k]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 2.96k, False: 278]
  |  Branch (22741:17): [True: 0, False: 3.24k]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|  18.2k|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 14.9k, False: 3.23k]
  ------------------
22747|  14.9k|            {
22748|  14.9k|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 1.58k, False: 13.3k]
  ------------------
22749|  1.58k|                {
22750|  1.58k|                    get();
22751|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.58k]
  |  |  ------------------
  ------------------
22756|      3|                    {
22757|      3|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      3|                    }
22759|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|  1.58k|                    continue;
22764|  1.58k|                }
22765|       |
22766|  13.3k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|  13.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 13.3k]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|  13.3k|            }
22771|       |
22772|  3.23k|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 3.04k, False: 196]
  |  Branch (22772:41): [True: 3.04k, False: 0]
  ------------------
22773|  3.24k|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  79.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 10.3k, False: 68.9k]
  |  Branch (22776:44): [True: 3.47k, False: 6.86k]
  ------------------
22777|  3.47k|        {
22778|  3.47k|            binary_t result;
22779|  3.47k|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 3.34k, False: 135]
  |  Branch (22779:63): [True: 3.34k, False: 0]
  ------------------
22780|  3.47k|        }
22781|       |
22782|  75.7k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.86k, False: 68.9k]
  ------------------
22783|  6.86k|        {
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.86k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  27.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22789|      0|            {
22790|      0|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22791|      0|                {
22792|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|      0|                }
22794|      0|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22795|      0|                {
22796|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|      0|                }
22798|      0|            }
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.86k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 0, False: 6.86k]
  ------------------
22804|  6.86k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.86k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 2.80k, False: 4.06k]
  ------------------
22810|  4.06k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 4.06k, False: 0]
  ------------------
22811|  6.86k|        }
22812|       |
22813|  68.9k|        return enter_array(detail::unknown_size());
22814|  75.7k|    }
_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|  7.02k|    {
22593|  7.02k|        return true;
22594|  7.02k|    }
_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_binaryImEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  3.47k|    {
23868|  3.47k|        return get_bytes(len, "binary", result);
23869|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17get_ubjson_objectEv:
22820|  14.5k|    {
22821|  14.5k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  14.5k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  14.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 14.5k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  14.5k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 2, False: 14.5k]
  ------------------
22829|      2|        {
22830|      2|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      2|        }
22832|       |
22833|  14.5k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 374, False: 14.1k]
  ------------------
22834|    374|        {
22835|    374|            return enter_object(size_and_type.first, size_and_type.second);
22836|    374|        }
22837|       |
22838|  14.1k|        return enter_object(detail::unknown_size());
22839|  14.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  31.2k|    {
21944|  31.2k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 7.50k, False: 23.7k]
  ------------------
21945|  7.50k|        {
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|  7.50k|            get();
21951|  7.50k|        }
21952|       |
21953|  31.2k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  31.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 31.2k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  31.2k|        switch (current)
21959|  31.2k|        {
21960|  21.7k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 21.7k, False: 9.53k]
  ------------------
21961|  21.7k|            {
21962|  21.7k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  5.52k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 5.52k, False: 25.7k]
  ------------------
21966|  5.52k|            {
21967|  5.52k|                std::int8_t len{};
21968|  5.52k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 5.52k, False: 2]
  |  Branch (21968:43): [True: 5.51k, False: 5]
  |  Branch (21968:78): [True: 5.47k, False: 37]
  |  Branch (21968:105): [True: 5.47k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    647|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 647, False: 30.6k]
  ------------------
21972|    647|            {
21973|    647|                std::int16_t len{};
21974|    647|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 640, False: 7]
  |  Branch (21974:43): [True: 637, False: 3]
  |  Branch (21974:78): [True: 589, False: 48]
  |  Branch (21974:105): [True: 589, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    533|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 533, False: 30.7k]
  ------------------
21978|    533|            {
21979|    533|                std::int32_t len{};
21980|    533|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 523, False: 10]
  |  Branch (21980:43): [True: 491, False: 32]
  |  Branch (21980:78): [True: 411, False: 80]
  |  Branch (21980:105): [True: 411, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    543|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 543, False: 30.7k]
  ------------------
21984|    543|            {
21985|    543|                std::int64_t len{};
21986|    543|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 529, False: 14]
  |  Branch (21986:43): [True: 466, False: 63]
  |  Branch (21986:78): [True: 317, False: 149]
  |  Branch (21986:105): [True: 317, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|    885|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 885, False: 30.3k]
  ------------------
21990|    885|            {
21991|    885|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 0, False: 885]
  ------------------
21992|      0|                {
21993|      0|                    break;
21994|      0|                }
21995|    885|                return get_string_with_length<std::uint16_t>(result, context);
21996|    885|            }
21997|       |
21998|    435|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 435, False: 30.8k]
  ------------------
21999|    435|            {
22000|    435|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 0, False: 435]
  ------------------
22001|      0|                {
22002|      0|                    break;
22003|      0|                }
22004|    435|                return get_string_with_length<std::uint32_t>(result, context);
22005|    435|            }
22006|       |
22007|    584|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 584, False: 30.6k]
  ------------------
22008|    584|            {
22009|    584|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 0, False: 584]
  ------------------
22010|      0|                {
22011|      0|                    break;
22012|      0|                }
22013|    584|                return get_string_with_length<std::uint64_t>(result, context);
22014|    584|            }
22015|       |
22016|     43|            default:
  ------------------
  |  Branch (22016:13): [True: 43, False: 31.2k]
  ------------------
22017|     43|                break;
22018|  31.2k|        }
22019|     43|        return length_type_error("", "string");
22020|  31.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  5.52k|    {
21921|  5.52k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  5.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.51k]
  |  |  ------------------
  ------------------
21922|      5|        {
21923|      5|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      5|        }
21925|  5.51k|        return true;
21926|  5.52k|    }
_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|  5.51k|    {
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|  5.51k|        return get_bytes(len, "string", result);
23778|  5.51k|    }
_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|  5.51k|    {
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|  5.51k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 5.51k]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  5.51k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 5.51k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  5.51k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  10.2k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 4.80k, False: 5.47k]
  ------------------
23906|  4.80k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  4.80k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 4.80k, False: 0]
  ------------------
23910|  4.80k|                                       ? static_cast<std::size_t>(len)
23911|  4.80k|                                       : chunk_size;
23912|  4.80k|            const std::size_t old_size = result.size();
23913|  4.80k|            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|  4.80k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  4.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 4.80k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  4.80k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  4.80k|            chars_read += bytes_read;
23921|  4.80k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  4.80k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 37, False: 4.77k]
  |  |  ------------------
  ------------------
23922|     37|            {
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|     37|                result.resize(old_size + bytes_read);
23927|     37|                ++chars_read;
23928|     37|                current = char_traits<char_type>::eof();
23929|     37|                return unexpect_eof(context);
23930|     37|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  4.77k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  4.77k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 4.77k, False: 0]
  ------------------
23933|  4.77k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  4.77k|        }
23935|  5.47k|        return true;
23936|  5.51k|    }
_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|  5.51k|    {
23965|  5.51k|        return false;
23966|  5.51k|    }
_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|    640|    {
21921|    640|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    640|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 637]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|    637|        return true;
21926|    640|    }
_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|    637|    {
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|    637|        return get_bytes(len, "string", result);
23778|    637|    }
_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|    637|    {
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|    637|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 637]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    637|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 637]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    637|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    991|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 402, False: 589]
  ------------------
23906|    402|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    402|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 383, False: 19]
  ------------------
23910|    402|                                       ? static_cast<std::size_t>(len)
23911|    402|                                       : chunk_size;
23912|    402|            const std::size_t old_size = result.size();
23913|    402|            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|    402|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    402|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 402, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    402|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    402|            chars_read += bytes_read;
23921|    402|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    402|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 354]
  |  |  ------------------
  ------------------
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|    354|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    354|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 354, False: 0]
  ------------------
23933|    354|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    354|        }
23935|    589|        return true;
23936|    637|    }
_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|    637|    {
23965|    637|        return false;
23966|    637|    }
_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|    523|    {
21921|    523|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    523|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 491]
  |  |  ------------------
  ------------------
21922|     32|        {
21923|     32|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     32|        }
21925|    491|        return true;
21926|    523|    }
_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|    529|    {
21921|    529|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    529|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 63, False: 466]
  |  |  ------------------
  ------------------
21922|     63|        {
21923|     63|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     63|        }
21925|    466|        return true;
21926|    529|    }
_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|    466|    {
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|    466|        return get_bytes(len, "string", result);
23778|    466|    }
_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|    466|    {
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|    466|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 466]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|    466|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 466]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    466|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    607|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 290, False: 317]
  ------------------
23906|    290|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    290|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 176, False: 114]
  ------------------
23910|    290|                                       ? static_cast<std::size_t>(len)
23911|    290|                                       : chunk_size;
23912|    290|            const std::size_t old_size = result.size();
23913|    290|            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|    290|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    290|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 290, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    290|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    290|            chars_read += bytes_read;
23921|    290|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    290|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 149, False: 141]
  |  |  ------------------
  ------------------
23922|    149|            {
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|    149|                result.resize(old_size + bytes_read);
23927|    149|                ++chars_read;
23928|    149|                current = char_traits<char_type>::eof();
23929|    149|                return unexpect_eof(context);
23930|    149|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    141|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    141|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 141, False: 0]
  ------------------
23933|    141|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    141|        }
23935|    317|        return true;
23936|    466|    }
_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|    466|    {
23965|    466|        return false;
23966|    466|    }
_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_lengthImEEbRSC_PKc:
23846|    584|    {
23847|    584|        NumberType len{};
23848|    584|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 564, False: 20]
  |  Branch (23848:35): [True: 392, False: 172]
  |  Branch (23848:62): [True: 392, False: 0]
  ------------------
23849|    584|    }
_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_stringImEEbT_RSC_:
23767|    564|    {
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|    564|        return get_bytes(len, "string", result);
23778|    564|    }
_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|    890|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    890|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    890|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 757, False: 133]
  ------------------
24059|    890|    }
_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|   320k|    {
23523|   320k|        do
23524|   326k|        {
23525|   326k|            get();
23526|   326k|        }
23527|   326k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 5.94k, False: 320k]
  ------------------
23528|       |
23529|   320k|        return current;
23530|   320k|    }
_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|   514k|    {
23489|   514k|        ++chars_read;
23490|   514k|        return current = ia.get_character();
23491|   514k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E13get_characterEv:
10272|   514k|    {
10273|   514k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   514k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 503k, False: 10.8k]
  |  |  ------------------
  ------------------
10274|   503k|        {
10275|   503k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   503k|            std::advance(current, 1);
10277|   503k|            return result;
10278|   503k|        }
10279|       |
10280|  10.8k|        ++eof_reads;
10281|  10.8k|        return char_traits<char_type>::eof();
10282|   514k|    }
_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|  15.9k|        {
19135|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 15.9k, False: 0]
  ------------------
19136|  15.9k|            {
19137|  15.9k|                parser->set_reserve_state(saved);
19138|  15.9k|            }
19139|  15.9k|        }
_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|  15.9k|    ~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|  15.9k|    ~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|  15.9k|{
10756|  15.9k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  15.9k|    return factory_type::create(first, last);
10758|  15.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryINSt3__121__list_const_iteratorIhPvEES6_vE6createES6_S6_:
10617|  15.9k|    {
10618|  15.9k|        return adapter_type(std::move(first), std::move(last));
10619|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_EC2ES6_S6_:
10268|  15.9k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  15.9k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11from_bjdataIRP8_IO_FILEEESE_OT_bbNS0_6detail15error_handler_tE:
46956|  15.9k|    {
46957|  15.9k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bjdata, strict, allow_exceptions, error_handler);
46958|  15.9k|    }
_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|  15.9k|    {
46576|  15.9k|        basic_json result;
46577|  15.9k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  15.9k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  15.9k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 15.9k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  15.9k|        return result;
46584|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEEC2ERSG_bPNS1_5lexerISG_SH_Lb0EEE:
17821|  15.9k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  15.9k|    {}
_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|  15.9k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  15.9k|    {
18994|  15.9k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EOS2_:
 9548|  15.9k|        : m_file(rhs.m_file)
 9549|       |#if JSON_FILE_WINDOW
 9550|  15.9k|        , token_carry(std::move(rhs.token_carry))
 9551|  15.9k|        , token_segment(rhs.token_segment)
 9552|  15.9k|        , current_in_buffer(rhs.current_in_buffer)
 9553|  15.9k|        , tracking_token(rhs.tracking_token)
 9554|       |#endif
 9555|  15.9k|    {
 9556|       |        // the lock is owned by the thread, not the adapter: hand it over
 9557|  15.9k|        rhs.m_file = nullptr;
 9558|  15.9k|    }
_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|  15.9k|    {
19018|  15.9k|        sax = sax_;
19019|  15.9k|        container_stack.clear();
19020|  15.9k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  15.9k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  15.9k|        bool result = false;
19024|       |
19025|  15.9k|        switch (input_format)
19026|  15.9k|        {
19027|      0|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 0, False: 15.9k]
  ------------------
19028|      0|                result = parse_bson_internal();
19029|      0|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 15.9k]
  ------------------
19040|  15.9k|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 15.9k, False: 0]
  ------------------
19041|  15.9k|                result = parse_ubjson_internal();
19042|  15.9k|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 15.9k]
  ------------------
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: 15.9k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 15.9k]
  ------------------
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|  15.9k|        }
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|  8.48k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 8.48k, False: 0]
  |  Branch (19058:23): [True: 0, False: 8.48k]
  |  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|  8.48k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 8.48k, False: 0]
  |  Branch (19065:23): [True: 8.48k, False: 0]
  ------------------
19066|  8.48k|        {
19067|  8.48k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 8.48k]
  |  Branch (19067:59): [True: 8.48k, False: 0]
  ------------------
19068|  8.48k|            {
19069|  8.48k|                get_ignore_noop();
19070|  8.48k|            }
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|  8.48k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  8.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 104, False: 8.38k]
  |  |  ------------------
  ------------------
19082|    104|            {
19083|    104|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|    104|            }
19085|  8.48k|        }
19086|       |
19087|  8.38k|        return result;
19088|  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_EEE12bound_parserEPSJ_NS4_17integral_constantIbLb1EEE:
19096|  15.9k|    {
19097|  15.9k|        return s;
19098|  15.9k|    }
_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|  15.9k|            : parser(parser_), saved()
19120|  15.9k|        {
19121|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 15.9k, False: 0]
  ------------------
19122|  15.9k|            {
19123|  15.9k|                saved = parser->get_reserve_state();
19124|  15.9k|                parser->set_input_position(position);
19125|  15.9k|            }
19126|  15.9k|        }
_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.29k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.29k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.29k|        chars_read += new_chars_read;
23508|  2.29k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 2.18k]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|  2.18k|        return true;
23516|  2.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIiEEmPT_m:
 9597|  2.29k|    {
 9598|  2.29k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.29k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10report_eofEPKc:
23991|  4.37k|    {
23992|  4.37k|        return sax->parse_error(chars_read, "<end of file>",
23993|  4.37k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  4.37k|    }
_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|  7.06k|    {
24103|  7.06k|        std::string error_msg = "syntax error while parsing ";
24104|  7.06k|        error_msg += input_format_name(input_format);
24105|       |
24106|  7.06k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  7.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_EEE15enter_containerEbmi:
19201|  89.4k|    {
19202|  89.4k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|   178k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 89.4k]
  |  |  |  Branch (1697:94): [True: 14.3k, False: 75.1k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  89.4k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  89.4k|        return true;
19209|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12start_objectEm:
17878|  17.8k|    {
17879|  17.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|  17.8k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  17.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_adapterEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  99.5k|    {
17962|  99.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 10.1k, False: 89.4k]
  ------------------
17963|  10.1k|        {
17964|  10.1k|            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.1k|            return &root;
17971|  10.1k|        }
17972|       |
17973|  89.4k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  89.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 76.2k, False: 13.1k]
  |  Branch (17973:9): [True: 13.1k, False: 0]
  |  Branch (17973:9): [True: 89.4k, False: 0]
  ------------------
17974|       |
17975|  89.4k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 76.2k, False: 13.1k]
  ------------------
17976|  76.2k|        {
17977|  76.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|  76.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  76.2k|        }
17985|       |
17986|  13.1k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 13.1k, False: 0]
  ------------------
17987|  13.1k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 13.1k, False: 0]
  ------------------
17988|  13.1k|        *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.1k|        return object_element;
17995|  13.1k|    }
_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|  99.5k|{
16470|  99.5k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|   116k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 99.3k]
  |  |  |  Branch (1697:94): [True: 17.3k, False: 82.2k]
  |  |  |  Branch (1697:94): [True: 270, False: 17.0k]
  |  |  ------------------
  ------------------
16471|    270|    {
16472|    270|        return container_too_large_error(sax, len, kind, ref);
16473|    270|    }
16474|  99.3k|    return true;
16475|  99.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|    270|{
16464|    270|    return sax.parse_error(0, "", out_of_range::create(exception_id::container_too_large, concat("excessive ", kind, " size: ", std::to_string(len)), ref));
16465|    270|}
_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|  81.7k|    {
17916|  81.7k|        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|  81.7k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  81.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 81.7k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  81.7k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 13.3k, False: 68.3k]
  ------------------
17929|  13.3k|        {
17930|  13.3k|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|  13.3k|        }
17932|       |
17933|  81.7k|        return true;
17934|  81.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15container_frameC2Embi:
19167|  89.2k|            : 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|  56.5k|    {
19234|  56.5k|        const bool is_object = container_stack.back().is_object;
19235|  56.5k|        container_stack.pop_back();
19236|  56.5k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 10.8k, False: 45.6k]
  ------------------
19237|  56.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_adapterEE10end_objectEv:
17901|  13.9k|    {
17902|  13.9k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 13.9k, False: 0]
  ------------------
17903|  13.9k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  13.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 13.9k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  13.9k|        ref_stack.back()->set_parents();
17910|  13.9k|        ref_stack.pop_back();
17911|  13.9k|        return true;
17912|  13.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE9end_arrayEv:
17937|  52.0k|    {
17938|  52.0k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 52.0k, False: 0]
  ------------------
17939|  52.0k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  52.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 52.0k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  52.0k|        ref_stack.back()->set_parents();
17946|  52.0k|        ref_stack.pop_back();
17947|  52.0k|        return true;
17948|  52.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_EEE12unexpect_eofEPKc:
23974|   214k|    {
23975|   214k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   214k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.10k, False: 210k]
  |  |  ------------------
  ------------------
23976|  3.10k|        {
23977|  3.10k|            return report_eof(context);
23978|  3.10k|        }
23979|   210k|        return true;
23980|   214k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter14bulk_remainingEv:
 9616|  47.7k|    {
 9617|  47.7k|        if (!current_in_buffer)
  ------------------
  |  Branch (9617:13): [True: 0, False: 47.7k]
  ------------------
 9618|      0|        {
 9619|      0|            return 0;
 9620|      0|        }
 9621|  47.7k|        return static_cast<std::size_t>(buffer_end() - buffer_ptr());
 9622|  47.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_endEv:
 9681|   562k|    {
 9682|   562k|        return m_file->_IO_read_end;
 9683|   562k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_ptrEv:
 9677|   584k|    {
 9678|   584k|        return m_file->_IO_read_ptr;
 9679|   584k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_dataEv:
 9610|  22.3k|    {
 9611|  22.3k|        return buffer_ptr();
 9612|  22.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_skipEm:
 9626|  22.3k|    {
 9627|  22.3k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  22.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9627:9): [True: 22.3k, False: 0]
  ------------------
 9628|  22.3k|        buffer_bump(n);
 9629|  22.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter11buffer_bumpEm:
 9685|   510k|    {
 9686|   510k|        m_file->_IO_read_ptr += n;
 9687|   510k|    }
_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|  30.0k|    {
23812|  30.0k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 30.0k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE3keyERSC_:
17890|  33.5k|    {
17891|  33.5k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 33.5k, False: 0]
  ------------------
17892|  33.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  33.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 33.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|  33.5k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  33.5k|        return true;
17898|  33.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_EEE6get_toIdEEbRT_PKc:
23503|    526|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    526|        auto new_chars_read = ia.get_elements(&dest);
23507|    526|        chars_read += new_chars_read;
23508|    526|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    526|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 70, False: 456]
  |  |  ------------------
  ------------------
23509|     70|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     70|            ++chars_read;
23512|     70|            static_cast<void>(report_eof(context));
23513|     70|            return false;
23514|     70|        }
23515|    456|        return true;
23516|    526|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIdEEmPT_m:
 9597|    526|    {
 9598|    526|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    526|    }
_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.52k|    {
23683|  1.52k|        const auto result = static_cast<number_float_t>(number);
23684|  1.52k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  2.94k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.52k]
  |  |  |  Branch (1697:94): [True: 1.41k, False: 104]
  |  |  |  Branch (1697:94): [True: 0, False: 1.41k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.52k|        return sax->number_float(result, no_source);
23689|  1.52k|    }
_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|     79|    {
24002|     79|        return sax->parse_error(chars_read, get_token_string(), out_of_range::create(id_, exception_message(detail, context), nullptr));
24003|     79|    }
_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.53k|    {
24092|  1.53k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.53k|    }
_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|  40.9k|    {
17857|  40.9k|        handle_value(val);
17858|  40.9k|        return true;
17859|  40.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRdEEPSG_OT_:
17961|  40.9k|    {
17962|  40.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 1.52k, False: 39.3k]
  ------------------
17963|  1.52k|        {
17964|  1.52k|            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.52k|            return &root;
17971|  1.52k|        }
17972|       |
17973|  39.3k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  39.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 38.7k, False: 678]
  |  Branch (17973:9): [True: 678, False: 0]
  |  Branch (17973:9): [True: 39.3k, False: 0]
  ------------------
17974|       |
17975|  39.3k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 38.7k, False: 678]
  ------------------
17976|  38.7k|        {
17977|  38.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|  38.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  38.7k|        }
17985|       |
17986|    678|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 678, False: 0]
  ------------------
17987|    678|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    678|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 678, False: 0]
  ------------------
17988|    678|        *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|    678|        return object_element;
17995|    678|    }
_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|    491|    {
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|    491|        return get_bytes(len, "string", result);
23778|    491|    }
_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|    491|    {
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|    491|        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|    491|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 223, False: 268]
  ------------------
23898|    223|        {
23899|    223|            return true;
23900|    223|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    268|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    268|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 80, False: 188]
  ------------------
23906|     80|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     80|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 33, False: 47]
  ------------------
23910|     80|                                       ? static_cast<std::size_t>(len)
23911|     80|                                       : chunk_size;
23912|     80|            const std::size_t old_size = result.size();
23913|     80|            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|     80|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     80|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 80, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     80|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     80|            chars_read += bytes_read;
23921|     80|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     80|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 80, False: 0]
  |  |  ------------------
  ------------------
23922|     80|            {
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|     80|                result.resize(old_size + bytes_read);
23927|     80|                ++chars_read;
23928|     80|                current = char_traits<char_type>::eof();
23929|     80|                return unexpect_eof(context);
23930|     80|            }
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|    188|        return true;
23936|    268|    }
_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|    491|    {
23943|    491|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 188, False: 303]
  ------------------
23944|    188|        {
23945|    188|            return false;
23946|    188|        }
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|    303|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    303|        const std::size_t remaining = ia.bulk_remaining();
23951|    303|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 80, False: 223]
  ------------------
23952|     80|        {
23953|     80|            return false; // (the loop reports the premature end)
23954|     80|        }
23955|    223|        const auto n = static_cast<std::size_t>(ulen);
23956|    223|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    223|        ia.bulk_skip(n);
23958|    223|        chars_read += n;
23959|    223|        return true;
23960|    303|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIcEEmPT_m:
 9597|    692|    {
 9598|    692|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    692|    }
_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|  17.5k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  17.5k|        handle_value(std::move(val));
17866|  17.5k|        return true;
17867|  17.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_adapterEE12handle_valueISC_EEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 456, False: 17.0k]
  ------------------
17963|    456|        {
17964|    456|            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|    456|            return &root;
17971|    456|        }
17972|       |
17973|  17.0k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 10.2k, False: 6.85k]
  |  Branch (17973:9): [True: 6.85k, False: 0]
  |  Branch (17973:9): [True: 17.0k, False: 0]
  ------------------
17974|       |
17975|  17.0k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 10.2k, False: 6.85k]
  ------------------
17976|  10.2k|        {
17977|  10.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|  10.2k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  10.2k|        }
17985|       |
17986|  6.85k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.85k, False: 0]
  ------------------
17987|  6.85k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.85k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.85k, False: 0]
  ------------------
17988|  6.85k|        *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.85k|        return object_element;
17995|  6.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIhEEmPT_m:
 9597|  41.1k|    {
 9598|  41.1k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  41.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  3.34k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  3.34k|        handle_value(std::move(val));
17874|  3.34k|        return true;
17875|  3.34k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  3.34k|    {
17962|  3.34k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 77, False: 3.26k]
  ------------------
17963|     77|        {
17964|     77|            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|     77|            return &root;
17971|     77|        }
17972|       |
17973|  3.26k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.26k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.78k, False: 480]
  |  Branch (17973:9): [True: 480, False: 0]
  |  Branch (17973:9): [True: 3.26k, False: 0]
  ------------------
17974|       |
17975|  3.26k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.78k, False: 480]
  ------------------
17976|  2.78k|        {
17977|  2.78k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.78k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.78k|        }
17985|       |
17986|    480|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 480, False: 0]
  ------------------
17987|    480|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    480|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 480, False: 0]
  ------------------
17988|    480|        *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|    480|        return object_element;
17995|    480|    }
_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|  39.3k|    {
23597|       |        // read in the original format
23598|       |
23599|  39.3k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  39.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 39.3k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  39.3k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 39.3k]
  |  Branch (23603:34): [Folded, False: 39.2k]
  |  Branch (23603:57): [True: 39.2k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  39.3k|        return true;
23608|  39.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|  39.3k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  39.3k|        auto new_chars_read = ia.get_elements(&dest);
23507|  39.3k|        chars_read += new_chars_read;
23508|  39.3k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  39.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 174, False: 39.2k]
  |  |  ------------------
  ------------------
23509|    174|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    174|            ++chars_read;
23512|    174|            static_cast<void>(report_eof(context));
23513|    174|            return false;
23514|    174|        }
23515|  39.2k|        return true;
23516|  39.3k|    }
_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|  17.5k|    {
17839|  17.5k|        handle_value(val);
17840|  17.5k|        return true;
17841|  17.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_adapterEE12handle_valueIRbEEPSG_OT_:
17961|  17.5k|    {
17962|  17.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 22, False: 17.5k]
  ------------------
17963|     22|        {
17964|     22|            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|     22|            return &root;
17971|     22|        }
17972|       |
17973|  17.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  17.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 13.0k, False: 4.52k]
  |  Branch (17973:9): [True: 4.52k, False: 0]
  |  Branch (17973:9): [True: 17.5k, False: 0]
  ------------------
17974|       |
17975|  17.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 13.0k, False: 4.52k]
  ------------------
17976|  13.0k|        {
17977|  13.0k|            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|  13.0k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  13.0k|        }
17985|       |
17986|  4.52k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.52k, False: 0]
  ------------------
17987|  4.52k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.52k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.52k, False: 0]
  ------------------
17988|  4.52k|        *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.52k|        return object_element;
17995|  4.52k|    }
_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|  11.5k|    {
17833|  11.5k|        handle_value(nullptr);
17834|  11.5k|        return true;
17835|  11.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_adapterEE12handle_valueIDnEEPSG_OT_:
17961|  11.5k|    {
17962|  11.5k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 7, False: 11.5k]
  ------------------
17963|      7|        {
17964|      7|            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|      7|            return &root;
17971|      7|        }
17972|       |
17973|  11.5k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.88k, False: 4.65k]
  |  Branch (17973:9): [True: 4.65k, False: 0]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  ------------------
17974|       |
17975|  11.5k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.88k, False: 4.65k]
  ------------------
17976|  6.88k|        {
17977|  6.88k|            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.88k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.88k|        }
17985|       |
17986|  4.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.65k, False: 0]
  ------------------
17987|  4.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.65k, False: 0]
  ------------------
17988|  4.65k|        *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.65k|        return object_element;
17995|  4.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_EEE11emit_signedIiEEbT_:
23628|  2.10k|    {
23629|  2.10k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.10k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.10k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.10k|        {
23631|  2.10k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.10k|        }
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|  17.1k|    {
17845|  17.1k|        handle_value(val);
17846|  17.1k|        return true;
17847|  17.1k|    }
_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|  17.1k|    {
17962|  17.1k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 318, False: 16.8k]
  ------------------
17963|    318|        {
17964|    318|            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|    318|            return &root;
17971|    318|        }
17972|       |
17973|  16.8k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  16.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 15.6k, False: 1.17k]
  |  Branch (17973:9): [True: 1.17k, False: 0]
  |  Branch (17973:9): [True: 16.8k, False: 0]
  ------------------
17974|       |
17975|  16.8k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 15.6k, False: 1.17k]
  ------------------
17976|  15.6k|        {
17977|  15.6k|            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|  15.6k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  15.6k|        }
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_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE15number_unsignedEm:
17850|  30.0k|    {
17851|  30.0k|        handle_value(val);
17852|  30.0k|        return true;
17853|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  30.0k|    {
17962|  30.0k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 398, False: 29.6k]
  ------------------
17963|    398|        {
17964|    398|            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|    398|            return &root;
17971|    398|        }
17972|       |
17973|  29.6k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  29.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 27.9k, False: 1.65k]
  |  Branch (17973:9): [True: 1.65k, False: 0]
  |  Branch (17973:9): [True: 29.6k, False: 0]
  ------------------
17974|       |
17975|  29.6k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 27.9k, False: 1.65k]
  ------------------
17976|  27.9k|        {
17977|  27.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|  27.9k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  27.9k|        }
17985|       |
17986|  1.65k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.65k, False: 0]
  ------------------
17987|  1.65k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.65k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.65k, False: 0]
  ------------------
17988|  1.65k|        *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.65k|        return object_element;
17995|  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_EEE6get_toIlEEbRT_PKc:
23503|  2.68k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.68k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.68k|        chars_read += new_chars_read;
23508|  2.68k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 116, False: 2.57k]
  |  |  ------------------
  ------------------
23509|    116|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    116|            ++chars_read;
23512|    116|            static_cast<void>(report_eof(context));
23513|    116|            return false;
23514|    116|        }
23515|  2.57k|        return true;
23516|  2.68k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIlEEmPT_m:
 9597|  2.68k|    {
 9598|  2.68k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.68k|    }
_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|  2.15k|    {
23629|  2.15k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  2.15k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 2.15k, False: 0]
  |  |  ------------------
  ------------------
23630|  2.15k|        {
23631|  2.15k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  2.15k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toImEEbRT_PKc:
23503|  4.72k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.72k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.72k|        chars_read += new_chars_read;
23508|  4.72k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.72k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 142, False: 4.58k]
  |  |  ------------------
  ------------------
23509|    142|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    142|            ++chars_read;
23512|    142|            static_cast<void>(report_eof(context));
23513|    142|            return false;
23514|    142|        }
23515|  4.58k|        return true;
23516|  4.72k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsImEEmPT_m:
 9597|  4.72k|    {
 9598|  4.72k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  4.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_EEE13emit_unsignedImEEbT_:
23656|  12.8k|    {
23657|  12.8k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  12.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 12.8k, False: 0]
  |  |  ------------------
  ------------------
23658|  12.8k|        {
23659|  12.8k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  12.8k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  12.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_EEE10get_numberItLb0EEEbRT_:
23596|  4.33k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.33k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.33k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.33k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 4.33k]
  |  Branch (23603:34): [Folded, False: 4.17k]
  |  Branch (23603:57): [True: 4.17k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  4.33k|        return true;
23608|  4.33k|    }
_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_toItEEbRT_PKc:
23503|  4.33k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.33k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.33k|        chars_read += new_chars_read;
23508|  4.33k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.33k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 153, False: 4.17k]
  |  |  ------------------
  ------------------
23509|    153|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    153|            ++chars_read;
23512|    153|            static_cast<void>(report_eof(context));
23513|    153|            return false;
23514|    153|        }
23515|  4.17k|        return true;
23516|  4.33k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsItEEmPT_m:
 9597|  4.33k|    {
 9598|  4.33k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  4.33k|    }
_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_numberIjLb0EEEbRT_:
23596|  2.28k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.28k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.28k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.28k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.28k]
  |  Branch (23603:34): [Folded, False: 2.15k]
  |  Branch (23603:57): [True: 2.15k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.28k|        return true;
23608|  2.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_EEE6get_toIjEEbRT_PKc:
23503|  2.28k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  2.28k|        auto new_chars_read = ia.get_elements(&dest);
23507|  2.28k|        chars_read += new_chars_read;
23508|  2.28k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  2.28k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 2.15k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  2.15k|        return true;
23516|  2.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIjEEmPT_m:
 9597|  2.28k|    {
 9598|  2.28k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  2.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_EEE10get_numberImLb0EEEbRT_:
23596|  4.72k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.72k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.72k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.72k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  4.72k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 4.72k]
  |  Branch (23603:34): [Folded, False: 4.58k]
  |  Branch (23603:57): [True: 4.58k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  4.72k|        return true;
23608|  4.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_EEE10get_stringIjEEbT_RSC_:
23767|    423|    {
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|    423|        return get_bytes(len, "string", result);
23778|    423|    }
_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_bytesIjSC_EEbT_PKcRT0_:
23893|    423|    {
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|    423|        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|    423|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 176, False: 247]
  ------------------
23898|    176|        {
23899|    176|            return true;
23900|    176|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    247|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    247|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 97, False: 150]
  ------------------
23906|     97|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     97|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 41, False: 56]
  ------------------
23910|     97|                                       ? static_cast<std::size_t>(len)
23911|     97|                                       : chunk_size;
23912|     97|            const std::size_t old_size = result.size();
23913|     97|            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|     97|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     97|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 97, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     97|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     97|            chars_read += bytes_read;
23921|     97|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     97|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 97, False: 0]
  |  |  ------------------
  ------------------
23922|     97|            {
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|     97|                result.resize(old_size + bytes_read);
23927|     97|                ++chars_read;
23928|     97|                current = char_traits<char_type>::eof();
23929|     97|                return unexpect_eof(context);
23930|     97|            }
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|    150|        return true;
23936|    247|    }
_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_blockIjEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    423|    {
23943|    423|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 150, False: 273]
  ------------------
23944|    150|        {
23945|    150|            return false;
23946|    150|        }
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|    273|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    273|        const std::size_t remaining = ia.bulk_remaining();
23951|    273|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 97, False: 176]
  ------------------
23952|     97|        {
23953|     97|            return false; // (the loop reports the premature end)
23954|     97|        }
23955|    176|        const auto n = static_cast<std::size_t>(ulen);
23956|    176|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    176|        ia.bulk_skip(n);
23958|    176|        chars_read += n;
23959|    176|        return true;
23960|    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_EEE9get_bytesIhSC_EEbT_PKcRT0_:
23893|  21.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|  21.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|  21.7k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 12.5k, False: 9.20k]
  ------------------
23898|  12.5k|        {
23899|  12.5k|            return true;
23900|  12.5k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  9.20k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  9.20k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 40, False: 9.16k]
  ------------------
23906|     40|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     40|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 40, False: 0]
  ------------------
23910|     40|                                       ? static_cast<std::size_t>(len)
23911|     40|                                       : chunk_size;
23912|     40|            const std::size_t old_size = result.size();
23913|     40|            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|     40|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     40|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 40, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     40|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     40|            chars_read += bytes_read;
23921|     40|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     40|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 40, False: 0]
  |  |  ------------------
  ------------------
23922|     40|            {
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|     40|                result.resize(old_size + bytes_read);
23927|     40|                ++chars_read;
23928|     40|                current = char_traits<char_type>::eof();
23929|     40|                return unexpect_eof(context);
23930|     40|            }
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|  9.16k|        return true;
23936|  9.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_EEE17append_from_blockIhEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  21.7k|    {
23943|  21.7k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 9.16k, False: 12.5k]
  ------------------
23944|  9.16k|        {
23945|  9.16k|            return false;
23946|  9.16k|        }
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|  12.5k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  12.5k|        const std::size_t remaining = ia.bulk_remaining();
23951|  12.5k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 40, False: 12.5k]
  ------------------
23952|     40|        {
23953|     40|            return false; // (the loop reports the premature end)
23954|     40|        }
23955|  12.5k|        const auto n = static_cast<std::size_t>(ulen);
23956|  12.5k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  12.5k|        ia.bulk_skip(n);
23958|  12.5k|        chars_read += n;
23959|  12.5k|        return true;
23960|  12.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_EEE9get_bytesItSC_EEbT_PKcRT0_:
23893|    874|    {
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|    874|        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|    874|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 437, False: 437]
  ------------------
23898|    437|        {
23899|    437|            return true;
23900|    437|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    437|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    437|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 69, False: 368]
  ------------------
23906|     69|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     69|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 49, False: 20]
  ------------------
23910|     69|                                       ? static_cast<std::size_t>(len)
23911|     69|                                       : chunk_size;
23912|     69|            const std::size_t old_size = result.size();
23913|     69|            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|     69|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     69|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 69, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     69|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     69|            chars_read += bytes_read;
23921|     69|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     69|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 0]
  |  |  ------------------
  ------------------
23922|     69|            {
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|     69|                result.resize(old_size + bytes_read);
23927|     69|                ++chars_read;
23928|     69|                current = char_traits<char_type>::eof();
23929|     69|                return unexpect_eof(context);
23930|     69|            }
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|    368|        return true;
23936|    437|    }
_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_blockItEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    874|    {
23943|    874|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 368, False: 506]
  ------------------
23944|    368|        {
23945|    368|            return false;
23946|    368|        }
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|    506|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    506|        const std::size_t remaining = ia.bulk_remaining();
23951|    506|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 69, False: 437]
  ------------------
23952|     69|        {
23953|     69|            return false; // (the loop reports the premature end)
23954|     69|        }
23955|    437|        const auto n = static_cast<std::size_t>(ulen);
23956|    437|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    437|        ia.bulk_skip(n);
23958|    437|        chars_read += n;
23959|    437|        return true;
23960|    506|    }
_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_bytesImSC_EEbT_PKcRT0_:
23893|    564|    {
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|    564|        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|    564|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 186, False: 378]
  ------------------
23898|    186|        {
23899|    186|            return true;
23900|    186|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    378|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    378|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 172, False: 206]
  ------------------
23906|    172|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    172|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 30, False: 142]
  ------------------
23910|    172|                                       ? static_cast<std::size_t>(len)
23911|    172|                                       : chunk_size;
23912|    172|            const std::size_t old_size = result.size();
23913|    172|            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|    172|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    172|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 172, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    172|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    172|            chars_read += bytes_read;
23921|    172|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    172|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 172, False: 0]
  |  |  ------------------
  ------------------
23922|    172|            {
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|    172|                result.resize(old_size + bytes_read);
23927|    172|                ++chars_read;
23928|    172|                current = char_traits<char_type>::eof();
23929|    172|                return unexpect_eof(context);
23930|    172|            }
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|    206|        return true;
23936|    378|    }
_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_blockImEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|    564|    {
23943|    564|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 206, False: 358]
  ------------------
23944|    206|        {
23945|    206|            return false;
23946|    206|        }
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|    358|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    358|        const std::size_t remaining = ia.bulk_remaining();
23951|    358|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 172, False: 186]
  ------------------
23952|    172|        {
23953|    172|            return false; // (the loop reports the premature end)
23954|    172|        }
23955|    186|        const auto n = static_cast<std::size_t>(ulen);
23956|    186|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    186|        ia.bulk_skip(n);
23958|    186|        chars_read += n;
23959|    186|        return true;
23960|    358|    }
_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|  9.04k|    {
23657|  9.04k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  9.04k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 9.04k, False: 0]
  |  |  ------------------
  ------------------
23658|  9.04k|        {
23659|  9.04k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  9.04k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  9.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13emit_unsignedItEEbT_:
23656|  3.09k|    {
23657|  3.09k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  3.09k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.09k, False: 0]
  |  |  ------------------
  ------------------
23658|  3.09k|        {
23659|  3.09k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  3.09k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  3.09k|    }
_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_unsignedIjEEbT_:
23656|  1.82k|    {
23657|  1.82k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.82k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.82k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.82k|        {
23659|  1.82k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.82k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.82k|    }
_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_bytesImNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  3.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|  3.47k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  3.47k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 3.47k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  3.47k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  5.07k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.73k, False: 3.34k]
  ------------------
23906|  1.73k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.73k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.64k, False: 93]
  ------------------
23910|  1.73k|                                       ? static_cast<std::size_t>(len)
23911|  1.73k|                                       : chunk_size;
23912|  1.73k|            const std::size_t old_size = result.size();
23913|  1.73k|            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.73k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.73k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.73k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.73k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.73k|            chars_read += bytes_read;
23921|  1.73k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.73k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 135, False: 1.60k]
  |  |  ------------------
  ------------------
23922|    135|            {
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|    135|                result.resize(old_size + bytes_read);
23927|    135|                ++chars_read;
23928|    135|                current = char_traits<char_type>::eof();
23929|    135|                return unexpect_eof(context);
23930|    135|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.60k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.60k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.60k, False: 0]
  ------------------
23933|  1.60k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.60k|        }
23935|  3.34k|        return true;
23936|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockImNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  3.47k|    {
23965|  3.47k|        return false;
23966|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10emit_floatIfEEbT_:
23682|  2.29k|    {
23683|  2.29k|        const auto result = static_cast<number_float_t>(number);
23684|  2.29k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  4.32k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  |  Branch (1697:94): [True: 2.02k, False: 270]
  |  |  |  Branch (1697:94): [True: 0, False: 2.02k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  2.29k|        return sax->number_float(result, no_source);
23689|  2.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_EEE11enter_arrayEmi:
19213|  75.1k|    {
19214|  75.1k|        return enter_container(/*is_object*/false, len, type_marker);
19215|  75.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_EEE12enter_objectEmi:
19219|  14.3k|    {
19220|  14.3k|        return enter_container(/*is_object*/true, len, type_marker);
19221|  14.3k|    }
_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|     99|    {
24070|     99|        return last_byte_error(exception_id::unexpected_byte, concat(detail, ": 0x", get_token_string()), context);
24071|     99|    }
_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_EEE14get_half_floatEb:
23702|  33.8k|    {
23703|  33.8k|        const auto byte1_raw = get();
23704|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23705|      0|        {
23706|      0|            return false;
23707|      0|        }
23708|  33.8k|        const auto byte2_raw = get();
23709|  33.8k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  33.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 33.8k]
  |  |  ------------------
  ------------------
23710|      0|        {
23711|      0|            return false;
23712|      0|        }
23713|       |
23714|  33.8k|        const auto byte1 = static_cast<unsigned char>(byte1_raw);
23715|  33.8k|        const auto byte2 = static_cast<unsigned char>(byte2_raw);
23716|       |
23717|       |        // Code from RFC 8949, Appendix D, Figure 3:
23718|       |        // As half-precision floating-point numbers were only added
23719|       |        // to IEEE 754 in 2008, today's programming platforms often
23720|       |        // still only have limited support for them. It is very
23721|       |        // easy to include at least decoding support for them even
23722|       |        // without such support. An example of a small decoder for
23723|       |        // half-precision floating-point numbers in the C language
23724|       |        // is shown in Fig. 3.
23725|  33.8k|        const auto half = little_endian
  ------------------
  |  Branch (23725:27): [True: 33.7k, False: 98]
  ------------------
23726|  33.8k|                          ? static_cast<unsigned int>((byte2 << 8u) + byte1)
23727|  33.8k|                          : static_cast<unsigned int>((byte1 << 8u) + byte2);
23728|  33.8k|        const double val = [&half]
23729|  33.8k|        {
23730|  33.8k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.8k|            const unsigned int mant = half & 0x3FFu;
23732|  33.8k|            JSON_ASSERT(exp <= 31);
23733|  33.8k|            JSON_ASSERT(mant <= 1023);
23734|  33.8k|            switch (exp)
23735|  33.8k|            {
23736|  33.8k|                case 0:
23737|  33.8k|                    return std::ldexp(mant, -24);
23738|  33.8k|                case 31:
23739|  33.8k|                    return (mant == 0)
23740|  33.8k|                    ? std::numeric_limits<double>::infinity()
23741|  33.8k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  33.8k|                default:
23743|  33.8k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.8k|            }
23745|  33.8k|        }();
23746|  33.8k|        return sax->number_float((half & 0x8000u) != 0
  ------------------
  |  Branch (23746:34): [True: 6.67k, False: 27.1k]
  ------------------
23747|  33.8k|                                 ? static_cast<number_float_t>(-val)
23748|  33.8k|                                 : static_cast<number_float_t>(val), no_source);
23749|  33.8k|    }
_ZZN8nlohmann16json_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_EEE14get_half_floatEbENKUlvE_clEv:
23729|  33.7k|        {
23730|  33.7k|            const int exp = (half >> 10u) & 0x1Fu;
23731|  33.7k|            const unsigned int mant = half & 0x3FFu;
23732|  33.7k|            JSON_ASSERT(exp <= 31);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23732:13): [True: 33.7k, False: 0]
  ------------------
23733|  33.7k|            JSON_ASSERT(mant <= 1023);
  ------------------
  |  | 2653|  33.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23733:13): [True: 33.7k, False: 0]
  ------------------
23734|  33.7k|            switch (exp)
23735|  33.7k|            {
23736|  5.96k|                case 0:
  ------------------
  |  Branch (23736:17): [True: 5.96k, False: 27.7k]
  ------------------
23737|  5.96k|                    return std::ldexp(mant, -24);
23738|  2.11k|                case 31:
  ------------------
  |  Branch (23738:17): [True: 2.11k, False: 31.6k]
  ------------------
23739|  2.11k|                    return (mant == 0)
  ------------------
  |  Branch (23739:28): [True: 1, False: 2.11k]
  ------------------
23740|  2.11k|                    ? std::numeric_limits<double>::infinity()
23741|  2.11k|                    : std::numeric_limits<double>::quiet_NaN();
23742|  25.6k|                default:
  ------------------
  |  Branch (23742:17): [True: 25.6k, False: 8.07k]
  ------------------
23743|  25.6k|                    return std::ldexp(mant + 1024, exp - 25);
23744|  33.7k|            }
23745|  33.7k|        }();
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIfLb0EEEbRT_:
23596|    842|    {
23597|       |        // read in the original format
23598|       |
23599|    842|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    842|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 842]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    842|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 842]
  |  Branch (23603:34): [Folded, False: 737]
  |  Branch (23603:57): [True: 737, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    842|        return true;
23608|    842|    }
_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|    842|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    842|        auto new_chars_read = ia.get_elements(&dest);
23507|    842|        chars_read += new_chars_read;
23508|    842|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    842|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 737]
  |  |  ------------------
  ------------------
23509|    105|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    105|            ++chars_read;
23512|    105|            static_cast<void>(report_eof(context));
23513|    105|            return false;
23514|    105|        }
23515|    737|        return true;
23516|    842|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIfEEmPT_m:
 9597|    842|    {
 9598|    842|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    842|    }
_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|    526|    {
23597|       |        // read in the original format
23598|       |
23599|    526|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    526|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 526]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    526|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 526]
  |  Branch (23603:34): [Folded, False: 456]
  |  Branch (23603:57): [True: 456, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    526|        return true;
23608|    526|    }
_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|  21.7k|    {
23847|  21.7k|        NumberType len{};
23848|  21.7k|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 21.7k, False: 10]
  |  Branch (23848:35): [True: 21.6k, False: 40]
  |  Branch (23848:62): [True: 21.6k, False: 0]
  ------------------
23849|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_stringIhEEbT_RSC_:
23767|  21.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|  21.7k|        return get_bytes(len, "string", result);
23778|  21.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22get_string_with_lengthItEEbRSC_PKc:
23846|    885|    {
23847|    885|        NumberType len{};
23848|    885|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 874, False: 11]
  |  Branch (23848:35): [True: 805, False: 69]
  |  Branch (23848:62): [True: 805, False: 0]
  ------------------
23849|    885|    }
_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_stringItEEbT_RSC_:
23767|    874|    {
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|    874|        return get_bytes(len, "string", result);
23778|    874|    }
_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_lengthIjEEbRSC_PKc:
23846|    435|    {
23847|    435|        NumberType len{};
23848|    435|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 423, False: 12]
  |  Branch (23848:35): [True: 326, False: 97]
  |  Branch (23848:62): [True: 326, False: 0]
  ------------------
23849|    435|    }
_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|  24.8k|    {
23597|       |        // read in the original format
23598|       |
23599|  24.8k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  24.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 24.8k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  24.8k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 24.8k]
  |  Branch (23603:34): [Folded, False: 24.6k]
  |  Branch (23603:57): [True: 24.6k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  24.8k|        return true;
23608|  24.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_toIaEEbRT_PKc:
23503|  24.8k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  24.8k|        auto new_chars_read = ia.get_elements(&dest);
23507|  24.8k|        chars_read += new_chars_read;
23508|  24.8k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  24.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 24.6k]
  |  |  ------------------
  ------------------
23509|    129|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    129|            ++chars_read;
23512|    129|            static_cast<void>(report_eof(context));
23513|    129|            return false;
23514|    129|        }
23515|  24.6k|        return true;
23516|  24.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIaEEmPT_m:
 9597|  24.8k|    {
 9598|  24.8k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  24.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_EEE11emit_signedIaEEbT_:
23628|  8.80k|    {
23629|  8.80k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  8.80k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 8.80k, False: 0]
  |  |  ------------------
  ------------------
23630|  8.80k|        {
23631|  8.80k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  8.80k|        }
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|  3.92k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.92k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.92k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  3.92k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.92k]
  |  Branch (23603:34): [Folded, False: 3.77k]
  |  Branch (23603:57): [True: 3.77k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.92k|        return true;
23608|  3.92k|    }
_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|  3.92k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.92k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.92k|        chars_read += new_chars_read;
23508|  3.92k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.92k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 148, False: 3.77k]
  |  |  ------------------
  ------------------
23509|    148|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    148|            ++chars_read;
23512|    148|            static_cast<void>(report_eof(context));
23513|    148|            return false;
23514|    148|        }
23515|  3.77k|        return true;
23516|  3.92k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIsEEmPT_m:
 9597|  3.92k|    {
 9598|  3.92k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  3.92k|    }
_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.62k|    {
23629|  3.62k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.62k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.62k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.62k|        {
23631|  3.62k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.62k|        }
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.29k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.29k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.29k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.29k]
  |  Branch (23603:34): [Folded, False: 2.18k]
  |  Branch (23603:57): [True: 2.18k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.29k|        return true;
23608|  2.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_EEE10get_numberIlLb0EEEbRT_:
23596|  2.68k|    {
23597|       |        // read in the original format
23598|       |
23599|  2.68k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  2.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.68k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  2.68k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 2.68k]
  |  Branch (23603:34): [Folded, False: 2.57k]
  |  Branch (23603:57): [True: 2.57k, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  2.68k|        return true;
23608|  2.68k|    }
_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|  15.9k|    {
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|  15.9k|        string_t key;
21811|       |
21812|       |        // the type marker of the value to read next
21813|  15.9k|        char_int_type prefix = get_ignore_noop();
21814|       |
21815|   207k|        while (true)
  ------------------
  |  Branch (21815:16): [True: 200k, Folded]
  ------------------
21816|   200k|        {
21817|   200k|            const std::size_t depth = container_stack.size();
21818|       |
21819|   200k|            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(prefix)))
  ------------------
  |  | 1697|   200k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 200k]
  |  |  ------------------
  ------------------
21820|      0|            {
21821|      0|                return false;
21822|      0|            }
21823|       |
21824|       |            // the value begun here is complete once it is not inside anything
21825|   200k|            if (container_stack.empty())
  ------------------
  |  Branch (21825:17): [True: 3.09k, False: 197k]
  ------------------
21826|  3.09k|            {
21827|  3.09k|                return true;
21828|  3.09k|            }
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|   197k|            if (container_stack.size() == depth && container_stack.back().remaining == npos)
  ------------------
  |  Branch (21832:17): [True: 101k, False: 95.5k]
  |  Branch (21832:52): [True: 63.9k, False: 37.9k]
  ------------------
21833|  63.9k|            {
21834|  63.9k|                get_ignore_noop();
21835|  63.9k|            }
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|   197k|            for (;;)
21842|   242k|            {
21843|   242k|                const container_frame top = container_stack.back();
21844|       |
21845|   242k|                if (top.remaining != npos)
  ------------------
  |  Branch (21845:21): [True: 45.2k, False: 196k]
  ------------------
21846|  45.2k|                {
21847|  45.2k|                    if (top.remaining != 0)
  ------------------
  |  Branch (21847:25): [True: 41.0k, False: 4.18k]
  ------------------
21848|  41.0k|                    {
21849|  41.0k|                        --container_stack.back().remaining;
21850|  41.0k|                        if (top.is_object)
  ------------------
  |  Branch (21850:29): [True: 994, False: 40.0k]
  ------------------
21851|    994|                        {
21852|    994|                            key.clear();
21853|    994|                            if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, true, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  1.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 994]
  |  |  |  Branch (1697:94): [True: 87, False: 907]
  |  |  |  Branch (1697:94): [True: 0, False: 907]
  |  |  ------------------
  ------------------
21854|      0|                            {
21855|      0|                                return false;
21856|      0|                            }
21857|    994|                        }
21858|       |                        // an optimized container gives its elements no marker
21859|  41.0k|                        prefix = (top.type_marker != 0) ? top.type_marker : get_ignore_noop();
  ------------------
  |  Branch (21859:34): [True: 34.3k, False: 6.74k]
  ------------------
21860|  41.0k|                        break;
21861|  41.0k|                    }
21862|  45.2k|                }
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|   196k|                else if (top.is_object ? (current != '}') : (current != ']'))
  ------------------
  |  Branch (21867:26): [True: 34.5k, False: 162k]
  |  Branch (21867:26): [True: 144k, False: 52.3k]
  ------------------
21868|   144k|                {
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|   144k|                    if (top.is_object)
  ------------------
  |  Branch (21872:25): [True: 23.7k, False: 120k]
  ------------------
21873|  23.7k|                    {
21874|  23.7k|                        key.clear();
21875|  23.7k|                        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false, "key") || !sax->key(key)))
  ------------------
  |  | 1697|  46.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.7k]
  |  |  |  Branch (1697:94): [True: 1.00k, False: 22.7k]
  |  |  |  Branch (1697:94): [True: 0, False: 22.7k]
  |  |  ------------------
  ------------------
21876|      0|                        {
21877|      0|                            return false;
21878|      0|                        }
21879|  23.7k|                        prefix = get_ignore_noop();
21880|  23.7k|                    }
21881|   120k|                    else
21882|   120k|                    {
21883|   120k|                        prefix = current;
21884|   120k|                    }
21885|   144k|                    break;
21886|   144k|                }
21887|       |
21888|  56.5k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  56.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 56.5k]
  |  |  ------------------
  ------------------
21889|      0|                {
21890|      0|                    return false;
21891|      0|                }
21892|  56.5k|                if (container_stack.empty())
  ------------------
  |  Branch (21892:21): [True: 5.39k, False: 51.1k]
  ------------------
21893|  5.39k|                {
21894|  5.39k|                    return true;
21895|  5.39k|                }
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|  51.1k|                if (container_stack.back().remaining == npos)
  ------------------
  |  Branch (21898:21): [True: 50.8k, False: 316]
  ------------------
21899|  50.8k|                {
21900|  50.8k|                    get_ignore_noop();
21901|  50.8k|                }
21902|  51.1k|            }
21903|   197k|        }
21904|  15.9k|    }
_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|   202k|    {
22405|   202k|        switch (prefix)
22406|   202k|        {
22407|  1.50k|            case char_traits<char_type>::eof():  // EOF
  ------------------
  |  Branch (22407:13): [True: 1.50k, False: 201k]
  ------------------
22408|  1.50k|                return unexpect_eof("value");
22409|       |
22410|  10.7k|            case 'T':  // true
  ------------------
  |  Branch (22410:13): [True: 10.7k, False: 192k]
  ------------------
22411|  10.7k|                return sax->boolean(true);
22412|  6.83k|            case 'F':  // false
  ------------------
  |  Branch (22412:13): [True: 6.83k, False: 195k]
  ------------------
22413|  6.83k|                return sax->boolean(false);
22414|       |
22415|  11.5k|            case 'Z':  // null
  ------------------
  |  Branch (22415:13): [True: 11.5k, False: 191k]
  ------------------
22416|  11.5k|                return sax->null();
22417|       |
22418|  1.80k|            case 'B':  // byte
  ------------------
  |  Branch (22418:13): [True: 1.80k, False: 200k]
  ------------------
22419|  1.80k|            {
22420|  1.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22420:21): [True: 0, False: 1.80k]
  ------------------
22421|      0|                {
22422|      0|                    break;
22423|      0|                }
22424|  1.80k|                std::uint8_t number{};
22425|  1.80k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22425:24): [True: 1.80k, False: 4]
  |  Branch (22425:46): [True: 1.80k, False: 0]
  ------------------
22426|  1.80k|            }
22427|       |
22428|  2.75k|            case 'U':
  ------------------
  |  Branch (22428:13): [True: 2.75k, False: 200k]
  ------------------
22429|  2.75k|            {
22430|  2.75k|                std::uint8_t number{};
22431|  2.75k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22431:24): [True: 2.63k, False: 122]
  |  Branch (22431:46): [True: 2.63k, False: 0]
  ------------------
22432|  1.80k|            }
22433|       |
22434|  3.81k|            case 'i':
  ------------------
  |  Branch (22434:13): [True: 3.81k, False: 198k]
  ------------------
22435|  3.81k|            {
22436|  3.81k|                std::int8_t number{};
22437|  3.81k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22437:24): [True: 3.71k, False: 101]
  |  Branch (22437:46): [True: 3.71k, False: 0]
  ------------------
22438|  1.80k|            }
22439|       |
22440|  1.59k|            case 'I':
  ------------------
  |  Branch (22440:13): [True: 1.59k, False: 201k]
  ------------------
22441|  1.59k|            {
22442|  1.59k|                std::int16_t number{};
22443|  1.59k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22443:24): [True: 1.50k, False: 98]
  |  Branch (22443:46): [True: 1.50k, False: 0]
  ------------------
22444|  1.80k|            }
22445|       |
22446|    908|            case 'l':
  ------------------
  |  Branch (22446:13): [True: 908, False: 201k]
  ------------------
22447|    908|            {
22448|    908|                std::int32_t number{};
22449|    908|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22449:24): [True: 850, False: 58]
  |  Branch (22449:46): [True: 850, False: 0]
  ------------------
22450|  1.80k|            }
22451|       |
22452|  1.46k|            case 'L':
  ------------------
  |  Branch (22452:13): [True: 1.46k, False: 201k]
  ------------------
22453|  1.46k|            {
22454|  1.46k|                std::int64_t number{};
22455|  1.46k|                return get_number(number) && emit_signed(number);
  ------------------
  |  Branch (22455:24): [True: 1.40k, False: 67]
  |  Branch (22455:46): [True: 1.40k, False: 0]
  ------------------
22456|  1.80k|            }
22457|       |
22458|  1.15k|            case 'u':
  ------------------
  |  Branch (22458:13): [True: 1.15k, False: 201k]
  ------------------
22459|  1.15k|            {
22460|  1.15k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22460:21): [True: 0, False: 1.15k]
  ------------------
22461|      0|                {
22462|      0|                    break;
22463|      0|                }
22464|  1.15k|                std::uint16_t number{};
22465|  1.15k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22465:24): [True: 1.05k, False: 102]
  |  Branch (22465:46): [True: 1.05k, False: 0]
  ------------------
22466|  1.15k|            }
22467|       |
22468|  1.01k|            case 'm':
  ------------------
  |  Branch (22468:13): [True: 1.01k, False: 201k]
  ------------------
22469|  1.01k|            {
22470|  1.01k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22470:21): [True: 0, False: 1.01k]
  ------------------
22471|      0|                {
22472|      0|                    break;
22473|      0|                }
22474|  1.01k|                std::uint32_t number{};
22475|  1.01k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22475:24): [True: 931, False: 87]
  |  Branch (22475:46): [True: 931, False: 0]
  ------------------
22476|  1.01k|            }
22477|       |
22478|  3.04k|            case 'M':
  ------------------
  |  Branch (22478:13): [True: 3.04k, False: 199k]
  ------------------
22479|  3.04k|            {
22480|  3.04k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22480:21): [True: 0, False: 3.04k]
  ------------------
22481|      0|                {
22482|      0|                    break;
22483|      0|                }
22484|  3.04k|                std::uint64_t number{};
22485|  3.04k|                return get_number(number) && emit_unsigned(number);
  ------------------
  |  Branch (22485:24): [True: 2.96k, False: 84]
  |  Branch (22485:46): [True: 2.96k, False: 0]
  ------------------
22486|  3.04k|            }
22487|       |
22488|  33.8k|            case 'h':
  ------------------
  |  Branch (22488:13): [True: 33.8k, False: 168k]
  ------------------
22489|  33.8k|            {
22490|  33.8k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22490:21): [True: 0, False: 33.8k]
  ------------------
22491|      0|                {
22492|      0|                    break;
22493|      0|                }
22494|  33.8k|                return get_half_float(true);
22495|  33.8k|            }
22496|       |
22497|    842|            case 'd':
  ------------------
  |  Branch (22497:13): [True: 842, False: 201k]
  ------------------
22498|    842|            {
22499|    842|                float number{};
22500|    842|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22500:24): [True: 737, False: 105]
  |  Branch (22500:46): [True: 737, False: 0]
  ------------------
22501|  33.8k|            }
22502|       |
22503|    526|            case 'D':
  ------------------
  |  Branch (22503:13): [True: 526, False: 202k]
  ------------------
22504|    526|            {
22505|    526|                double number{};
22506|    526|                return get_number(number) && emit_float(number);
  ------------------
  |  Branch (22506:24): [True: 456, False: 70]
  |  Branch (22506:46): [True: 456, False: 0]
  ------------------
22507|  33.8k|            }
22508|       |
22509|  7.74k|            case 'H':
  ------------------
  |  Branch (22509:13): [True: 7.74k, False: 195k]
  ------------------
22510|  7.74k|            {
22511|  7.74k|                return get_ubjson_high_precision_number();
22512|  33.8k|            }
22513|       |
22514|  7.96k|            case 'C':  // char
  ------------------
  |  Branch (22514:13): [True: 7.96k, False: 194k]
  ------------------
22515|  7.96k|            {
22516|  7.96k|                get();
22517|  7.96k|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.96k]
  |  |  ------------------
  ------------------
22518|      0|                {
22519|      0|                    return false;
22520|      0|                }
22521|  7.96k|                if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  7.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 7.95k]
  |  |  ------------------
  ------------------
22522|      3|                {
22523|      3|                    return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22524|      3|                }
22525|  7.95k|                string_t s(1, static_cast<typename string_t::value_type>(current));
22526|  7.95k|                return sax->string(s);
22527|  7.96k|            }
22528|       |
22529|  6.51k|            case 'S':  // string
  ------------------
  |  Branch (22529:13): [True: 6.51k, False: 196k]
  ------------------
22530|  6.51k|            {
22531|  6.51k|                string_t s;
22532|  6.51k|                return get_ubjson_string(s) && sax->string(s);
  ------------------
  |  Branch (22532:24): [True: 6.34k, False: 171]
  |  Branch (22532:48): [True: 6.34k, False: 0]
  ------------------
22533|  7.96k|            }
22534|       |
22535|  82.4k|            case '[':  // array
  ------------------
  |  Branch (22535:13): [True: 82.4k, False: 120k]
  ------------------
22536|  82.4k|                return get_ubjson_array();
22537|       |
22538|  14.5k|            case '{':  // object
  ------------------
  |  Branch (22538:13): [True: 14.5k, False: 188k]
  ------------------
22539|  14.5k|                return get_ubjson_object();
22540|       |
22541|     99|            default: // anything else
  ------------------
  |  Branch (22541:13): [True: 99, False: 202k]
  ------------------
22542|     99|                break;
22543|   202k|        }
22544|     99|        return unexpected_byte("invalid byte", "value");
22545|   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_EEE32get_ubjson_high_precision_numberEv:
22845|  7.74k|    {
22846|       |        // get the size of the following number string
22847|  7.74k|        std::size_t size{};
22848|  7.74k|        bool no_ndarray = true;
22849|  7.74k|        auto res = get_ubjson_size_value(size, no_ndarray);
22850|  7.74k|        if (JSON_HEDLEY_UNLIKELY(!res))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.74k]
  |  |  ------------------
  ------------------
22851|      0|        {
22852|      0|            return res;
22853|      0|        }
22854|       |
22855|       |        // get number string
22856|  7.74k|        std::vector<char> number_vector;
22857|  98.6k|        for (std::size_t i = 0; i < size; ++i)
  ------------------
  |  Branch (22857:33): [True: 90.9k, False: 7.74k]
  ------------------
22858|  90.9k|        {
22859|  90.9k|            get();
22860|  90.9k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("number")))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 90.9k]
  |  |  ------------------
  ------------------
22861|      0|            {
22862|      0|                return false;
22863|      0|            }
22864|       |            // the lexer would stop at a NUL and accept the digits before it
22865|  90.9k|            if (JSON_HEDLEY_UNLIKELY(current == '\0'))
  ------------------
  |  | 1697|  90.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 90.9k]
  |  |  ------------------
  ------------------
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|  90.9k|            number_vector.push_back(static_cast<char>(current));
22871|  90.9k|        }
22872|       |
22873|       |        // parse number string
22874|  7.74k|        using ia_type = decltype(detail::input_adapter(number_vector));
22875|  7.74k|        auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
22876|  7.74k|        const auto result_number = number_lexer.scan();
22877|  7.74k|        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|  7.74k|        const string_t number_text = number_lexer.get_string();
22882|  7.74k|        const auto result_remainder = number_lexer.scan();
22883|       |
22884|  7.74k|        using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
22885|       |
22886|  7.74k|        if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input))
  ------------------
  |  | 1697|  7.74k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.07k, False: 6.67k]
  |  |  ------------------
  ------------------
22887|  1.07k|        {
22888|  1.07k|            return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22889|  1.07k|                                    exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22890|  1.07k|        }
22891|       |
22892|  6.67k|        switch (result_number)
22893|  6.67k|        {
22894|    455|            case token_type::value_integer:
  ------------------
  |  Branch (22894:13): [True: 455, False: 6.21k]
  ------------------
22895|    455|                return sax->number_integer(number_lexer.get_number_integer());
22896|  1.64k|            case token_type::value_unsigned:
  ------------------
  |  Branch (22896:13): [True: 1.64k, False: 5.02k]
  ------------------
22897|  1.64k|                return sax->number_unsigned(number_lexer.get_number_unsigned());
22898|  3.55k|            case token_type::value_float:
  ------------------
  |  Branch (22898:13): [True: 3.55k, False: 3.11k]
  ------------------
22899|  3.55k|            {
22900|  3.55k|                const auto parsed_float = number_lexer.get_number_float();
22901|  3.55k|                if (JSON_HEDLEY_UNLIKELY(!std::isfinite(parsed_float)))
  ------------------
  |  | 1697|  3.55k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 210, False: 3.34k]
  |  |  ------------------
  ------------------
22902|    210|                {
22903|    210|                    return sax->parse_error(
22904|    210|                               chars_read,
22905|    210|                               number_string,
22906|    210|                               out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
22907|    210|                }
22908|  3.34k|                return sax->number_float(parsed_float, number_text);
22909|  3.55k|            }
22910|      0|            case token_type::uninitialized:
  ------------------
  |  Branch (22910:13): [True: 0, False: 6.67k]
  ------------------
22911|      0|            case token_type::literal_true:
  ------------------
  |  Branch (22911:13): [True: 0, False: 6.67k]
  ------------------
22912|      1|            case token_type::literal_false:
  ------------------
  |  Branch (22912:13): [True: 1, False: 6.67k]
  ------------------
22913|      2|            case token_type::literal_null:
  ------------------
  |  Branch (22913:13): [True: 1, False: 6.67k]
  ------------------
22914|      5|            case token_type::value_string:
  ------------------
  |  Branch (22914:13): [True: 3, False: 6.67k]
  ------------------
22915|      7|            case token_type::begin_array:
  ------------------
  |  Branch (22915:13): [True: 2, False: 6.67k]
  ------------------
22916|      8|            case token_type::begin_object:
  ------------------
  |  Branch (22916:13): [True: 1, False: 6.67k]
  ------------------
22917|      9|            case token_type::end_array:
  ------------------
  |  Branch (22917:13): [True: 1, False: 6.67k]
  ------------------
22918|     10|            case token_type::end_object:
  ------------------
  |  Branch (22918:13): [True: 1, False: 6.67k]
  ------------------
22919|     12|            case token_type::name_separator:
  ------------------
  |  Branch (22919:13): [True: 2, False: 6.67k]
  ------------------
22920|     13|            case token_type::value_separator:
  ------------------
  |  Branch (22920:13): [True: 1, False: 6.67k]
  ------------------
22921|    604|            case token_type::parse_error:
  ------------------
  |  Branch (22921:13): [True: 591, False: 6.08k]
  ------------------
22922|    650|            case token_type::end_of_input:
  ------------------
  |  Branch (22922:13): [True: 46, False: 6.62k]
  ------------------
22923|    650|            case token_type::literal_or_value:
  ------------------
  |  Branch (22923:13): [True: 0, False: 6.67k]
  ------------------
22924|    650|            default:
  ------------------
  |  Branch (22924:13): [True: 0, False: 6.67k]
  ------------------
22925|    650|                return sax->parse_error(chars_read, number_string, parse_error::create(exception_id::invalid_high_precision_number, chars_read,
22926|    650|                                        exception_message(concat("invalid number text: ", number_lexer.get_token_string()), "high-precision number"), nullptr));
22927|  6.67k|        }
22928|  6.67k|    }
_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|  44.0k|    {
22149|  44.0k|        if (prefix == 0)
  ------------------
  |  Branch (22149:13): [True: 25.0k, False: 18.9k]
  ------------------
22150|  25.0k|        {
22151|  25.0k|            prefix = get_ignore_noop();
22152|  25.0k|        }
22153|       |
22154|  44.0k|        switch (prefix)
22155|  44.0k|        {
22156|  13.0k|            case 'U':
  ------------------
  |  Branch (22156:13): [True: 13.0k, False: 30.9k]
  ------------------
22157|  13.0k|            {
22158|  13.0k|                std::uint8_t number{};
22159|  13.0k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  13.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 13.0k]
  |  |  ------------------
  ------------------
22160|      0|                {
22161|      0|                    return false;
22162|      0|                }
22163|  13.0k|                result = static_cast<std::size_t>(number);
22164|  13.0k|                return true;
22165|  13.0k|            }
22166|       |
22167|  15.4k|            case 'i':
  ------------------
  |  Branch (22167:13): [True: 15.4k, False: 28.5k]
  ------------------
22168|  15.4k|                return get_ubjson_signed_count<std::int8_t>(result);
22169|       |
22170|  1.68k|            case 'I':
  ------------------
  |  Branch (22170:13): [True: 1.68k, False: 42.3k]
  ------------------
22171|  1.68k|                return get_ubjson_signed_count<std::int16_t>(result);
22172|       |
22173|    852|            case 'l':
  ------------------
  |  Branch (22173:13): [True: 852, False: 43.2k]
  ------------------
22174|    852|                return get_ubjson_signed_count<std::int32_t>(result);
22175|       |
22176|    678|            case 'L':
  ------------------
  |  Branch (22176:13): [True: 678, False: 43.3k]
  ------------------
22177|    678|                return get_ubjson_signed_count<std::int64_t>(result);
22178|       |
22179|  2.29k|            case 'u':
  ------------------
  |  Branch (22179:13): [True: 2.29k, False: 41.7k]
  ------------------
22180|  2.29k|            {
22181|  2.29k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22181:21): [True: 0, False: 2.29k]
  ------------------
22182|      0|                {
22183|      0|                    break;
22184|      0|                }
22185|  2.29k|                std::uint16_t number{};
22186|  2.29k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
22187|      0|                {
22188|      0|                    return false;
22189|      0|                }
22190|  2.29k|                result = static_cast<std::size_t>(number);
22191|  2.29k|                return true;
22192|  2.29k|            }
22193|       |
22194|    827|            case 'm':
  ------------------
  |  Branch (22194:13): [True: 827, False: 43.2k]
  ------------------
22195|    827|            {
22196|    827|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22196:21): [True: 0, False: 827]
  ------------------
22197|      0|                {
22198|      0|                    break;
22199|      0|                }
22200|    827|                std::uint32_t number{};
22201|    827|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    827|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 827]
  |  |  ------------------
  ------------------
22202|      0|                {
22203|      0|                    return false;
22204|      0|                }
22205|    827|                return store_ubjson_count(conditional_static_cast<std::size_t>(number), result);
22206|    827|            }
22207|       |
22208|  1.09k|            case 'M':
  ------------------
  |  Branch (22208:13): [True: 1.09k, False: 42.9k]
  ------------------
22209|  1.09k|            {
22210|  1.09k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22210:21): [True: 0, False: 1.09k]
  ------------------
22211|      0|                {
22212|      0|                    break;
22213|      0|                }
22214|  1.09k|                std::uint64_t number{};
22215|  1.09k|                if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.09k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.09k]
  |  |  ------------------
  ------------------
22216|      0|                {
22217|      0|                    return false;
22218|      0|                }
22219|  1.09k|                if (!value_in_range_of<std::size_t>(number))
  ------------------
  |  Branch (22219:21): [True: 0, False: 1.09k]
  ------------------
22220|      0|                {
22221|      0|                    return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22222|      0|                }
22223|  1.09k|                return store_ubjson_count(detail::conditional_static_cast<std::size_t>(number), result);
22224|  1.09k|            }
22225|       |
22226|  7.80k|            case '[':
  ------------------
  |  Branch (22226:13): [True: 7.80k, False: 36.2k]
  ------------------
22227|  7.80k|            {
22228|  7.80k|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22228:21): [True: 0, False: 7.80k]
  ------------------
22229|      0|                {
22230|      0|                    break;
22231|      0|                }
22232|  7.80k|                if (is_ndarray) // ndarray dimensional vector can only contain integers and cannot embed another array
  ------------------
  |  Branch (22232:21): [True: 7, False: 7.79k]
  ------------------
22233|      7|                {
22234|      7|                    return last_byte_error(exception_id::invalid_string_or_size, "ndarray dimensional vector is not allowed", "size");
22235|      7|                }
22236|  7.79k|                std::vector<size_t> dim;
22237|  7.79k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22238|      0|                {
22239|      0|                    return false;
22240|      0|                }
22241|  7.79k|                if (dim.size() == 1 || (dim.size() == 2 && dim.at(0) == 1)) // return normal array size if 1D row vector
  ------------------
  |  Branch (22241:21): [True: 1.15k, False: 6.64k]
  |  Branch (22241:41): [True: 2.23k, False: 4.40k]
  |  Branch (22241:60): [True: 209, False: 2.03k]
  ------------------
22242|    806|                {
22243|    806|                    result = dim.at(dim.size() - 1);
22244|    806|                    return true;
22245|    806|                }
22246|  6.99k|                if (!dim.empty())  // if ndarray, convert to an object in JData annotated array format
  ------------------
  |  Branch (22246:21): [True: 3.61k, False: 3.37k]
  ------------------
22247|  3.61k|                {
22248|  3.61k|                    for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
  ------------------
  |  Branch (22248:33): [True: 10.3k, False: 3.41k]
  ------------------
22249|  10.3k|                    {
22250|  10.3k|                        if ( i == 0 )
  ------------------
  |  Branch (22250:30): [True: 200, False: 10.1k]
  ------------------
22251|    200|                        {
22252|    200|                            result = 0;
22253|    200|                            return true;
22254|    200|                        }
22255|  10.3k|                    }
22256|       |
22257|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3)))
  ------------------
  |  | 1697|  3.41k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
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|  3.41k|                    if (ndarray_dtype != 0)
  ------------------
  |  Branch (22265:25): [True: 3.24k, False: 174]
  ------------------
22266|  3.24k|                    {
22267|       |                        // every optimized type marker is_valid_optimized_type() accepts for BJData has a name
22268|  3.24k|                        const char* type_name = bjd_type_name(ndarray_dtype);
22269|  3.24k|                        JSON_ASSERT(type_name != nullptr);
  ------------------
  |  | 2653|  3.24k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (22269:25): [True: 3.24k, False: 0]
  ------------------
22270|       |
22271|  3.24k|                        string_t type_key = "_ArrayType_";
22272|  3.24k|                        string_t type = type_name; // sax->string() takes a reference
22273|  3.24k|                        if (JSON_HEDLEY_UNLIKELY(!sax->key(type_key) || !sax->string(type)))
  ------------------
  |  | 1697|  6.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  ------------------
  ------------------
22274|      0|                        {
22275|      0|                            return false;
22276|      0|                        }
22277|  3.24k|                    }
22278|       |
22279|  3.41k|                    string_t key = "_ArraySize_";
22280|  3.41k|                    if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(dim.size())))
  ------------------
  |  | 1697|  6.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
22281|      0|                    {
22282|      0|                        return false;
22283|      0|                    }
22284|  3.41k|                    result = 1;
22285|  3.41k|                    for (auto i : dim)
  ------------------
  |  Branch (22285:33): [True: 9.29k, False: 3.34k]
  ------------------
22286|  9.29k|                    {
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|  9.29k|                        if (JSON_HEDLEY_UNLIKELY(result > (std::numeric_limits<std::size_t>::max)() / i))
  ------------------
  |  | 1697|  9.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 77, False: 9.22k]
  |  |  ------------------
  ------------------
22295|     77|                        {
22296|     77|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22297|     77|                        }
22298|  9.22k|                        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|  9.22k|                        if (result == npos)
  ------------------
  |  Branch (22303:29): [True: 1, False: 9.21k]
  ------------------
22304|      1|                        {
22305|      1|                            return out_of_range_error(exception_id::container_too_large, "excessive ndarray size caused overflow", "size");
22306|      1|                        }
22307|  9.21k|                        if (JSON_HEDLEY_UNLIKELY(!emit_unsigned(i)))
  ------------------
  |  | 1697|  9.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.21k]
  |  |  ------------------
  ------------------
22308|      0|                        {
22309|      0|                            return false;
22310|      0|                        }
22311|  9.21k|                    }
22312|  3.34k|                    is_ndarray = true;
22313|  3.34k|                    return sax->end_array();
22314|  3.41k|                }
22315|  3.37k|                result = 0;
22316|  3.37k|                return true;
22317|  6.99k|            }
22318|       |
22319|    275|            default:
  ------------------
  |  Branch (22319:13): [True: 275, False: 43.7k]
  ------------------
22320|    275|                break;
22321|  44.0k|        }
22322|    275|        return length_type_error(" after '#'", "size");
22323|  44.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_EEE23get_ubjson_signed_countIaEEbRm:
22114|  15.4k|    {
22115|  15.4k|        SignedType number{};
22116|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  15.4k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4, False: 15.4k]
  |  |  ------------------
  ------------------
22121|      4|        {
22122|      4|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      4|        }
22124|  15.4k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  15.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 15.4k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  15.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|  15.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_EEE23get_ubjson_signed_countIsEEbRm:
22114|  1.68k|    {
22115|  1.68k|        SignedType number{};
22116|  1.68k|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.68k]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|  1.68k|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|  1.68k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 8, False: 1.67k]
  |  |  ------------------
  ------------------
22121|      8|        {
22122|      8|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|      8|        }
22124|  1.67k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|  1.67k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.67k]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|  1.67k|        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.67k|    }
_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|    852|    {
22115|    852|        SignedType number{};
22116|    852|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 852]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    852|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    852|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 818]
  |  |  ------------------
  ------------------
22121|     34|        {
22122|     34|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     34|        }
22124|    818|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    818|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 818]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    818|        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|    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_EEE23get_ubjson_signed_countIlEEbRm:
22114|    678|    {
22115|    678|        SignedType number{};
22116|    678|        if (JSON_HEDLEY_UNLIKELY(!get_number(number)))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 678]
  |  |  ------------------
  ------------------
22117|      0|        {
22118|      0|            return false;
22119|      0|        }
22120|    678|        if (JSON_HEDLEY_UNLIKELY(number < 0))
  ------------------
  |  | 1697|    678|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 68, False: 610]
  |  |  ------------------
  ------------------
22121|     68|        {
22122|     68|            return last_byte_error(exception_id::invalid_string_or_size, "count in an optimized container must be positive", "size");
22123|     68|        }
22124|    610|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::size_t>(number)))
  ------------------
  |  | 1697|    610|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 610]
  |  |  ------------------
  ------------------
22125|      0|        {
22126|      0|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22127|      0|        }
22128|    610|        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|    610|    }
_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|  20.2k|    {
22090|  20.2k|        if (JSON_HEDLEY_UNLIKELY(count == npos))
  ------------------
  |  | 1697|  20.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 20.2k]
  |  |  ------------------
  ------------------
22091|      1|        {
22092|      1|            return out_of_range_error(exception_id::container_too_large, "integer value overflow", "size");
22093|      1|        }
22094|  20.2k|        result = count;
22095|  20.2k|        return true;
22096|  20.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_ndarray_sizeERNS6_ImNSA_ImEEEE:
22027|  7.79k|    {
22028|  7.79k|        std::pair<std::size_t, char_int_type> size_and_type;
22029|  7.79k|        size_t dimlen = 0;
22030|  7.79k|        bool no_ndarray = true;
22031|       |
22032|  7.79k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type, no_ndarray)))
  ------------------
  |  | 1697|  7.79k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 7.79k]
  |  |  ------------------
  ------------------
22033|      0|        {
22034|      0|            return false;
22035|      0|        }
22036|       |
22037|  7.79k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22037:13): [True: 1.61k, False: 6.18k]
  ------------------
22038|  1.61k|        {
22039|  1.61k|            if (size_and_type.second != 0)
  ------------------
  |  Branch (22039:17): [True: 1.17k, False: 438]
  ------------------
22040|  1.17k|            {
22041|  9.87k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22041:41): [True: 8.69k, False: 1.17k]
  ------------------
22042|  8.69k|                {
22043|  8.69k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, size_and_type.second)))
  ------------------
  |  | 1697|  8.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.69k]
  |  |  ------------------
  ------------------
22044|      0|                    {
22045|      0|                        return false;
22046|      0|                    }
22047|  8.69k|                    dim.push_back(dimlen);
22048|  8.69k|                }
22049|  1.17k|            }
22050|    438|            else
22051|    438|            {
22052|  1.44k|                for (std::size_t i = 0; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22052:41): [True: 1.00k, False: 438]
  ------------------
22053|  1.00k|                {
22054|  1.00k|                    if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray)))
  ------------------
  |  | 1697|  1.00k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
22055|      0|                    {
22056|      0|                        return false;
22057|      0|                    }
22058|  1.00k|                    dim.push_back(dimlen);
22059|  1.00k|                }
22060|    438|            }
22061|  1.61k|        }
22062|  6.18k|        else
22063|  6.18k|        {
22064|  16.4k|            while (current != ']')
  ------------------
  |  Branch (22064:20): [True: 10.2k, False: 6.18k]
  ------------------
22065|  10.2k|            {
22066|  10.2k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, current)))
  ------------------
  |  | 1697|  10.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.2k]
  |  |  ------------------
  ------------------
22067|      0|                {
22068|      0|                    return false;
22069|      0|                }
22070|  10.2k|                dim.push_back(dimlen);
22071|  10.2k|                get_ignore_noop();
22072|  10.2k|            }
22073|  6.18k|        }
22074|  7.79k|        return true;
22075|  7.79k|    }
_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|   104k|    {
22338|   104k|        result.first = npos; // size
22339|   104k|        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|   104k|        bool is_ndarray = inside_ndarray;
22346|       |
22347|   104k|        get_ignore_noop();
22348|       |
22349|   104k|        if (current == '$')
  ------------------
  |  Branch (22349:13): [True: 12.2k, False: 92.5k]
  ------------------
22350|  12.2k|        {
22351|  12.2k|            result.second = get();  // must not ignore 'N', because 'N' maybe the type
22352|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("type")))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 12.2k]
  |  |  ------------------
  ------------------
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|  12.2k|            if (JSON_HEDLEY_UNLIKELY(!is_valid_optimized_type(result.second)))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 17, False: 12.2k]
  |  |  ------------------
  ------------------
22361|     17|            {
22362|     17|                return optimized_type_error();
22363|     17|            }
22364|       |
22365|  12.2k|            get_ignore_noop();
22366|  12.2k|            if (JSON_HEDLEY_UNLIKELY(current != '#'))
  ------------------
  |  | 1697|  12.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 129, False: 12.0k]
  |  |  ------------------
  ------------------
22367|    129|            {
22368|    129|                if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|    129|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 129]
  |  |  ------------------
  ------------------
22369|      0|                {
22370|      0|                    return false;
22371|      0|                }
22372|    129|                return last_byte_error(exception_id::unexpected_byte, "expected '#' after type information", "size", "");
22373|    129|            }
22374|       |
22375|  12.0k|            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|  12.0k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22379:17): [True: 4.41k, False: 7.67k]
  |  Branch (22379:31): [True: 3.24k, False: 1.17k]
  ------------------
22380|  3.24k|            {
22381|  3.24k|                result.second |= (1 << 8); // use bit 8 to indicate ndarray, all UBJSON and BJData markers should be ASCII letters
22382|  3.24k|            }
22383|  12.0k|            return is_error;
22384|  12.2k|        }
22385|       |
22386|  92.5k|        if (current == '#')
  ------------------
  |  Branch (22386:13): [True: 4.23k, False: 88.3k]
  ------------------
22387|  4.23k|        {
22388|  4.23k|            const bool is_error = get_ubjson_size_value(result.first, is_ndarray);
22389|  4.23k|            if (is_ndarray && !inside_ndarray)
  ------------------
  |  Branch (22389:17): [True: 535, False: 3.70k]
  |  Branch (22389:31): [True: 97, False: 438]
  ------------------
22390|     97|            {
22391|     97|                return last_byte_error(exception_id::unexpected_byte, "ndarray requires both type and size", "size");
22392|     97|            }
22393|  4.14k|            return is_error;
22394|  4.23k|        }
22395|       |
22396|  88.3k|        return true;
22397|  92.5k|    }
_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|  12.2k|    {
24158|  12.2k|        switch (marker)
24159|  12.2k|        {
24160|  1.02k|            case 'i':
  ------------------
  |  Branch (24160:13): [True: 1.02k, False: 11.2k]
  ------------------
24161|  1.82k|            case 'U':
  ------------------
  |  Branch (24161:13): [True: 800, False: 11.4k]
  ------------------
24162|  2.42k|            case 'I':
  ------------------
  |  Branch (24162:13): [True: 601, False: 11.6k]
  ------------------
24163|  3.07k|            case 'l':
  ------------------
  |  Branch (24163:13): [True: 649, False: 11.5k]
  ------------------
24164|  3.64k|            case 'L':
  ------------------
  |  Branch (24164:13): [True: 566, False: 11.6k]
  ------------------
24165|  4.23k|            case 'd':
  ------------------
  |  Branch (24165:13): [True: 589, False: 11.6k]
  ------------------
24166|  4.77k|            case 'D':
  ------------------
  |  Branch (24166:13): [True: 540, False: 11.6k]
  ------------------
24167|  5.25k|            case 'C':
  ------------------
  |  Branch (24167:13): [True: 486, False: 11.7k]
  ------------------
24168|  5.25k|                return true;
24169|      1|            case 'Z':
  ------------------
  |  Branch (24169:13): [True: 1, False: 12.2k]
  ------------------
24170|      2|            case 'N':
  ------------------
  |  Branch (24170:13): [True: 1, False: 12.2k]
  ------------------
24171|      3|            case 'T':
  ------------------
  |  Branch (24171:13): [True: 1, False: 12.2k]
  ------------------
24172|      4|            case 'F':
  ------------------
  |  Branch (24172:13): [True: 1, False: 12.2k]
  ------------------
24173|      5|            case 'H':
  ------------------
  |  Branch (24173:13): [True: 1, False: 12.2k]
  ------------------
24174|      6|            case 'S':
  ------------------
  |  Branch (24174:13): [True: 1, False: 12.2k]
  ------------------
24175|      9|            case '[':
  ------------------
  |  Branch (24175:13): [True: 3, False: 12.2k]
  ------------------
24176|     10|            case '{':
  ------------------
  |  Branch (24176:13): [True: 1, False: 12.2k]
  ------------------
24177|     10|                return input_format != input_format_t::bjdata;
24178|  4.08k|            case 'B':
  ------------------
  |  Branch (24178:13): [True: 4.08k, False: 8.15k]
  ------------------
24179|  4.76k|            case 'u':
  ------------------
  |  Branch (24179:13): [True: 673, False: 11.5k]
  ------------------
24180|  5.30k|            case 'm':
  ------------------
  |  Branch (24180:13): [True: 547, False: 11.6k]
  ------------------
24181|  5.98k|            case 'M':
  ------------------
  |  Branch (24181:13): [True: 673, False: 11.5k]
  ------------------
24182|  6.96k|            case 'h':
  ------------------
  |  Branch (24182:13): [True: 984, False: 11.2k]
  ------------------
24183|  6.96k|                return input_format == input_format_t::bjdata;
24184|      7|            default:
  ------------------
  |  Branch (24184:13): [True: 7, False: 12.2k]
  ------------------
24185|      7|                return false;
24186|  12.2k|        }
24187|  12.2k|    }
_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|     17|    {
24015|     17|        return last_byte_error(exception_id::unexpected_byte, concat("marker 0x", get_token_string(), " is not a permitted optimized array type"), "type");
24016|     17|    }
_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_EEE13bjd_type_nameEi:
24198|  3.24k|    {
24199|  3.24k|        switch (marker)
24200|  3.24k|        {
24201|    421|            case 'B':
  ------------------
  |  Branch (24201:13): [True: 421, False: 2.82k]
  ------------------
24202|    421|                return "byte";
24203|    277|            case 'C':
  ------------------
  |  Branch (24203:13): [True: 277, False: 2.96k]
  ------------------
24204|    277|                return "char";
24205|    190|            case 'D':
  ------------------
  |  Branch (24205:13): [True: 190, False: 3.05k]
  ------------------
24206|    190|                return "double";
24207|    209|            case 'I':
  ------------------
  |  Branch (24207:13): [True: 209, False: 3.03k]
  ------------------
24208|    209|                return "int16";
24209|    174|            case 'L':
  ------------------
  |  Branch (24209:13): [True: 174, False: 3.07k]
  ------------------
24210|    174|                return "int64";
24211|    149|            case 'M':
  ------------------
  |  Branch (24211:13): [True: 149, False: 3.09k]
  ------------------
24212|    149|                return "uint64";
24213|    282|            case 'U':
  ------------------
  |  Branch (24213:13): [True: 282, False: 2.96k]
  ------------------
24214|    282|                return "uint8";
24215|    188|            case 'd':
  ------------------
  |  Branch (24215:13): [True: 188, False: 3.05k]
  ------------------
24216|    188|                return "single";
24217|    222|            case 'h':
  ------------------
  |  Branch (24217:13): [True: 222, False: 3.02k]
  ------------------
24218|    222|                return "half";
24219|    431|            case 'i':
  ------------------
  |  Branch (24219:13): [True: 431, False: 2.81k]
  ------------------
24220|    431|                return "int8";
24221|    238|            case 'l':
  ------------------
  |  Branch (24221:13): [True: 238, False: 3.00k]
  ------------------
24222|    238|                return "int32";
24223|    194|            case 'm':
  ------------------
  |  Branch (24223:13): [True: 194, False: 3.05k]
  ------------------
24224|    194|                return "uint32";
24225|    270|            case 'u':
  ------------------
  |  Branch (24225:13): [True: 270, False: 2.97k]
  ------------------
24226|    270|                return "uint16";
24227|      0|            default:
  ------------------
  |  Branch (24227:13): [True: 0, False: 3.24k]
  ------------------
24228|      0|                return nullptr;
24229|  3.24k|        }
24230|  3.24k|    }
_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|    318|    {
24082|    318|        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: 318, False: 0]
  ------------------
24083|    318|        return last_byte_error(exception_id::invalid_string_or_size,
24084|    318|                               concat("expected length type specification (", types, ")", position, "; last byte: 0x", get_token_string()), context);
24085|    318|    }
_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|  82.4k|    {
22708|  82.4k|        std::pair<std::size_t, char_int_type> size_and_type;
22709|  82.4k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  82.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 82.4k]
  |  |  ------------------
  ------------------
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|  82.4k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22717:13): [True: 3.24k, False: 79.2k]
  ------------------
22718|  3.24k|        {
22719|  3.24k|            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|  3.24k|            const bool nd_is_char = size_and_type.second == 'C';
22727|  3.24k|            if (size_and_type.second == 'C' || size_and_type.second == 'B')
  ------------------
  |  Branch (22727:17): [True: 277, False: 2.96k]
  |  Branch (22727:48): [True: 421, False: 2.54k]
  ------------------
22728|    698|            {
22729|    698|                size_and_type.second = 'U';
22730|    698|            }
22731|       |
22732|  3.24k|            string_t key = "_ArrayData_";
22733|  3.24k|            if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) ))
  ------------------
  |  | 1697|  6.48k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 0, False: 3.24k]
  |  |  |  Branch (1697:94): [True: 1, False: 3.24k]
  |  |  ------------------
  ------------------
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|  3.24k|            std::size_t remaining = size_and_type.first;
22741|  3.24k|            if (!nd_is_char && JSON_HEDLEY_UNLIKELY(!parse_ubjson_typed_run(remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {})))
  ------------------
  |  | 1697|  2.96k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.96k]
  |  |  ------------------
  ------------------
  |  Branch (22741:17): [True: 2.96k, False: 278]
  |  Branch (22741:17): [True: 0, False: 3.24k]
  ------------------
22742|      0|            {
22743|      0|                return false;
22744|      0|            }
22745|       |
22746|  7.02k|            for (std::size_t i = size_and_type.first - remaining; i < size_and_type.first; ++i)
  ------------------
  |  Branch (22746:67): [True: 3.79k, False: 3.23k]
  ------------------
22747|  3.79k|            {
22748|  3.79k|                if (nd_is_char)
  ------------------
  |  Branch (22748:21): [True: 1.58k, False: 2.20k]
  ------------------
22749|  1.58k|                {
22750|  1.58k|                    get();
22751|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("char")))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22752|      0|                    {
22753|      0|                        return false;
22754|      0|                    }
22755|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(current > 127))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 1.58k]
  |  |  ------------------
  ------------------
22756|      3|                    {
22757|      3|                        return last_byte_error(exception_id::invalid_string_or_size, "byte after 'C' must be in range 0x00..0x7F", "char", "");
22758|      3|                    }
22759|  1.58k|                    if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(current))))
  ------------------
  |  | 1697|  1.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.58k]
  |  |  ------------------
  ------------------
22760|      0|                    {
22761|      0|                        return false;
22762|      0|                    }
22763|  1.58k|                    continue;
22764|  1.58k|                }
22765|       |
22766|  2.20k|                if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second)))
  ------------------
  |  | 1697|  2.20k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.20k]
  |  |  ------------------
  ------------------
22767|      0|                {
22768|      0|                    return false;
22769|      0|                }
22770|  2.20k|            }
22771|       |
22772|  3.23k|            return (sax->end_array() && sax->end_object());
  ------------------
  |  Branch (22772:21): [True: 3.04k, False: 196]
  |  Branch (22772:41): [True: 3.04k, False: 0]
  ------------------
22773|  3.24k|        }
22774|       |
22775|       |        // If BJData type marker is 'B' decode as binary
22776|  79.2k|        if (size_and_type.first != npos && size_and_type.second == 'B')
  ------------------
  |  Branch (22776:13): [True: 10.3k, False: 68.9k]
  |  Branch (22776:44): [True: 3.47k, False: 6.86k]
  ------------------
22777|  3.47k|        {
22778|  3.47k|            binary_t result;
22779|  3.47k|            return get_binary(size_and_type.first, result) && sax->binary(result);
  ------------------
  |  Branch (22779:20): [True: 3.34k, False: 135]
  |  Branch (22779:63): [True: 3.34k, False: 0]
  ------------------
22780|  3.47k|        }
22781|       |
22782|  75.7k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22782:13): [True: 6.86k, False: 68.9k]
  ------------------
22783|  6.86k|        {
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.86k|            if (JSON_HEDLEY_UNLIKELY(size_and_type.second == 'Z' || size_and_type.second == 'T' || size_and_type.second == 'F'))
  ------------------
  |  | 1697|  27.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  |  Branch (1697:94): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22789|      0|            {
22790|      0|                if (JSON_HEDLEY_UNLIKELY(size_and_type.first > max_valueless_container_size))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22791|      0|                {
22792|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive array size", "size");
22793|      0|                }
22794|      0|                if (JSON_HEDLEY_UNLIKELY(!charge_valueless_elements(size_and_type.first)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
22795|      0|                {
22796|      0|                    return out_of_range_error(exception_id::container_too_large, "excessive number of elements without payload", "size");
22797|      0|                }
22798|      0|            }
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.86k|            const std::size_t announced = size_and_type.second == 'N' ? 0 : size_and_type.first;
  ------------------
  |  Branch (22803:43): [True: 0, False: 6.86k]
  ------------------
22804|  6.86k|            if (JSON_HEDLEY_UNLIKELY(!enter_array(announced, size_and_type.second)))
  ------------------
  |  | 1697|  6.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.86k]
  |  |  ------------------
  ------------------
22805|      0|            {
22806|      0|                return false;
22807|      0|            }
22808|       |
22809|  6.86k|            return size_and_type.second == 0
  ------------------
  |  Branch (22809:20): [True: 2.80k, False: 4.06k]
  ------------------
22810|  4.06k|                   || parse_ubjson_typed_run(container_stack.back().remaining, size_and_type.second, std::integral_constant<bool, bulk_scan> {});
  ------------------
  |  Branch (22810:23): [True: 4.06k, False: 0]
  ------------------
22811|  6.86k|        }
22812|       |
22813|  68.9k|        return enter_array(detail::unknown_size());
22814|  75.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runERmiNS4_17integral_constantIbLb1EEE:
22562|  7.02k|    {
22563|  7.02k|        switch (type)
22564|  7.02k|        {
22565|  1.02k|            case 'U':
  ------------------
  |  Branch (22565:13): [True: 1.02k, False: 5.99k]
  ------------------
22566|  1.02k|                return parse_ubjson_typed_run<std::uint8_t>(remaining);
22567|    791|            case 'i':
  ------------------
  |  Branch (22567:13): [True: 791, False: 6.23k]
  ------------------
22568|    791|                return parse_ubjson_typed_run<std::int8_t>(remaining);
22569|    531|            case 'I':
  ------------------
  |  Branch (22569:13): [True: 531, False: 6.49k]
  ------------------
22570|    531|                return parse_ubjson_typed_run<std::int16_t>(remaining);
22571|    543|            case 'l':
  ------------------
  |  Branch (22571:13): [True: 543, False: 6.48k]
  ------------------
22572|    543|                return parse_ubjson_typed_run<std::int32_t>(remaining);
22573|    475|            case 'L':
  ------------------
  |  Branch (22573:13): [True: 475, False: 6.55k]
  ------------------
22574|    475|                return parse_ubjson_typed_run<std::int64_t>(remaining);
22575|    595|            case 'u':
  ------------------
  |  Branch (22575:13): [True: 595, False: 6.43k]
  ------------------
22576|    595|                return parse_ubjson_typed_run<std::uint16_t>(remaining);
22577|    489|            case 'm':
  ------------------
  |  Branch (22577:13): [True: 489, False: 6.53k]
  ------------------
22578|    489|                return parse_ubjson_typed_run<std::uint32_t>(remaining);
22579|    481|            case 'M':
  ------------------
  |  Branch (22579:13): [True: 481, False: 6.54k]
  ------------------
22580|    481|                return parse_ubjson_typed_run<std::uint64_t>(remaining);
22581|    524|            case 'd':
  ------------------
  |  Branch (22581:13): [True: 524, False: 6.50k]
  ------------------
22582|    524|                return parse_ubjson_typed_run<float>(remaining);
22583|    468|            case 'D':
  ------------------
  |  Branch (22583:13): [True: 468, False: 6.55k]
  ------------------
22584|    468|                return parse_ubjson_typed_run<double>(remaining);
22585|  1.09k|            default:
  ------------------
  |  Branch (22585:13): [True: 1.09k, False: 5.92k]
  ------------------
22586|  1.09k|                return true;
22587|  7.02k|        }
22588|  7.02k|    }
_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|  1.02k|    {
22599|  1.02k|        constexpr std::size_t size = sizeof(NumberType);
22600|  1.02k|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|  1.02k|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 259, False: 770]
  ------------------
22602|    259|        {
22603|    259|            return true;
22604|    259|        }
22605|    770|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    770|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    770|        const std::size_t start = chars_read;
22609|    770|        std::size_t read = 0;
22610|    770|        bool accepted = true;
22611|  5.38k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 4.61k, False: 770]
  |  Branch (22611:32): [True: 4.61k, False: 0]
  ------------------
22612|  4.61k|        {
22613|  4.61k|            NumberType number{};
22614|  4.61k|            std::memcpy(&number, data + (read * size), size);
22615|  4.61k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 4.61k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  4.61k|            ++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.61k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  4.61k|            accepted = emit_ubjson_number(number);
22625|  4.61k|        }
22626|       |        // get_number() does not change current
22627|    770|        ia.bulk_skip(read * size);
22628|    770|        chars_read = start + (read * size);
22629|    770|        remaining -= read;
22630|    770|        return accepted;
22631|  1.02k|    }
_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|  20.0k|    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.61k|    {
22668|  4.61k|        return emit_unsigned(number);
22669|  4.61k|    }
_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|    791|    {
22599|    791|        constexpr std::size_t size = sizeof(NumberType);
22600|    791|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    791|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 243, False: 548]
  ------------------
22602|    243|        {
22603|    243|            return true;
22604|    243|        }
22605|    548|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    548|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    548|        const std::size_t start = chars_read;
22609|    548|        std::size_t read = 0;
22610|    548|        bool accepted = true;
22611|  5.63k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 5.08k, False: 548]
  |  Branch (22611:32): [True: 5.08k, False: 0]
  ------------------
22612|  5.08k|        {
22613|  5.08k|            NumberType number{};
22614|  5.08k|            std::memcpy(&number, data + (read * size), size);
22615|  5.08k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 5.08k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  5.08k|            ++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.08k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  5.08k|            accepted = emit_ubjson_number(number);
22625|  5.08k|        }
22626|       |        // get_number() does not change current
22627|    548|        ia.bulk_skip(read * size);
22628|    548|        chars_read = start + (read * size);
22629|    548|        remaining -= read;
22630|    548|        return accepted;
22631|    791|    }
_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|  5.08k|    {
22662|  5.08k|        return emit_signed(number);
22663|  5.08k|    }
_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|    531|    {
22599|    531|        constexpr std::size_t size = sizeof(NumberType);
22600|    531|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    531|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 237, False: 294]
  ------------------
22602|    237|        {
22603|    237|            return true;
22604|    237|        }
22605|    294|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    294|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    294|        const std::size_t start = chars_read;
22609|    294|        std::size_t read = 0;
22610|    294|        bool accepted = true;
22611|  2.41k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 2.12k, False: 294]
  |  Branch (22611:32): [True: 2.12k, False: 0]
  ------------------
22612|  2.12k|        {
22613|  2.12k|            NumberType number{};
22614|  2.12k|            std::memcpy(&number, data + (read * size), size);
22615|  2.12k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 2.12k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  2.12k|            ++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.12k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  2.12k|            accepted = emit_ubjson_number(number);
22625|  2.12k|        }
22626|       |        // get_number() does not change current
22627|    294|        ia.bulk_skip(read * size);
22628|    294|        chars_read = start + (read * size);
22629|    294|        remaining -= read;
22630|    294|        return accepted;
22631|    531|    }
_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|  2.12k|    {
22662|  2.12k|        return emit_signed(number);
22663|  2.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIiEEbRm:
22598|    543|    {
22599|    543|        constexpr std::size_t size = sizeof(NumberType);
22600|    543|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    543|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 221, False: 322]
  ------------------
22602|    221|        {
22603|    221|            return true;
22604|    221|        }
22605|    322|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    322|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    322|        const std::size_t start = chars_read;
22609|    322|        std::size_t read = 0;
22610|    322|        bool accepted = true;
22611|  1.57k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.25k, False: 322]
  |  Branch (22611:32): [True: 1.25k, False: 0]
  ------------------
22612|  1.25k|        {
22613|  1.25k|            NumberType number{};
22614|  1.25k|            std::memcpy(&number, data + (read * size), size);
22615|  1.25k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.25k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.25k|            ++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.25k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.25k|            accepted = emit_ubjson_number(number);
22625|  1.25k|        }
22626|       |        // get_number() does not change current
22627|    322|        ia.bulk_skip(read * size);
22628|    322|        chars_read = start + (read * size);
22629|    322|        remaining -= read;
22630|    322|        return accepted;
22631|    543|    }
_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|  1.25k|    {
22662|  1.25k|        return emit_signed(number);
22663|  1.25k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIlEEbRm:
22598|    475|    {
22599|    475|        constexpr std::size_t size = sizeof(NumberType);
22600|    475|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    475|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 227, False: 248]
  ------------------
22602|    227|        {
22603|    227|            return true;
22604|    227|        }
22605|    248|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    248|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    248|        const std::size_t start = chars_read;
22609|    248|        std::size_t read = 0;
22610|    248|        bool accepted = true;
22611|  1.00k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 759, False: 248]
  |  Branch (22611:32): [True: 759, False: 0]
  ------------------
22612|    759|        {
22613|    759|            NumberType number{};
22614|    759|            std::memcpy(&number, data + (read * size), size);
22615|    759|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 759]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    759|            ++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|    759|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    759|            accepted = emit_ubjson_number(number);
22625|    759|        }
22626|       |        // get_number() does not change current
22627|    248|        ia.bulk_skip(read * size);
22628|    248|        chars_read = start + (read * size);
22629|    248|        remaining -= read;
22630|    248|        return accepted;
22631|    475|    }
_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|    759|    {
22662|    759|        return emit_signed(number);
22663|    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_EEE22parse_ubjson_typed_runItEEbRm:
22598|    595|    {
22599|    595|        constexpr std::size_t size = sizeof(NumberType);
22600|    595|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    595|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 242, False: 353]
  ------------------
22602|    242|        {
22603|    242|            return true;
22604|    242|        }
22605|    353|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    353|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    353|        const std::size_t start = chars_read;
22609|    353|        std::size_t read = 0;
22610|    353|        bool accepted = true;
22611|  2.39k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 2.04k, False: 353]
  |  Branch (22611:32): [True: 2.04k, False: 0]
  ------------------
22612|  2.04k|        {
22613|  2.04k|            NumberType number{};
22614|  2.04k|            std::memcpy(&number, data + (read * size), size);
22615|  2.04k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 2.04k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  2.04k|            ++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.04k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  2.04k|            accepted = emit_ubjson_number(number);
22625|  2.04k|        }
22626|       |        // get_number() does not change current
22627|    353|        ia.bulk_skip(read * size);
22628|    353|        chars_read = start + (read * size);
22629|    353|        remaining -= read;
22630|    353|        return accepted;
22631|    595|    }
_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_numberItTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|  2.04k|    {
22668|  2.04k|        return emit_unsigned(number);
22669|  2.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE22parse_ubjson_typed_runIjEEbRm:
22598|    489|    {
22599|    489|        constexpr std::size_t size = sizeof(NumberType);
22600|    489|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    489|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 217, False: 272]
  ------------------
22602|    217|        {
22603|    217|            return true;
22604|    217|        }
22605|    272|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    272|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    272|        const std::size_t start = chars_read;
22609|    272|        std::size_t read = 0;
22610|    272|        bool accepted = true;
22611|  1.16k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 897, False: 272]
  |  Branch (22611:32): [True: 897, False: 0]
  ------------------
22612|    897|        {
22613|    897|            NumberType number{};
22614|    897|            std::memcpy(&number, data + (read * size), size);
22615|    897|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 897]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    897|            ++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|    897|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    897|            accepted = emit_ubjson_number(number);
22625|    897|        }
22626|       |        // get_number() does not change current
22627|    272|        ia.bulk_skip(read * size);
22628|    272|        chars_read = start + (read * size);
22629|    272|        remaining -= read;
22630|    272|        return accepted;
22631|    489|    }
_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_numberIjTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|    897|    {
22668|    897|        return emit_unsigned(number);
22669|    897|    }
_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_runImEEbRm:
22598|    481|    {
22599|    481|        constexpr std::size_t size = sizeof(NumberType);
22600|    481|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    481|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 252, False: 229]
  ------------------
22602|    252|        {
22603|    252|            return true;
22604|    252|        }
22605|    229|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    229|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    229|        const std::size_t start = chars_read;
22609|    229|        std::size_t read = 0;
22610|    229|        bool accepted = true;
22611|    889|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 660, False: 229]
  |  Branch (22611:32): [True: 660, False: 0]
  ------------------
22612|    660|        {
22613|    660|            NumberType number{};
22614|    660|            std::memcpy(&number, data + (read * size), size);
22615|    660|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 660]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|    660|            ++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|    660|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|    660|            accepted = emit_ubjson_number(number);
22625|    660|        }
22626|       |        // get_number() does not change current
22627|    229|        ia.bulk_skip(read * size);
22628|    229|        chars_read = start + (read * size);
22629|    229|        remaining -= read;
22630|    229|        return accepted;
22631|    481|    }
_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_numberImTnNS4_9enable_ifIXaasr3std11is_integralIT_EE5valuentsr3std9is_signedISN_EE5valueEiE4typeELi0EEEbSN_:
22667|    660|    {
22668|    660|        return emit_unsigned(number);
22669|    660|    }
_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|    524|    {
22599|    524|        constexpr std::size_t size = sizeof(NumberType);
22600|    524|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    524|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 254, False: 270]
  ------------------
22602|    254|        {
22603|    254|            return true;
22604|    254|        }
22605|    270|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    270|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    270|        const std::size_t start = chars_read;
22609|    270|        std::size_t read = 0;
22610|    270|        bool accepted = true;
22611|  1.83k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.56k, False: 270]
  |  Branch (22611:32): [True: 1.56k, False: 0]
  ------------------
22612|  1.56k|        {
22613|  1.56k|            NumberType number{};
22614|  1.56k|            std::memcpy(&number, data + (read * size), size);
22615|  1.56k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.56k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.56k|            ++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.56k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.56k|            accepted = emit_ubjson_number(number);
22625|  1.56k|        }
22626|       |        // get_number() does not change current
22627|    270|        ia.bulk_skip(read * size);
22628|    270|        chars_read = start + (read * size);
22629|    270|        remaining -= read;
22630|    270|        return accepted;
22631|    524|    }
_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.56k|    {
22656|  1.56k|        return emit_float(number);
22657|  1.56k|    }
_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|    468|    {
22599|    468|        constexpr std::size_t size = sizeof(NumberType);
22600|    468|        const std::size_t count = (std::min)(remaining, ia.bulk_remaining() / size);
22601|    468|        if (count == 0)
  ------------------
  |  Branch (22601:13): [True: 222, False: 246]
  ------------------
22602|    222|        {
22603|    222|            return true;
22604|    222|        }
22605|    246|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
22606|       |        // UBJSON stores numbers big-endian, BJData little-endian
22607|    246|        const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
22608|    246|        const std::size_t start = chars_read;
22609|    246|        std::size_t read = 0;
22610|    246|        bool accepted = true;
22611|  1.31k|        while (read < count && accepted)
  ------------------
  |  Branch (22611:16): [True: 1.06k, False: 246]
  |  Branch (22611:32): [True: 1.06k, False: 0]
  ------------------
22612|  1.06k|        {
22613|  1.06k|            NumberType number{};
22614|  1.06k|            std::memcpy(&number, data + (read * size), size);
22615|  1.06k|            if (swap)
  ------------------
  |  Branch (22615:17): [True: 0, False: 1.06k]
  ------------------
22616|      0|            {
22617|      0|                byte_swap(number);
22618|      0|            }
22619|  1.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|  1.06k|            set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
22624|  1.06k|            accepted = emit_ubjson_number(number);
22625|  1.06k|        }
22626|       |        // get_number() does not change current
22627|    246|        ia.bulk_skip(read * size);
22628|    246|        chars_read = start + (read * size);
22629|    246|        remaining -= read;
22630|    246|        return accepted;
22631|    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_EEE18emit_ubjson_numberIdTnNS4_9enable_ifIXsr17is_floating_pointIT_EE5valueEiE4typeELi0EEEbSN_:
22655|  1.06k|    {
22656|  1.06k|        return emit_float(number);
22657|  1.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_EEE10get_binaryImEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  3.47k|    {
23868|  3.47k|        return get_bytes(len, "binary", result);
23869|  3.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17get_ubjson_objectEv:
22820|  14.5k|    {
22821|  14.5k|        std::pair<std::size_t, char_int_type> size_and_type;
22822|  14.5k|        if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type)))
  ------------------
  |  | 1697|  14.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 14.5k]
  |  |  ------------------
  ------------------
22823|      0|        {
22824|      0|            return false;
22825|      0|        }
22826|       |
22827|       |        // do not accept ND-array size in objects in BJData
22828|  14.5k|        if ((size_and_type.second & (1 << 8)) != 0)
  ------------------
  |  Branch (22828:13): [True: 2, False: 14.5k]
  ------------------
22829|      2|        {
22830|      2|            return last_byte_error(exception_id::unexpected_byte, "BJData object does not support ND-array size in optimized format", "object");
22831|      2|        }
22832|       |
22833|  14.5k|        if (size_and_type.first != npos)
  ------------------
  |  Branch (22833:13): [True: 374, False: 14.1k]
  ------------------
22834|    374|        {
22835|    374|            return enter_object(size_and_type.first, size_and_type.second);
22836|    374|        }
22837|       |
22838|  14.1k|        return enter_object(detail::unknown_size());
22839|  14.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_EEE17get_ubjson_stringERSC_bPKc:
21943|  31.2k|    {
21944|  31.2k|        if (get_char)
  ------------------
  |  Branch (21944:13): [True: 7.50k, False: 23.7k]
  ------------------
21945|  7.50k|        {
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|  7.50k|            get();
21951|  7.50k|        }
21952|       |
21953|  31.2k|        if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("value")))
  ------------------
  |  | 1697|  31.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 31.2k]
  |  |  ------------------
  ------------------
21954|      0|        {
21955|      0|            return false;
21956|      0|        }
21957|       |
21958|  31.2k|        switch (current)
21959|  31.2k|        {
21960|  21.7k|            case 'U':
  ------------------
  |  Branch (21960:13): [True: 21.7k, False: 9.53k]
  ------------------
21961|  21.7k|            {
21962|  21.7k|                return get_string_with_length<std::uint8_t>(result, context);
21963|      0|            }
21964|       |
21965|  5.52k|            case 'i':
  ------------------
  |  Branch (21965:13): [True: 5.52k, False: 25.7k]
  ------------------
21966|  5.52k|            {
21967|  5.52k|                std::int8_t len{};
21968|  5.52k|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21968:24): [True: 5.52k, False: 2]
  |  Branch (21968:43): [True: 5.51k, False: 5]
  |  Branch (21968:78): [True: 5.47k, False: 37]
  |  Branch (21968:105): [True: 5.47k, False: 0]
  ------------------
21969|      0|            }
21970|       |
21971|    647|            case 'I':
  ------------------
  |  Branch (21971:13): [True: 647, False: 30.6k]
  ------------------
21972|    647|            {
21973|    647|                std::int16_t len{};
21974|    647|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21974:24): [True: 640, False: 7]
  |  Branch (21974:43): [True: 637, False: 3]
  |  Branch (21974:78): [True: 589, False: 48]
  |  Branch (21974:105): [True: 589, False: 0]
  ------------------
21975|      0|            }
21976|       |
21977|    533|            case 'l':
  ------------------
  |  Branch (21977:13): [True: 533, False: 30.7k]
  ------------------
21978|    533|            {
21979|    533|                std::int32_t len{};
21980|    533|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21980:24): [True: 523, False: 10]
  |  Branch (21980:43): [True: 491, False: 32]
  |  Branch (21980:78): [True: 411, False: 80]
  |  Branch (21980:105): [True: 411, False: 0]
  ------------------
21981|      0|            }
21982|       |
21983|    543|            case 'L':
  ------------------
  |  Branch (21983:13): [True: 543, False: 30.7k]
  ------------------
21984|    543|            {
21985|    543|                std::int64_t len{};
21986|    543|                return get_number(len) && check_ubjson_string_length(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (21986:24): [True: 529, False: 14]
  |  Branch (21986:43): [True: 466, False: 63]
  |  Branch (21986:78): [True: 317, False: 149]
  |  Branch (21986:105): [True: 317, False: 0]
  ------------------
21987|      0|            }
21988|       |
21989|    885|            case 'u':
  ------------------
  |  Branch (21989:13): [True: 885, False: 30.3k]
  ------------------
21990|    885|            {
21991|    885|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (21991:21): [True: 0, False: 885]
  ------------------
21992|      0|                {
21993|      0|                    break;
21994|      0|                }
21995|    885|                return get_string_with_length<std::uint16_t>(result, context);
21996|    885|            }
21997|       |
21998|    435|            case 'm':
  ------------------
  |  Branch (21998:13): [True: 435, False: 30.8k]
  ------------------
21999|    435|            {
22000|    435|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22000:21): [True: 0, False: 435]
  ------------------
22001|      0|                {
22002|      0|                    break;
22003|      0|                }
22004|    435|                return get_string_with_length<std::uint32_t>(result, context);
22005|    435|            }
22006|       |
22007|    584|            case 'M':
  ------------------
  |  Branch (22007:13): [True: 584, False: 30.6k]
  ------------------
22008|    584|            {
22009|    584|                if (input_format != input_format_t::bjdata)
  ------------------
  |  Branch (22009:21): [True: 0, False: 584]
  ------------------
22010|      0|                {
22011|      0|                    break;
22012|      0|                }
22013|    584|                return get_string_with_length<std::uint64_t>(result, context);
22014|    584|            }
22015|       |
22016|     43|            default:
  ------------------
  |  Branch (22016:13): [True: 43, False: 31.2k]
  ------------------
22017|     43|                break;
22018|  31.2k|        }
22019|     43|        return length_type_error("", "string");
22020|  31.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_EEE26check_ubjson_string_lengthIaEEbT_:
21920|  5.52k|    {
21921|  5.52k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  5.52k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 5, False: 5.51k]
  |  |  ------------------
  ------------------
21922|      5|        {
21923|      5|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      5|        }
21925|  5.51k|        return true;
21926|  5.52k|    }
_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|  5.51k|    {
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|  5.51k|        return get_bytes(len, "string", result);
23778|  5.51k|    }
_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|  5.51k|    {
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|  5.51k|        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|  5.51k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 4.77k, False: 744]
  ------------------
23898|  4.77k|        {
23899|  4.77k|            return true;
23900|  4.77k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    744|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    744|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 37, False: 707]
  ------------------
23906|     37|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     37|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 37, False: 0]
  ------------------
23910|     37|                                       ? static_cast<std::size_t>(len)
23911|     37|                                       : chunk_size;
23912|     37|            const std::size_t old_size = result.size();
23913|     37|            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|     37|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     37|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 37, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     37|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     37|            chars_read += bytes_read;
23921|     37|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     37|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 37, False: 0]
  |  |  ------------------
  ------------------
23922|     37|            {
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|     37|                result.resize(old_size + bytes_read);
23927|     37|                ++chars_read;
23928|     37|                current = char_traits<char_type>::eof();
23929|     37|                return unexpect_eof(context);
23930|     37|            }
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|    707|        return true;
23936|    744|    }
_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|  5.51k|    {
23943|  5.51k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 707, False: 4.80k]
  ------------------
23944|    707|        {
23945|    707|            return false;
23946|    707|        }
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|  4.80k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  4.80k|        const std::size_t remaining = ia.bulk_remaining();
23951|  4.80k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 37, False: 4.77k]
  ------------------
23952|     37|        {
23953|     37|            return false; // (the loop reports the premature end)
23954|     37|        }
23955|  4.77k|        const auto n = static_cast<std::size_t>(ulen);
23956|  4.77k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  4.77k|        ia.bulk_skip(n);
23958|  4.77k|        chars_read += n;
23959|  4.77k|        return true;
23960|  4.80k|    }
_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|    640|    {
21921|    640|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    640|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 637]
  |  |  ------------------
  ------------------
21922|      3|        {
21923|      3|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|      3|        }
21925|    637|        return true;
21926|    640|    }
_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|    637|    {
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|    637|        return get_bytes(len, "string", result);
23778|    637|    }
_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|    637|    {
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|    637|        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|    637|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 354, False: 283]
  ------------------
23898|    354|        {
23899|    354|            return true;
23900|    354|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    283|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    283|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 48, False: 235]
  ------------------
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: 29, False: 19]
  ------------------
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|    235|        return true;
23936|    283|    }
_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|    637|    {
23943|    637|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 235, False: 402]
  ------------------
23944|    235|        {
23945|    235|            return false;
23946|    235|        }
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|    402|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    402|        const std::size_t remaining = ia.bulk_remaining();
23951|    402|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 48, False: 354]
  ------------------
23952|     48|        {
23953|     48|            return false; // (the loop reports the premature end)
23954|     48|        }
23955|    354|        const auto n = static_cast<std::size_t>(ulen);
23956|    354|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    354|        ia.bulk_skip(n);
23958|    354|        chars_read += n;
23959|    354|        return true;
23960|    402|    }
_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|    523|    {
21921|    523|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    523|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 491]
  |  |  ------------------
  ------------------
21922|     32|        {
21923|     32|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     32|        }
21925|    491|        return true;
21926|    523|    }
_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|    529|    {
21921|    529|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|    529|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 63, False: 466]
  |  |  ------------------
  ------------------
21922|     63|        {
21923|     63|            return last_byte_error(exception_id::invalid_string_or_size, "string length must not be negative", "string");
21924|     63|        }
21925|    466|        return true;
21926|    529|    }
_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|    466|    {
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|    466|        return get_bytes(len, "string", result);
23778|    466|    }
_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|    466|    {
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|    466|        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|    466|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 141, False: 325]
  ------------------
23898|    141|        {
23899|    141|            return true;
23900|    141|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|    325|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|    325|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 149, False: 176]
  ------------------
23906|    149|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    149|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 35, False: 114]
  ------------------
23910|    149|                                       ? static_cast<std::size_t>(len)
23911|    149|                                       : chunk_size;
23912|    149|            const std::size_t old_size = result.size();
23913|    149|            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|    149|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    149|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 149, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    149|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    149|            chars_read += bytes_read;
23921|    149|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    149|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 149, False: 0]
  |  |  ------------------
  ------------------
23922|    149|            {
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|    149|                result.resize(old_size + bytes_read);
23927|    149|                ++chars_read;
23928|    149|                current = char_traits<char_type>::eof();
23929|    149|                return unexpect_eof(context);
23930|    149|            }
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|    176|        return true;
23936|    325|    }
_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|    466|    {
23943|    466|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 176, False: 290]
  ------------------
23944|    176|        {
23945|    176|            return false;
23946|    176|        }
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|    290|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    290|        const std::size_t remaining = ia.bulk_remaining();
23951|    290|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 149, False: 141]
  ------------------
23952|    149|        {
23953|    149|            return false; // (the loop reports the premature end)
23954|    149|        }
23955|    141|        const auto n = static_cast<std::size_t>(ulen);
23956|    141|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    141|        ia.bulk_skip(n);
23958|    141|        chars_read += n;
23959|    141|        return true;
23960|    290|    }
_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_lengthImEEbRSC_PKc:
23846|    584|    {
23847|    584|        NumberType len{};
23848|    584|        return get_number(len) && get_string(len, result) && check_string_utf8(result, context);
  ------------------
  |  Branch (23848:16): [True: 564, False: 20]
  |  Branch (23848:35): [True: 392, False: 172]
  |  Branch (23848:62): [True: 392, False: 0]
  ------------------
23849|    584|    }
_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_stringImEEbT_RSC_:
23767|    564|    {
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|    564|        return get_bytes(len, "string", result);
23778|    564|    }
_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|    890|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    890|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    890|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 757, False: 133]
  ------------------
24059|    890|    }
_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|   320k|    {
23523|   320k|        do
23524|   326k|        {
23525|   326k|            get();
23526|   326k|        }
23527|   326k|        while (current == 'N');
  ------------------
  |  Branch (23527:16): [True: 5.94k, False: 320k]
  ------------------
23528|       |
23529|   320k|        return current;
23530|   320k|    }
_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|   514k|    {
23489|   514k|        ++chars_read;
23490|   514k|        return current = ia.get_character();
23491|   514k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter13get_characterEv:
 9568|   514k|    {
 9569|       |        // what getc_unlocked() does, while the buffer has characters
 9570|   514k|        const char* const next = buffer_ptr();
 9571|   514k|        if (JSON_HEDLEY_LIKELY(next != buffer_end()))
  ------------------
  |  | 1696|   514k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 487k, False: 26.8k]
  |  |  ------------------
  ------------------
 9572|   487k|        {
 9573|   487k|            current_in_buffer = true;
 9574|   487k|            buffer_bump(1);
 9575|   487k|            return std::char_traits<char>::to_int_type(*next);
 9576|   487k|        }
 9577|  26.8k|        return get_character_slow();
 9578|   514k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter18get_character_slowEv:
 9706|  26.8k|    {
 9707|  26.8k|        if (token_segment != nullptr)
  ------------------
  |  Branch (9707:13): [True: 0, False: 26.8k]
  ------------------
 9708|      0|        {
 9709|      0|            token_carry.append(token_segment, buffer_end());
 9710|      0|            token_segment = nullptr;
 9711|      0|        }
 9712|  26.8k|        const auto res = getc_unlocked(m_file);
 9713|  26.8k|        if (res == EOF)
  ------------------
  |  Branch (9713:13): [True: 10.8k, False: 15.9k]
  ------------------
 9714|  10.8k|        {
 9715|  10.8k|            current_in_buffer = false;
 9716|  10.8k|            return std::char_traits<char>::eof();
 9717|  10.8k|        }
 9718|       |        // the character was taken from the refilled buffer, at buffer_ptr() - 1
 9719|  15.9k|        current_in_buffer = true;
 9720|  15.9k|        if (tracking_token)
  ------------------
  |  Branch (9720:13): [True: 0, False: 15.9k]
  ------------------
 9721|      0|        {
 9722|      0|            token_segment = buffer_ptr() - 1;
 9723|      0|        }
 9724|  15.9k|        return res;
 9725|  26.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_bindingD2Ev:
19134|  15.9k|        {
19135|  15.9k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 15.9k, False: 0]
  ------------------
19136|  15.9k|            {
19137|  15.9k|                parser->set_reserve_state(saved);
19138|  15.9k|            }
19139|  15.9k|        }
_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|  15.9k|    ~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|  15.9k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterEP8_IO_FILE:
10862|  15.9k|{
10863|  15.9k|    if (file == nullptr)
  ------------------
  |  Branch (10863:9): [True: 0, False: 15.9k]
  ------------------
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|  15.9k|    return file_input_adapter(file);
10868|  15.9k|}
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EP8_IO_FILE:
 9539|  15.9k|        : m_file(f)
 9540|  15.9k|    {
 9541|  15.9k|        JSON_ASSERT(m_file != nullptr);
  ------------------
  |  | 2653|  15.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9541:9): [True: 15.9k, False: 0]
  ------------------
 9542|  15.9k|        lock();
 9543|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter4lockEv:
 9733|  15.9k|    {
 9734|  15.9k|#if JSON_UNLOCKED_FILE_IO == 1
 9735|  15.9k|        flockfile(m_file);
 9736|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9737|       |        _lock_file(m_file);
 9738|       |#endif
 9739|  15.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterD2Ev:
 9562|  31.8k|    {
 9563|  31.8k|        unlock();
 9564|  31.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter6unlockEv:
 9742|  31.8k|    {
 9743|       |        // a moved-from adapter has no file and holds no lock
 9744|  31.8k|        if (m_file == nullptr)
  ------------------
  |  Branch (9744:13): [True: 15.9k, False: 15.9k]
  ------------------
 9745|  15.9k|        {
 9746|  15.9k|            return;
 9747|  15.9k|        }
 9748|  15.9k|#if JSON_UNLOCKED_FILE_IO == 1
 9749|  15.9k|        funlockfile(m_file);
 9750|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9751|       |        _unlock_file(m_file);
 9752|       |#endif
 9753|  15.9k|    }

LLVMFuzzerTestOneInput:
   83|  15.9k|{
   84|  15.9k|    std::vector<uint8_t> const vec1(data, data + size);
   85|       |
   86|       |    // step 0: parse input without exceptions
   87|  15.9k|    bool noexcept_threw = false;
   88|  15.9k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_bjdata(vec1, true, false); }, noexcept_threw);
   89|       |    // whether step 1 succeeded; if not, the catch blocks below check that
   90|       |    // step 0 failed, too
   91|  15.9k|    bool parsed = false;
   92|       |
   93|  15.9k|    try
   94|  15.9k|    {
   95|       |        // step 1: parse input
   96|  15.9k|        json const j1 = json::from_bjdata(vec1);
   97|  15.9k|        parsed = true;
   98|       |
   99|       |        // without exceptions, the same input must give the same value
  100|  15.9k|        assert(!noexcept_threw && !j_noexcept.is_discarded() && same_value(j_noexcept, j1));
  ------------------
  |  Branch (100:9): [True: 8.38k, False: 7.54k]
  |  Branch (100:9): [True: 8.38k, False: 0]
  |  Branch (100:9): [True: 8.38k, False: 0]
  |  Branch (100:9): [True: 8.38k, False: 7.54k]
  ------------------
  101|       |
  102|  8.38k|        try
  103|  8.38k|        {
  104|       |            // step 2.1: round trip without adding size annotations to container types
  105|  8.38k|            std::vector<uint8_t> const vec2 = json::to_bjdata(j1, false, false);
  106|       |
  107|       |            // step 2.2: round trip with adding size annotations but without adding type annotations to container types
  108|  8.38k|            std::vector<uint8_t> const vec3 = json::to_bjdata(j1, true, false);
  109|       |
  110|       |            // step 2.3: round trip with adding size as well as type annotations to container types
  111|  8.38k|            std::vector<uint8_t> const vec4 = json::to_bjdata(j1, true, true);
  112|       |
  113|       |            // parse serialization
  114|  8.38k|            json const j2 = json::from_bjdata(vec2);
  115|  8.38k|            json const j3 = json::from_bjdata(vec3);
  116|  8.38k|            json const j4 = json::from_bjdata(vec4);
  117|       |
  118|       |            // re-serializing must be value-stable (see the notes above on
  119|       |            // why byte-exact stability is not guaranteed in general, and
  120|       |            // why this compares dump()s rather than the values directly)
  121|  8.38k|            assert(is_value_stable(json::from_bjdata(json::to_bjdata(j2, false, false)), j2));
  ------------------
  |  Branch (121:13): [True: 7.02k, False: 1.35k]
  ------------------
  122|  8.38k|            assert(is_value_stable(json::from_bjdata(json::to_bjdata(j3, true, false)), j3));
  ------------------
  |  Branch (122:13): [True: 7.02k, False: 0]
  ------------------
  123|  7.02k|            assert(is_value_stable(json::from_bjdata(json::to_bjdata(j4, true, true)), j4));
  ------------------
  |  Branch (123:13): [True: 7.02k, False: 0]
  ------------------
  124|  7.02k|        }
  125|  8.38k|        catch (const json::parse_error&)
  126|  8.38k|        {
  127|       |            // parsing a BJData serialization must not fail
  128|      0|            assert(false);
  ------------------
  |  Branch (128:13): [Folded, False: 0]
  ------------------
  129|      0|        }
  130|  8.38k|    }
  131|  15.9k|    catch (const json::parse_error&)
  132|  15.9k|    {
  133|       |        // parse errors are ok, because input may be random bytes
  134|  6.98k|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (134:9): [True: 0, False: 6.98k]
  |  Branch (134:9): [True: 0, False: 6.98k]
  |  Branch (134:9): [True: 6.98k, False: 0]
  |  Branch (134:9): [True: 6.98k, False: 0]
  ------------------
  135|  6.98k|    }
  136|  15.9k|    catch (const json::type_error&)
  137|  15.9k|    {
  138|       |        // type errors can occur during parsing, too
  139|  1.35k|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (139:9): [True: 1.35k, False: 0]
  |  Branch (139:9): [True: 0, False: 0]
  |  Branch (139:9): [True: 0, False: 0]
  |  Branch (139:9): [True: 1.35k, False: 0]
  ------------------
  140|  1.35k|    }
  141|  15.9k|    catch (const json::out_of_range&)
  142|  15.9k|    {
  143|       |        // out of range errors may happen if provided sizes are excessive
  144|    559|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (144:9): [True: 0, False: 559]
  |  Branch (144:9): [True: 0, False: 559]
  |  Branch (144:9): [True: 559, False: 0]
  |  Branch (144:9): [True: 559, False: 0]
  ------------------
  145|    559|    }
  146|       |
  147|       |    // step 3: the other input adapters must read the data alike
  148|  15.9k|    check_input_adapters(data, size, read_bjdata());
  149|       |
  150|       |    // return 0 - non-zero return values are reserved for future use
  151|  15.9k|    return 0;
  152|  15.9k|}
fuzzer-parse_bjdata.cpp:_ZL15is_value_stableRKN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEESG_:
   77|  22.4k|{
   78|  22.4k|    return lhs.dump() == rhs.dump();
   79|  22.4k|}
fuzzer-parse_bjdata.cpp:_ZZ22LLVMFuzzerTestOneInputENK3$_0clEv:
   88|  15.9k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_bjdata(vec1, true, false); }, noexcept_threw);
fuzzer-parse_bjdata.cpp:_ZNK12_GLOBAL__N_111read_bjdataclIJRPKhS3_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   68|  15.9k|    {
   69|  15.9k|        return json::from_bjdata(std::forward<Args>(args)...);
   70|  15.9k|    }
fuzzer-parse_bjdata.cpp:_ZNK12_GLOBAL__N_111read_bjdataclIJRNSt3__119basic_istringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcS5_S7_EEblmdS6_NSB_14adl_serializerENSE_IhNS6_IhEEEEvEEDpOT_:
   68|  15.9k|    {
   69|  15.9k|        return json::from_bjdata(std::forward<Args>(args)...);
   70|  15.9k|    }
fuzzer-parse_bjdata.cpp:_ZNK12_GLOBAL__N_111read_bjdataclIJNSt3__121__list_const_iteratorIhPvEES5_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdSE_NS7_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   68|  15.9k|    {
   69|  15.9k|        return json::from_bjdata(std::forward<Args>(args)...);
   70|  15.9k|    }
fuzzer-parse_bjdata.cpp:_ZNK12_GLOBAL__N_111read_bjdataclIJRP8_IO_FILEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   68|  15.9k|    {
   69|  15.9k|        return json::from_bjdata(std::forward<Args>(args)...);
   70|  15.9k|    }

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

