_Z16htole16_internalt:
   19|  3.15k|{
   20|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_16(host_16bits);
   21|  3.15k|        else return host_16bits;
   22|  3.15k|}
_Z16le16toh_internalt:
   29|  1.35k|{
   30|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_16(little_endian_16bits);
   31|  1.35k|        else return little_endian_16bits;
   32|  1.35k|}
_Z16htole32_internalj:
   39|  4.08k|{
   40|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_32(host_32bits);
   41|  4.08k|        else return host_32bits;
   42|  4.08k|}
_Z16le32toh_internalj:
   49|  4.30k|{
   50|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_32(little_endian_32bits);
   51|  4.30k|        else return little_endian_32bits;
   52|  4.30k|}
_Z16htole64_internalm:
   59|  3.06k|{
   60|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_64(host_64bits);
   61|  3.06k|        else return host_64bits;
   62|  3.06k|}
_Z16le64toh_internalm:
   69|  4.52k|{
   70|       |    if constexpr (std::endian::native == std::endian::big) return internal_bswap_64(little_endian_64bits);
   71|  4.52k|        else return little_endian_64bits;
   72|  4.52k|}

_Z11UnserializeI8AutoFileEvRT_Rb:
  286|  2.02k|template <typename Stream> inline void Unserialize(Stream& s, bool& a) { uint8_t f = ser_readdata8(s); a = f; }
_Z13ser_readdata8I8AutoFileEhRT_:
   84|  13.8k|{
   85|  13.8k|    uint8_t obj;
   86|  13.8k|    s.read(AsWritableBytes(Span{&obj, 1}));
   87|  13.8k|    return obj;
   88|  13.8k|}
_Z11UnserializeI8AutoFileEvRT_Ra:
  272|    568|template<typename Stream> inline void Unserialize(Stream& s, int8_t& a  ) { a = ser_readdata8(s); }
_Z11UnserializeI8AutoFileEvRT_Rh:
  273|    753|template<typename Stream> inline void Unserialize(Stream& s, uint8_t& a ) { a = ser_readdata8(s); }
_Z11UnserializeI8AutoFileEvRT_Rs:
  274|    700|template<typename Stream> inline void Unserialize(Stream& s, int16_t& a ) { a = ser_readdata16(s); }
_Z14ser_readdata16I8AutoFileEtRT_:
   90|  1.62k|{
   91|  1.62k|    uint16_t obj;
   92|  1.62k|    s.read(AsWritableBytes(Span{&obj, 1}));
   93|  1.62k|    return le16toh_internal(obj);
   94|  1.62k|}
_Z11UnserializeI8AutoFileEvRT_Rt:
  275|    336|template<typename Stream> inline void Unserialize(Stream& s, uint16_t& a) { a = ser_readdata16(s); }
_Z11UnserializeI8AutoFileEvRT_Ri:
  276|  3.88k|template<typename Stream> inline void Unserialize(Stream& s, int32_t& a ) { a = ser_readdata32(s); }
_Z14ser_readdata32I8AutoFileEjRT_:
  102|  4.94k|{
  103|  4.94k|    uint32_t obj;
  104|  4.94k|    s.read(AsWritableBytes(Span{&obj, 1}));
  105|  4.94k|    return le32toh_internal(obj);
  106|  4.94k|}
_Z11UnserializeI8AutoFileEvRT_Rj:
  277|    534|template<typename Stream> inline void Unserialize(Stream& s, uint32_t& a) { a = ser_readdata32(s); }
_Z11UnserializeI8AutoFileEvRT_Rl:
  278|  3.52k|template<typename Stream> inline void Unserialize(Stream& s, int64_t& a ) { a = ser_readdata64(s); }
_Z14ser_readdata64I8AutoFileEmRT_:
  114|  4.96k|{
  115|  4.96k|    uint64_t obj;
  116|  4.96k|    s.read(AsWritableBytes(Span{&obj, 1}));
  117|  4.96k|    return le64toh_internal(obj);
  118|  4.96k|}
_Z11UnserializeI8AutoFileEvRT_Rm:
  279|    654|template<typename Stream> inline void Unserialize(Stream& s, uint64_t& a) { a = ser_readdata64(s); }
_Z11UnserializeI8AutoFilecEvRT_RNSt3__112basic_stringIT0_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEE:
  797|  5.01k|{
  798|  5.01k|    unsigned int nSize = ReadCompactSize(is);
  799|  5.01k|    str.resize(nSize);
  800|  5.01k|    if (nSize != 0)
  ------------------
  |  Branch (800:9): [True: 3.17k, False: 1.83k]
  ------------------
  801|  3.17k|        is.read(MakeWritableByteSpan(str));
  802|  5.01k|}
_Z15ReadCompactSizeI8AutoFileEmRT_b:
  340|  10.4k|{
  341|  10.4k|    uint8_t chSize = ser_readdata8(is);
  342|  10.4k|    uint64_t nSizeRet = 0;
  343|  10.4k|    if (chSize < 253)
  ------------------
  |  Branch (343:9): [True: 7.81k, False: 2.64k]
  ------------------
  344|  7.81k|    {
  345|  7.81k|        nSizeRet = chSize;
  346|  7.81k|    }
  347|  2.64k|    else if (chSize == 253)
  ------------------
  |  Branch (347:14): [True: 587, False: 2.06k]
  ------------------
  348|    587|    {
  349|    587|        nSizeRet = ser_readdata16(is);
  350|    587|        if (nSizeRet < 253)
  ------------------
  |  Branch (350:13): [True: 84, False: 503]
  ------------------
  351|     84|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  352|    587|    }
  353|  2.06k|    else if (chSize == 254)
  ------------------
  |  Branch (353:14): [True: 532, False: 1.52k]
  ------------------
  354|    532|    {
  355|    532|        nSizeRet = ser_readdata32(is);
  356|    532|        if (nSizeRet < 0x10000u)
  ------------------
  |  Branch (356:13): [True: 93, False: 439]
  ------------------
  357|     93|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  358|    532|    }
  359|  1.52k|    else
  360|  1.52k|    {
  361|  1.52k|        nSizeRet = ser_readdata64(is);
  362|  1.52k|        if (nSizeRet < 0x100000000ULL)
  ------------------
  |  Branch (362:13): [True: 122, False: 1.40k]
  ------------------
  363|    122|            throw std::ios_base::failure("non-canonical ReadCompactSize()");
  364|  1.52k|    }
  365|  10.1k|    if (range_check && nSizeRet > MAX_SIZE) {
  ------------------
  |  Branch (365:9): [True: 9.41k, False: 749]
  |  Branch (365:24): [True: 995, False: 8.42k]
  ------------------
  366|    995|        throw std::ios_base::failure("ReadCompactSize(): size too large");
  367|    995|    }
  368|  9.16k|    return nSizeRet;
  369|  10.1k|}
_Z11UnserializeI8AutoFilehNSt3__19allocatorIhEEEvRT_RNS1_6vectorIT0_T1_EE:
  866|  5.44k|{
  867|  5.44k|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  868|       |        // Limit size per read so bogus size value won't cause out of memory
  869|  5.44k|        v.clear();
  870|  5.44k|        unsigned int nSize = ReadCompactSize(is);
  871|  5.44k|        unsigned int i = 0;
  872|  8.70k|        while (i < nSize) {
  ------------------
  |  Branch (872:16): [True: 3.25k, False: 5.44k]
  ------------------
  873|  3.25k|            unsigned int blk = std::min(nSize - i, (unsigned int)(1 + 4999999 / sizeof(T)));
  874|  3.25k|            v.resize(i + blk);
  875|  3.25k|            is.read(AsWritableBytes(Span{&v[i], blk}));
  876|  3.25k|            i += blk;
  877|  3.25k|        }
  878|       |    } else {
  879|       |        Unserialize(is, Using<VectorFormatter<DefaultFormatter>>(v));
  880|       |    }
  881|  5.44k|}
_Z9SerializeI8AutoFileEvRT_b:
  285|  4.06k|template <typename Stream> inline void Serialize(Stream& s, bool a) { uint8_t f = a; ser_writedata8(s, f); }
_Z14ser_writedata8I8AutoFileEvRT_h:
   55|  62.2k|{
   56|  62.2k|    s.write(AsBytes(Span{&obj, 1}));
   57|  62.2k|}
_Z9SerializeI8AutoFileEvRT_a:
  257|  11.9k|template<typename Stream> inline void Serialize(Stream& s, int8_t a  ) { ser_writedata8(s, a); }
_Z9SerializeI8AutoFileEvRT_h:
  258|  3.93k|template<typename Stream> inline void Serialize(Stream& s, uint8_t a ) { ser_writedata8(s, a); }
_Z9SerializeI8AutoFileEvRT_s:
  259|  2.08k|template<typename Stream> inline void Serialize(Stream& s, int16_t a ) { ser_writedata16(s, a); }
_Z15ser_writedata16I8AutoFileEvRT_t:
   59|  3.15k|{
   60|  3.15k|    obj = htole16_internal(obj);
   61|  3.15k|    s.write(AsBytes(Span{&obj, 1}));
   62|  3.15k|}
_Z9SerializeI8AutoFileEvRT_t:
  260|  1.07k|template<typename Stream> inline void Serialize(Stream& s, uint16_t a) { ser_writedata16(s, a); }
_Z9SerializeI8AutoFileEvRT_i:
  261|  2.73k|template<typename Stream> inline void Serialize(Stream& s, int32_t a ) { ser_writedata32(s, a); }
_Z15ser_writedata32I8AutoFileEvRT_j:
   69|  4.08k|{
   70|  4.08k|    obj = htole32_internal(obj);
   71|  4.08k|    s.write(AsBytes(Span{&obj, 1}));
   72|  4.08k|}
_Z9SerializeI8AutoFileEvRT_j:
  262|  1.34k|template<typename Stream> inline void Serialize(Stream& s, uint32_t a) { ser_writedata32(s, a); }
_Z9SerializeI8AutoFileEvRT_l:
  263|  1.65k|template<typename Stream> inline void Serialize(Stream& s, int64_t a ) { ser_writedata64(s, a); }
_Z15ser_writedata64I8AutoFileEvRT_m:
   79|  3.06k|{
   80|  3.06k|    obj = htole64_internal(obj);
   81|  3.06k|    s.write(AsBytes(Span{&obj, 1}));
   82|  3.06k|}
_Z9SerializeI8AutoFileEvRT_m:
  264|  1.41k|template<typename Stream> inline void Serialize(Stream& s, uint64_t a) { ser_writedata64(s, a); }
_Z9SerializeI8AutoFilecEvRT_RKNSt3__112basic_stringIT0_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEE:
  789|  38.6k|{
  790|  38.6k|    WriteCompactSize(os, str.size());
  791|  38.6k|    if (!str.empty())
  ------------------
  |  Branch (791:9): [True: 35.5k, False: 3.19k]
  ------------------
  792|  35.5k|        os.write(MakeByteSpan(str));
  793|  38.6k|}
_Z16WriteCompactSizeI8AutoFileEvRT_m:
  309|  42.3k|{
  310|  42.3k|    if (nSize < 253)
  ------------------
  |  Branch (310:9): [True: 42.3k, False: 0]
  ------------------
  311|  42.3k|    {
  312|  42.3k|        ser_writedata8(os, nSize);
  313|  42.3k|    }
  314|      0|    else if (nSize <= std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (314:14): [True: 0, False: 0]
  ------------------
  315|      0|    {
  316|      0|        ser_writedata8(os, 253);
  317|      0|        ser_writedata16(os, nSize);
  318|      0|    }
  319|      0|    else if (nSize <= std::numeric_limits<unsigned int>::max())
  ------------------
  |  Branch (319:14): [True: 0, False: 0]
  ------------------
  320|      0|    {
  321|      0|        ser_writedata8(os, 254);
  322|      0|        ser_writedata32(os, nSize);
  323|      0|    }
  324|      0|    else
  325|      0|    {
  326|      0|        ser_writedata8(os, 255);
  327|      0|        ser_writedata64(os, nSize);
  328|      0|    }
  329|  42.3k|    return;
  330|  42.3k|}
_Z9SerializeI8AutoFilehNSt3__19allocatorIhEEEvRT_RKNS1_6vectorIT0_T1_EE:
  846|  3.65k|{
  847|  3.65k|    if constexpr (BasicByte<T>) { // Use optimized version for unformatted basic bytes
  848|  3.65k|        WriteCompactSize(os, v.size());
  849|  3.65k|        if (!v.empty()) os.write(MakeByteSpan(v));
  ------------------
  |  Branch (849:13): [True: 2.34k, False: 1.30k]
  ------------------
  850|       |    } else if constexpr (std::is_same_v<T, bool>) {
  851|       |        // A special case for std::vector<bool>, as dereferencing
  852|       |        // std::vector<bool>::const_iterator does not result in a const bool&
  853|       |        // due to std::vector's special casing for bool arguments.
  854|       |        WriteCompactSize(os, v.size());
  855|       |        for (bool elem : v) {
  856|       |            ::Serialize(os, elem);
  857|       |        }
  858|       |    } else {
  859|       |        Serialize(os, Using<VectorFormatter<DefaultFormatter>>(v));
  860|       |    }
  861|  3.65k|}

_ZNK4SpanISt4byteE5firstEm:
  206|  9.09k|    {
  207|  9.09k|        ASSERT_IF_DEBUG(size() >= count);
  208|  9.09k|        return Span<C>(m_data, count);
  209|  9.09k|    }
_ZNK4SpanIKSt4byteE4sizeEv:
  187|  12.9M|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanIKcE4dataEv:
  174|  35.5k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKSt4byteE4dataEv:
  174|   100k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIhE4dataEv:
  174|  79.3k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKhE4dataEv:
  174|  2.34k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanISt4byteE4sizeEv:
  187|  12.7M|    constexpr std::size_t size() const noexcept { return m_size; }
_ZNK4SpanISt4byteEixEm:
  191|  12.6M|    {
  192|  12.6M|        ASSERT_IF_DEBUG(size() > pos);
  193|  12.6M|        return m_data[pos];
  194|  12.6M|    }
_ZNK4SpanIKSt4byteEixEm:
  191|  12.6M|    {
  192|  12.6M|        ASSERT_IF_DEBUG(size() > pos);
  193|  12.6M|        return m_data[pos];
  194|  12.6M|    }
_ZNK4SpanISt4byteE4dataEv:
  174|  40.0k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIKSt4byteE5beginEv:
  175|  18.1k|    constexpr C* begin() const noexcept { return m_data; }
_ZNK4SpanISt4byteE7subspanEmm:
  201|  11.9k|    {
  202|  11.9k|        ASSERT_IF_DEBUG(size() >= offset + count);
  203|  11.9k|        return Span<C>(m_data + offset, count);
  204|  11.9k|    }
_ZNK4SpanIKhE10size_bytesEv:
  188|  2.34k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIKhE4SpanIKSt4byteES1_IT_E:
  259|  2.34k|{
  260|  2.34k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  2.34k|}
_Z12MakeByteSpanIRKNSt3__16vectorIhNS0_9allocatorIhEEEEE4SpanIKSt4byteEOT_:
  270|  2.34k|{
  271|  2.34k|    return AsBytes(Span{std::forward<V>(v)});
  272|  2.34k|}
_ZN4SpanIKhEC2INSt3__16vectorIhNS3_9allocatorIhEEEEEERKT_NS3_9enable_ifIXaaaantsr7is_SpanIS8_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalISA_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalISA_EE4sizeEEmEE5valueEDnE4typeE:
  172|  2.34k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKSt4byteEC2IS1_TnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_S1_EE5valueEiE4typeELi0EEEPS6_m:
  119|   123k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_ZNK4SpanIjE4dataEv:
  174|  9.02k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIjE10size_bytesEv:
  188|  9.02k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIjE4SpanIKSt4byteES0_IT_E:
  259|  4.08k|{
  260|  4.08k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  4.08k|}
_ZNK4SpanIhE10size_bytesEv:
  188|  79.3k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesIhE4SpanIKSt4byteES0_IT_E:
  259|  62.2k|{
  260|  62.2k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  62.2k|}
_ZNK4SpanItE4dataEv:
  174|  4.78k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanItE10size_bytesEv:
  188|  4.78k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesItE4SpanIKSt4byteES0_IT_E:
  259|  3.15k|{
  260|  3.15k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  3.15k|}
_ZNK4SpanImE4dataEv:
  174|  8.03k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanImE10size_bytesEv:
  188|  8.03k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_Z7AsBytesImE4SpanIKSt4byteES0_IT_E:
  259|  3.06k|{
  260|  3.06k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  3.06k|}
_ZN4SpanISt4byteEC2IS0_TnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_S0_EE5valueEiE4typeELi0EEEPS5_m:
  119|  54.0k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesIhE4SpanISt4byteES0_IT_E:
  264|  17.0k|{
  265|  17.0k|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  17.0k|}
_ZN4SpanIhEC2IhTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_hEE5valueEiE4typeELi0EEEPS4_m:
  119|  79.3k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesItE4SpanISt4byteES0_IT_E:
  264|  1.62k|{
  265|  1.62k|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  1.62k|}
_ZN4SpanItEC2ItTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_tEE5valueEiE4typeELi0EEEPS4_m:
  119|  4.78k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesIjE4SpanISt4byteES0_IT_E:
  264|  4.94k|{
  265|  4.94k|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  4.94k|}
_ZN4SpanIjEC2IjTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_jEE5valueEiE4typeELi0EEEPS4_m:
  119|  9.02k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z15AsWritableBytesImE4SpanISt4byteES0_IT_E:
  264|  4.96k|{
  265|  4.96k|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  4.96k|}
_ZN4SpanImEC2ImTnNSt3__19enable_ifIXsr3std14is_convertibleIPA_T_PA_mEE5valueEiE4typeELi0EEEPS4_m:
  119|  8.03k|    constexpr Span(T* begin, std::size_t size) noexcept : m_data(begin), m_size(size) {}
_Z20MakeWritableByteSpanIRNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE4SpanISt4byteEOT_:
  275|  3.17k|{
  276|  3.17k|    return AsWritableBytes(Span{std::forward<V>(v)});
  277|  3.17k|}
_Z15AsWritableBytesIcE4SpanISt4byteES0_IT_E:
  264|  3.17k|{
  265|  3.17k|    return {reinterpret_cast<std::byte*>(s.data()), s.size_bytes()};
  266|  3.17k|}
_ZNK4SpanIcE4dataEv:
  174|  3.17k|    constexpr C* data() const noexcept { return m_data; }
_ZNK4SpanIcE10size_bytesEv:
  188|  3.17k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_ZN4SpanIcEC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERT_NS2_9enable_ifIXaaaantsr7is_SpanIS9_EE5valuesr3std14is_convertibleIPA_NS2_14remove_pointerIDTcldtclsr3stdE7declvalISA_EE4dataEEE4typeEPA_cEE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalISA_EE4sizeEEmEE5valueEDnE4typeE:
  165|  3.17k|        : m_data(other.data()), m_size(other.size()){}
_Z12MakeByteSpanIRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE4SpanIKSt4byteEOT_:
  270|  35.5k|{
  271|  35.5k|    return AsBytes(Span{std::forward<V>(v)});
  272|  35.5k|}
_Z7AsBytesIKcE4SpanIKSt4byteES1_IT_E:
  259|  35.5k|{
  260|  35.5k|    return {reinterpret_cast<const std::byte*>(s.data()), s.size_bytes()};
  261|  35.5k|}
_ZNK4SpanIKcE10size_bytesEv:
  188|  35.5k|    constexpr std::size_t size_bytes() const noexcept { return sizeof(C) * m_size; }
_ZN4SpanIKcEC2INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERKT_NS3_9enable_ifIXaaaantsr7is_SpanISA_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalISC_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalISC_EE4sizeEEmEE5valueEDnE4typeE:
  172|  35.5k|        : m_data(other.data()), m_size(other.size()){}
_ZN4SpanIKSt4byteEC2INSt3__16vectorIS0_NS4_9allocatorIS0_EEEEEERT_NS4_9enable_ifIXaaaantsr7is_SpanIS9_EE5valuesr3std14is_convertibleIPA_NS4_14remove_pointerIDTcldtclsr3stdE7declvalISA_EE4dataEEE4typeEPA_S1_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalISA_EE4sizeEEmEE5valueEDnE4typeE:
  165|  21.0k|        : m_data(other.data()), m_size(other.size()){}
_ZNK4SpanISt4byteE5beginEv:
  175|  9.09k|    constexpr C* begin() const noexcept { return m_data; }
_ZN4SpanISt4byteEC2INSt3__15arrayIS0_Lm4096EEEEERT_NS3_9enable_ifIXaaaantsr7is_SpanIS6_EE5valuesr3std14is_convertibleIPA_NS3_14remove_pointerIDTcldtclsr3stdE7declvalIS7_EE4dataEEE4typeEPA_S0_EE5valuesr3std14is_convertibleIDTcldtclsr3stdE7declvalIS7_EE4sizeEEmEE5valueEDnE4typeE:
  165|  9.09k|        : m_data(other.data()), m_size(other.size()){}
_ZNK4SpanIKSt4byteE7subspanEm:
  196|  8.63k|    {
  197|  8.63k|        ASSERT_IF_DEBUG(size() >= offset);
  198|  8.63k|        return Span<C>(m_data + offset, m_size - offset);
  199|  8.63k|    }

_ZN8AutoFileC2EP8_IO_FILENSt3__16vectorISt4byteNS2_9allocatorIS4_EEEE:
   13|  2.09k|    : m_file{file}, m_xor{std::move(data_xor)}
   14|  2.09k|{
   15|  2.09k|    if (!IsNull()) {
  ------------------
  |  Branch (15:9): [True: 1.40k, False: 691]
  ------------------
   16|  1.40k|        auto pos{std::ftell(m_file)};
   17|  1.40k|        if (pos >= 0) m_position = pos;
  ------------------
  |  Branch (17:13): [True: 844, False: 560]
  ------------------
   18|  1.40k|    }
   19|  2.09k|}
_ZN8AutoFile12detail_freadE4SpanISt4byteE:
   22|  32.9k|{
   23|  32.9k|    if (!m_file) throw std::ios_base::failure("AutoFile::read: file handle is nullptr");
  ------------------
  |  Branch (23:9): [True: 2.02k, False: 30.9k]
  ------------------
   24|  30.9k|    size_t ret = std::fread(dst.data(), 1, dst.size(), m_file);
   25|  30.9k|    if (!m_xor.empty()) {
  ------------------
  |  Branch (25:9): [True: 12.1k, False: 18.7k]
  ------------------
   26|  12.1k|        if (!m_position.has_value()) throw std::ios_base::failure("AutoFile::read: position unknown");
  ------------------
  |  Branch (26:13): [True: 153, False: 11.9k]
  ------------------
   27|  11.9k|        util::Xor(dst.subspan(0, ret), m_xor, *m_position);
   28|  11.9k|    }
   29|  30.7k|    if (m_position.has_value()) *m_position += ret;
  ------------------
  |  Branch (29:9): [True: 24.9k, False: 5.83k]
  ------------------
   30|  30.7k|    return ret;
   31|  30.9k|}
_ZN8AutoFile4readE4SpanISt4byteE:
   61|  32.9k|{
   62|  32.9k|    if (detail_fread(dst) != dst.size()) {
  ------------------
  |  Branch (62:9): [True: 1.52k, False: 31.4k]
  ------------------
   63|  1.52k|        throw std::ios_base::failure(feof() ? "AutoFile::read: end of file" : "AutoFile::read: fread failed");
  ------------------
  |  Branch (63:38): [True: 489, False: 1.03k]
  ------------------
   64|  1.52k|    }
   65|  32.9k|}
_ZN8AutoFile6ignoreEm:
   68|  1.51k|{
   69|  1.51k|    if (!m_file) throw std::ios_base::failure("AutoFile::ignore: file handle is nullptr");
  ------------------
  |  Branch (69:9): [True: 753, False: 759]
  ------------------
   70|    759|    unsigned char data[4096];
   71|    983|    while (nSize > 0) {
  ------------------
  |  Branch (71:12): [True: 660, False: 323]
  ------------------
   72|    660|        size_t nNow = std::min<size_t>(nSize, sizeof(data));
   73|    660|        if (std::fread(data, 1, nNow, m_file) != nNow) {
  ------------------
  |  Branch (73:13): [True: 436, False: 224]
  ------------------
   74|    436|            throw std::ios_base::failure(feof() ? "AutoFile::ignore: end of file" : "AutoFile::ignore: fread failed");
  ------------------
  |  Branch (74:42): [True: 97, False: 339]
  ------------------
   75|    436|        }
   76|    224|        nSize -= nNow;
   77|    224|        if (m_position.has_value()) *m_position += nNow;
  ------------------
  |  Branch (77:13): [True: 129, False: 95]
  ------------------
   78|    224|    }
   79|    759|}
_ZN8AutoFile5writeE4SpanIKSt4byteE:
   82|   115k|{
   83|   115k|    if (!m_file) throw std::ios_base::failure("AutoFile::write: file handle is nullptr");
  ------------------
  |  Branch (83:9): [True: 5.36k, False: 109k]
  ------------------
   84|   109k|    if (m_xor.empty()) {
  ------------------
  |  Branch (84:9): [True: 100k, False: 9.31k]
  ------------------
   85|   100k|        if (std::fwrite(src.data(), 1, src.size(), m_file) != src.size()) {
  ------------------
  |  Branch (85:13): [True: 933, False: 99.7k]
  ------------------
   86|    933|            throw std::ios_base::failure("AutoFile::write: write failed");
   87|    933|        }
   88|  99.7k|        if (m_position.has_value()) *m_position += src.size();
  ------------------
  |  Branch (88:13): [True: 95.4k, False: 4.23k]
  ------------------
   89|  99.7k|    } else {
   90|  9.31k|        if (!m_position.has_value()) throw std::ios_base::failure("AutoFile::write: position unknown");
  ------------------
  |  Branch (90:13): [True: 148, False: 9.16k]
  ------------------
   91|  9.16k|        std::array<std::byte, 4096> buf;
   92|  17.7k|        while (src.size() > 0) {
  ------------------
  |  Branch (92:16): [True: 9.09k, False: 8.70k]
  ------------------
   93|  9.09k|            auto buf_now{Span{buf}.first(std::min<size_t>(src.size(), buf.size()))};
   94|  9.09k|            std::copy(src.begin(), src.begin() + buf_now.size(), buf_now.begin());
   95|  9.09k|            util::Xor(buf_now, m_xor, *m_position);
   96|  9.09k|            if (std::fwrite(buf_now.data(), 1, buf_now.size(), m_file) != buf_now.size()) {
  ------------------
  |  Branch (96:17): [True: 461, False: 8.63k]
  ------------------
   97|    461|                throw std::ios_base::failure{"XorFile::write: failed"};
   98|    461|            }
   99|  8.63k|            src = src.subspan(buf_now.size());
  100|  8.63k|            *m_position += buf_now.size();
  101|  8.63k|        }
  102|  9.16k|    }
  103|   109k|}

_ZN4util3XorE4SpanISt4byteES0_IKS1_Em:
   29|  21.0k|{
   30|  21.0k|    if (key.size() == 0) {
  ------------------
  |  Branch (30:9): [True: 0, False: 21.0k]
  ------------------
   31|      0|        return;
   32|      0|    }
   33|  21.0k|    key_offset %= key.size();
   34|       |
   35|  12.6M|    for (size_t i = 0, j = key_offset; i != write.size(); i++) {
  ------------------
  |  Branch (35:40): [True: 12.6M, False: 21.0k]
  ------------------
   36|  12.6M|        write[i] ^= key[j++];
   37|       |
   38|       |        // This potentially acts on very many bytes of data, so it's
   39|       |        // important that we calculate `j`, i.e. the `key` index in this
   40|       |        // way instead of doing a %, which would effectively be a division
   41|       |        // for each byte Xor'd -- much slower than need be.
   42|  12.6M|        if (j == key.size())
  ------------------
  |  Branch (42:13): [True: 1.62M, False: 11.0M]
  ------------------
   43|  1.62M|            j = 0;
   44|  12.6M|    }
   45|  21.0k|}
_ZN8AutoFileD2Ev:
  401|  2.09k|    ~AutoFile() { fclose(); }
_ZNK8AutoFile4feofEv:
  407|  1.95k|    bool feof() const { return std::feof(m_file); }
_ZN8AutoFile6fcloseEv:
  410|  3.54k|    {
  411|  3.54k|        if (auto rel{release()}) return std::fclose(rel);
  ------------------
  |  Branch (411:18): [True: 1.26k, False: 2.27k]
  ------------------
  412|  2.27k|        return 0;
  413|  3.54k|    }
_ZN8AutoFile7releaseEv:
  420|  3.84k|    {
  421|  3.84k|        std::FILE* ret{m_file};
  422|  3.84k|        m_file = nullptr;
  423|  3.84k|        return ret;
  424|  3.84k|    }
_ZNK8AutoFile6IsNullEv:
  428|  4.19k|    bool IsNull() const { return m_file == nullptr; }
_ZN8AutoFilersIRbEERS_OT_:
  464|  2.02k|    {
  465|  2.02k|        ::Unserialize(*this, obj);
  466|  2.02k|        return *this;
  467|  2.02k|    }
_ZN8AutoFilersIRaEERS_OT_:
  464|    568|    {
  465|    568|        ::Unserialize(*this, obj);
  466|    568|        return *this;
  467|    568|    }
_ZN8AutoFilersIRhEERS_OT_:
  464|    753|    {
  465|    753|        ::Unserialize(*this, obj);
  466|    753|        return *this;
  467|    753|    }
_ZN8AutoFilersIRsEERS_OT_:
  464|    700|    {
  465|    700|        ::Unserialize(*this, obj);
  466|    700|        return *this;
  467|    700|    }
_ZN8AutoFilersIRtEERS_OT_:
  464|    336|    {
  465|    336|        ::Unserialize(*this, obj);
  466|    336|        return *this;
  467|    336|    }
_ZN8AutoFilersIRiEERS_OT_:
  464|  3.88k|    {
  465|  3.88k|        ::Unserialize(*this, obj);
  466|  3.88k|        return *this;
  467|  3.88k|    }
_ZN8AutoFilersIRjEERS_OT_:
  464|    534|    {
  465|    534|        ::Unserialize(*this, obj);
  466|    534|        return *this;
  467|    534|    }
_ZN8AutoFilersIRlEERS_OT_:
  464|  3.52k|    {
  465|  3.52k|        ::Unserialize(*this, obj);
  466|  3.52k|        return *this;
  467|  3.52k|    }
_ZN8AutoFilersIRmEERS_OT_:
  464|    654|    {
  465|    654|        ::Unserialize(*this, obj);
  466|    654|        return *this;
  467|    654|    }
_ZN8AutoFilersIRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEERS_OT_:
  464|  5.01k|    {
  465|  5.01k|        ::Unserialize(*this, obj);
  466|  5.01k|        return *this;
  467|  5.01k|    }
_ZN8AutoFilersIRNSt3__16vectorIhNS1_9allocatorIhEEEEEERS_OT_:
  464|  5.44k|    {
  465|  5.44k|        ::Unserialize(*this, obj);
  466|  5.44k|        return *this;
  467|  5.44k|    }
_ZN8AutoFilelsIbEERS_RKT_:
  457|  4.06k|    {
  458|  4.06k|        ::Serialize(*this, obj);
  459|  4.06k|        return *this;
  460|  4.06k|    }
_ZN8AutoFilelsIaEERS_RKT_:
  457|  11.9k|    {
  458|  11.9k|        ::Serialize(*this, obj);
  459|  11.9k|        return *this;
  460|  11.9k|    }
_ZN8AutoFilelsIhEERS_RKT_:
  457|  3.93k|    {
  458|  3.93k|        ::Serialize(*this, obj);
  459|  3.93k|        return *this;
  460|  3.93k|    }
_ZN8AutoFilelsIsEERS_RKT_:
  457|  2.08k|    {
  458|  2.08k|        ::Serialize(*this, obj);
  459|  2.08k|        return *this;
  460|  2.08k|    }
_ZN8AutoFilelsItEERS_RKT_:
  457|  1.07k|    {
  458|  1.07k|        ::Serialize(*this, obj);
  459|  1.07k|        return *this;
  460|  1.07k|    }
_ZN8AutoFilelsIiEERS_RKT_:
  457|  2.73k|    {
  458|  2.73k|        ::Serialize(*this, obj);
  459|  2.73k|        return *this;
  460|  2.73k|    }
_ZN8AutoFilelsIjEERS_RKT_:
  457|  1.34k|    {
  458|  1.34k|        ::Serialize(*this, obj);
  459|  1.34k|        return *this;
  460|  1.34k|    }
_ZN8AutoFilelsIlEERS_RKT_:
  457|  1.65k|    {
  458|  1.65k|        ::Serialize(*this, obj);
  459|  1.65k|        return *this;
  460|  1.65k|    }
_ZN8AutoFilelsImEERS_RKT_:
  457|  1.41k|    {
  458|  1.41k|        ::Serialize(*this, obj);
  459|  1.41k|        return *this;
  460|  1.41k|    }
_ZN8AutoFilelsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEERS_RKT_:
  457|  38.6k|    {
  458|  38.6k|        ::Serialize(*this, obj);
  459|  38.6k|        return *this;
  460|  38.6k|    }
_ZN8AutoFilelsINSt3__16vectorIhNS1_9allocatorIhEEEEEERS_RKT_:
  457|  3.65k|    {
  458|  3.65k|        ::Serialize(*this, obj);
  459|  3.65k|        return *this;
  460|  3.65k|    }

_ZN18FuzzedDataProviderC2EPKhm:
   37|  2.09k|      : data_ptr_(data), remaining_bytes_(size) {}
_ZN18FuzzedDataProvider15ConsumeIntegralIlEET_v:
  195|  1.65k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  1.65k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  1.65k|                                std::numeric_limits<T>::max());
  198|  1.65k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIlEET_S1_S1_:
  205|  3.42k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  3.42k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  3.42k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  3.42k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 3.42k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  3.42k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  3.42k|  uint64_t result = 0;
  215|  3.42k|  size_t offset = 0;
  216|       |
  217|  19.1k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 17.4k, False: 1.63k]
  |  Branch (217:43): [True: 16.0k, False: 1.44k]
  ------------------
  218|  19.1k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 15.6k, False: 340]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  15.6k|    --remaining_bytes_;
  226|  15.6k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  15.6k|    offset += CHAR_BIT;
  228|  15.6k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  3.42k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 1.76k, False: 1.65k]
  ------------------
  232|  1.76k|    result = result % (range + 1);
  233|       |
  234|  3.42k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  3.42k|}
_ZN18FuzzedDataProvider15ConsumeIntegralImEET_v:
  195|  1.41k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  1.41k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  1.41k|                                std::numeric_limits<T>::max());
  198|  1.41k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeImEET_S1_S1_:
  205|   129k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|   129k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|   129k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|   129k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 129k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|   129k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|   129k|  uint64_t result = 0;
  215|   129k|  size_t offset = 0;
  216|       |
  217|   275k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 274k, False: 1.39k]
  |  Branch (217:43): [True: 146k, False: 127k]
  ------------------
  218|   275k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 146k, False: 433]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|   146k|    --remaining_bytes_;
  226|   146k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|   146k|    offset += CHAR_BIT;
  228|   146k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|   129k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 127k, False: 1.41k]
  ------------------
  232|   127k|    result = result % (range + 1);
  233|       |
  234|   129k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|   129k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIiEET_v:
  195|  2.73k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  2.73k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  2.73k|                                std::numeric_limits<T>::max());
  198|  2.73k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIiEET_S1_S1_:
  205|  17.3k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  17.3k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  17.3k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  17.3k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 17.3k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  17.3k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  17.3k|  uint64_t result = 0;
  215|  17.3k|  size_t offset = 0;
  216|       |
  217|  39.8k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 37.1k, False: 2.72k]
  |  Branch (217:43): [True: 25.5k, False: 11.6k]
  ------------------
  218|  39.8k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 22.5k, False: 3.01k]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  22.5k|    --remaining_bytes_;
  226|  22.5k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  22.5k|    offset += CHAR_BIT;
  228|  22.5k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  17.3k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 17.3k, False: 0]
  ------------------
  232|  17.3k|    result = result % (range + 1);
  233|       |
  234|  17.3k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  17.3k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIjEET_v:
  195|  1.34k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  1.34k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  1.34k|                                std::numeric_limits<T>::max());
  198|  1.34k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIjEET_S1_S1_:
  205|  1.34k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  1.34k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  1.34k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  1.34k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 1.34k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  1.34k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  1.34k|  uint64_t result = 0;
  215|  1.34k|  size_t offset = 0;
  216|       |
  217|  6.68k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 5.35k, False: 1.33k]
  |  Branch (217:43): [True: 5.35k, False: 0]
  ------------------
  218|  6.68k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 5.34k, False: 13]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  5.34k|    --remaining_bytes_;
  226|  5.34k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  5.34k|    offset += CHAR_BIT;
  228|  5.34k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  1.34k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 1.34k, False: 0]
  ------------------
  232|  1.34k|    result = result % (range + 1);
  233|       |
  234|  1.34k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  1.34k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIsEET_v:
  195|  2.08k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  2.08k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  2.08k|                                std::numeric_limits<T>::max());
  198|  2.08k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIsEET_S1_S1_:
  205|  2.08k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  2.08k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  2.08k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  2.08k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 2.08k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  2.08k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  2.08k|  uint64_t result = 0;
  215|  2.08k|  size_t offset = 0;
  216|       |
  217|  6.23k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 4.16k, False: 2.07k]
  |  Branch (217:43): [True: 4.16k, False: 0]
  ------------------
  218|  6.23k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 4.14k, False: 15]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  4.14k|    --remaining_bytes_;
  226|  4.14k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  4.14k|    offset += CHAR_BIT;
  228|  4.14k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  2.08k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 2.08k, False: 0]
  ------------------
  232|  2.08k|    result = result % (range + 1);
  233|       |
  234|  2.08k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  2.08k|}
_ZN18FuzzedDataProvider15ConsumeIntegralItEET_v:
  195|  1.07k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  1.07k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  1.07k|                                std::numeric_limits<T>::max());
  198|  1.07k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeItEET_S1_S1_:
  205|  1.07k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  1.07k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  1.07k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  1.07k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 1.07k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  1.07k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  1.07k|  uint64_t result = 0;
  215|  1.07k|  size_t offset = 0;
  216|       |
  217|  3.20k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 2.13k, False: 1.06k]
  |  Branch (217:43): [True: 2.13k, False: 0]
  ------------------
  218|  3.20k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 2.12k, False: 13]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  2.12k|    --remaining_bytes_;
  226|  2.12k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  2.12k|    offset += CHAR_BIT;
  228|  2.12k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  1.07k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 1.07k, False: 0]
  ------------------
  232|  1.07k|    result = result % (range + 1);
  233|       |
  234|  1.07k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  1.07k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIhEET_v:
  195|   164k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|   164k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|   164k|                                std::numeric_limits<T>::max());
  198|   164k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIhEET_S1_S1_:
  205|   164k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|   164k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|   164k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|   164k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 164k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|   164k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|   164k|  uint64_t result = 0;
  215|   164k|  size_t offset = 0;
  216|       |
  217|   325k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 164k, False: 160k]
  |  Branch (217:43): [True: 164k, False: 0]
  ------------------
  218|   325k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 160k, False: 4.22k]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|   160k|    --remaining_bytes_;
  226|   160k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|   160k|    offset += CHAR_BIT;
  228|   160k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|   164k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 164k, False: 0]
  ------------------
  232|   164k|    result = result % (range + 1);
  233|       |
  234|   164k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|   164k|}
_ZN18FuzzedDataProvider15ConsumeIntegralIaEET_v:
  195|  11.9k|template <typename T> T FuzzedDataProvider::ConsumeIntegral() {
  196|  11.9k|  return ConsumeIntegralInRange(std::numeric_limits<T>::min(),
  197|  11.9k|                                std::numeric_limits<T>::max());
  198|  11.9k|}
_ZN18FuzzedDataProvider22ConsumeIntegralInRangeIaEET_S1_S1_:
  205|  11.9k|T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
  206|  11.9k|  static_assert(std::is_integral<T>::value, "An integral type is required.");
  207|  11.9k|  static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
  208|       |
  209|  11.9k|  if (min > max)
  ------------------
  |  Branch (209:7): [True: 0, False: 11.9k]
  ------------------
  210|      0|    abort();
  211|       |
  212|       |  // Use the biggest type possible to hold the range and the result.
  213|  11.9k|  uint64_t range = static_cast<uint64_t>(max) - static_cast<uint64_t>(min);
  214|  11.9k|  uint64_t result = 0;
  215|  11.9k|  size_t offset = 0;
  216|       |
  217|  23.8k|  while (offset < sizeof(T) * CHAR_BIT && (range >> offset) > 0 &&
  ------------------
  |  Branch (217:10): [True: 11.9k, False: 11.9k]
  |  Branch (217:43): [True: 11.9k, False: 0]
  ------------------
  218|  23.8k|         remaining_bytes_ != 0) {
  ------------------
  |  Branch (218:10): [True: 11.9k, False: 6]
  ------------------
  219|       |    // Pull bytes off the end of the seed data. Experimentally, this seems to
  220|       |    // allow the fuzzer to more easily explore the input space. This makes
  221|       |    // sense, since it works by modifying inputs that caused new code to run,
  222|       |    // and this data is often used to encode length of data read by
  223|       |    // |ConsumeBytes|. Separating out read lengths makes it easier modify the
  224|       |    // contents of the data that is actually read.
  225|  11.9k|    --remaining_bytes_;
  226|  11.9k|    result = (result << CHAR_BIT) | data_ptr_[remaining_bytes_];
  227|  11.9k|    offset += CHAR_BIT;
  228|  11.9k|  }
  229|       |
  230|       |  // Avoid division by 0, in case |range + 1| results in overflow.
  231|  11.9k|  if (range != std::numeric_limits<decltype(range)>::max())
  ------------------
  |  Branch (231:7): [True: 11.9k, False: 0]
  ------------------
  232|  11.9k|    result = result % (range + 1);
  233|       |
  234|  11.9k|  return static_cast<T>(static_cast<uint64_t>(min) + result);
  235|  11.9k|}
_ZN18FuzzedDataProvider25ConsumeRandomLengthStringEm:
  153|  40.7k|FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
  154|       |  // Reads bytes from the start of |data_ptr_|. Maps "\\" to "\", and maps "\"
  155|       |  // followed by anything else to the end of the string. As a result of this
  156|       |  // logic, a fuzzer can insert characters into the string, and the string
  157|       |  // will be lengthened to include those new characters, resulting in a more
  158|       |  // stable fuzzer than picking the length of a string independently from
  159|       |  // picking its contents.
  160|  40.7k|  std::string result;
  161|       |
  162|       |  // Reserve the anticipated capacity to prevent several reallocations.
  163|  40.7k|  result.reserve(std::min(max_length, remaining_bytes_));
  164|  21.6M|  for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
  ------------------
  |  Branch (164:22): [True: 21.5M, False: 34.1k]
  |  Branch (164:40): [True: 21.5M, False: 101]
  ------------------
  165|  21.5M|    char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  166|  21.5M|    Advance(1);
  167|  21.5M|    if (next == '\\' && remaining_bytes_ != 0) {
  ------------------
  |  Branch (167:9): [True: 6.88k, False: 21.5M]
  |  Branch (167:25): [True: 6.87k, False: 5]
  ------------------
  168|  6.87k|      next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
  169|  6.87k|      Advance(1);
  170|  6.87k|      if (next != '\\')
  ------------------
  |  Branch (170:11): [True: 6.52k, False: 353]
  ------------------
  171|  6.52k|        break;
  172|  6.87k|    }
  173|  21.5M|    result += next;
  174|  21.5M|  }
  175|       |
  176|  40.7k|  result.shrink_to_fit();
  177|  40.7k|  return result;
  178|  40.7k|}
_ZN18FuzzedDataProvider25ConsumeRandomLengthStringEv:
  181|  2.09k|inline std::string FuzzedDataProvider::ConsumeRandomLengthString() {
  182|  2.09k|  return ConsumeRandomLengthString(remaining_bytes_);
  183|  2.09k|}
_ZN18FuzzedDataProvider11ConsumeBoolEv:
  289|   132k|inline bool FuzzedDataProvider::ConsumeBool() {
  290|   132k|  return 1 & ConsumeIntegral<uint8_t>();
  291|   132k|}
_ZN18FuzzedDataProvider14CopyAndAdvanceEPvm:
  339|  3.37k|                                               size_t num_bytes) {
  340|  3.37k|  std::memcpy(destination, data_ptr_, num_bytes);
  341|  3.37k|  Advance(num_bytes);
  342|  3.37k|}
_ZN18FuzzedDataProvider7AdvanceEm:
  344|  21.5M|inline void FuzzedDataProvider::Advance(size_t num_bytes) {
  345|  21.5M|  if (num_bytes > remaining_bytes_)
  ------------------
  |  Branch (345:7): [True: 0, False: 21.5M]
  ------------------
  346|      0|    abort();
  347|       |
  348|  21.5M|  data_ptr_ += num_bytes;
  349|  21.5M|  remaining_bytes_ -= num_bytes;
  350|  21.5M|}
_ZN18FuzzedDataProvider23ConvertUnsignedToSignedIchEET_T0_:
  379|  21.5M|TS FuzzedDataProvider::ConvertUnsignedToSigned(TU value) {
  380|  21.5M|  static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types.");
  381|  21.5M|  static_assert(!std::numeric_limits<TU>::is_signed,
  382|  21.5M|                "Source type must be unsigned.");
  383|       |
  384|       |  // TODO(Dor1s): change to `if constexpr` once C++17 becomes mainstream.
  385|  21.5M|  if (std::numeric_limits<TS>::is_modulo)
  ------------------
  |  Branch (385:7): [Folded - Ignored]
  ------------------
  386|      0|    return static_cast<TS>(value);
  387|       |
  388|       |  // Avoid using implementation-defined unsigned to signed conversions.
  389|       |  // To learn more, see https://stackoverflow.com/questions/13150449.
  390|  21.5M|  if (value <= std::numeric_limits<TS>::max()) {
  ------------------
  |  Branch (390:7): [True: 15.0M, False: 6.54M]
  ------------------
  391|  15.0M|    return static_cast<TS>(value);
  392|  15.0M|  } else {
  393|  6.54M|    constexpr auto TS_min = std::numeric_limits<TS>::min();
  394|  6.54M|    return TS_min + static_cast<TS>(value - TS_min);
  395|  6.54M|  }
  396|  21.5M|}
_ZN18FuzzedDataProvider12ConsumeBytesIhEENSt3__16vectorIT_NS1_9allocatorIS3_EEEEm:
  109|  3.64k|std::vector<T> FuzzedDataProvider::ConsumeBytes(size_t num_bytes) {
  110|  3.64k|  num_bytes = std::min(num_bytes, remaining_bytes_);
  111|  3.64k|  return ConsumeBytes<T>(num_bytes, num_bytes);
  112|  3.64k|}
_ZN18FuzzedDataProvider12ConsumeBytesIhEENSt3__16vectorIT_NS1_9allocatorIS3_EEEEmm:
  353|  3.64k|std::vector<T> FuzzedDataProvider::ConsumeBytes(size_t size, size_t num_bytes) {
  354|  3.64k|  static_assert(sizeof(T) == sizeof(uint8_t), "Incompatible data type.");
  355|       |
  356|       |  // The point of using the size-based constructor below is to increase the
  357|       |  // odds of having a vector object with capacity being equal to the length.
  358|       |  // That part is always implementation specific, but at least both libc++ and
  359|       |  // libstdc++ allocate the requested number of bytes in that constructor,
  360|       |  // which seems to be a natural choice for other implementations as well.
  361|       |  // To increase the odds even more, we also call |shrink_to_fit| below.
  362|  3.64k|  std::vector<T> result(size);
  363|  3.64k|  if (size == 0) {
  ------------------
  |  Branch (363:7): [True: 276, False: 3.37k]
  ------------------
  364|    276|    if (num_bytes != 0)
  ------------------
  |  Branch (364:9): [True: 0, False: 276]
  ------------------
  365|      0|      abort();
  366|    276|    return result;
  367|    276|  }
  368|       |
  369|  3.37k|  CopyAndAdvance(result.data(), num_bytes);
  370|       |
  371|       |  // Even though |shrink_to_fit| is also implementation specific, we expect it
  372|       |  // to provide an additional assurance in case vector's constructor allocated
  373|       |  // a buffer which is larger than the actual amount of data we put inside it.
  374|  3.37k|  result.shrink_to_fit();
  375|  3.37k|  return result;
  376|  3.64k|}

_Z20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEE:
   18|  2.09k|{
   19|  2.09k|    FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
   20|  2.09k|    FuzzedFileProvider fuzzed_file_provider{fuzzed_data_provider};
   21|  2.09k|    AutoFile auto_file{
   22|  2.09k|        fuzzed_file_provider.open(),
   23|  2.09k|        ConsumeRandomLengthByteVector<std::byte>(fuzzed_data_provider),
   24|  2.09k|    };
   25|  2.09k|    LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
  ------------------
  |  |   23|  21.4k|    for (unsigned _count{limit}; (condition) && _count; --_count)
  |  |  ------------------
  |  |  |  Branch (23:34): [True: 19.3k, False: 2.05k]
  |  |  |  Branch (23:49): [True: 19.3k, False: 40]
  |  |  ------------------
  ------------------
   26|  19.3k|    {
   27|  19.3k|        CallOneOf(
   28|  19.3k|            fuzzed_data_provider,
   29|  19.3k|            [&] {
   30|  19.3k|                std::array<std::byte, 4096> arr{};
   31|  19.3k|                try {
   32|  19.3k|                    auto_file.read({arr.data(), fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096)});
   33|  19.3k|                } catch (const std::ios_base::failure&) {
   34|  19.3k|                }
   35|  19.3k|            },
   36|  19.3k|            [&] {
   37|  19.3k|                const std::array<std::byte, 4096> arr{};
   38|  19.3k|                try {
   39|  19.3k|                    auto_file.write({arr.data(), fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096)});
   40|  19.3k|                } catch (const std::ios_base::failure&) {
   41|  19.3k|                }
   42|  19.3k|            },
   43|  19.3k|            [&] {
   44|  19.3k|                try {
   45|  19.3k|                    auto_file.ignore(fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096));
   46|  19.3k|                } catch (const std::ios_base::failure&) {
   47|  19.3k|                }
   48|  19.3k|            },
   49|  19.3k|            [&] {
   50|  19.3k|                auto_file.fclose();
   51|  19.3k|            },
   52|  19.3k|            [&] {
   53|  19.3k|                ReadFromStream(fuzzed_data_provider, auto_file);
   54|  19.3k|            },
   55|  19.3k|            [&] {
   56|  19.3k|                WriteToStream(fuzzed_data_provider, auto_file);
   57|  19.3k|            });
   58|  19.3k|    }
   59|  2.09k|    (void)auto_file.IsNull();
   60|  2.09k|    if (fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (60:9): [True: 306, False: 1.78k]
  ------------------
   61|    306|        FILE* f = auto_file.release();
   62|    306|        if (f != nullptr) {
  ------------------
  |  Branch (62:13): [True: 135, False: 171]
  ------------------
   63|    135|            fclose(f);
   64|    135|        }
   65|    306|    }
   66|  2.09k|}
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_0clEv:
   29|  1.17k|            [&] {
   30|  1.17k|                std::array<std::byte, 4096> arr{};
   31|  1.17k|                try {
   32|  1.17k|                    auto_file.read({arr.data(), fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096)});
   33|  1.17k|                } catch (const std::ios_base::failure&) {
   34|    973|                }
   35|  1.17k|            },
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_1clEv:
   36|  4.88k|            [&] {
   37|  4.88k|                const std::array<std::byte, 4096> arr{};
   38|  4.88k|                try {
   39|  4.88k|                    auto_file.write({arr.data(), fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096)});
   40|  4.88k|                } catch (const std::ios_base::failure&) {
   41|  2.79k|                }
   42|  4.88k|            },
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_2clEv:
   43|  1.51k|            [&] {
   44|  1.51k|                try {
   45|  1.51k|                    auto_file.ignore(fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096));
   46|  1.51k|                } catch (const std::ios_base::failure&) {
   47|  1.18k|                }
   48|  1.51k|            },
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_3clEv:
   49|  1.44k|            [&] {
   50|  1.44k|                auto_file.fclose();
   51|  1.44k|            },
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_4clEv:
   52|  4.84k|            [&] {
   53|  4.84k|                ReadFromStream(fuzzed_data_provider, auto_file);
   54|  4.84k|            },
autofile.cpp:_ZZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEENK3$_5clEv:
   55|  5.49k|            [&] {
   56|  5.49k|                WriteToStream(fuzzed_data_provider, auto_file);
   57|  5.49k|            });

LLVMFuzzerTestOneInput:
  222|  2.09k|{
  223|  2.09k|    test_one_input({data, size});
  224|  2.09k|    return 0;
  225|  2.09k|}
fuzz.cpp:_ZL14test_one_inputNSt3__14spanIKhLm18446744073709551615EEE:
   83|  2.09k|{
   84|  2.09k|    CheckGlobals check{};
   85|  2.09k|    (*Assert(g_test_one_input))(buffer);
  ------------------
  |  |   85|  2.09k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   86|  2.09k|}

_ZN18FuzzedFileProvider4openEv:
  252|  2.09k|{
  253|  2.09k|    SetFuzzedErrNo(m_fuzzed_data_provider);
  254|  2.09k|    if (m_fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (254:9): [True: 691, False: 1.40k]
  ------------------
  255|    691|        return nullptr;
  256|    691|    }
  257|  1.40k|    std::string mode;
  258|  1.40k|    CallOneOf(
  259|  1.40k|        m_fuzzed_data_provider,
  260|  1.40k|        [&] {
  261|  1.40k|            mode = "r";
  262|  1.40k|        },
  263|  1.40k|        [&] {
  264|  1.40k|            mode = "r+";
  265|  1.40k|        },
  266|  1.40k|        [&] {
  267|  1.40k|            mode = "w";
  268|  1.40k|        },
  269|  1.40k|        [&] {
  270|  1.40k|            mode = "w+";
  271|  1.40k|        },
  272|  1.40k|        [&] {
  273|  1.40k|            mode = "a";
  274|  1.40k|        },
  275|  1.40k|        [&] {
  276|  1.40k|            mode = "a+";
  277|  1.40k|        });
  278|  1.40k|#if defined _GNU_SOURCE && (defined(__linux__) || defined(__FreeBSD__))
  279|  1.40k|    const cookie_io_functions_t io_hooks = {
  280|  1.40k|        FuzzedFileProvider::read,
  281|  1.40k|        FuzzedFileProvider::write,
  282|  1.40k|        FuzzedFileProvider::seek,
  283|  1.40k|        FuzzedFileProvider::close,
  284|  1.40k|    };
  285|  1.40k|    return fopencookie(this, mode.c_str(), io_hooks);
  286|       |#else
  287|       |    (void)mode;
  288|       |    return nullptr;
  289|       |#endif
  290|  2.09k|}
_ZN18FuzzedFileProvider4readEPvPcm:
  293|  4.06k|{
  294|  4.06k|    FuzzedFileProvider* fuzzed_file = (FuzzedFileProvider*)cookie;
  295|  4.06k|    SetFuzzedErrNo(fuzzed_file->m_fuzzed_data_provider);
  296|  4.06k|    if (buf == nullptr || size == 0 || fuzzed_file->m_fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (296:9): [True: 0, False: 4.06k]
  |  Branch (296:27): [True: 0, False: 4.06k]
  |  Branch (296:40): [True: 416, False: 3.64k]
  ------------------
  297|    416|        return fuzzed_file->m_fuzzed_data_provider.ConsumeBool() ? 0 : -1;
  ------------------
  |  Branch (297:16): [True: 54, False: 362]
  ------------------
  298|    416|    }
  299|  3.64k|    const std::vector<uint8_t> random_bytes = fuzzed_file->m_fuzzed_data_provider.ConsumeBytes<uint8_t>(size);
  300|  3.64k|    if (random_bytes.empty()) {
  ------------------
  |  Branch (300:9): [True: 276, False: 3.37k]
  ------------------
  301|    276|        return 0;
  302|    276|    }
  303|  3.37k|    std::memcpy(buf, random_bytes.data(), random_bytes.size());
  304|  3.37k|    if (AdditionOverflow(fuzzed_file->m_offset, (int64_t)random_bytes.size())) {
  ------------------
  |  Branch (304:9): [True: 0, False: 3.37k]
  ------------------
  305|      0|        return fuzzed_file->m_fuzzed_data_provider.ConsumeBool() ? 0 : -1;
  ------------------
  |  Branch (305:16): [True: 0, False: 0]
  ------------------
  306|      0|    }
  307|  3.37k|    fuzzed_file->m_offset += random_bytes.size();
  308|  3.37k|    return random_bytes.size();
  309|  3.37k|}
_ZN18FuzzedFileProvider5writeEPvPKcm:
  312|  1.76k|{
  313|  1.76k|    FuzzedFileProvider* fuzzed_file = (FuzzedFileProvider*)cookie;
  314|  1.76k|    SetFuzzedErrNo(fuzzed_file->m_fuzzed_data_provider);
  315|  1.76k|    const ssize_t n = fuzzed_file->m_fuzzed_data_provider.ConsumeIntegralInRange<ssize_t>(0, size);
  316|  1.76k|    if (AdditionOverflow(fuzzed_file->m_offset, (int64_t)n)) {
  ------------------
  |  Branch (316:9): [True: 0, False: 1.76k]
  ------------------
  317|      0|        return 0;
  318|      0|    }
  319|  1.76k|    fuzzed_file->m_offset += n;
  320|  1.76k|    return n;
  321|  1.76k|}
_ZN18FuzzedFileProvider4seekEPvPli:
  324|  2.12k|{
  325|  2.12k|    assert(whence == SEEK_SET || whence == SEEK_CUR || whence == SEEK_END);
  326|  2.12k|    FuzzedFileProvider* fuzzed_file = (FuzzedFileProvider*)cookie;
  327|  2.12k|    SetFuzzedErrNo(fuzzed_file->m_fuzzed_data_provider);
  328|  2.12k|    int64_t new_offset = 0;
  329|  2.12k|    if (whence == SEEK_SET) {
  ------------------
  |  Branch (329:9): [True: 0, False: 2.12k]
  ------------------
  330|      0|        new_offset = *offset;
  331|  2.12k|    } else if (whence == SEEK_CUR) {
  ------------------
  |  Branch (331:16): [True: 2.12k, False: 0]
  ------------------
  332|  2.12k|        if (AdditionOverflow(fuzzed_file->m_offset, *offset)) {
  ------------------
  |  Branch (332:13): [True: 0, False: 2.12k]
  ------------------
  333|      0|            return -1;
  334|      0|        }
  335|  2.12k|        new_offset = fuzzed_file->m_offset + *offset;
  336|  2.12k|    } else if (whence == SEEK_END) {
  ------------------
  |  Branch (336:16): [True: 0, False: 0]
  ------------------
  337|      0|        const int64_t n = fuzzed_file->m_fuzzed_data_provider.ConsumeIntegralInRange<int64_t>(0, 4096);
  338|      0|        if (AdditionOverflow(n, *offset)) {
  ------------------
  |  Branch (338:13): [True: 0, False: 0]
  ------------------
  339|      0|            return -1;
  340|      0|        }
  341|      0|        new_offset = n + *offset;
  342|      0|    }
  343|  2.12k|    if (new_offset < 0) {
  ------------------
  |  Branch (343:9): [True: 363, False: 1.75k]
  ------------------
  344|    363|        return -1;
  345|    363|    }
  346|  1.75k|    fuzzed_file->m_offset = new_offset;
  347|  1.75k|    *offset = new_offset;
  348|  1.75k|    return fuzzed_file->m_fuzzed_data_provider.ConsumeIntegralInRange<int>(-1, 0);
  349|  2.12k|}
_ZN18FuzzedFileProvider5closeEPv:
  352|  1.40k|{
  353|  1.40k|    FuzzedFileProvider* fuzzed_file = (FuzzedFileProvider*)cookie;
  354|  1.40k|    SetFuzzedErrNo(fuzzed_file->m_fuzzed_data_provider);
  355|  1.40k|    return fuzzed_file->m_fuzzed_data_provider.ConsumeIntegralInRange<int>(-1, 0);
  356|  1.40k|}
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_0clEv:
  260|    247|        [&] {
  261|    247|            mode = "r";
  262|    247|        },
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_1clEv:
  263|    352|        [&] {
  264|    352|            mode = "r+";
  265|    352|        },
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_2clEv:
  266|     53|        [&] {
  267|     53|            mode = "w";
  268|     53|        },
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_3clEv:
  269|    205|        [&] {
  270|    205|            mode = "w+";
  271|    205|        },
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_4clEv:
  272|     67|        [&] {
  273|     67|            mode = "a";
  274|     67|        },
util.cpp:_ZZN18FuzzedFileProvider4openEvENK3$_5clEv:
  275|    480|        [&] {
  276|    480|            mode = "a+";
  277|    480|        });

_Z14SetFuzzedErrNoR18FuzzedDataProvider:
  247|  11.4k|{
  248|  11.4k|    errno = fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 133);
  249|  11.4k|}
_ZN18FuzzedFileProviderC2ER18FuzzedDataProvider:
  270|  2.09k|    FuzzedFileProvider(FuzzedDataProvider& fuzzed_data_provider) : m_fuzzed_data_provider{fuzzed_data_provider}
  271|  2.09k|    {
  272|  2.09k|    }
_Z29ConsumeRandomLengthByteVectorISt4byteENSt3__16vectorIT_NS1_9allocatorIS3_EEEER18FuzzedDataProviderRKNS1_8optionalImEE:
   58|  2.09k|{
   59|  2.09k|    static_assert(sizeof(B) == 1);
   60|  2.09k|    const std::string s = max_length ?
  ------------------
  |  Branch (60:27): [True: 0, False: 2.09k]
  ------------------
   61|      0|                              fuzzed_data_provider.ConsumeRandomLengthString(*max_length) :
   62|  2.09k|                              fuzzed_data_provider.ConsumeRandomLengthString();
   63|  2.09k|    std::vector<B> ret(s.size());
   64|  2.09k|    std::copy(s.begin(), s.end(), reinterpret_cast<char*>(ret.data()));
   65|  2.09k|    return ret;
   66|  2.09k|}
autofile.cpp:_Z9CallOneOfIJZ20autofile_fuzz_targetNSt3__14spanIKhLm18446744073709551615EEEE3$_0Z20autofile_fuzz_targetS3_E3$_1Z20autofile_fuzz_targetS3_E3$_2Z20autofile_fuzz_targetS3_E3$_3Z20autofile_fuzz_targetS3_E3$_4Z20autofile_fuzz_targetS3_E3$_5EEmR18FuzzedDataProviderDpT_:
   36|  19.3k|{
   37|  19.3k|    constexpr size_t call_size{sizeof...(callables)};
   38|  19.3k|    static_assert(call_size >= 1);
   39|  19.3k|    const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
   40|       |
   41|  19.3k|    size_t i{0};
   42|   116k|    ((i++ == call_index ? callables() : void()), ...);
  ------------------
  |  Branch (42:7): [True: 1.17k, False: 18.1k]
  |  Branch (42:7): [True: 4.88k, False: 14.4k]
  |  Branch (42:7): [True: 1.51k, False: 17.8k]
  |  Branch (42:7): [True: 1.44k, False: 17.9k]
  |  Branch (42:7): [True: 4.84k, False: 14.5k]
  |  Branch (42:7): [True: 5.49k, False: 13.8k]
  ------------------
   43|  19.3k|    return call_size;
   44|  19.3k|}
_Z14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_:
  321|  4.84k|{
  322|  24.2k|    while (fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (322:12): [True: 23.4k, False: 827]
  ------------------
  323|  23.4k|        try {
  324|  23.4k|            CallOneOf(
  325|  23.4k|                fuzzed_data_provider,
  326|  23.4k|                READ_FROM_STREAM_CASE(bool),
  327|  23.4k|                READ_FROM_STREAM_CASE(int8_t),
  328|  23.4k|                READ_FROM_STREAM_CASE(uint8_t),
  329|  23.4k|                READ_FROM_STREAM_CASE(int16_t),
  330|  23.4k|                READ_FROM_STREAM_CASE(uint16_t),
  331|  23.4k|                READ_FROM_STREAM_CASE(int32_t),
  332|  23.4k|                READ_FROM_STREAM_CASE(uint32_t),
  333|  23.4k|                READ_FROM_STREAM_CASE(int64_t),
  334|  23.4k|                READ_FROM_STREAM_CASE(uint64_t),
  335|  23.4k|                READ_FROM_STREAM_CASE(std::string),
  336|  23.4k|                READ_FROM_STREAM_CASE(std::vector<uint8_t>));
  337|  23.4k|        } catch (const std::ios_base::failure&) {
  338|  4.01k|            break;
  339|  4.01k|        }
  340|  23.4k|    }
  341|  4.84k|}
_Z9CallOneOfIJZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_EUlvE_ZS0_IS1_EvS3_S5_EUlvE0_ZS0_IS1_EvS3_S5_EUlvE1_ZS0_IS1_EvS3_S5_EUlvE2_ZS0_IS1_EvS3_S5_EUlvE3_ZS0_IS1_EvS3_S5_EUlvE4_ZS0_IS1_EvS3_S5_EUlvE5_ZS0_IS1_EvS3_S5_EUlvE6_ZS0_IS1_EvS3_S5_EUlvE7_ZS0_IS1_EvS3_S5_EUlvE8_ZS0_IS1_EvS3_S5_EUlvE9_EEmS3_DpT_:
   36|  23.4k|{
   37|  23.4k|    constexpr size_t call_size{sizeof...(callables)};
   38|  23.4k|    static_assert(call_size >= 1);
   39|  23.4k|    const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
   40|       |
   41|  23.4k|    size_t i{0};
   42|   257k|    ((i++ == call_index ? callables() : void()), ...);
  ------------------
  |  Branch (42:7): [True: 2.02k, False: 21.4k]
  |  Branch (42:7): [True: 568, False: 22.8k]
  |  Branch (42:7): [True: 753, False: 22.6k]
  |  Branch (42:7): [True: 700, False: 22.7k]
  |  Branch (42:7): [True: 336, False: 23.0k]
  |  Branch (42:7): [True: 3.88k, False: 19.5k]
  |  Branch (42:7): [True: 534, False: 22.9k]
  |  Branch (42:7): [True: 3.52k, False: 19.9k]
  |  Branch (42:7): [True: 654, False: 22.7k]
  |  Branch (42:7): [True: 5.01k, False: 18.4k]
  |  Branch (42:7): [True: 5.44k, False: 17.9k]
  ------------------
   43|  23.4k|    return call_size;
   44|  23.4k|}
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE_clEv:
  315|  2.02k|    [&] {                           \
  316|  2.02k|        type o;                     \
  317|  2.02k|        stream >> o;                \
  318|  2.02k|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE0_clEv:
  315|    568|    [&] {                           \
  316|    568|        type o;                     \
  317|    568|        stream >> o;                \
  318|    568|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE1_clEv:
  315|    753|    [&] {                           \
  316|    753|        type o;                     \
  317|    753|        stream >> o;                \
  318|    753|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE2_clEv:
  315|    700|    [&] {                           \
  316|    700|        type o;                     \
  317|    700|        stream >> o;                \
  318|    700|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE3_clEv:
  315|    336|    [&] {                           \
  316|    336|        type o;                     \
  317|    336|        stream >> o;                \
  318|    336|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE4_clEv:
  315|  3.88k|    [&] {                           \
  316|  3.88k|        type o;                     \
  317|  3.88k|        stream >> o;                \
  318|  3.88k|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE5_clEv:
  315|    534|    [&] {                           \
  316|    534|        type o;                     \
  317|    534|        stream >> o;                \
  318|    534|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE6_clEv:
  315|  3.52k|    [&] {                           \
  316|  3.52k|        type o;                     \
  317|  3.52k|        stream >> o;                \
  318|  3.52k|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE7_clEv:
  315|    654|    [&] {                           \
  316|    654|        type o;                     \
  317|    654|        stream >> o;                \
  318|    654|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE8_clEv:
  315|  5.01k|    [&] {                           \
  316|  5.01k|        type o;                     \
  317|  5.01k|        stream >> o;                \
  318|  5.01k|    }
_ZZ14ReadFromStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE9_clEv:
  315|  5.44k|    [&] {                           \
  316|  5.44k|        type o;                     \
  317|  5.44k|        stream >> o;                \
  318|  5.44k|    }
_Z13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_:
  292|  5.49k|{
  293|  73.9k|    while (fuzzed_data_provider.ConsumeBool()) {
  ------------------
  |  Branch (293:12): [True: 72.5k, False: 1.39k]
  ------------------
  294|  72.5k|        try {
  295|  72.5k|            CallOneOf(
  296|  72.5k|                fuzzed_data_provider,
  297|  72.5k|                WRITE_TO_STREAM_CASE(bool, fuzzed_data_provider.ConsumeBool()),
  298|  72.5k|                WRITE_TO_STREAM_CASE(int8_t, fuzzed_data_provider.ConsumeIntegral<int8_t>()),
  299|  72.5k|                WRITE_TO_STREAM_CASE(uint8_t, fuzzed_data_provider.ConsumeIntegral<uint8_t>()),
  300|  72.5k|                WRITE_TO_STREAM_CASE(int16_t, fuzzed_data_provider.ConsumeIntegral<int16_t>()),
  301|  72.5k|                WRITE_TO_STREAM_CASE(uint16_t, fuzzed_data_provider.ConsumeIntegral<uint16_t>()),
  302|  72.5k|                WRITE_TO_STREAM_CASE(int32_t, fuzzed_data_provider.ConsumeIntegral<int32_t>()),
  303|  72.5k|                WRITE_TO_STREAM_CASE(uint32_t, fuzzed_data_provider.ConsumeIntegral<uint32_t>()),
  304|  72.5k|                WRITE_TO_STREAM_CASE(int64_t, fuzzed_data_provider.ConsumeIntegral<int64_t>()),
  305|  72.5k|                WRITE_TO_STREAM_CASE(uint64_t, fuzzed_data_provider.ConsumeIntegral<uint64_t>()),
  306|  72.5k|                WRITE_TO_STREAM_CASE(std::string, fuzzed_data_provider.ConsumeRandomLengthString(32)),
  307|  72.5k|                WRITE_TO_STREAM_CASE(std::vector<uint8_t>, ConsumeRandomLengthIntegralVector<uint8_t>(fuzzed_data_provider)));
  308|  72.5k|        } catch (const std::ios_base::failure&) {
  309|  4.10k|            break;
  310|  4.10k|        }
  311|  72.5k|    }
  312|  5.49k|}
_Z9CallOneOfIJZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_EUlvE_ZS0_IS1_EvS3_S5_EUlvE0_ZS0_IS1_EvS3_S5_EUlvE1_ZS0_IS1_EvS3_S5_EUlvE2_ZS0_IS1_EvS3_S5_EUlvE3_ZS0_IS1_EvS3_S5_EUlvE4_ZS0_IS1_EvS3_S5_EUlvE5_ZS0_IS1_EvS3_S5_EUlvE6_ZS0_IS1_EvS3_S5_EUlvE7_ZS0_IS1_EvS3_S5_EUlvE8_ZS0_IS1_EvS3_S5_EUlvE9_EEmS3_DpT_:
   36|  72.5k|{
   37|  72.5k|    constexpr size_t call_size{sizeof...(callables)};
   38|  72.5k|    static_assert(call_size >= 1);
   39|  72.5k|    const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
   40|       |
   41|  72.5k|    size_t i{0};
   42|   798k|    ((i++ == call_index ? callables() : void()), ...);
  ------------------
  |  Branch (42:7): [True: 4.06k, False: 68.5k]
  |  Branch (42:7): [True: 11.9k, False: 60.6k]
  |  Branch (42:7): [True: 3.93k, False: 68.6k]
  |  Branch (42:7): [True: 2.08k, False: 70.5k]
  |  Branch (42:7): [True: 1.07k, False: 71.5k]
  |  Branch (42:7): [True: 2.73k, False: 69.8k]
  |  Branch (42:7): [True: 1.34k, False: 71.2k]
  |  Branch (42:7): [True: 1.65k, False: 70.9k]
  |  Branch (42:7): [True: 1.41k, False: 71.1k]
  |  Branch (42:7): [True: 38.6k, False: 33.8k]
  |  Branch (42:7): [True: 3.65k, False: 68.9k]
  ------------------
   43|  72.5k|    return call_size;
   44|  72.5k|}
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE_clEv:
  286|  4.06k|    [&] {                                   \
  287|  4.06k|        type o = consume;                   \
  288|  4.06k|        stream << o;                        \
  289|  4.06k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE0_clEv:
  286|  11.9k|    [&] {                                   \
  287|  11.9k|        type o = consume;                   \
  288|  11.9k|        stream << o;                        \
  289|  11.9k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE1_clEv:
  286|  3.93k|    [&] {                                   \
  287|  3.93k|        type o = consume;                   \
  288|  3.93k|        stream << o;                        \
  289|  3.93k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE2_clEv:
  286|  2.08k|    [&] {                                   \
  287|  2.08k|        type o = consume;                   \
  288|  2.08k|        stream << o;                        \
  289|  2.08k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE3_clEv:
  286|  1.07k|    [&] {                                   \
  287|  1.07k|        type o = consume;                   \
  288|  1.07k|        stream << o;                        \
  289|  1.07k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE4_clEv:
  286|  2.73k|    [&] {                                   \
  287|  2.73k|        type o = consume;                   \
  288|  2.73k|        stream << o;                        \
  289|  2.73k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE5_clEv:
  286|  1.34k|    [&] {                                   \
  287|  1.34k|        type o = consume;                   \
  288|  1.34k|        stream << o;                        \
  289|  1.34k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE6_clEv:
  286|  1.65k|    [&] {                                   \
  287|  1.65k|        type o = consume;                   \
  288|  1.65k|        stream << o;                        \
  289|  1.65k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE7_clEv:
  286|  1.41k|    [&] {                                   \
  287|  1.41k|        type o = consume;                   \
  288|  1.41k|        stream << o;                        \
  289|  1.41k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE8_clEv:
  286|  38.6k|    [&] {                                   \
  287|  38.6k|        type o = consume;                   \
  288|  38.6k|        stream << o;                        \
  289|  38.6k|    }
_ZZ13WriteToStreamI8AutoFileEvR18FuzzedDataProviderRT_ENKUlvE9_clEv:
  286|  3.65k|    [&] {                                   \
  287|  3.65k|        type o = consume;                   \
  288|  3.65k|        stream << o;                        \
  289|  3.65k|    }
_Z33ConsumeRandomLengthIntegralVectorIhENSt3__16vectorIT_NS0_9allocatorIS2_EEEER18FuzzedDataProviderm:
   91|  3.65k|{
   92|  3.65k|    const size_t n_elements = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, max_vector_size);
   93|  3.65k|    std::vector<T> r;
   94|  3.65k|    r.reserve(n_elements);
   95|  32.2k|    for (size_t i = 0; i < n_elements; ++i) {
  ------------------
  |  Branch (95:24): [True: 28.5k, False: 3.65k]
  ------------------
   96|  28.5k|        r.push_back(fuzzed_data_provider.ConsumeIntegral<T>());
   97|  28.5k|    }
   98|  3.65k|    return r;
   99|  3.65k|}
util.cpp:_Z9CallOneOfIJZN18FuzzedFileProvider4openEvE3$_0ZNS0_4openEvE3$_1ZNS0_4openEvE3$_2ZNS0_4openEvE3$_3ZNS0_4openEvE3$_4ZNS0_4openEvE3$_5EEmR18FuzzedDataProviderDpT_:
   36|  1.40k|{
   37|  1.40k|    constexpr size_t call_size{sizeof...(callables)};
   38|  1.40k|    static_assert(call_size >= 1);
   39|  1.40k|    const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
   40|       |
   41|  1.40k|    size_t i{0};
   42|  8.42k|    ((i++ == call_index ? callables() : void()), ...);
  ------------------
  |  Branch (42:7): [True: 247, False: 1.15k]
  |  Branch (42:7): [True: 352, False: 1.05k]
  |  Branch (42:7): [True: 53, False: 1.35k]
  |  Branch (42:7): [True: 205, False: 1.19k]
  |  Branch (42:7): [True: 67, False: 1.33k]
  |  Branch (42:7): [True: 480, False: 924]
  ------------------
   43|  1.40k|    return call_size;
   44|  1.40k|}

_ZN12CheckGlobalsC2Ev:
   56|  2.09k|CheckGlobals::CheckGlobals() : m_impl(std::make_unique<CheckGlobalsImpl>()) {}
_ZN12CheckGlobalsD2Ev:
   57|  2.09k|CheckGlobals::~CheckGlobals() = default;
_ZN16CheckGlobalsImplC2Ev:
   17|  2.09k|    {
   18|  2.09k|        g_used_g_prng = false;
   19|  2.09k|        g_seeded_g_prng_zero = false;
   20|  2.09k|        g_used_system_time = false;
   21|  2.09k|        SetMockTime(0s);
   22|  2.09k|    }
_ZN16CheckGlobalsImplD2Ev:
   24|  2.09k|    {
   25|  2.09k|        if (g_used_g_prng && !g_seeded_g_prng_zero) {
  ------------------
  |  Branch (25:13): [True: 0, False: 2.09k]
  |  Branch (25:30): [True: 0, False: 0]
  ------------------
   26|      0|            std::cerr << "\n\n"
   27|      0|                         "The current fuzz target used the global random state.\n\n"
   28|       |
   29|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   30|      0|                         "SeedRandomStateForTest(SeedRand::ZEROS) in the first line \n"
   31|      0|                         "of the FUZZ_TARGET function.\n\n"
   32|       |
   33|      0|                         "An alternative solution would be to avoid any use of globals.\n\n"
   34|       |
   35|      0|                         "Without a solution, fuzz instability and non-determinism can lead \n"
   36|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   37|      0|                      << std::endl;
   38|      0|            std::abort(); // Abort, because AFL may try to recover from a std::exit
   39|      0|        }
   40|       |
   41|  2.09k|        if (g_used_system_time) {
  ------------------
  |  Branch (41:13): [True: 0, False: 2.09k]
  ------------------
   42|      0|            std::cerr << "\n\n"
   43|      0|                         "The current fuzz target accessed system time.\n\n"
   44|       |
   45|      0|                         "This is acceptable, but requires the fuzz target to call \n"
   46|      0|                         "SetMockTime() at the beginning of processing the fuzz input.\n\n"
   47|       |
   48|      0|                         "Without setting mock time, time-dependent behavior can lead \n"
   49|      0|                         "to non-reproducible bugs or inefficient fuzzing.\n\n"
   50|      0|                      << std::endl;
   51|      0|            std::abort();
   52|      0|        }
   53|  2.09k|    }

_Z22inline_assertion_checkILb1EbEOT0_S1_PKciS3_S3_:
   52|  2.09k|{
   53|  2.09k|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|  2.09k|    ) {
   58|  2.09k|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 2.09k]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|  2.09k|    }
   62|  2.09k|    return std::forward<T>(val);
   63|  2.09k|}
_Z22inline_assertion_checkILb1ERPKNSt3__18functionIFvNS0_4spanIKhLm18446744073709551615EEEEEEEOT0_SB_PKciSD_SD_:
   52|  2.09k|{
   53|  2.09k|    if (IS_ASSERT || std::is_constant_evaluated() || G_FUZZING
  ------------------
  |  Branch (53:9): [Folded - Ignored]
  |  Branch (53:22): [Folded - Ignored]
  |  Branch (53:54): [Folded - Ignored]
  ------------------
   54|       |#ifdef ABORT_ON_FAILED_ASSUME
   55|       |        || true
   56|       |#endif
   57|  2.09k|    ) {
   58|  2.09k|        if (!val) {
  ------------------
  |  Branch (58:13): [True: 0, False: 2.09k]
  ------------------
   59|      0|            assertion_fail(file, line, func, assertion);
   60|      0|        }
   61|  2.09k|    }
   62|  2.09k|    return std::forward<T>(val);
   63|  2.09k|}

_Z16AdditionOverflowIlEbT_S0_:
   16|  7.25k|{
   17|  7.25k|    static_assert(std::is_integral<T>::value, "Integral required.");
   18|  7.25k|    if constexpr (std::numeric_limits<T>::is_signed) {
   19|  7.25k|        return (i > 0 && j > std::numeric_limits<T>::max() - i) ||
  ------------------
  |  Branch (19:17): [True: 4.56k, False: 2.69k]
  |  Branch (19:26): [True: 0, False: 4.56k]
  ------------------
   20|  7.25k|               (i < 0 && j < std::numeric_limits<T>::min() - i);
  ------------------
  |  Branch (20:17): [True: 0, False: 7.25k]
  |  Branch (20:26): [True: 0, False: 0]
  ------------------
   21|  7.25k|    }
   22|      0|    return std::numeric_limits<T>::max() - i < j;
   23|  7.25k|}

_Z11SetMockTimeNSt3__16chrono8durationIxNS_5ratioILl1ELl1EEEEE:
   42|  2.09k|{
   43|  2.09k|    Assert(mock_time_in >= 0s);
  ------------------
  |  |   85|  2.09k|#define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
  ------------------
   44|  2.09k|    g_mock_time.store(mock_time_in, std::memory_order_relaxed);
   45|  2.09k|}

