_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  1.49k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  1.49k|   size_t hb = 0;
   75|       |
   76|  8.94k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 7.45k, False: 1.49k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  7.45k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  7.45k|      hb += z;
   80|  7.45k|      n >>= z;
   81|  7.45k|   }
   82|       |
   83|  1.49k|   hb += n;
   84|       |
   85|  1.49k|   return hb;
   86|  1.49k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  7.45k|BOTAN_FORCE_INLINE constexpr size_t ct_if_is_zero_ret(T x, size_t s) {
   46|       |   /*
   47|       |   Similar to `return ct_is_zero(x) & s` but has to account for possibility that
   48|       |   sizeof(T) is smaller than sizeof(size_t) which would lead to incomplete masking
   49|       |   */
   50|  7.45k|   const T a = ~x & (x - 1);
   51|  7.45k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  7.45k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  7.45k|   return mask & s;
   54|  7.45k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|   141k|BOTAN_FORCE_INLINE constexpr size_t ct_if_is_zero_ret(T x, size_t s) {
   46|       |   /*
   47|       |   Similar to `return ct_is_zero(x) & s` but has to account for possibility that
   48|       |   sizeof(T) is smaller than sizeof(size_t) which would lead to incomplete masking
   49|       |   */
   50|   141k|   const T a = ~x & (x - 1);
   51|   141k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|   141k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|   141k|   return mask & s;
   54|   141k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|  13.5k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  13.5k|   return (b ^ (mask & (a ^ b)));
  219|  13.5k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   132k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   132k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   132k|   return static_cast<T>(0) - top;
   31|   132k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|   125k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   125k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   125k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  23.5k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  23.5k|   size_t hb = 0;
   75|       |
   76|   164k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 141k, False: 23.5k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   141k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   141k|      hb += z;
   80|   141k|      n >>= z;
   81|   141k|   }
   82|       |
   83|  23.5k|   hb += n;
   84|       |
   85|  23.5k|   return hb;
   86|  23.5k|}

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEtQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|    971|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|    971|   } else if constexpr(sizeof(T) == 2) {
   31|    971|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|    971|      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|       |   } else if constexpr(sizeof(T) == 4) {
   37|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|       |      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|       |   } else if constexpr(sizeof(T) == 8) {
   45|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|       |      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|       |   }
   57|    971|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEjQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|    891|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|       |   } else if constexpr(sizeof(T) == 2) {
   31|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|       |      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|    891|   } else if constexpr(sizeof(T) == 4) {
   37|    891|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|    891|      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|       |   } else if constexpr(sizeof(T) == 8) {
   45|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|       |      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|       |   }
   57|    891|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  23.8k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|       |   } else if constexpr(sizeof(T) == 2) {
   31|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|       |      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|       |   } else if constexpr(sizeof(T) == 4) {
   37|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|       |      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|  23.8k|   } else if constexpr(sizeof(T) == 8) {
   45|  23.8k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|  23.8k|      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|  23.8k|   }
   57|  23.8k|}

_ZN5Botan12BufferSlicerC2ENSt3__14spanIKhLm18446744073709551615EEE:
   25|  24.1k|      explicit BufferSlicer(std::span<const uint8_t> buffer) : m_remaining(buffer) {}
_ZNK5Botan12BufferSlicer5emptyEv:
   68|   227k|      bool empty() const { return m_remaining.empty(); }
_ZN5Botan12BufferSlicer9take_byteEv:
   57|   112k|      uint8_t take_byte() { return take(1)[0]; }
_ZN5Botan12BufferSlicer4takeEm:
   37|   112k|      std::span<const uint8_t> take(const size_t count) {
   38|   112k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|   112k|   do {                                                         \
  |  |   52|   112k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|   112k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 112k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|   112k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 112k]
  |  |  ------------------
  ------------------
   39|   112k|         auto result = m_remaining.first(count);
   40|   112k|         m_remaining = m_remaining.subspan(count);
   41|   112k|         return result;
   42|   112k|      }
_ZNK5Botan12BufferSlicer9remainingEv:
   66|   112k|      size_t remaining() const { return m_remaining.size(); }

_ZN5Botan13nibble_to_hexEh:
   76|    100|inline constexpr char nibble_to_hex(uint8_t b) {
   77|    100|   const uint8_t n = b & 0x0F;
   78|    100|   return static_cast<char>(n < 10 ? '0' + n : 'A' + (n - 10));
  ------------------
  |  Branch (78:29): [True: 63, False: 37]
  ------------------
   79|    100|}
_ZNK5Botan22CharacterValidityTableclEc:
  125|  29.0k|      constexpr bool operator()(char c) const {
  126|  29.0k|         const uint8_t uc = static_cast<uint8_t>(c);
  127|  29.0k|         return ((m_tbl[uc / 32] >> (uc % 32)) & 1) != 0;
  128|  29.0k|      }

base64.cpp:_ZN5Botan11base_decodeINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmRmbb:
  124|    192|                   bool ignore_ws = true) {
  125|       |   // TODO(Botan4) Check if we can use just base. or Base:: here instead
  126|    192|   constexpr size_t decoding_bytes_in = std::remove_reference_t<Base>::decoding_bytes_in();
  127|    192|   constexpr size_t decoding_bytes_out = std::remove_reference_t<Base>::decoding_bytes_out();
  128|       |
  129|    192|   input_consumed = 0;
  130|       |
  131|    192|   uint8_t* out_ptr = output;
  132|    192|   std::array<uint8_t, decoding_bytes_in> decode_buf{};
  133|    192|   size_t decode_buf_pos = 0;
  134|    192|   size_t final_truncate = 0;
  135|    192|   bool seen_padding = false;
  136|       |
  137|    192|   clear_mem(output, base.decode_max_output(input_length));
  138|       |
  139|  41.0k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (139:22): [True: 40.8k, False: 179]
  ------------------
  140|  40.8k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  141|       |
  142|       |      // This call might throw Invalid_Argument
  143|  40.8k|      if(base.check_bad_char(bin, input[i], ignore_ws)) {
  ------------------
  |  Branch (143:10): [True: 10.2k, False: 30.5k]
  ------------------
  144|       |         // Padding may only appear at the end, so a data symbol must never
  145|       |         // follow one (0x81 marks a padding character)
  146|  10.2k|         if(seen_padding) {
  ------------------
  |  Branch (146:13): [True: 2, False: 10.2k]
  ------------------
  147|      2|            throw Invalid_Argument(base.name() + " decoding failed, data follows padding");
  148|      2|         }
  149|  10.2k|         decode_buf[decode_buf_pos] = bin;
  150|  10.2k|         ++decode_buf_pos;
  151|  30.5k|      } else if(bin == 0x81) {
  ------------------
  |  Branch (151:17): [True: 268, False: 30.2k]
  ------------------
  152|    268|         seen_padding = true;
  153|    268|      }
  154|       |
  155|       |      /*
  156|       |      * If we're at the end of the input, pad with 0s and truncate
  157|       |      */
  158|  40.8k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (158:10): [True: 40.7k, False: 59]
  |  Branch (158:26): [True: 83, False: 40.7k]
  ------------------
  159|     83|         if(decode_buf_pos) {
  ------------------
  |  Branch (159:13): [True: 36, False: 47]
  ------------------
  160|     36|            const size_t bits_per_symbol = base.bits_consumed();
  161|     36|            const size_t pad_bits = (decode_buf_pos * bits_per_symbol) % 8;
  162|       |
  163|       |            // A trailing symbol contributing only pad bits cannot occur in a
  164|       |            // valid encoding; RFC 4648 4 and 6 enumerate the reachable cases
  165|     36|            if(pad_bits >= bits_per_symbol) {
  ------------------
  |  Branch (165:16): [True: 6, False: 30]
  ------------------
  166|      6|               throw Invalid_Argument(base.name() + " decoding failed, invalid length");
  167|      6|            }
  168|       |
  169|       |            // RFC 4648 3.5: "decoders MAY chose to reject an encoding if the
  170|       |            // pad bits have not been set to zero"
  171|     30|            const uint8_t pad_mask = static_cast<uint8_t>((1U << pad_bits) - 1);
  172|     30|            if(decode_buf[decode_buf_pos - 1] & pad_mask) {
  ------------------
  |  Branch (172:16): [True: 5, False: 25]
  ------------------
  173|      5|               throw Invalid_Argument(base.name() + " decoding failed, nonzero padding bits");
  174|      5|            }
  175|       |
  176|     56|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (176:44): [True: 31, False: 25]
  ------------------
  177|     31|               decode_buf[j] = 0;
  178|     31|            }
  179|       |
  180|     25|            final_truncate = decoding_bytes_in - decode_buf_pos;
  181|     25|            decode_buf_pos = decoding_bytes_in;
  182|     25|         }
  183|     83|      }
  184|       |
  185|  40.8k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (185:10): [True: 2.57k, False: 38.2k]
  ------------------
  186|  2.57k|         base.decode(out_ptr, decode_buf.data());
  187|       |
  188|  2.57k|         out_ptr += decoding_bytes_out;
  189|  2.57k|         decode_buf_pos = 0;
  190|  2.57k|         input_consumed = i + 1;
  191|  2.57k|      }
  192|  40.8k|   }
  193|       |
  194|  12.6k|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (194:10): [True: 12.4k, False: 155]
  |  Branch (194:43): [True: 12.4k, False: 24]
  ------------------
  195|  12.4k|      ++input_consumed;
  196|  12.4k|   }
  197|       |
  198|    179|   const size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  199|       |
  200|    179|   return written;
  201|    192|}
base64.cpp:_ZN5Botan16base_decode_fullINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmb:
  204|    192|size_t base_decode_full(const Base& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  205|    192|   size_t consumed = 0;
  206|    192|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  207|       |
  208|    192|   if(consumed != input_length) {
  ------------------
  |  Branch (208:7): [True: 24, False: 168]
  ------------------
  209|     24|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  210|     24|   }
  211|       |
  212|    168|   return written;
  213|    192|}
base64.cpp:_ZN5Botan18base_decode_to_vecINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_12_GLOBAL__N_16Base64EEET_RKT0_PKcmb:
  216|    192|Vector base_decode_to_vec(const Base& base, const char input[], size_t input_length, bool ignore_ws) {
  217|    192|   const size_t output_length = base.decode_max_output(input_length);
  218|    192|   Vector bin(output_length);
  219|       |
  220|    192|   const size_t written = base_decode_full(base, bin.data(), input, input_length, ignore_ws);
  221|       |
  222|    192|   bin.resize(written);
  223|    192|   return bin;
  224|    192|}

_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  6.66k|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  6.66k|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  6.66k|         return Mask<T>::expand_top_bit(u);
  453|  6.66k|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  6.66k|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZN5Botan2CT4MaskImEC2Em:
  637|  13.5k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  44.9k|constexpr void unpoison(const T& p) {
  113|  44.9k|   unpoison(&p, 1);
  114|  44.9k|}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  6.85k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|  13.5k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  13.5k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  6.66k|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  6.66k|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  6.66k|         return Mask<T>::is_zero(diff);
  445|  6.66k|      }
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  75.1k|constexpr inline void unpoison(const T* p, size_t n) {
   68|       |#if defined(BOTAN_HAS_VALGRIND)
   69|       |   if(!std::is_constant_evaluated()) {
   70|       |      VALGRIND_MAKE_MEM_DEFINED(p, n * sizeof(T));
   71|       |   }
   72|       |#endif
   73|       |
   74|  75.1k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  75.1k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  75.1k|}

_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  8.09k|std::string fmt(std::string_view format, const T&... args) {
   54|  8.09k|   std::ostringstream oss;
   55|  8.09k|   oss.imbue(std::locale::classic());
   56|  8.09k|   fmt_detail::do_fmt(oss, format, args...);
   57|  8.09k|   return oss.str();
   58|  8.09k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  8.09k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  8.09k|   size_t i = 0;
   27|       |
   28|  70.9k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 70.9k, False: 0]
  ------------------
   29|  70.9k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 8.09k, False: 62.8k]
  |  Branch (29:30): [True: 8.09k, False: 0]
  |  Branch (29:59): [True: 8.09k, False: 0]
  ------------------
   30|  8.09k|         oss << val;
   31|  8.09k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  62.8k|      } else {
   33|  62.8k|         oss << format[i];
   34|  62.8k|      }
   35|       |
   36|  62.8k|      i += 1;
   37|  62.8k|   }
   38|  8.09k|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  13.8k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  13.8k|   oss << format;
   22|  13.8k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  3.85k|std::string fmt(std::string_view format, const T&... args) {
   54|  3.85k|   std::ostringstream oss;
   55|  3.85k|   oss.imbue(std::locale::classic());
   56|  3.85k|   fmt_detail::do_fmt(oss, format, args...);
   57|  3.85k|   return oss.str();
   58|  3.85k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  3.85k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  3.85k|   size_t i = 0;
   27|       |
   28|  3.85k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 3.85k, False: 0]
  ------------------
   29|  3.85k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 3.85k, False: 0]
  |  Branch (29:30): [True: 3.85k, False: 0]
  |  Branch (29:59): [True: 3.85k, False: 0]
  ------------------
   30|  3.85k|         oss << val;
   31|  3.85k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  3.85k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  3.85k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  4.00k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.00k|   size_t i = 0;
   27|       |
   28|  57.2k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 57.2k, False: 0]
  ------------------
   29|  57.2k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.00k, False: 53.2k]
  |  Branch (29:30): [True: 4.00k, False: 0]
  |  Branch (29:59): [True: 4.00k, False: 0]
  ------------------
   30|  4.00k|         oss << val;
   31|  4.00k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  53.2k|      } else {
   33|  53.2k|         oss << format[i];
   34|  53.2k|      }
   35|       |
   36|  53.2k|      i += 1;
   37|  53.2k|   }
   38|  4.00k|}
_ZN5Botan3fmtIJPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEENS3_12basic_stringIcS6_NS3_9allocatorIcEEEES7_DpRKT_:
   53|      4|std::string fmt(std::string_view format, const T&... args) {
   54|      4|   std::ostringstream oss;
   55|      4|   oss.imbue(std::locale::classic());
   56|      4|   fmt_detail::do_fmt(oss, format, args...);
   57|      4|   return oss.str();
   58|      4|}
_ZN5Botan10fmt_detail6do_fmtIPKcJNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEvRNS4_19basic_ostringstreamIcS7_NS4_9allocatorIcEEEES8_RKT_DpRKT0_:
   25|      4|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      4|   size_t i = 0;
   27|       |
   28|      4|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4, False: 0]
  ------------------
   29|      4|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4, False: 0]
  |  Branch (29:30): [True: 4, False: 0]
  |  Branch (29:59): [True: 4, False: 0]
  ------------------
   30|      4|         oss << val;
   31|      4|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|      4|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|      4|}
_ZN5Botan10fmt_detail6do_fmtImJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    568|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    568|   size_t i = 0;
   27|       |
   28|  23.2k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 23.2k, False: 0]
  ------------------
   29|  23.2k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 568, False: 22.6k]
  |  Branch (29:30): [True: 568, False: 0]
  |  Branch (29:59): [True: 568, False: 0]
  ------------------
   30|    568|         oss << val;
   31|    568|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  22.6k|      } else {
   33|  22.6k|         oss << format[i];
   34|  22.6k|      }
   35|       |
   36|  22.6k|      i += 1;
   37|  22.6k|   }
   38|    568|}
_ZN5Botan3fmtIJPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|    111|std::string fmt(std::string_view format, const T&... args) {
   54|    111|   std::ostringstream oss;
   55|    111|   oss.imbue(std::locale::classic());
   56|    111|   fmt_detail::do_fmt(oss, format, args...);
   57|    111|   return oss.str();
   58|    111|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    643|std::string fmt(std::string_view format, const T&... args) {
   54|    643|   std::ostringstream oss;
   55|    643|   oss.imbue(std::locale::classic());
   56|    643|   fmt_detail::do_fmt(oss, format, args...);
   57|    643|   return oss.str();
   58|    643|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    643|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    643|   size_t i = 0;
   27|       |
   28|  11.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 11.3k, False: 0]
  ------------------
   29|  11.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 643, False: 10.6k]
  |  Branch (29:30): [True: 643, False: 0]
  |  Branch (29:59): [True: 643, False: 0]
  ------------------
   30|    643|         oss << val;
   31|    643|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  10.6k|      } else {
   33|  10.6k|         oss << format[i];
   34|  10.6k|      }
   35|       |
   36|  10.6k|      i += 1;
   37|  10.6k|   }
   38|    643|}
_ZN5Botan3fmtIJmmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|      3|std::string fmt(std::string_view format, const T&... args) {
   54|      3|   std::ostringstream oss;
   55|      3|   oss.imbue(std::locale::classic());
   56|      3|   fmt_detail::do_fmt(oss, format, args...);
   57|      3|   return oss.str();
   58|      3|}
_ZN5Botan10fmt_detail6do_fmtImJmEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      3|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      3|   size_t i = 0;
   27|       |
   28|    135|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 135, False: 0]
  ------------------
   29|    135|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 3, False: 132]
  |  Branch (29:30): [True: 3, False: 0]
  |  Branch (29:59): [True: 3, False: 0]
  ------------------
   30|      3|         oss << val;
   31|      3|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    132|      } else {
   33|    132|         oss << format[i];
   34|    132|      }
   35|       |
   36|    132|      i += 1;
   37|    132|   }
   38|      3|}
_ZN5Botan3fmtIJmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    565|std::string fmt(std::string_view format, const T&... args) {
   54|    565|   std::ostringstream oss;
   55|    565|   oss.imbue(std::locale::classic());
   56|    565|   fmt_detail::do_fmt(oss, format, args...);
   57|    565|   return oss.str();
   58|    565|}
_ZN5Botan3fmtIJjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     21|std::string fmt(std::string_view format, const T&... args) {
   54|     21|   std::ostringstream oss;
   55|     21|   oss.imbue(std::locale::classic());
   56|     21|   fmt_detail::do_fmt(oss, format, args...);
   57|     21|   return oss.str();
   58|     21|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    567|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    567|   size_t i = 0;
   27|       |
   28|  2.94k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 2.94k, False: 0]
  ------------------
   29|  2.94k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 567, False: 2.37k]
  |  Branch (29:30): [True: 567, False: 0]
  |  Branch (29:59): [True: 567, False: 0]
  ------------------
   30|    567|         oss << val;
   31|    567|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  2.37k|      } else {
   33|  2.37k|         oss << format[i];
   34|  2.37k|      }
   35|       |
   36|  2.37k|      i += 1;
   37|  2.37k|   }
   38|    567|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|     90|std::string fmt(std::string_view format, const T&... args) {
   54|     90|   std::ostringstream oss;
   55|     90|   oss.imbue(std::locale::classic());
   56|     90|   fmt_detail::do_fmt(oss, format, args...);
   57|     90|   return oss.str();
   58|     90|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|     90|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     90|   size_t i = 0;
   27|       |
   28|     90|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 90, False: 0]
  ------------------
   29|     90|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 90, False: 0]
  |  Branch (29:30): [True: 90, False: 0]
  |  Branch (29:59): [True: 90, False: 0]
  ------------------
   30|     90|         oss << val;
   31|     90|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     90|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     90|}
_ZN5Botan3fmtIJjjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    456|std::string fmt(std::string_view format, const T&... args) {
   54|    456|   std::ostringstream oss;
   55|    456|   oss.imbue(std::locale::classic());
   56|    456|   fmt_detail::do_fmt(oss, format, args...);
   57|    456|   return oss.str();
   58|    456|}
_ZN5Botan10fmt_detail6do_fmtIjJjEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    456|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    456|   size_t i = 0;
   27|       |
   28|  12.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 12.3k, False: 0]
  ------------------
   29|  12.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 456, False: 11.8k]
  |  Branch (29:30): [True: 456, False: 0]
  |  Branch (29:59): [True: 456, False: 0]
  ------------------
   30|    456|         oss << val;
   31|    456|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  11.8k|      } else {
   33|  11.8k|         oss << format[i];
   34|  11.8k|      }
   35|       |
   36|  11.8k|      i += 1;
   37|  11.8k|   }
   38|    456|}
_ZN5Botan3fmtIJtttEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|      5|std::string fmt(std::string_view format, const T&... args) {
   54|      5|   std::ostringstream oss;
   55|      5|   oss.imbue(std::locale::classic());
   56|      5|   fmt_detail::do_fmt(oss, format, args...);
   57|      5|   return oss.str();
   58|      5|}
_ZN5Botan10fmt_detail6do_fmtItJttEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     80|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 80, False: 0]
  ------------------
   29|     80|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 75]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     75|      } else {
   33|     75|         oss << format[i];
   34|     75|      }
   35|       |
   36|     75|      i += 1;
   37|     75|   }
   38|      5|}
_ZN5Botan10fmt_detail6do_fmtItJtEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     95|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 95, False: 0]
  ------------------
   29|     95|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 90]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     90|      } else {
   33|     90|         oss << format[i];
   34|     90|      }
   35|       |
   36|     90|      i += 1;
   37|     90|   }
   38|      5|}
_ZN5Botan10fmt_detail6do_fmtItJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     25|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 25, False: 0]
  ------------------
   29|     25|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 20]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     20|      } else {
   33|     20|         oss << format[i];
   34|     20|      }
   35|       |
   36|     20|      i += 1;
   37|     20|   }
   38|      5|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     44|std::string fmt(std::string_view format, const T&... args) {
   54|     44|   std::ostringstream oss;
   55|     44|   oss.imbue(std::locale::classic());
   56|     44|   fmt_detail::do_fmt(oss, format, args...);
   57|     44|   return oss.str();
   58|     44|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     44|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     44|   size_t i = 0;
   27|       |
   28|     44|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 44, False: 0]
  ------------------
   29|     44|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 44, False: 0]
  |  Branch (29:30): [True: 44, False: 0]
  |  Branch (29:59): [True: 44, False: 0]
  ------------------
   30|     44|         oss << val;
   31|     44|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     44|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     44|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     44|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     44|   size_t i = 0;
   27|       |
   28|    220|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 220, False: 0]
  ------------------
   29|    220|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 44, False: 176]
  |  Branch (29:30): [True: 44, False: 0]
  |  Branch (29:59): [True: 44, False: 0]
  ------------------
   30|     44|         oss << val;
   31|     44|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    176|      } else {
   33|    176|         oss << format[i];
   34|    176|      }
   35|       |
   36|    176|      i += 1;
   37|    176|   }
   38|     44|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  38.1k|constexpr inline std::optional<T> checked_mul(T a, T b) {
   47|       |   // Multiplication by 1U is a hack to work around C's insane
   48|       |   // integer promotion rules.
   49|       |   // https://stackoverflow.com/questions/24795651
   50|  38.1k|   const T r = (1U * a) * b;
   51|       |   // If a == 0 then the multiply certainly did not overflow
   52|       |   // Otherwise r / a == b unless overflow occurred
   53|  38.1k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 38.1k, False: 0]
  |  Branch (53:17): [True: 0, False: 38.1k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  38.1k|   return r;
   57|  38.1k|}
_ZN5Botan15checked_cast_toItmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|     19|constexpr RT checked_cast_to(AT i) {
  105|     19|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|     19|}
_ZN5Botan24checked_cast_to_or_throwItNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   91|     19|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|     19|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|     19|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|     19|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 19]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|     19|   return wrap_strong_type<RT>(unwrapped_result);
  100|     19|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|  2.21k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  2.21k|   const T r = a + b;
   21|  2.21k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 2.21k]
  |  Branch (21:16): [True: 0, False: 2.21k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  2.21k|   return r;
   25|  2.21k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  4.29k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  4.29k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 4.29k, False: 0]
  ------------------
   39|  4.29k|      return checked_add(r.value(), rest...);
   40|  4.29k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  4.29k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   19|  13.4k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  13.4k|   const T r = a + b;
   21|  13.4k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 13.4k]
  |  Branch (21:16): [True: 0, False: 13.4k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  13.4k|   return r;
   25|  13.4k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  4.29k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  4.29k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 4.29k, False: 0]
  ------------------
   39|  4.29k|      return checked_add(r.value(), rest...);
   40|  4.29k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  4.29k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  144|  53.3k|constexpr T swar_in_range(T v, T lower, T upper) {
  145|       |   // The constant 0x808080... as a T
  146|  53.3k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  147|       |   // The constant 0x7F7F7F... as a T
  148|  53.3k|   constexpr T lo7 = ~hi1;
  149|       |
  150|  53.3k|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  151|  53.3k|   const T a_lo = sub & lo7;
  152|  53.3k|   const T a_hi = sub & hi1;
  153|  53.3k|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  154|  53.3k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    154|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    154|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 154, False: 0]
  ------------------
   39|    154|      return checked_add(r.value(), rest...);
   40|    154|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    154|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    154|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    154|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 154, False: 0]
  ------------------
   39|    154|      return checked_add(r.value(), rest...);
   40|    154|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    154|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    154|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    154|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 154, False: 0]
  ------------------
   39|    154|      return checked_add(r.value(), rest...);
   40|    154|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    154|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    154|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    154|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 154, False: 0]
  ------------------
   39|    154|      return checked_add(r.value(), rest...);
   40|    154|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    154|}

_ZN5Botan8store_leINS_6detail10AutoDetectEJmEEEDaDpOT0_:
  736|  6.63k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  6.63k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  6.63k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmEQ10all_same_vIDpT1_EEEDaS6_:
  696|  6.63k|inline constexpr auto store_any(Ts... ins) {
  697|  6.63k|   return store_any<endianness, OutR>(std::array{ins...});
  698|  6.63k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  6.63k|inline constexpr auto store_any(InR&& in_range) {
  664|  6.63k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  6.63k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  6.63k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  6.63k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  6.63k|            return std::array<uint8_t, bytes>();
  669|  6.63k|         } else {
  670|  6.63k|            static_assert(
  671|  6.63k|               !std::same_as<AutoDetect, OutR>,
  672|  6.63k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  6.63k|         }
  674|  6.63k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  6.63k|         return OutR(std::span{in}.size_bytes());
  676|  6.63k|      } else {
  677|  6.63k|         return OutR{};
  678|  6.63k|      }
  679|  6.63k|   }(in_range);
  680|       |
  681|  6.63k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  6.63k|   return out;
  683|  6.63k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  6.63k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  6.63k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  6.63k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  6.63k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  6.63k|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|  6.63k|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm8EEETkNS4_14spanable_rangeENS6_ImLm1EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_:
  603|  6.63k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  6.63k|   ranges::assert_equal_byte_lengths(out, in);
  605|  6.63k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  6.63k|   auto store_elementwise = [&] {
  608|  6.63k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  6.63k|      std::span<uint8_t> out_s(out);
  610|  6.63k|      for(auto in_elem : in) {
  611|  6.63k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  6.63k|         out_s = out_s.subspan(bytes_per_element);
  613|  6.63k|      }
  614|  6.63k|   };
  615|       |
  616|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  617|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  618|       |   // in a `constexpr` context.
  619|  6.63k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 6.63k]
  ------------------
  620|      0|      store_elementwise();
  621|  6.63k|   } else {
  622|  6.63k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  6.63k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  6.63k|   }
  628|  6.63k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  4.56k|constexpr auto unwrap_strong_type_or_enum(InT t) {
  191|       |   if constexpr(std::is_enum_v<InT>) {
  192|       |      // TODO: C++23: use std::to_underlying(in) instead
  193|       |      return static_cast<std::underlying_type_t<InT>>(t);
  194|  4.56k|   } else {
  195|  4.56k|      return Botan::unwrap_strong_type(t);
  196|  4.56k|   }
  197|  4.56k|}
_ZN5Botan8get_byteILm0EmEEhT0_QltT_stS1_:
   81|    209|{
   82|    209|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|    209|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|    209|}
_ZN5Botan8get_byteILm0EtEEhT0_QltT_stS1_:
   81|    102|{
   82|    102|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|    102|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|    102|}
_ZN5Botan8get_byteILm1EtEEhT0_QltT_stS1_:
   81|    102|{
   82|    102|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|    102|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|    102|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|  42.9k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|  42.9k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|  42.9k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  4.56k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  4.56k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  4.56k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  4.56k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  4.56k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  4.56k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  4.56k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  4.56k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  4.56k|   using InT = decltype(in);
  528|  4.56k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  4.56k|   const std::span out{out_range};
  530|       |
  531|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  532|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  533|       |   // in a `constexpr` context.
  534|  4.56k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 4.56k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  4.56k|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|       |      } else if constexpr(endianness == std::endian::native) {
  540|       |         typecast_copy(out, in);
  541|  4.56k|      } else {
  542|  4.56k|         static_assert(opposite(endianness) == std::endian::native);
  543|  4.56k|         typecast_copy(out, reverse_bytes(in));
  544|  4.56k|      }
  545|  4.56k|   }
  546|  4.56k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|    891|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|    891|   } else {
  204|    891|      return Botan::wrap_strong_type<OutT>(t);
  205|    891|   }
  206|    891|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|    891|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|    891|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|    891|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|    891|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    891|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|    891|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    891|      } else {
  289|    891|         const std::span in{in_range};
  290|    891|         if constexpr(sizeof(OutT) == 1) {
  291|    891|            return static_cast<OutT>(in[0]);
  292|    891|         } else if constexpr(endianness == std::endian::native) {
  293|    891|            return typecast_copy<OutT>(in);
  294|    891|         } else {
  295|    891|            static_assert(opposite(endianness) == std::endian::native);
  296|    891|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    891|         }
  298|    891|      }
  299|    891|   }());
  300|    891|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|    891|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    891|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 891]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    891|      } else {
  289|    891|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|    891|         } else {
  295|    891|            static_assert(opposite(endianness) == std::endian::native);
  296|    891|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    891|         }
  298|    891|      }
  299|    891|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  4.56k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  4.56k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  4.56k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  6.34k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  6.34k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  6.34k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  6.34k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  6.34k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  6.34k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  6.34k|      } else {
  289|  6.34k|         const std::span in{in_range};
  290|  6.34k|         if constexpr(sizeof(OutT) == 1) {
  291|  6.34k|            return static_cast<OutT>(in[0]);
  292|  6.34k|         } else if constexpr(endianness == std::endian::native) {
  293|  6.34k|            return typecast_copy<OutT>(in);
  294|  6.34k|         } else {
  295|  6.34k|            static_assert(opposite(endianness) == std::endian::native);
  296|  6.34k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  6.34k|         }
  298|  6.34k|      }
  299|  6.34k|   }());
  300|  6.34k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|  19.2k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  19.2k|   } else {
  204|  19.2k|      return Botan::wrap_strong_type<OutT>(t);
  205|  19.2k|   }
  206|  19.2k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  6.34k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  6.34k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 6.34k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  6.34k|      } else {
  289|  6.34k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|  6.34k|         } else {
  295|  6.34k|            static_assert(opposite(endianness) == std::endian::native);
  296|  6.34k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  6.34k|         }
  298|  6.34k|      }
  299|  6.34k|   }());
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|  6.34k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  6.34k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  6.34k|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  12.9k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  12.9k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  12.9k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  12.9k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  12.9k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  12.9k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  12.9k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  12.9k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  12.9k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  12.9k|      } else {
  289|  12.9k|         const std::span in{in_range};
  290|  12.9k|         if constexpr(sizeof(OutT) == 1) {
  291|  12.9k|            return static_cast<OutT>(in[0]);
  292|  12.9k|         } else if constexpr(endianness == std::endian::native) {
  293|  12.9k|            return typecast_copy<OutT>(in);
  294|  12.9k|         } else {
  295|  12.9k|            static_assert(opposite(endianness) == std::endian::native);
  296|  12.9k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  12.9k|         }
  298|  12.9k|      }
  299|  12.9k|   }());
  300|  12.9k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  12.9k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  12.9k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 12.9k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  12.9k|      } else {
  289|  12.9k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|  12.9k|         } else {
  295|  12.9k|            static_assert(opposite(endianness) == std::endian::native);
  296|  12.9k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  12.9k|         }
  298|  12.9k|      }
  299|  12.9k|   }());
_ZN5Botan7load_beItJPKhRmEEEDaDpOT0_:
  504|    971|inline constexpr auto load_be(ParamTs&&... params) {
  505|    971|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    971|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtEET0_PKhm:
  454|    971|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|    971|   constexpr size_t out_size = sizeof(OutT);
  457|    971|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|    971|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|    971|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|    971|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|    971|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|    971|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    971|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|    971|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    971|      } else {
  289|    971|         const std::span in{in_range};
  290|    971|         if constexpr(sizeof(OutT) == 1) {
  291|    971|            return static_cast<OutT>(in[0]);
  292|    971|         } else if constexpr(endianness == std::endian::native) {
  293|    971|            return typecast_copy<OutT>(in);
  294|    971|         } else {
  295|    971|            static_assert(opposite(endianness) == std::endian::native);
  296|    971|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    971|         }
  298|    971|      }
  299|    971|   }());
  300|    971|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|    971|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|    971|   } else {
  204|    971|      return Botan::wrap_strong_type<OutT>(t);
  205|    971|   }
  206|    971|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|    971|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    971|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 971]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    971|      } else {
  289|    971|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|    971|         } else {
  295|    971|            static_assert(opposite(endianness) == std::endian::native);
  296|    971|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    971|         }
  298|    971|      }
  299|    971|   }());
_ZN5Botan7load_beIjJPKhRmEEEDaDpOT0_:
  504|    158|inline constexpr auto load_be(ParamTs&&... params) {
  505|    158|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    158|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|    891|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|    891|   constexpr size_t out_size = sizeof(OutT);
  457|    891|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|    891|}
_ZN5Botan7load_beIjJPKhiEEEDaDpOT0_:
  504|    733|inline constexpr auto load_be(ParamTs&&... params) {
  505|    733|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    733|}

_ZN5Botan15bytes_to_stringENSt3__14spanIKhLm18446744073709551615EEE:
   76|  17.6k|inline std::string bytes_to_string(std::span<const uint8_t> bytes) {
   77|  17.6k|   return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size());
   78|  17.6k|}

_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  439|  6.85k|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  440|  6.85k|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  441|       |
  442|  6.85k|   const W LT = static_cast<W>(-1);
  443|  6.85k|   const W EQ = 0;
  444|  6.85k|   const W GT = 1;
  445|       |
  446|  6.85k|   const size_t common_elems = std::min(x_size, y_size);
  447|       |
  448|  6.85k|   W result = EQ;  // until found otherwise
  449|       |
  450|  13.5k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (450:22): [True: 6.66k, False: 6.85k]
  ------------------
  451|  6.66k|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  452|  6.66k|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  453|       |
  454|  6.66k|      result = is_eq.select(result, is_lt.select(LT, GT));
  455|  6.66k|   }
  456|       |
  457|  6.85k|   if(x_size < y_size) {
  ------------------
  |  Branch (457:7): [True: 199, False: 6.66k]
  ------------------
  458|    199|      W mask = 0;
  459|    398|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (459:30): [True: 199, False: 199]
  ------------------
  460|    199|         mask |= y[i];
  461|    199|      }
  462|       |
  463|       |      // If any bits were set in high part of y, then x < y
  464|    199|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  465|  6.66k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (465:14): [True: 0, False: 6.66k]
  ------------------
  466|      0|      W mask = 0;
  467|      0|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (467:30): [True: 0, False: 0]
  ------------------
  468|      0|         mask |= x[i];
  469|      0|      }
  470|       |
  471|       |      // If any bits were set in high part of x, then x > y
  472|      0|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  473|      0|   }
  474|       |
  475|  6.85k|   CT::unpoison(result);
  476|  6.85k|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  130|  6.85k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  6.85k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 6.85k]
  |  |  ------------------
  ------------------
  477|  6.85k|   return static_cast<int32_t>(result);
  478|  6.85k|}

_ZN5Botan8round_upEmm:
   26|  33.8k|constexpr inline size_t round_up(size_t n, size_t align_to) {
   27|       |   // Arguably returning n in this case would also be sensible
   28|  33.8k|   BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
  ------------------
  |  |   35|  33.8k|   do {                                                          \
  |  |   36|  33.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  33.8k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 33.8k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  33.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 33.8k]
  |  |  ------------------
  ------------------
   29|       |
   30|  33.8k|   if(n % align_to > 0) {
  ------------------
  |  Branch (30:7): [True: 32.7k, False: 1.05k]
  ------------------
   31|  32.7k|      const size_t adj = align_to - (n % align_to);
   32|  32.7k|      BOTAN_ARG_CHECK(n + adj >= n, "Integer overflow during rounding");
  ------------------
  |  |   35|  32.7k|   do {                                                          \
  |  |   36|  32.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  32.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 32.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  32.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 32.7k]
  |  |  ------------------
  ------------------
   33|  32.7k|      n += adj;
   34|  32.7k|   }
   35|  33.8k|   return n;
   36|  33.8k|}

_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEjQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  7.45k|constexpr inline T value_barrier(T x) {
   44|  7.45k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 7.45k]
  ------------------
   45|      0|      return x;
   46|  7.45k|   } else {
   47|  7.45k|#if defined(BOTAN_CT_VALUE_BARRIER_USE_ASM)
   48|       |      /*
   49|       |      * We may want a "stronger" statement such as
   50|       |      *     asm volatile("" : "+r,m"(x) : : "memory);
   51|       |      * (see https://theunixzoo.co.uk/blog/2021-10-14-preventing-optimisations.html)
   52|       |      * however the current approach seems sufficient with current compilers,
   53|       |      * and is minimally damaging with regards to degrading code generation.
   54|       |      */
   55|  7.45k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  7.45k|      return x;
   57|       |#elif defined(BOTAN_CT_VALUE_BARRIER_USE_VOLATILE)
   58|       |      volatile T vx = x;
   59|       |      return vx;
   60|       |#else
   61|       |      return x;
   62|       |#endif
   63|  7.45k|   }
   64|  7.45k|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEmQntsr3stdE7same_asIbT_EEES3_S3_:
   43|   330k|constexpr inline T value_barrier(T x) {
   44|   330k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 330k]
  ------------------
   45|      0|      return x;
   46|   330k|   } else {
   47|   330k|#if defined(BOTAN_CT_VALUE_BARRIER_USE_ASM)
   48|       |      /*
   49|       |      * We may want a "stronger" statement such as
   50|       |      *     asm volatile("" : "+r,m"(x) : : "memory);
   51|       |      * (see https://theunixzoo.co.uk/blog/2021-10-14-preventing-optimisations.html)
   52|       |      * however the current approach seems sufficient with current compilers,
   53|       |      * and is minimally damaging with regards to degrading code generation.
   54|       |      */
   55|   330k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|   330k|      return x;
   57|       |#elif defined(BOTAN_CT_VALUE_BARRIER_USE_VOLATILE)
   58|       |      volatile T vx = x;
   59|       |      return vx;
   60|       |#else
   61|       |      return x;
   62|       |#endif
   63|   330k|   }
   64|   330k|}

_ZN5Botan17is_sub_element_ofERKNS_3OIDESt16initializer_listIjE:
   22|  23.3k|inline std::optional<uint32_t> is_sub_element_of(const OID& oid, std::initializer_list<uint32_t> prefix) {
   23|  23.3k|   const auto& c = oid.get_components();
   24|       |
   25|  23.3k|   if(c.size() != prefix.size() + 1) {
  ------------------
  |  Branch (25:7): [True: 10.6k, False: 12.7k]
  ------------------
   26|  10.6k|      return {};
   27|  10.6k|   }
   28|       |
   29|  12.7k|   if(!std::equal(c.begin(), c.end() - 1, prefix.begin(), prefix.end())) {
  ------------------
  |  Branch (29:7): [True: 1.01k, False: 11.7k]
  ------------------
   30|  1.01k|      return {};
   31|  1.01k|   }
   32|       |
   33|  11.7k|   return c[c.size() - 1];
   34|  12.7k|}

_ZN5Botan11ASN1_ObjectD2Ev:
  168|   212k|      virtual ~ASN1_Object() = default;
_ZNK5Botan14ASN1_BitString5bytesEv:
  206|  5.62k|      std::span<const uint8_t> bytes() const { return std::span{m_bytes}; }
_ZNK5Botan14ASN1_BitString11unused_bitsEv:
  211|  2.81k|      size_t unused_bits() const { return m_unused_bits; }
_ZNK5Botan10BER_Object6is_setEv:
  267|   385k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  272|   162k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  277|   163k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  282|   183k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  287|  30.3k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  292|  15.5k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  298|  2.48M|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  303|  5.22M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  308|  60.2k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  344|   137k|      uint8_t* mutable_bits(size_t length) {
  345|   137k|         m_value.resize(length);
  346|   137k|         return m_value.data();
  347|   137k|      }
_ZNK5Botan3OID5emptyEv:
  468|    798|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|    798|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  510|  12.5k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan3OID14get_componentsEv:
  530|  87.1k|      const std::vector<uint32_t>& get_components() const {
  531|  87.1k|         return m_id;
  532|  87.1k|      }
_ZNK5Botan11ASN1_String5valueEv:
  590|  2.57k|      const std::string& value() const { return m_utf8_str; }
_ZN5BotanltERKNS_11ASN1_StringES2_:
  612|    184|      friend bool operator<(const ASN1_String& a, const ASN1_String& b) { return a.value() < b.value(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  688|  5.04k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  693|  4.92k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  715|  5.53k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  720|  5.53k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (720:58): [True: 3.47k, False: 2.06k]
  |  Branch (720:84): [True: 1.82k, False: 236]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   91|  70.4k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   92|  70.4k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   93|  70.4k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   98|   162k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   99|   162k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  100|   162k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
  105|  24.2k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
  106|  24.2k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  107|  24.2k|}
_ZN5BotanneERKNS_3OIDES2_:
  561|    860|inline bool operator!=(const OID& a, const OID& b) {
  562|    860|   return !(a == b);
  563|    860|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|      4|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectC2Ev:
  146|   126k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  655|  6.24k|      AlgorithmIdentifier() = default;
_ZN5Botan3OIDC2Ev:
  423|  25.3k|      explicit OID() = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  36.9k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  259|  59.8k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  49.3k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSEOS0_:
  166|  20.5k|      ASN1_Object& operator=(ASN1_Object&&) = default;
_ZN5Botan14ASN1_BitStringC2Ev:
  179|  2.92k|      ASN1_BitString() = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  249|  75.9k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2Ev:
  239|   234k|      BER_Object() = default;
_ZN5Botan10BER_ObjectC2ERKS0_:
  244|    185|      BER_Object(const BER_Object& other) = default;

_ZN5Botan9ASN1_TimeC2Ev:
   42|  14.6k|      ASN1_Time() = default;

_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  142|  75.1k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJjEEEvDpRKT_:
  142|  15.1k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan11BER_Decoder6Limits3DEREv:
   42|  12.9k|            static Limits DER() { return Limits(false, 0, false, DefaultMaxObjectSize, false); }
_ZN5Botan11BER_Decoder6LimitsC2EbmbNSt3__18optionalImEEb:
  133|  12.9k|                  m_allow_ber(allow_ber),
  134|  12.9k|                  m_max_nested_indef(max_nested_indef),
  135|  12.9k|                  m_allow_standalone_eoc(allow_standalone_eoc),
  136|  12.9k|                  m_max_object_size(max_object_size),
  137|  12.9k|                  m_reject_default_value_encoding(reject_default_value_encoding) {}
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  553|  2.79k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  554|  2.79k|         std::optional<T> optval;
  555|  2.79k|         this->decode_optional(optval, type_tag, class_tag);
  556|  2.79k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (556:16): [True: 2.45k, False: 336]
  ------------------
  557|  2.79k|         return (*this);
  558|  2.79k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  827|  2.79k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  828|  2.79k|   BER_Object obj = get_next_object();
  829|       |
  830|  2.79k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (830:7): [True: 2.59k, False: 199]
  ------------------
  831|  2.59k|      T out{};
  832|  2.59k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (832:10): [True: 0, False: 2.59k]
  ------------------
  833|      0|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  834|  2.59k|      } else {
  835|  2.59k|         this->push_back(std::move(obj));
  836|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  837|       |            // Object types check the tag in decode_from; a re-tagging
  838|       |            // implicit override of an object is not supported here
  839|       |            this->decode(out);
  840|  2.59k|         } else {
  841|  2.59k|            this->decode(out, type_tag, class_tag);
  842|  2.59k|         }
  843|  2.59k|      }
  844|  2.59k|      optval = std::move(out);
  845|  2.59k|   } else {
  846|    199|      this->push_back(std::move(obj));
  847|    199|      optval = std::nullopt;
  848|    199|   }
  849|       |
  850|  2.79k|   return (*this);
  851|  2.79k|}
_ZNK5Botan11BER_Decoder6limitsEv:
  197|  62.2k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
  167|  3.50k|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   56|   351k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   61|   212k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6Limits15max_object_sizeEv:
   80|   138k|            std::optional<size_t> max_object_size() const { return m_max_object_size; }
_ZN5Botan11BER_Decoder14start_sequenceEv:
  275|  54.6k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder9start_setEv:
  281|  2.87k|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder22start_context_specificEj:
  290|     35|      BER_Decoder start_context_specific(uint32_t tag) {
  291|     35|         return start_cons(ASN1_Type(tag), ASN1_Class::ContextSpecific);
  292|     35|      }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  368|  9.08k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  386|  14.8k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  387|  14.8k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  388|  14.8k|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  338|  11.3k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  339|  11.3k|         out.clear();
  340|  2.11M|         for(;;) {
  341|  2.11M|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (341:21): [True: 2.09M, False: 11.3k]
  ------------------
  342|  2.09M|               out.push_back(*next);
  343|  2.09M|            } else {
  344|  11.3k|               break;
  345|  11.3k|            }
  346|  2.11M|         }
  347|  11.3k|         return (*this);
  348|  11.3k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  553|  14.8k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  554|  14.8k|         std::optional<T> optval;
  555|  14.8k|         this->decode_optional(optval, type_tag, class_tag);
  556|  14.8k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (556:16): [True: 5, False: 14.8k]
  ------------------
  557|  14.8k|         return (*this);
  558|  14.8k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  827|  14.8k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  828|  14.8k|   BER_Object obj = get_next_object();
  829|       |
  830|  14.8k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (830:7): [True: 18, False: 14.8k]
  ------------------
  831|     18|      T out{};
  832|     18|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (832:10): [True: 0, False: 18]
  ------------------
  833|      0|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  834|     18|      } else {
  835|     18|         this->push_back(std::move(obj));
  836|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  837|       |            // Object types check the tag in decode_from; a re-tagging
  838|       |            // implicit override of an object is not supported here
  839|       |            this->decode(out);
  840|     18|         } else {
  841|     18|            this->decode(out, type_tag, class_tag);
  842|     18|         }
  843|     18|      }
  844|     18|      optval = std::move(out);
  845|  14.8k|   } else {
  846|  14.8k|      this->push_back(std::move(obj));
  847|  14.8k|      optval = std::nullopt;
  848|  14.8k|   }
  849|       |
  850|  14.8k|   return (*this);
  851|  14.8k|}
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_0EERS0_jNS_10ASN1_ClassEOT_:
  626|     62|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|     62|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 13, False: 49]
  ------------------
  628|     13|            std::forward<F>(fn)(*this);
  629|     13|         }
  630|     62|         return (*this);
  631|     62|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  663|     35|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  664|     35|         BER_Object obj = get_next_object();
  665|     35|         obj.assert_is_a(type_tag, class_tag);
  666|     35|         return decode_implicit(std::move(obj), out, real_type, real_class);
  667|     35|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|     35|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|     35|         obj.set_tagging(real_type, real_class);
  642|     35|         push_back(std::move(obj));
  643|     35|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|     35|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|     35|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_1EERS0_jNS_10ASN1_ClassEOT_:
  626|     52|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|     52|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 7, False: 45]
  ------------------
  628|      7|            std::forward<F>(fn)(*this);
  629|      7|         }
  630|     52|         return (*this);
  631|     52|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_2EERS0_jNS_10ASN1_ClassEOT_:
  626|     46|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|     46|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 6, False: 40]
  ------------------
  628|      6|            std::forward<F>(fn)(*this);
  629|      6|         }
  630|     46|         return (*this);
  631|     46|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  663|      6|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  664|      6|         BER_Object obj = get_next_object();
  665|      6|         obj.assert_is_a(type_tag, class_tag);
  666|      6|         return decode_implicit(std::move(obj), out, real_type, real_class);
  667|      6|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|      6|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|      6|         obj.set_tagging(real_type, real_class);
  642|      6|         push_back(std::move(obj));
  643|      6|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|      6|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|      6|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_1EERS0_jNS_10ASN1_ClassEOT_:
  626|    153|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    153|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 35, False: 118]
  ------------------
  628|     35|            std::forward<F>(fn)(*this);
  629|     35|         }
  630|    153|         return (*this);
  631|    153|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_2EERS0_jNS_10ASN1_ClassEOT_:
  626|    122|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    122|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 8, False: 114]
  ------------------
  628|      8|            std::forward<F>(fn)(*this);
  629|      8|         }
  630|    122|         return (*this);
  631|    122|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_3EERS0_jNS_10ASN1_ClassEOT_:
  626|    113|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    113|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 10, False: 103]
  ------------------
  628|     10|            std::forward<F>(fn)(*this);
  629|     10|         }
  630|    113|         return (*this);
  631|    113|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_4EERS0_jNS_10ASN1_ClassEOT_:
  626|    110|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    110|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 38, False: 72]
  ------------------
  628|     38|            std::forward<F>(fn)(*this);
  629|     38|         }
  630|    110|         return (*this);
  631|    110|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_5EERS0_jNS_10ASN1_ClassEOT_:
  626|     78|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|     78|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 4, False: 74]
  ------------------
  628|      4|            std::forward<F>(fn)(*this);
  629|      4|         }
  630|     78|         return (*this);
  631|     78|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_6EERS0_jNS_10ASN1_ClassEOT_:
  626|     71|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|     71|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 5, False: 66]
  ------------------
  628|      5|            std::forward<F>(fn)(*this);
  629|      5|         }
  630|     71|         return (*this);
  631|     71|      }
_ZN5Botan11BER_Decoder30decode_octet_aligned_bitstringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  464|  2.88k|                                                  ASN1_Class class_tag = ASN1_Class::Universal) {
  465|  2.88k|         ASN1_BitString bits;
  466|  2.88k|         decode_bitstring(bits, type_tag, class_tag);
  467|       |
  468|  2.88k|         if(bits.unused_bits() != 0) {
  ------------------
  |  Branch (468:13): [True: 4, False: 2.88k]
  ------------------
  469|      4|            throw Decoding_Error("Expected octet-aligned BIT STRING");
  470|      4|         }
  471|       |
  472|  2.88k|         out.assign(bits.bytes().begin(), bits.bytes().end());
  473|  2.88k|         return (*this);
  474|  2.88k|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_3OIDEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|    185|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|    185|         obj.set_tagging(real_type, real_class);
  642|    185|         push_back(std::move(obj));
  643|    185|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|    185|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|    185|      }

_ZN5Botan6BigIntC2ERKS0_:
   88|     13|      BigInt(const BigInt& other) = default;
_ZN5Botan6BigIntD2Ev:
  185|  30.1k|      ~BigInt() { _const_time_unpoison(); }
_ZNK5Botan6BigInt6signumEv:
  493|  22.7k|      int signum() const {
  494|  22.7k|         if(sig_words() == 0) {
  ------------------
  |  Branch (494:13): [True: 273, False: 22.4k]
  ------------------
  495|    273|            return 0;
  496|    273|         }
  497|  22.4k|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (497:17): [True: 1.46k, False: 21.0k]
  ------------------
  498|  22.7k|      }
_ZNK5Botan6BigInt9sig_wordsEv:
  687|  79.7k|      size_t sig_words() const { return m_data.sig_words(); }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1163|  79.7k|            size_t sig_words() const {
 1164|  79.7k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1164:19): [True: 14.5k, False: 65.1k]
  ------------------
 1165|  14.5k|                  m_sig_words = calc_sig_words();
 1166|  14.5k|               }
 1167|  79.7k|               return m_sig_words;
 1168|  79.7k|            }
_ZNK5Botan6BigInt4signEv:
  641|  22.4k|      Sign sign() const { return (m_signedness); }
_ZN5Botan6BigInt4zeroEv:
   50|     49|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  13.9k|      BigInt& operator=(BigInt&& other) noexcept {
  191|  13.9k|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 13.9k, False: 0]
  ------------------
  192|  13.9k|            this->swap(other);
  193|  13.9k|         }
  194|       |
  195|  13.9k|         return (*this);
  196|  13.9k|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  13.9k|      void swap(BigInt& other) noexcept {
  208|  13.9k|         m_data.swap(other.m_data);
  209|  13.9k|         std::swap(m_signedness, other.m_signedness);
  210|  13.9k|      }
_ZN5Botan6BigInt5clearEv:
  441|  14.5k|      void clear() {
  442|  14.5k|         m_data.set_to_zero();
  443|  14.5k|         m_signedness = Positive;
  444|  14.5k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  510|  1.42k|      bool is_zero() const { return sig_words() == 0; }
_ZNK5Botan6BigInt7word_atEm:
  601|  56.1k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  663|  1.42k|      void set_sign(Sign sign) {
  664|  1.42k|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (664:13): [True: 1.42k, False: 0]
  |  Branch (664:33): [True: 0, False: 1.42k]
  ------------------
  665|      0|            sign = Positive;
  666|      0|         }
  667|       |
  668|  1.42k|         m_signedness = sign;
  669|  1.42k|      }
_ZNK5Botan6BigInt5_dataEv:
 1033|  6.85k|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 1044|  14.5k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1088|  37.0k|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1099|  56.1k|            word get_word_at(size_t n) const {
 1100|  56.1k|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1100:19): [True: 56.1k, False: 5]
  ------------------
 1101|  56.1k|                  return m_reg[n];
 1102|  56.1k|               }
 1103|      5|               return 0;
 1104|  56.1k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1136|  30.1k|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1151|  13.9k|            void swap(Data& other) noexcept {
 1152|  13.9k|               m_reg.swap(other.m_reg);
 1153|  13.9k|               std::swap(m_sig_words, other.m_sig_words);
 1154|  13.9k|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1156|  14.5k|            void swap(secure_vector<word>& reg) noexcept {
 1157|  14.5k|               m_reg.swap(reg);
 1158|  14.5k|               invalidate_sig_words();
 1159|  14.5k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1161|  14.5k|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZN5BotaneqERKNS_6BigIntEm:
 1373|  9.03k|inline bool operator==(const BigInt& a, word b) {
 1374|  9.03k|   return (a.cmp_word(b) == 0);
 1375|  9.03k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  790|  9.44k|      T serialize(size_t len) const {
  791|       |         // TODO this supports std::vector and secure_vector
  792|       |         // it would be nice if this also could work with std::array as in
  793|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  794|  9.44k|         T out(len);
  795|  9.44k|         this->serialize_to(out);
  796|  9.44k|         return out;
  797|  9.44k|      }
_ZN5Botan6BigIntC2Ev:
   45|  30.1k|      BigInt() = default;
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_v:
  803|    616|      T serialize() const {
  804|    616|         return serialize<T>(this->bytes());
  805|    616|      }

_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  181|  19.5k|      explicit DataSource_Memory(std::span<const uint8_t> in) : m_offset(0) {
  182|       |         // Guard against forming a range from a null pointer (eg an empty span)
  183|  19.5k|         if(!in.empty()) {
  ------------------
  |  Branch (183:13): [True: 18.0k, False: 1.50k]
  ------------------
  184|  18.0k|            m_source.assign(in.begin(), in.end());
  185|  18.0k|         }
  186|  19.5k|      }
_ZN5Botan10DataSourceC2Ev:
  107|  79.0k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  109|  75.6k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  175|     96|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZN5Botan11DER_Encoder12DER_SequenceD2Ev:
  504|    579|            ~DER_Sequence() = default;
_ZN5Botan11DER_Encoder14start_sequenceEv:
   86|    193|      DER_Encoder& start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  410|  3.02k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  411|  3.02k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  412|  3.02k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  421|  2.21k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  422|  2.21k|         return add_object(type_tag, class_tag, std::span{rep});
  423|  2.21k|      }
_ZN5Botan11DER_Encoder12DER_SequenceC2EOS1_:
  487|    386|                  m_type_tag(seq.m_type_tag),
  488|    386|                  m_class_tag(seq.m_class_tag),
  489|    386|                  m_sort_contents(seq.m_sort_contents),
  490|    386|                  m_contents(std::move(seq.m_contents)),
  491|    386|                  m_set_contents(std::move(seq.m_set_contents)) {}

_ZN5Botan7DNSNameC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  101|  1.79k|      explicit DNSName(std::string canonical) : m_name(std::move(canonical)) {}
_ZNK5Botan7DNSNamessERKS0_:
   84|  4.63k|      auto operator<=>(const DNSName&) const = default;

_ZN5Botan12EmailAddressC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DNSNameE:
   69|    479|            m_local_part(std::move(local_part)), m_domain(std::move(domain)) {}
_ZNK5Botan12EmailAddressssERKS0_:
   59|  2.20k|      auto operator<=>(const EmailAddress&) const = default;

_ZNK5Botan9Exception4whatEv:
   94|  3.96k|      const char* what() const noexcept override { return m_msg.c_str(); }

_ZN5Botan11IPv4AddressC2Ej:
   29|    797|      explicit IPv4Address(uint32_t ip) : m_ip(ip) {}
_ZNK5Botan11IPv4AddressssERKS0_:
   61|  4.95k|      auto operator<=>(const IPv4Address&) const = default;

_ZN5Botan11IPv6AddressC2ENSt3__15arrayIhLm16EEE:
   37|     23|      explicit IPv6Address(std::array<uint8_t, 16> ip) : m_ip(ip) {}
_ZNK5Botan11IPv6AddressssERKS0_:
   73|    366|      auto operator<=>(const IPv6Address&) const = default;

_ZN5Botan11clear_bytesEPvm:
  101|  14.7k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  14.7k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 144, False: 14.5k]
  ------------------
  103|    144|      std::memset(ptr, 0, bytes);
  104|    144|   }
  105|  14.7k|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  2.68M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  2.68M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  2.68M|   do {                                                                                          \
  |  |  104|  2.68M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  5.34M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 2.67M, False: 15.2k]
  |  |  |  Branch (105:23): [True: 2.67M, False: 0]
  |  |  |  Branch (105:23): [True: 2.67M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  2.68M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 2.68M]
  |  |  ------------------
  ------------------
  146|       |
  147|  2.68M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 2.68M, False: 1.83k]
  |  Branch (147:24): [True: 2.68M, False: 3.23k]
  |  Branch (147:42): [True: 2.67M, False: 10.2k]
  ------------------
  148|  2.67M|      std::memmove(out, in, sizeof(T) * n);
  149|  2.67M|   }
  150|  2.68M|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm8EEETkNS1_16contiguous_rangeENS3_ImLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  6.63k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  6.63k|   ranges::assert_equal_byte_lengths(out, in);
  178|  6.63k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  6.63k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm8EEETkNS1_16contiguous_rangeENS3_IKmLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEEEvOSN_RKSD_:
  176|  4.56k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  4.56k|   ranges::assert_equal_byte_lengths(out, in);
  178|  4.56k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  4.56k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm8EEEmQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|  4.56k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  4.56k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  4.56k|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   310k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   310k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   310k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|    192|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|    192|   clear_bytes(ptr, sizeof(T) * n);
  120|    192|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanIjLm1EEETkNS1_16contiguous_rangeENS3_IKhLm4EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|    891|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    891|   ranges::assert_equal_byte_lengths(out, in);
  178|    891|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    891|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|    891|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    891|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    891|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|    891|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    891|   ToT dst;  // NOLINT(*-member-init)
  212|    891|   typecast_copy(dst, src);
  213|    891|   return dst;
  214|    891|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm8EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|  6.34k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  6.34k|   ToT dst;  // NOLINT(*-member-init)
  212|  6.34k|   typecast_copy(dst, src);
  213|  6.34k|   return dst;
  214|  6.34k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm8EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|  6.34k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  6.34k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  6.34k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm1EEETkNS1_16contiguous_rangeENS3_IKhLm8EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  6.34k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  6.34k|   ranges::assert_equal_byte_lengths(out, in);
  178|  6.34k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  6.34k|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  14.5k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  14.5k|   clear_bytes(ptr, sizeof(T) * n);
  120|  14.5k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeENS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIST_EEEvOSB_RKSL_:
  160|  12.9k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  12.9k|   ranges::assert_equal_byte_lengths(out, in);
  162|  12.9k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 12.9k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  12.9k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 12.9k, False: 0]
  ------------------
  165|  12.9k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  12.9k|   }
  167|  12.9k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS5_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEEES5_RKSA_:
  210|  12.9k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  12.9k|   ToT dst;  // NOLINT(*-member-init)
  212|  12.9k|   typecast_copy(dst, src);
  213|  12.9k|   return dst;
  214|  12.9k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISC_EESD_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISJ_EEEvRSJ_RKS9_:
  188|  12.9k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  12.9k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  12.9k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm1EEETkNS1_16contiguous_rangeENS3_IhLm8EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS6_IXsr21__is_primary_templateINS7_Iu14__remove_cvrefIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSF_ISN_EESO_E4type10value_typeEEEEvOSK_RKSA_:
  176|  12.9k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  12.9k|   ranges::assert_equal_byte_lengths(out, in);
  178|  12.9k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  12.9k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|    971|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    971|   ToT dst;  // NOLINT(*-member-init)
  212|    971|   typecast_copy(dst, src);
  213|    971|   return dst;
  214|    971|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|    971|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    971|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    971|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanItLm1EEETkNS1_16contiguous_rangeENS3_IKhLm2EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|    971|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    971|   ranges::assert_equal_byte_lengths(out, in);
  178|    971|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    971|}

_ZN5Botan15Key_ConstraintsC2ENS0_4BitsE:
  162|      1|      Key_Constraints(Key_Constraints::Bits bits) : m_value(bits) {}
_ZN5Botan11ReasonFlagsC2Et:
  247|     19|      explicit ReasonFlags(uint16_t bits) : m_value(bits) {
  248|     19|         if((m_value & static_cast<uint16_t>(~DefinedReasonBits)) != 0) {
  ------------------
  |  Branch (248:13): [True: 7, False: 12]
  ------------------
  249|      7|            throw Decoding_Error("ReasonFlags contains undefined reason bits");
  250|      7|         }
  251|     12|         if(m_value == 0) {
  ------------------
  |  Branch (251:13): [True: 3, False: 9]
  ------------------
  252|      3|            throw Decoding_Error("ReasonFlags must have at least one defined reason");
  253|      3|         }
  254|     12|      }

_ZN5Botan7X509_DNC2Ev:
  159|  3.10k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
 1029|  11.8k|      Extensions() = default;
_ZNK5Botan10Extensions30has_unknown_critical_extensionEv:
  936|  8.82k|      bool has_unknown_critical_extension() const { return m_has_unknown_critical_extension; }
_ZNK5Botan10Extensions5countEv:
 1027|    388|      size_t count() const { return m_extension_oids.size(); }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension10CRL_NumberEEEPKT_RKNS_3OIDE:
  884|     52|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|     52|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 20, False: 32]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|     20|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 7, False: 13]
  ------------------
  888|      7|               return nullptr;
  889|     13|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 13, False: 0]
  ------------------
  890|     13|               return extn_as_T;
  891|     13|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|     20|         }
  895|       |
  896|     32|         return nullptr;
  897|     52|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  884|     52|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|     52|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 5, False: 47]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|      5|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 1, False: 4]
  ------------------
  888|      1|               return nullptr;
  889|      4|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 4, False: 0]
  ------------------
  890|      4|               return extn_as_T;
  891|      4|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|      5|         }
  895|       |
  896|     47|         return nullptr;
  897|     52|      }
_ZNK5Botan15AlternativeName15directory_namesEv:
  443|     21|      const std::set<X509_DN>& directory_names() const { return m_dn_names; }
_ZN5Botan10ExtensionsD2Ev:
 1037|  11.8k|      ~Extensions() override = default;
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEPKT_RKNS_3OIDE:
  884|     52|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|     52|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 11, False: 41]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|     11|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 11, False: 0]
  ------------------
  888|     11|               return nullptr;
  889|     11|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 0, False: 0]
  ------------------
  890|      0|               return extn_as_T;
  891|      0|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|     11|         }
  895|       |
  896|     41|         return nullptr;
  897|     52|      }
_ZN5Botan18X509_Serial_NumberC2Ev:
   70|  9.09k|      X509_Serial_Number() : m_contents{0x00} {}
_ZNK5Botan7X509_DN5emptyEv:
  202|      2|      bool empty() const { return m_rdn.empty(); }
_ZNK5Botan7X509_DN16_canonical_bytesEv:
  274|    380|      const std::vector<uint8_t>& _canonical_bytes() const { return m_canonical_dn_bits; }
_ZNK5Botan15AlternativeName14OtherNameValue3oidEv:
  311|  2.97k|            const OID& oid() const { return m_oid; }
_ZNK5Botan15AlternativeName14OtherNameValueltERKS1_:
  315|    860|            bool operator<(const OtherNameValue& other) const {
  316|    860|               if(oid() != other.oid()) {
  ------------------
  |  Branch (316:19): [True: 629, False: 231]
  ------------------
  317|    629|                  return oid() < other.oid();
  318|    629|               }
  319|    231|               return m_value < other.m_value;
  320|    860|            }
_ZN5Botan15AlternativeName14OtherNameValueC2ERKNS_3OIDENSt3__16vectorIhNS5_9allocatorIhEEEE:
  325|    620|            OtherNameValue(const OID& oid, std::vector<uint8_t> value) : m_oid(oid), m_value(std::move(value)) {}
_ZN5Botan15AlternativeName16add_ipv4_addressEj:
  374|    733|      BOTAN_DEPRECATED("Use variant taking IPv4Address") void add_ipv4_address(uint32_t ipv4) {
  375|    733|         this->add_ipv4_address(IPv4Address(ipv4));
  376|    733|      }
_ZN5Botan10Extensions15Extensions_InfoC2EbRKNSt3__16vectorIhNS2_9allocatorIhEEEENS2_10unique_ptrINS_21Certificate_ExtensionENS2_14default_deleteISA_EEEE:
 1053|  14.7k|                  m_obj(std::move(ext)), m_bits(encoding), m_critical(critical) {}
_ZN5Botan15NameConstraintsC2Ev:
  755|      2|      NameConstraints() = default;
_ZN5Botan21Certificate_ExtensionD2Ev:
  858|  19.3k|      virtual ~Certificate_Extension() = default;
_ZN5Botan15AlternativeNameC2Ev:
  338|  2.21k|      AlternativeName() = default;
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14CRL_ReasonCodeEEEPKT_RKNS_3OIDE:
  884|  7.61k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|  7.61k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 3.92k, False: 3.69k]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|  3.92k|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 2.28k, False: 1.64k]
  ------------------
  888|  2.28k|               return nullptr;
  889|  2.28k|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 1.64k, False: 0]
  ------------------
  890|  1.64k|               return extn_as_T;
  891|  1.64k|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|  3.92k|         }
  895|       |
  896|  3.69k|         return nullptr;
  897|  7.61k|      }

_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  12.9k|{
  101|  12.9k|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|  12.9k|   } else {
  107|  12.9k|      const size_t expected_size = s0.size_bytes();
  108|  12.9k|      const bool correct_size =
  109|  12.9k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  12.9k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 12.9k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  12.9k|   }
  115|  12.9k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  13.2k|{
  101|  13.2k|   const std::span s0{r0};
  102|       |
  103|  13.2k|   if constexpr(statically_spanable_range<R0>) {
  104|  13.2k|      constexpr size_t expected_size = s0.size_bytes();
  105|  13.2k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  13.2k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|  13.2k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  13.2k|   const std::span s{r};
   79|  13.2k|   if constexpr(statically_spanable_range<R>) {
   80|  13.2k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  13.2k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  6.63k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  6.63k|   return std::span{r}.size_bytes();
   61|  6.63k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  17.4k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  17.4k|   const std::span s{r};
   79|  17.4k|   if constexpr(statically_spanable_range<R>) {
   80|  17.4k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  17.4k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  4.56k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  4.56k|   const std::span s{r};
   79|  4.56k|   if constexpr(statically_spanable_range<R>) {
   80|  4.56k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  4.56k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.56k|{
  101|  4.56k|   const std::span s0{r0};
  102|       |
  103|  4.56k|   if constexpr(statically_spanable_range<R0>) {
  104|  4.56k|      constexpr size_t expected_size = s0.size_bytes();
  105|  4.56k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  4.56k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  4.56k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  4.56k|   return std::span{r}.size_bytes();
   61|  4.56k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   310k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   310k|   return std::span{r}.size_bytes();
   61|   310k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  25.8k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  25.8k|   return std::span{r}.size_bytes();
   61|  25.8k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  1.78k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.78k|   const std::span s{r};
   79|  1.78k|   if constexpr(statically_spanable_range<R>) {
   80|  1.78k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  1.78k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    891|{
  101|    891|   const std::span s0{r0};
  102|       |
  103|    891|   if constexpr(statically_spanable_range<R0>) {
  104|    891|      constexpr size_t expected_size = s0.size_bytes();
  105|    891|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|    891|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|    891|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    891|   return std::span{r}.size_bytes();
   61|    891|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|  12.6k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  12.6k|   const std::span s{r};
   79|  12.6k|   if constexpr(statically_spanable_range<R>) {
   80|  12.6k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  12.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  6.34k|{
  101|  6.34k|   const std::span s0{r0};
  102|       |
  103|  6.34k|   if constexpr(statically_spanable_range<R0>) {
  104|  6.34k|      constexpr size_t expected_size = s0.size_bytes();
  105|  6.34k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  6.34k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  19.2k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  19.2k|   return std::span{r}.size_bytes();
   61|  19.2k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  12.9k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  12.9k|   const std::span s{r};
   79|  12.9k|   if constexpr(statically_spanable_range<R>) {
   80|  12.9k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  12.9k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  12.9k|{
  101|  12.9k|   const std::span s0{r0};
  102|       |
  103|  12.9k|   if constexpr(statically_spanable_range<R0>) {
  104|  12.9k|      constexpr size_t expected_size = s0.size_bytes();
  105|  12.9k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  12.9k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|  1.94k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.94k|   const std::span s{r};
   79|  1.94k|   if constexpr(statically_spanable_range<R>) {
   80|  1.94k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  1.94k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    971|{
  101|    971|   const std::span s0{r0};
  102|       |
  103|    971|   if constexpr(statically_spanable_range<R0>) {
  104|    971|      constexpr size_t expected_size = s0.size_bytes();
  105|    971|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|    971|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|    971|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    971|   return std::span{r}.size_bytes();
   61|    971|}

_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
  102|  23.5k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIhE8allocateEm:
   95|  23.5k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
  102|  14.5k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   95|  14.5k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanpLIhNS_16secure_allocatorIhEEmEERNSt3__16vectorIT_T0_EES8_RKNS3_4pairIPKS5_T1_EE:
  204|    386|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<const T*, L>& in) {
  205|    386|   if(in.second > 0) {
  ------------------
  |  Branch (205:7): [True: 357, False: 29]
  ------------------
  206|    357|      out.insert(out.end(), in.first, in.first + in.second);
  207|    357|   }
  208|    386|   return out;
  209|    386|}

_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  328|  4.58k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|  4.58k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  330|       |      // If the parameter type isn't a strong type, return it as is.
  331|  4.58k|      return std::forward<T>(t);
  332|       |   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|       |      return std::forward<T>(t).get();
  335|       |   }
  336|  4.58k|}
_ZN5Botan16wrap_strong_typeItRKtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS3_Esr3stdE18constructible_fromINS3_12wrapped_typeES4_EEEDcOS4_:
  353|     19|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|     19|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|     19|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|     19|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|    891|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|    891|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|    891|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|    891|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|  19.2k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|  19.2k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|  19.2k|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|  19.2k|}
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|    971|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|    971|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|    971|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|    971|}

_ZN5Botan3URI9AuthorityC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_8optionalIS8_EENS2_7variantIJNS_7DNSNameENS_11IPv4AddressENS_11IPv6AddressEEEENS9_ItEE:
  105|    733|                  m_raw(std::move(raw)), m_userinfo(std::move(userinfo)), m_host(std::move(host)), m_port(port) {}
_ZN5Botan3URIC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_NS1_8optionalINS0_9AuthorityEEES7_NS8_IS7_EESB_:
  202|  1.40k|            m_raw(std::move(raw)),
  203|  1.40k|            m_scheme(std::move(scheme)),
  204|  1.40k|            m_authority(std::move(authority)),
  205|  1.40k|            m_path(std::move(path)),
  206|  1.40k|            m_query(std::move(query)),
  207|  1.40k|            m_fragment(std::move(fragment)) {}

_ZN5Botan9CRL_EntryC2Ev:
   73|  9.08k|      CRL_Entry() = default;

_ZN5Botan14Cert_Extension10CRL_Number10static_oidEv:
  511|     52|      static OID static_oid() { return OID({2, 5, 29, 20}); }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  180|     52|      static OID static_oid() { return OID({2, 5, 29, 35}); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID10get_key_idEv:
  173|      4|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point10static_oidEv:
  744|     52|      static OID static_oid() { return OID({2, 5, 29, 28}); }
_ZNK5Botan14Cert_Extension17Basic_Constraints8oid_nameEv:
   62|      3|      std::string oid_name() const override { return "X509v3.BasicConstraints"; }
_ZN5Botan14Cert_Extension9Key_UsageC2Ev:
   84|      1|      explicit Key_Usage() : m_constraints(Key_Constraints::None) {}
_ZNK5Botan14Cert_Extension9Key_Usage8oid_nameEv:
   93|      1|      std::string oid_name() const override { return "X509v3.KeyUsage"; }
_ZNK5Botan14Cert_Extension14Subject_Key_ID8oid_nameEv:
  138|      3|      std::string oid_name() const override { return "X509v3.SubjectKeyIdentifier"; }
_ZNK5Botan14Cert_Extension16Authority_Key_ID8oid_nameEv:
  185|      5|      std::string oid_name() const override { return "X509v3.AuthorityKeyIdentifier"; }
_ZN5Botan14Cert_Extension24Subject_Alternative_NameC2ERKNS_15AlternativeNameE:
  213|      1|      explicit Subject_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name8oid_nameEv:
  216|      1|      std::string oid_name() const override { return "X509v3.SubjectAlternativeName"; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_NameC2ERKNS_15AlternativeNameE:
  243|  1.98k|      explicit Issuer_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name8oid_nameEv:
  246|      1|      std::string oid_name() const override { return "X509v3.IssuerAlternativeName"; }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage8oid_nameEv:
  278|      1|      std::string oid_name() const override { return "X509v3.ExtendedKeyUsage"; }
_ZNK5Botan14Cert_Extension16Name_Constraints8oid_nameEv:
  316|      2|      std::string oid_name() const override { return "X509v3.NameConstraints"; }
_ZNK5Botan14Cert_Extension20Certificate_Policies8oid_nameEv:
  354|      2|      std::string oid_name() const override { return "X509v3.CertificatePolicies"; }
_ZN5Botan14Cert_Extension28Authority_Information_Access17AccessDescriptionC2ENS_3OIDENS_9ASN1_TypeENS_10ASN1_ClassENSt3__16vectorIhNS6_9allocatorIhEEEE:
  386|    130|                  m_method(std::move(method)),
  387|    130|                  m_location_tag(location_tag),
  388|    130|                  m_location_class(location_class),
  389|    130|                  m_location_value(std::move(location_value)) {}
_ZN5Botan14Cert_Extension10CRL_NumberC2Ev:
  501|     49|      CRL_Number() : m_has_value(false), m_crl_number(BigInt::zero()) {}
_ZNK5Botan14Cert_Extension10CRL_Number8oid_nameEv:
  516|     14|      std::string oid_name() const override { return "X509v3.CRLNumber"; }
_ZN5Botan14Cert_Extension14CRL_ReasonCodeC2ENS_8CRL_CodeE:
  538|  3.92k|      explicit CRL_ReasonCode(CRL_Code r = CRL_Code::Unspecified) : m_reason(r) {}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode10get_reasonEv:
  540|  1.64k|      CRL_Code get_reason() const { return m_reason; }
_ZN5Botan14Cert_Extension14CRL_ReasonCode10static_oidEv:
  542|  7.61k|      static OID static_oid() { return OID({2, 5, 29, 21}); }
_ZNK5Botan14Cert_Extension14CRL_ReasonCode8oid_nameEv:
  547|  1.64k|      std::string oid_name() const override { return "X509v3.ReasonCode"; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points8oid_nameEv:
  667|      3|      std::string oid_name() const override { return "X509v3.CRLDistributionPoints"; }
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point8oid_nameEv:
  749|      2|      std::string oid_name() const override { return "X509v3.CRLIssuingDistributionPoint"; }
_ZN5Botan14Cert_Extension12OCSP_NoCheck10static_oidEv:
  791|  8.47k|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 5}); }
_ZNK5Botan14Cert_Extension21NoRevocationAvailable8oid_nameEv:
  845|      1|      std::string oid_name() const override { return "X509v3.NoRevocationAvailable"; }
_ZNK5Botan14Cert_Extension10TNAuthList8oid_nameEv:
  908|      1|      std::string oid_name() const override { return "PKIX.TNAuthList"; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks8oid_nameEv:
 1115|      1|      std::string oid_name() const override { return "PKIX.IpAddrBlocks"; }
_ZNK5Botan14Cert_Extension8ASBlocks8oid_nameEv:
 1262|      1|      std::string oid_name() const override { return "PKIX.AutonomousSysIds"; }
_ZN5Botan14Cert_Extension17Unknown_ExtensionC2ERKNS_3OIDEbb:
 1281|  12.9k|            m_oid(oid), m_critical(critical), m_failed_to_decode(failed_to_decode) {}
_ZNK5Botan14Cert_Extension17Unknown_Extension8oid_nameEv:
 1323|  2.30k|      std::string oid_name() const override { return ""; }
_ZN5Botan14Cert_Extension14Subject_Key_IDC2Ev:
  110|      3|      Subject_Key_ID() = default;
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_PointC2Ev:
  693|    183|      CRL_Issuing_Distribution_Point() = default;
_ZN5Botan14Cert_Extension16Name_ConstraintsC2Ev:
  299|      2|      Name_Constraints() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_PointsC2Ev:
  652|      3|      CRL_Distribution_Points() = default;
_ZN5Botan14Cert_Extension20Certificate_PoliciesC2Ev:
  337|      2|      Certificate_Policies() = default;
_ZN5Botan14Cert_Extension16Authority_Key_IDC2Ev:
  157|     85|      Authority_Key_ID() = default;
_ZN5Botan14Cert_Extension18Extended_Key_UsageC2Ev:
  267|      1|      Extended_Key_Usage() = default;
_ZN5Botan14Cert_Extension21NoRevocationAvailableC2Ev:
  830|      1|      NoRevocationAvailable() = default;
_ZN5Botan14Cert_Extension28Authority_Information_AccessC2Ev:
  422|     90|      Authority_Information_Access() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocksC2Ev:
 1056|      1|      IPAddressBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocksC2Ev:
 1207|      1|      ASBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiersC2Ev:
 1201|      1|            ASIdentifiers() = default;
_ZN5Botan14Cert_Extension10TNAuthListC2Ev:
  897|      1|      TNAuthList() = default;
_ZN5Botan14Cert_Extension21DistributionPointNameC2Ev:
  572|     35|      DistributionPointName() = default;

_ZN5Botan11X509_ObjectC2Ev:
  120|  4.00k|      X509_Object() = default;

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   12|  4.00k|void fuzz(std::span<const uint8_t> in) {
   13|  4.00k|   try {
   14|  4.00k|      Botan::DataSource_Memory input(in);
   15|  4.00k|      const Botan::X509_CRL crl(input);
   16|  4.00k|   } catch(const Botan::Exception& e) {}
   17|  4.00k|}

LLVMFuzzerInitialize:
   28|      2|extern "C" int LLVMFuzzerInitialize(int* /*argc*/, char*** /*argv*/) {
   29|       |   /*
   30|       |   * This disables the mlock pool, as overwrites within the pool are
   31|       |   * opaque to ASan or other instrumentation.
   32|       |   */
   33|      2|   ::setenv("BOTAN_MLOCK_POOL_SIZE", "0", 1);
   34|      2|   return 0;
   35|      2|}
LLVMFuzzerTestOneInput:
   39|  4.00k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t in[], size_t len) {
   40|  4.00k|   if(len <= max_fuzzer_input_size) {
  ------------------
  |  Branch (40:7): [True: 4.00k, False: 8]
  ------------------
   41|  4.00k|      try {
   42|  4.00k|         fuzz(std::span<const uint8_t>(in, len));
   43|  4.00k|      } catch(const std::exception& e) {
   44|      0|         std::cerr << "Uncaught exception from fuzzer driver " << e.what() << "\n";
   45|      0|         abort();
   46|      0|      } catch(...) {
   47|      0|         std::cerr << "Uncaught exception from fuzzer driver (unknown type)\n";
   48|      0|         abort();
   49|      0|      }
   50|  4.00k|   }
   51|  4.00k|   return 0;
   52|  4.00k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   50|  2.06k|bool AlgorithmIdentifier::parameters_are_null() const {
   51|  2.06k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (51:12): [True: 1.86k, False: 196]
  |  Branch (51:40): [True: 1.82k, False: 38]
  |  Branch (51:69): [True: 1.82k, False: 2]
  ------------------
   52|  2.06k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   54|  2.52k|bool operator==(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   55|  2.52k|   return (x.oid() == y.oid() && x.parameters() == y.parameters());
  ------------------
  |  Branch (55:12): [True: 2.46k, False: 62]
  |  Branch (55:34): [True: 2.42k, False: 39]
  ------------------
   56|  2.52k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   58|  2.52k|bool operator!=(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   59|  2.52k|   return !(x == y);
   60|  2.52k|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   72|  5.75k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   73|  5.75k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   74|       |
   75|       |   /*
   76|       |   * The parameters field is OPTIONAL ANY but in practice it is one of
   77|       |   * - empty
   78|       |   * - NULL
   79|       |   * - SEQUENCE
   80|       |   * - OBJECT IDENTIFIER (namedCurve)
   81|       |   * - OCTET STRING (CBC IV in PBES2)
   82|       |   *
   83|       |   * So require it be exactly one of these values. In particular this ensures that
   84|       |   * there is not any additional trailing data (eg after the SEQUENCE encoding)
   85|       |   * that might be otherwise skipped over by a reader.
   86|       |   */
   87|       |
   88|  5.75k|   const bool acceptable_parameters = [&]() {
   89|  5.75k|      if(this->parameters_are_null_or_empty()) {
   90|  5.75k|         return true;
   91|  5.75k|      }
   92|  5.75k|      if(ASN1::is_der_sequence_header(m_parameters)) {
   93|  5.75k|         return true;
   94|  5.75k|      }
   95|  5.75k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
   96|  5.75k|         return true;
   97|  5.75k|      }
   98|  5.75k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
   99|  5.75k|         return true;
  100|  5.75k|      }
  101|  5.75k|      return false;
  102|  5.75k|   }();
  103|       |
  104|  5.75k|   if(!acceptable_parameters) {
  ------------------
  |  Branch (104:7): [True: 127, False: 5.62k]
  ------------------
  105|    127|      throw Decoding_Error("AlgorithmIdentifier parameters were not NULL, a SEQUENCE, an OID, or an OCTET STRING");
  106|    127|   }
  107|  5.75k|}
alg_id.cpp:_ZZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderEENK3$_0clEv:
   88|  5.53k|   const bool acceptable_parameters = [&]() {
   89|  5.53k|      if(this->parameters_are_null_or_empty()) {
  ------------------
  |  Branch (89:10): [True: 5.29k, False: 236]
  ------------------
   90|  5.29k|         return true;
   91|  5.29k|      }
   92|    236|      if(ASN1::is_der_sequence_header(m_parameters)) {
  ------------------
  |  Branch (92:10): [True: 15, False: 221]
  ------------------
   93|     15|         return true;
   94|     15|      }
   95|    221|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
  ------------------
  |  Branch (95:10): [True: 32, False: 189]
  ------------------
   96|     32|         return true;
   97|     32|      }
   98|    189|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
  ------------------
  |  Branch (98:10): [True: 62, False: 127]
  ------------------
   99|     62|         return true;
  100|     62|      }
  101|    127|      return false;
  102|    189|   }();

_ZNK5Botan11ASN1_Object10BER_encodeEv:
   21|  2.21k|std::vector<uint8_t> ASN1_Object::BER_encode() const {
   22|  2.21k|   std::vector<uint8_t> output;
   23|  2.21k|   DER_Encoder der(output);
   24|  2.21k|   this->encode_into(der);
   25|  2.21k|   return output;
   26|  2.21k|}
_ZN5Botan14ASN1_BitStringC2ENSt3__16vectorIhNS1_9allocatorIhEEEEm:
   29|  2.84k|      m_bytes(std::move(bytes)), m_unused_bits(unused_bits) {
   30|  2.84k|   if(m_unused_bits >= 8) {
  ------------------
  |  Branch (30:7): [True: 0, False: 2.84k]
  ------------------
   31|      0|      throw Invalid_Argument("ASN1_BitString: Invalid unused bit count");
   32|      0|   }
   33|       |
   34|  2.84k|   if(m_bytes.empty() && m_unused_bits != 0) {
  ------------------
  |  Branch (34:7): [True: 9, False: 2.83k]
  |  Branch (34:26): [True: 0, False: 9]
  ------------------
   35|      0|      throw Invalid_Argument("ASN1_BitString: Empty BIT STRING cannot have unused bits");
   36|      0|   }
   37|       |
   38|  2.84k|   if(m_unused_bits > 0 && (m_bytes.back() & ((1U << m_unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (38:7): [True: 11, False: 2.83k]
  |  Branch (38:28): [True: 0, False: 11]
  ------------------
   39|      0|      throw Invalid_Argument("ASN1_BitString: Unused bits must be zero");
   40|      0|   }
   41|  2.84k|}
_ZNK5Botan14ASN1_BitString10bit_lengthEv:
   46|    310|size_t ASN1_BitString::bit_length() const {
   47|    310|   return 8 * m_bytes.size() - m_unused_bits;
   48|    310|}
_ZNK5Botan14ASN1_BitString6bit_atEm:
   50|    120|bool ASN1_BitString::bit_at(size_t bit) const {
   51|    120|   if(bit >= bit_length()) {
  ------------------
  |  Branch (51:7): [True: 0, False: 120]
  ------------------
   52|      0|      throw Invalid_Argument("ASN1_BitString: Bit index out of range");
   53|      0|   }
   54|       |
   55|    120|   return (m_bytes[bit / 8] & (0x80 >> (bit % 8))) != 0;
   56|    120|}
_ZN5Botan10BER_ObjectD2Ev:
   58|   310k|BER_Object::~BER_Object() {
   59|   310k|   secure_scrub_memory(m_value);
   60|   310k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   65|  89.9k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   66|  89.9k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (66:7): [True: 1.93k, False: 88.0k]
  ------------------
   67|  1.93k|      std::stringstream msg;
   68|       |
   69|  1.93k|      msg << "Tag mismatch when decoding " << descr << " got ";
   70|       |
   71|  1.93k|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (71:10): [True: 68, False: 1.86k]
  |  Branch (71:49): [True: 68, False: 0]
  ------------------
   72|     68|         msg << "EOF";
   73|  1.86k|      } else {
   74|  1.86k|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (74:13): [True: 996, False: 866]
  |  Branch (74:53): [True: 430, False: 436]
  ------------------
   75|  1.42k|            msg << asn1_tag_to_string(m_type_tag);
   76|  1.42k|         } else {
   77|    436|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   78|    436|         }
   79|       |
   80|  1.86k|         msg << "/" << asn1_class_to_string(m_class_tag);
   81|  1.86k|      }
   82|       |
   83|  1.93k|      msg << " expected ";
   84|       |
   85|  1.93k|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (85:10): [True: 1.26k, False: 670]
  |  Branch (85:57): [True: 670, False: 0]
  ------------------
   86|  1.93k|         msg << asn1_tag_to_string(expected_type_tag);
   87|  1.93k|      } else {
   88|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   89|      0|      }
   90|       |
   91|  1.93k|      msg << "/" << asn1_class_to_string(expected_class_tag);
   92|       |
   93|  1.93k|      throw BER_Decoding_Error(msg.str());
   94|  1.93k|   }
   95|  89.9k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   97|   147k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   98|   147k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (98:12): [True: 100k, False: 47.5k]
  |  Branch (98:47): [True: 100k, False: 219]
  ------------------
   99|   147k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
  101|  35.4k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
  102|  35.4k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
  103|  35.4k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
  105|   139k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
  106|   139k|   m_type_tag = type_tag;
  107|   139k|   m_class_tag = class_tag;
  108|   139k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
  110|  3.79k|std::string asn1_class_to_string(ASN1_Class type) {
  111|  3.79k|   switch(type) {
  112|  2.25k|      case ASN1_Class::Universal:
  ------------------
  |  Branch (112:7): [True: 2.25k, False: 1.53k]
  ------------------
  113|  2.25k|         return "UNIVERSAL";
  114|  1.10k|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (114:7): [True: 1.10k, False: 2.69k]
  ------------------
  115|  1.10k|         return "CONSTRUCTED";
  116|    155|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (116:7): [True: 155, False: 3.63k]
  ------------------
  117|    155|         return "CONTEXT_SPECIFIC";
  118|    105|      case ASN1_Class::Application:
  ------------------
  |  Branch (118:7): [True: 105, False: 3.68k]
  ------------------
  119|    105|         return "APPLICATION";
  120|     28|      case ASN1_Class::Private:
  ------------------
  |  Branch (120:7): [True: 28, False: 3.76k]
  ------------------
  121|     28|         return "PRIVATE";
  122|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (122:7): [True: 0, False: 3.79k]
  ------------------
  123|      0|         return "NO_OBJECT";
  124|    148|      default:
  ------------------
  |  Branch (124:7): [True: 148, False: 3.64k]
  ------------------
  125|    148|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
  126|  3.79k|   }
  127|  3.79k|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
  129|  3.63k|std::string asn1_tag_to_string(ASN1_Type type) {
  130|  3.63k|   switch(type) {
  131|    658|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (131:7): [True: 658, False: 2.97k]
  ------------------
  132|    658|         return "SEQUENCE";
  133|       |
  134|     63|      case ASN1_Type::Set:
  ------------------
  |  Branch (134:7): [True: 63, False: 3.56k]
  ------------------
  135|     63|         return "SET";
  136|       |
  137|    114|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (137:7): [True: 114, False: 3.51k]
  ------------------
  138|    114|         return "PRINTABLE STRING";
  139|       |
  140|     64|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (140:7): [True: 64, False: 3.56k]
  ------------------
  141|     64|         return "NUMERIC STRING";
  142|       |
  143|     29|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (143:7): [True: 29, False: 3.60k]
  ------------------
  144|     29|         return "IA5 STRING";
  145|       |
  146|     16|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (146:7): [True: 16, False: 3.61k]
  ------------------
  147|     16|         return "T61 STRING";
  148|       |
  149|     98|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (149:7): [True: 98, False: 3.53k]
  ------------------
  150|     98|         return "UTF8 STRING";
  151|       |
  152|     57|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (152:7): [True: 57, False: 3.57k]
  ------------------
  153|     57|         return "VISIBLE STRING";
  154|       |
  155|     12|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (155:7): [True: 12, False: 3.61k]
  ------------------
  156|     12|         return "BMP STRING";
  157|       |
  158|     10|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (158:7): [True: 10, False: 3.62k]
  ------------------
  159|     10|         return "UNIVERSAL STRING";
  160|       |
  161|      7|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (161:7): [True: 7, False: 3.62k]
  ------------------
  162|      7|         return "UTC TIME";
  163|       |
  164|     14|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (164:7): [True: 14, False: 3.61k]
  ------------------
  165|     14|         return "GENERALIZED TIME";
  166|       |
  167|     35|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (167:7): [True: 35, False: 3.59k]
  ------------------
  168|     35|         return "OCTET STRING";
  169|       |
  170|     79|      case ASN1_Type::BitString:
  ------------------
  |  Branch (170:7): [True: 79, False: 3.55k]
  ------------------
  171|     79|         return "BIT STRING";
  172|       |
  173|  1.20k|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (173:7): [True: 1.20k, False: 2.42k]
  ------------------
  174|  1.20k|         return "ENUMERATED";
  175|       |
  176|    131|      case ASN1_Type::Integer:
  ------------------
  |  Branch (176:7): [True: 131, False: 3.49k]
  ------------------
  177|    131|         return "INTEGER";
  178|       |
  179|     22|      case ASN1_Type::Null:
  ------------------
  |  Branch (179:7): [True: 22, False: 3.60k]
  ------------------
  180|     22|         return "NULL";
  181|       |
  182|     26|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (182:7): [True: 26, False: 3.60k]
  ------------------
  183|     26|         return "OBJECT";
  184|       |
  185|    114|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (185:7): [True: 114, False: 3.51k]
  ------------------
  186|    114|         return "BOOLEAN";
  187|       |
  188|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (188:7): [True: 0, False: 3.63k]
  ------------------
  189|      0|         return "NO_OBJECT";
  190|       |
  191|    872|      default:
  ------------------
  |  Branch (191:7): [True: 872, False: 2.75k]
  ------------------
  192|    872|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  193|  3.63k|   }
  194|  3.63k|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  199|  4.42k|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  201|     90|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  224|  17.6k|std::string to_string(const BER_Object& obj) {
  225|  17.6k|   return bytes_to_string(obj.data());
  226|  17.6k|}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  231|  4.00k|bool maybe_BER(DataSource& source) {
  232|  4.00k|   uint8_t first_u8 = 0;
  233|  4.00k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (233:7): [True: 0, False: 4.00k]
  ------------------
  234|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   90|      0|   do {                                                                                                \
  |  |   91|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|      0|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  235|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  236|      0|   }
  237|       |
  238|  4.00k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  239|  4.00k|   return first_u8 == cons_seq;
  240|  4.00k|}

_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   80|    798|OID OID::from_string(std::string_view str) {
   81|    798|   if(str.empty()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 798]
  ------------------
   82|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   83|      0|   }
   84|       |
   85|    798|   OID o = OID_Map::global_registry().str2oid(str);
   86|    798|   if(o.has_value()) {
  ------------------
  |  Branch (86:7): [True: 798, False: 0]
  ------------------
   87|    798|      return o;
   88|    798|   }
   89|       |
   90|       |   // Try to parse as a dotted decimal
   91|      0|   try {
   92|      0|      return OID(str);
   93|      0|   } catch(...) {}
   94|       |
   95|      0|   throw Lookup_Error(fmt("No OID associated with name '{}'", str));
   96|      0|}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
   98|  17.0k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
   99|  17.0k|   oid_valid_check(m_id);
  100|  17.0k|}
_ZNK5Botan3OID9hash_codeEv:
  162|      4|uint64_t OID::hash_code() const {
  163|       |   // If this is changed also update gen_oids.py to match
  164|      4|   uint64_t hash = 0x621F302327D9A49A;
  165|     32|   for(auto id : m_id) {
  ------------------
  |  Branch (165:16): [True: 32, False: 4]
  ------------------
  166|     32|      hash *= 193;
  167|     32|      hash += id;
  168|     32|   }
  169|      4|   return hash;
  170|      4|}
_ZN5BotanltERKNS_3OIDES2_:
  175|  31.9k|bool operator<(const OID& a, const OID& b) {
  176|  31.9k|   const std::vector<uint32_t>& oid1 = a.get_components();
  177|  31.9k|   const std::vector<uint32_t>& oid2 = b.get_components();
  178|       |
  179|  31.9k|   return std::lexicographical_compare(oid1.begin(), oid1.end(), oid2.begin(), oid2.end());
  180|  31.9k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  185|  2.21k|void OID::encode_into(DER_Encoder& der) const {
  186|  2.21k|   if(m_id.size() < 2) {
  ------------------
  |  Branch (186:7): [True: 0, False: 2.21k]
  ------------------
  187|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  188|      0|   }
  189|       |
  190|  2.21k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  2.21k|      if(z <= 0x7F) {
  192|  2.21k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  2.21k|      } else {
  194|  2.21k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  2.21k|         for(size_t j = 0; j != z7; ++j) {
  197|  2.21k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  2.21k|            if(j != z7 - 1) {
  200|  2.21k|               zp |= 0x80;
  201|  2.21k|            }
  202|       |
  203|  2.21k|            encoding.push_back(zp);
  204|  2.21k|         }
  205|  2.21k|      }
  206|  2.21k|   };
  207|       |
  208|  2.21k|   std::vector<uint8_t> encoding;
  209|       |
  210|       |   // We know 40 * root can't overflow because root is between 0 and 2
  211|  2.21k|   auto first = checked_add(40 * m_id[0], m_id[1]);
  212|  2.21k|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|  2.21k|   do {                                                                     \
  |  |   78|  2.21k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.21k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.21k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.21k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.21k]
  |  |  ------------------
  ------------------
  213|       |
  214|  2.21k|   append(encoding, *first);
  215|       |
  216|  5.84k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (216:22): [True: 3.63k, False: 2.21k]
  ------------------
  217|  3.63k|      append(encoding, m_id[i]);
  218|  3.63k|   }
  219|  2.21k|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  220|  2.21k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  225|  24.2k|void OID::decode_from(BER_Decoder& decoder) {
  226|  24.2k|   const BER_Object obj = decoder.get_next_object();
  227|  24.2k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (227:7): [True: 90, False: 24.1k]
  ------------------
  228|     90|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  229|     90|   }
  230|       |
  231|  24.1k|   if(obj.length() == 0) {
  ------------------
  |  Branch (231:7): [True: 9, False: 24.1k]
  ------------------
  232|      9|      throw BER_Decoding_Error("OID encoding is too short");
  233|      9|   }
  234|       |
  235|  24.1k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  236|  24.1k|      BOTAN_ASSERT_NOMSG(!data.empty());
  237|  24.1k|      uint32_t b = data.take_byte();
  238|       |
  239|  24.1k|      if(b > 0x7F) {
  240|  24.1k|         b &= 0x7F;
  241|       |
  242|       |         // Even BER requires that the OID have minimal length, ie that
  243|       |         // the first byte of a multibyte encoding cannot be zero
  244|       |         // See X.690 section 8.19.2
  245|  24.1k|         if(b == 0) {
  246|  24.1k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|  24.1k|         }
  248|       |
  249|  24.1k|         while(true) {
  250|  24.1k|            if(data.empty()) {
  251|  24.1k|               throw Decoding_Error("Truncated OID value");
  252|  24.1k|            }
  253|       |
  254|  24.1k|            const uint8_t next = data.take_byte();
  255|  24.1k|            const bool more = (next & 0x80) == 0x80;
  256|  24.1k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  24.1k|            if((b >> (32 - 7)) != 0) {
  259|  24.1k|               throw Decoding_Error("OID component overflow");
  260|  24.1k|            }
  261|       |
  262|  24.1k|            b = (b << 7) | value;
  263|       |
  264|  24.1k|            if(!more) {
  265|  24.1k|               break;
  266|  24.1k|            }
  267|  24.1k|         }
  268|  24.1k|      }
  269|       |
  270|  24.1k|      return b;
  271|  24.1k|   };
  272|       |
  273|  24.1k|   BufferSlicer data(obj.data());
  274|  24.1k|   std::vector<uint32_t> parts;
  275|   114k|   while(!data.empty()) {
  ------------------
  |  Branch (275:10): [True: 90.5k, False: 24.1k]
  ------------------
  276|  90.5k|      const uint32_t comp = consume(data);
  277|       |
  278|  90.5k|      if(parts.empty()) {
  ------------------
  |  Branch (278:10): [True: 24.1k, False: 66.4k]
  ------------------
  279|       |         // divide into root and second arc
  280|       |
  281|  24.1k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  282|  24.1k|            if(b0 < 40) {
  283|  24.1k|               return 0;
  284|  24.1k|            } else if(b0 < 80) {
  285|  24.1k|               return 1;
  286|  24.1k|            } else {
  287|  24.1k|               return 2;
  288|  24.1k|            }
  289|  24.1k|         }(comp);
  290|       |
  291|  24.1k|         parts.push_back(root_arc);
  292|  24.1k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   77|  24.1k|   do {                                                                     \
  |  |   78|  24.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  24.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  24.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24.1k]
  |  |  ------------------
  ------------------
  293|  24.1k|         parts.push_back(comp - 40 * root_arc);
  294|  66.4k|      } else {
  295|  66.4k|         parts.push_back(comp);
  296|  66.4k|      }
  297|  90.5k|   }
  298|       |
  299|  24.1k|   m_id = parts;
  300|  24.1k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  17.0k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  17.0k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  17.0k|   do {                                                          \
  |  |   36|  17.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 17.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  17.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17.0k]
  |  |  ------------------
  ------------------
   28|  17.0k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  17.0k|   do {                                                          \
  |  |   36|  17.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 17.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  17.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17.0k]
  |  |  ------------------
  ------------------
   29|  17.0k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  17.0k|   do {                                                          \
  |  |   36|  17.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 17.0k, False: 0]
  |  |  |  Branch (37:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  17.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17.0k]
  |  |  ------------------
  ------------------
   30|       |   // This last is a limitation of using 32 bit integers when decoding
   31|       |   // not a limitation of ASN.1 object identifiers in general
   32|  17.0k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  17.0k|   do {                                                          \
  |  |   36|  17.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 17.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  17.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17.0k]
  |  |  ------------------
  ------------------
   33|  17.0k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  190|  5.84k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  5.84k|      if(z <= 0x7F) {
  ------------------
  |  Branch (191:10): [True: 4.46k, False: 1.37k]
  ------------------
  192|  4.46k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  4.46k|      } else {
  194|  1.37k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  5.00k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (196:28): [True: 3.62k, False: 1.37k]
  ------------------
  197|  3.62k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  3.62k|            if(j != z7 - 1) {
  ------------------
  |  Branch (199:16): [True: 2.25k, False: 1.37k]
  ------------------
  200|  2.25k|               zp |= 0x80;
  201|  2.25k|            }
  202|       |
  203|  3.62k|            encoding.push_back(zp);
  204|  3.62k|         }
  205|  1.37k|      }
  206|  5.84k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  235|  90.5k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  236|  90.5k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   77|  90.5k|   do {                                                                     \
  |  |   78|  90.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  90.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 90.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  90.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 90.5k]
  |  |  ------------------
  ------------------
  237|  90.5k|      uint32_t b = data.take_byte();
  238|       |
  239|  90.5k|      if(b > 0x7F) {
  ------------------
  |  Branch (239:10): [True: 15.1k, False: 75.4k]
  ------------------
  240|  15.1k|         b &= 0x7F;
  241|       |
  242|       |         // Even BER requires that the OID have minimal length, ie that
  243|       |         // the first byte of a multibyte encoding cannot be zero
  244|       |         // See X.690 section 8.19.2
  245|  15.1k|         if(b == 0) {
  ------------------
  |  Branch (245:13): [True: 7, False: 15.1k]
  ------------------
  246|      7|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|      7|         }
  248|       |
  249|  22.4k|         while(true) {
  ------------------
  |  Branch (249:16): [True: 22.4k, Folded]
  ------------------
  250|  22.4k|            if(data.empty()) {
  ------------------
  |  Branch (250:16): [True: 33, False: 22.3k]
  ------------------
  251|     33|               throw Decoding_Error("Truncated OID value");
  252|     33|            }
  253|       |
  254|  22.3k|            const uint8_t next = data.take_byte();
  255|  22.3k|            const bool more = (next & 0x80) == 0x80;
  256|  22.3k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  22.3k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (258:16): [True: 26, False: 22.3k]
  ------------------
  259|     26|               throw Decoding_Error("OID component overflow");
  260|     26|            }
  261|       |
  262|  22.3k|            b = (b << 7) | value;
  263|       |
  264|  22.3k|            if(!more) {
  ------------------
  |  Branch (264:16): [True: 15.0k, False: 7.32k]
  ------------------
  265|  15.0k|               break;
  266|  15.0k|            }
  267|  22.3k|         }
  268|  15.1k|      }
  269|       |
  270|  90.4k|      return b;
  271|  90.5k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  281|  24.1k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  282|  24.1k|            if(b0 < 40) {
  ------------------
  |  Branch (282:16): [True: 1.59k, False: 22.5k]
  ------------------
  283|  1.59k|               return 0;
  284|  22.5k|            } else if(b0 < 80) {
  ------------------
  |  Branch (284:23): [True: 6.04k, False: 16.4k]
  ------------------
  285|  6.04k|               return 1;
  286|  16.4k|            } else {
  287|  16.4k|               return 2;
  288|  16.4k|            }
  289|  24.1k|         }(comp);

_ZN5Botan11ASN1_String14is_string_typeENS_9ASN1_TypeE:
  131|    620|bool ASN1_String::is_string_type(ASN1_Type tag) {
  132|    620|   return is_asn1_string_type(tag);
  133|    620|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  135|  3.07k|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
  136|  3.07k|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (136:7): [True: 20, False: 3.05k]
  ------------------
  137|     20|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
  138|     20|   }
  139|       |
  140|  3.05k|   if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (140:7): [True: 248, False: 2.80k]
  ------------------
  141|    248|      throw Invalid_Argument(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  142|    248|   }
  143|  3.05k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  145|  2.60k|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
  162|  2.59k|void ASN1_String::decode_from(BER_Decoder& source) {
  163|  2.59k|   const BER_Object obj = source.get_next_object();
  164|       |
  165|  2.59k|   if(obj.get_class() != ASN1_Class::Universal || !is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (165:7): [True: 11, False: 2.58k]
  |  Branch (165:51): [True: 64, False: 2.51k]
  ------------------
  166|     71|      auto typ = static_cast<uint32_t>(obj.type());
  167|     71|      auto cls = static_cast<uint32_t>(obj.get_class());
  168|     71|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}/{}", typ, cls));
  169|     71|   }
  170|       |
  171|  2.52k|   m_tag = obj.type();
  172|  2.52k|   m_data.assign(obj.bits(), obj.bits() + obj.length());
  173|       |
  174|  2.52k|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (174:7): [True: 255, False: 2.26k]
  ------------------
  175|    255|      m_utf8_str = ucs2_to_utf8(m_data);
  176|  2.26k|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (176:14): [True: 79, False: 2.18k]
  ------------------
  177|     79|      m_utf8_str = ucs4_to_utf8(m_data);
  178|  2.18k|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (178:14): [True: 241, False: 1.94k]
  ------------------
  179|       |      /*
  180|       |      TeletexString is nominally ITU T.61 not ISO-8859-1 but it seems
  181|       |      the majority of implementations actually used that charset here.
  182|       |      */
  183|    241|      m_utf8_str = latin1_to_utf8(m_data);
  184|  1.94k|   } else {
  185|       |      // All other supported string types are UTF-8 or some subset thereof
  186|  1.94k|      m_utf8_str = ASN1::to_string(obj);
  187|       |
  188|  1.94k|      if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (188:10): [True: 26, False: 1.92k]
  ------------------
  189|     26|         throw Decoding_Error(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  190|     26|      }
  191|  1.94k|   }
  192|  2.52k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   99|  3.20k|bool is_asn1_string_type(ASN1_Type tag) {
  100|  3.20k|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (100:12): [True: 2.40k, False: 801]
  |  Branch (100:47): [True: 261, False: 540]
  |  Branch (100:82): [True: 277, False: 263]
  ------------------
  101|    263|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (101:12): [True: 87, False: 176]
  ------------------
  102|  3.20k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   94|  11.2k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   95|  11.2k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (95:12): [True: 130, False: 11.1k]
  |  Branch (95:47): [True: 6.11k, False: 5.02k]
  |  Branch (95:84): [True: 88, False: 4.93k]
  ------------------
   96|  4.93k|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (96:12): [True: 1.29k, False: 3.64k]
  |  Branch (96:43): [True: 2.82k, False: 821]
  ------------------
   97|  11.2k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_128is_valid_asn1_string_contentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_9ASN1_TypeE:
  104|  4.99k|bool is_valid_asn1_string_content(const std::string& str, ASN1_Type tag) {
  105|  4.99k|   BOTAN_ASSERT_NOMSG(is_utf8_subset_string_type(tag));
  ------------------
  |  |   77|  4.99k|   do {                                                                     \
  |  |   78|  4.99k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.99k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.99k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.99k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.99k]
  |  |  ------------------
  ------------------
  106|       |
  107|  4.99k|   switch(tag) {
  108|  1.28k|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (108:7): [True: 1.28k, False: 3.71k]
  ------------------
  109|  1.28k|         return is_valid_utf8(str);
  110|     44|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (110:7): [True: 44, False: 4.95k]
  ------------------
  111|  3.04k|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (111:7): [True: 3.00k, False: 1.99k]
  ------------------
  112|  3.68k|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 637, False: 4.35k]
  ------------------
  113|  3.71k|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (113:7): [True: 27, False: 4.96k]
  ------------------
  114|  3.71k|         return g_char_validator.valid_encoding(str, tag);
  115|      0|      default:
  ------------------
  |  Branch (115:7): [True: 0, False: 4.99k]
  ------------------
  116|      0|         return false;
  117|  4.99k|   }
  118|  4.99k|}
asn1_str.cpp:_ZNK5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator14valid_encodingENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_9ASN1_TypeE:
   25|  6.32k|      constexpr bool valid_encoding(std::string_view str, ASN1_Type tag) const {
   26|  6.32k|         const uint8_t mask = mask_for(tag);
   27|  7.41k|         for(const char c : str) {
  ------------------
  |  Branch (27:27): [True: 7.41k, False: 6.12k]
  ------------------
   28|  7.41k|            const uint8_t codepoint = static_cast<uint8_t>(c);
   29|  7.41k|            const bool is_valid = (m_table[codepoint] & mask) != 0;
   30|       |
   31|  7.41k|            if(!is_valid) {
  ------------------
  |  Branch (31:16): [True: 197, False: 7.21k]
  ------------------
   32|    197|               return false;
   33|    197|            }
   34|  7.41k|         }
   35|       |
   36|  6.12k|         return true;
   37|  6.32k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator8mask_forENS_9ASN1_TypeE:
   45|  6.32k|      static constexpr uint8_t mask_for(ASN1_Type tag) {
   46|  6.32k|         switch(tag) {
   47|     44|            case ASN1_Type::NumericString:
  ------------------
  |  Branch (47:13): [True: 44, False: 6.27k]
  ------------------
   48|     44|               return Numeric_String;
   49|  5.61k|            case ASN1_Type::PrintableString:
  ------------------
  |  Branch (49:13): [True: 5.61k, False: 708]
  ------------------
   50|  5.61k|               return Printable_String;
   51|    637|            case ASN1_Type::Ia5String:
  ------------------
  |  Branch (51:13): [True: 637, False: 5.68k]
  ------------------
   52|    637|               return IA5_String;
   53|     27|            case ASN1_Type::VisibleString:
  ------------------
  |  Branch (53:13): [True: 27, False: 6.29k]
  ------------------
   54|     27|               return Visible_String;
   55|      0|            default:
  ------------------
  |  Branch (55:13): [True: 0, False: 6.32k]
  ------------------
   56|      0|               return 0;
   57|  6.32k|         }
   58|  6.32k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  120|  2.60k|ASN1_Type choose_encoding(std::string_view str) {
  121|  2.60k|   if(g_char_validator.valid_encoding(str, ASN1_Type::PrintableString)) {
  ------------------
  |  Branch (121:7): [True: 2.60k, False: 0]
  ------------------
  122|  2.60k|      return ASN1_Type::PrintableString;
  123|  2.60k|   } else {
  124|      0|      return ASN1_Type::Utf8String;
  125|      0|   }
  126|  2.60k|}

_ZN5Botan9ASN1_TimeC2EthhhhhNS_9ASN1_TypeE:
   43|  11.5k|      m_year(year), m_month(month), m_day(day), m_hour(hour), m_minute(minute), m_second(second), m_tag(tag) {
   44|  11.5k|   if(tag != ASN1_Type::UtcTime && tag != ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (44:7): [True: 427, False: 11.1k]
  |  Branch (44:36): [True: 0, False: 427]
  ------------------
   45|      0|      throw Invalid_Argument("ASN1_Time tag must be UtcTime or GeneralizedTime");
   46|      0|   }
   47|       |
   48|       |   /*
   49|       |   * RFC 5280 Section 4.1.2.5:
   50|       |   *    To indicate that a certificate has no well-defined expiration date,
   51|       |   *    the notAfter SHOULD be assigned the GeneralizedTime value of
   52|       |   *    99991231235959Z.
   53|       |   */
   54|  11.5k|   const uint16_t min_year = 1950;
   55|  11.5k|   const uint16_t max_year = (tag == ASN1_Type::UtcTime) ? 2049 : 9999;
  ------------------
  |  Branch (55:30): [True: 11.1k, False: 427]
  ------------------
   56|       |
   57|  11.5k|   if(m_year < min_year || m_year > max_year) {
  ------------------
  |  Branch (57:7): [True: 5, False: 11.5k]
  |  Branch (57:28): [True: 0, False: 11.5k]
  ------------------
   58|      5|      throw Invalid_Argument(fmt("ASN1_Time year {} is out of range ({} to {})", m_year, min_year, max_year));
   59|      5|   }
   60|       |
   61|  11.5k|   if(m_month < 1 || m_month > 12) {
  ------------------
  |  Branch (61:7): [True: 2, False: 11.5k]
  |  Branch (61:22): [True: 10, False: 11.5k]
  ------------------
   62|     12|      throw Invalid_Argument(fmt("ASN1_Time month {} is out of range", static_cast<uint32_t>(m_month)));
   63|     12|   }
   64|       |
   65|  11.5k|   constexpr uint8_t days_in_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
   66|       |
   67|  11.5k|   const bool is_leap_year = (m_year % 4 == 0) && (m_year % 100 != 0 || m_year % 400 == 0);
  ------------------
  |  Branch (67:30): [True: 4.00k, False: 7.55k]
  |  Branch (67:52): [True: 3.92k, False: 80]
  |  Branch (67:73): [True: 78, False: 2]
  ------------------
   68|  11.5k|   const uint8_t max_day = (m_month == 2 && is_leap_year) ? 29 : days_in_month[m_month - 1];
  ------------------
  |  Branch (68:29): [True: 437, False: 11.1k]
  |  Branch (68:45): [True: 255, False: 182]
  ------------------
   69|       |
   70|  11.5k|   if(m_day < 1 || m_day > max_day) {
  ------------------
  |  Branch (70:7): [True: 1, False: 11.5k]
  |  Branch (70:20): [True: 10, False: 11.5k]
  ------------------
   71|     11|      throw Invalid_Argument(fmt("ASN1_Time day {} is out of range for month {}",
   72|     11|                                 static_cast<uint32_t>(m_day),
   73|     11|                                 static_cast<uint32_t>(m_month)));
   74|     11|   }
   75|       |
   76|  11.5k|   if(m_hour > 23) {
  ------------------
  |  Branch (76:7): [True: 4, False: 11.5k]
  ------------------
   77|      4|      throw Invalid_Argument(fmt("ASN1_Time hour {} is out of range", static_cast<uint32_t>(m_hour)));
   78|      4|   }
   79|       |
   80|  11.5k|   if(m_minute > 59) {
  ------------------
  |  Branch (80:7): [True: 3, False: 11.5k]
  ------------------
   81|      3|      throw Invalid_Argument(fmt("ASN1_Time minute {} is out of range", static_cast<uint32_t>(m_minute)));
   82|      3|   }
   83|       |
   84|       |   /*
   85|       |   * RFC 5280 is silent on the issue of leap seconds in certificate fields, but both
   86|       |   * OpenSSL and Go reject which suggests they are rarely if ever used in practice.
   87|       |   */
   88|  11.5k|   if(m_second > 59) {
  ------------------
  |  Branch (88:7): [True: 2, False: 11.5k]
  ------------------
   89|      2|      throw Invalid_Argument(fmt("ASN1_Time second {} is out of range", static_cast<uint32_t>(m_second)));
   90|      2|   }
   91|  11.5k|}
_ZN5Botan9ASN1_Time11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  109|  11.6k|ASN1_Time ASN1_Time::from_string(std::string_view t_spec, ASN1_Type tag) {
  110|  11.6k|   BOTAN_ARG_CHECK(tag == ASN1_Type::UtcTime || tag == ASN1_Type::GeneralizedTime, "Invalid tag for ASN1_Time");
  ------------------
  |  |   35|  11.6k|   do {                                                          \
  |  |   36|  11.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  12.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 11.2k, False: 439]
  |  |  |  Branch (37:12): [True: 439, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.6k]
  |  |  ------------------
  ------------------
  111|       |
  112|  11.6k|   if(tag == ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (112:7): [True: 439, False: 11.2k]
  ------------------
  113|    439|      BOTAN_ARG_CHECK(t_spec.size() == 15, "Invalid GeneralizedTime input string");
  ------------------
  |  |   35|    439|   do {                                                          \
  |  |   36|    439|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    439|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 8, False: 431]
  |  |  ------------------
  |  |   38|      8|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      8|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      8|      }                                                          \
  |  |   41|    439|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 439]
  |  |  ------------------
  ------------------
  114|  11.2k|   } else {
  115|  11.2k|      BOTAN_ARG_CHECK(t_spec.size() == 13, "Invalid UTCTime input string");
  ------------------
  |  |   35|  11.2k|   do {                                                          \
  |  |   36|  11.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.2k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 15, False: 11.1k]
  |  |  ------------------
  |  |   38|     15|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     15|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     15|      }                                                          \
  |  |   41|  11.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.2k]
  |  |  ------------------
  ------------------
  116|  11.2k|   }
  117|       |
  118|  11.6k|   BOTAN_ARG_CHECK(t_spec.back() == 'Z', "Botan does not support ASN1 times with timezones other than Z");
  ------------------
  |  |   35|  11.6k|   do {                                                          \
  |  |   36|  11.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.6k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 21, False: 11.6k]
  |  |  ------------------
  |  |   38|     21|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     21|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     21|      }                                                          \
  |  |   41|  11.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.6k]
  |  |  ------------------
  ------------------
  119|       |
  120|  11.6k|   const size_t field_len = 2;
  121|  11.6k|   const size_t year_len = (tag == ASN1_Type::UtcTime) ? 2 : 4;
  ------------------
  |  Branch (121:28): [True: 11.1k, False: 474]
  ------------------
  122|       |
  123|  11.6k|   const size_t year_start = 0;
  124|  11.6k|   const size_t month_start = year_start + year_len;
  125|  11.6k|   const size_t day_start = month_start + field_len;
  126|  11.6k|   const size_t hour_start = day_start + field_len;
  127|  11.6k|   const size_t min_start = hour_start + field_len;
  128|  11.6k|   const size_t sec_start = min_start + field_len;
  129|       |
  130|  11.6k|   uint32_t year = to_u32bit(t_spec.substr(year_start, year_len));
  131|  11.6k|   const uint32_t month = to_u32bit(t_spec.substr(month_start, field_len));
  132|  11.6k|   const uint32_t day = to_u32bit(t_spec.substr(day_start, field_len));
  133|  11.6k|   const uint32_t hour = to_u32bit(t_spec.substr(hour_start, field_len));
  134|  11.6k|   const uint32_t minute = to_u32bit(t_spec.substr(min_start, field_len));
  135|  11.6k|   const uint32_t second = to_u32bit(t_spec.substr(sec_start, field_len));
  136|       |
  137|  11.6k|   if(tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (137:7): [True: 11.1k, False: 501]
  ------------------
  138|       |      // Interpret the two digit year by the 1950/2050 split (RFC 5280 Section 4.1.2.5.1)
  139|  11.1k|      year += (year >= 50) ? 1900 : 2000;
  ------------------
  |  Branch (139:15): [True: 150, False: 10.9k]
  ------------------
  140|  11.1k|   }
  141|       |
  142|  11.6k|   return ASN1_Time(static_cast<uint16_t>(year),
  143|  11.6k|                    static_cast<uint8_t>(month),
  144|  11.6k|                    static_cast<uint8_t>(day),
  145|  11.6k|                    static_cast<uint8_t>(hour),
  146|  11.6k|                    static_cast<uint8_t>(minute),
  147|  11.6k|                    static_cast<uint8_t>(second),
  148|  11.6k|                    tag);
  149|  11.6k|}
_ZN5Botan9ASN1_Time11decode_fromERNS_11BER_DecoderE:
  168|  11.8k|void ASN1_Time::decode_from(BER_Decoder& source) {
  169|  11.8k|   const BER_Object ber_time = source.get_next_object();
  170|       |
  171|  11.8k|   if(ber_time.get_class() != ASN1_Class::Universal ||
  ------------------
  |  Branch (171:7): [True: 181, False: 11.7k]
  ------------------
  172|  11.7k|      (ber_time.type() != ASN1_Type::UtcTime && ber_time.type() != ASN1_Type::GeneralizedTime)) {
  ------------------
  |  Branch (172:8): [True: 507, False: 11.2k]
  |  Branch (172:49): [True: 68, False: 439]
  ------------------
  173|    188|      throw Decoding_Error(fmt("ASN1_Time: Unexpected tag {}/{}",
  174|    188|                               static_cast<uint32_t>(ber_time.type()),
  175|    188|                               static_cast<uint32_t>(ber_time.get_class())));
  176|    188|   }
  177|       |
  178|  11.7k|   try {
  179|       |      // Assigning only after a successful parse means that a decoding error
  180|       |      // cannot leave this object in a partially written state
  181|  11.7k|      *this = ASN1_Time::from_string(ASN1::to_string(ber_time), ber_time.type());
  182|  11.7k|   } catch(Invalid_Argument& e) {
  183|    111|      throw Decoding_Error(fmt("Invalid ASN1_Time encoding: {}", e.what()));
  184|    111|   }
  185|  11.7k|}

_ZN5Botan11BER_DecoderD2Ev:
  456|  75.1k|BER_Decoder::~BER_Decoder() = default;
_ZNK5Botan11BER_Decoder10more_itemsEv:
  461|  58.1k|bool BER_Decoder::more_items() const {
  462|  58.1k|   if(m_source->end_of_data() && !m_pushed.is_set()) {
  ------------------
  |  Branch (462:7): [True: 13.7k, False: 44.3k]
  |  Branch (462:34): [True: 13.7k, False: 0]
  ------------------
  463|  13.7k|      return false;
  464|  13.7k|   }
  465|  44.3k|   return true;
  466|  58.1k|}
_ZN5Botan11BER_Decoder10verify_endEv:
  471|  11.7k|BER_Decoder& BER_Decoder::verify_end() {
  472|  11.7k|   return verify_end("BER_Decoder::verify_end called, but data remains");
  473|  11.7k|}
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  478|  11.7k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  479|  11.7k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (479:7): [True: 74, False: 11.7k]
  |  Branch (479:35): [True: 0, False: 11.7k]
  ------------------
  480|     74|      throw Decoding_Error(err);
  481|     74|   }
  482|  11.7k|   return (*this);
  483|  11.7k|}
_ZN5Botan11BER_Decoder14read_next_byteEv:
  495|  2.11M|std::optional<uint8_t> BER_Decoder::read_next_byte() {
  496|  2.11M|   BOTAN_ASSERT_NOMSG(m_source != nullptr);
  ------------------
  |  |   77|  2.11M|   do {                                                                     \
  |  |   78|  2.11M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.11M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.11M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.11M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.11M]
  |  |  ------------------
  ------------------
  497|  2.11M|   uint8_t b = 0;
  498|  2.11M|   if(m_source->read_byte(b) != 0) {
  ------------------
  |  Branch (498:7): [True: 2.09M, False: 11.3k]
  ------------------
  499|  2.09M|      return b;
  500|  2.09M|   } else {
  501|  11.3k|      return {};
  502|  11.3k|   }
  503|  2.11M|}
_ZN5Botan11BER_Decoder16peek_next_objectEv:
  505|  2.70k|const BER_Object& BER_Decoder::peek_next_object() {
  506|  2.70k|   if(!m_pushed.is_set()) {
  ------------------
  |  Branch (506:7): [True: 2.21k, False: 489]
  ------------------
  507|  2.21k|      m_pushed = get_next_object();
  508|  2.21k|   }
  509|       |
  510|  2.70k|   return m_pushed;
  511|  2.70k|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  516|   159k|BER_Object BER_Decoder::get_next_object() {
  517|   159k|   BER_Object next;
  518|       |
  519|   159k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (519:7): [True: 19.8k, False: 139k]
  ------------------
  520|  19.8k|      std::swap(next, m_pushed);
  521|  19.8k|      return next;
  522|  19.8k|   }
  523|       |
  524|   139k|   for(;;) {
  525|   139k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  526|   139k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  527|   139k|      decode_tag(m_source, type_tag, class_tag);
  528|   139k|      next.set_tagging(type_tag, class_tag);
  529|   139k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (529:10): [True: 282, False: 139k]
  ------------------
  530|    282|         return next;
  531|    282|      }
  532|       |
  533|   139k|      const size_t allow_indef = m_limits.allow_ber_encoding() ? m_limits.max_nested_indefinite_length() : 0;
  ------------------
  |  Branch (533:34): [True: 0, False: 139k]
  ------------------
  534|   139k|      const bool der_mode = m_limits.require_der_encoding();
  535|   139k|      const auto dl = decode_length(m_source, allow_indef, der_mode, is_constructed(class_tag));
  536|       |
  537|       |      // Per X.690 8.1.5 the only valid EOC encoding is the two-octet
  538|       |      // sequence 0x00 0x00. Reject any other length encoding on a tag of
  539|       |      // (Eoc, Universal) before we consume the "content" bytes.
  540|   139k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal &&
  ------------------
  |  Branch (540:10): [True: 3.21k, False: 136k]
  |  Branch (540:40): [True: 192, False: 3.02k]
  ------------------
  541|    192|         (dl.content_length() != 0 || dl.indefinite_length())) {
  ------------------
  |  Branch (541:11): [True: 83, False: 109]
  |  Branch (541:39): [True: 0, False: 109]
  ------------------
  542|     83|         throw BER_Decoding_Error("EOC marker with non-zero length");
  543|     83|      }
  544|       |
  545|   139k|      if(const auto max_size = m_limits.max_object_size(); max_size && dl.content_length() > *max_size) {
  ------------------
  |  Branch (545:60): [True: 138k, False: 697]
  |  Branch (545:72): [True: 43, False: 138k]
  ------------------
  546|     43|         throw BER_Decoding_Error("Encoded object exceeds maximum size");
  547|     43|      }
  548|       |
  549|   139k|      if(!m_source->check_available(dl.total_length())) {
  ------------------
  |  Branch (549:10): [True: 854, False: 138k]
  ------------------
  550|    854|         throw BER_Decoding_Error("Value truncated");
  551|    854|      }
  552|       |
  553|   138k|      uint8_t* out = next.mutable_bits(dl.content_length());
  554|   138k|      if(m_source->read(out, dl.content_length()) != dl.content_length()) {
  ------------------
  |  Branch (554:10): [True: 0, False: 138k]
  ------------------
  555|      0|         throw BER_Decoding_Error("Value truncated");
  556|      0|      }
  557|       |
  558|   138k|      if(dl.indefinite_length()) {
  ------------------
  |  Branch (558:10): [True: 0, False: 138k]
  ------------------
  559|       |         // After reading the data consume the 2-byte EOC
  560|      0|         uint8_t eoc[2] = {0xFF, 0xFF};
  561|      0|         if(m_source->read(eoc, 2) != 2 || eoc[0] != 0x00 || eoc[1] != 0x00) {
  ------------------
  |  Branch (561:13): [True: 0, False: 0]
  |  Branch (561:44): [True: 0, False: 0]
  |  Branch (561:62): [True: 0, False: 0]
  ------------------
  562|      0|            throw BER_Decoding_Error("Missing or malformed EOC marker");
  563|      0|         }
  564|      0|      }
  565|       |
  566|   138k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (566:10): [True: 109, False: 138k]
  ------------------
  567|    109|         if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (567:13): [True: 109, False: 0]
  ------------------
  568|    109|            throw BER_Decoding_Error("Detected EOC marker in DER structure");
  569|    109|         }
  570|       |         // An EOC marker is only valid as an indefinite-length terminator, which
  571|       |         // is consumed above when reading the indefinite-length object. A
  572|       |         // standalone EOC is rejected unless the caller opted to tolerate it.
  573|      0|         if(m_limits.allow_standalone_eoc()) {
  ------------------
  |  Branch (573:13): [True: 0, False: 0]
  ------------------
  574|      0|            continue;
  575|      0|         }
  576|      0|         throw BER_Decoding_Error("Encountered EOC marker outside of indefinite-length encoding");
  577|      0|      }
  578|       |
  579|   138k|      break;
  580|   138k|   }
  581|       |
  582|   138k|   return next;
  583|   139k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  607|  17.8k|void BER_Decoder::push_back(BER_Object&& obj) {
  608|  17.8k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (608:7): [True: 0, False: 17.8k]
  ------------------
  609|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  610|      0|   }
  611|  17.8k|   m_pushed = std::move(obj);
  612|  17.8k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  614|  57.5k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  615|  57.5k|   BER_Object obj = get_next_object();
  616|  57.5k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  617|       |
  618|       |   // In DER mode the elements of a universal SET must appear in sorted order
  619|  57.5k|   if(m_limits.require_der_encoding() && type_tag == ASN1_Type::Set && class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (619:7): [True: 56.2k, False: 1.30k]
  |  Branch (619:42): [True: 2.83k, False: 53.4k]
  |  Branch (619:72): [True: 2.83k, False: 0]
  ------------------
  620|  2.83k|      verify_set_is_sorted(std::span<const uint8_t>{obj.bits(), obj.length()});
  621|  2.83k|   }
  622|       |
  623|  57.5k|   BER_Decoder child(std::move(obj), this);
  624|  57.5k|   return child;
  625|  57.5k|}
_ZN5Botan11BER_Decoder8end_consEv:
  630|  40.4k|BER_Decoder& BER_Decoder::end_cons() {
  631|  40.4k|   if(m_parent == nullptr) {
  ------------------
  |  Branch (631:7): [True: 0, False: 40.4k]
  ------------------
  632|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  633|      0|   }
  634|  40.4k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (634:7): [True: 107, False: 40.3k]
  |  Branch (634:35): [True: 50, False: 40.3k]
  ------------------
  635|    157|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  636|    157|   }
  637|  40.3k|   return (*m_parent);
  638|  40.4k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  641|  56.0k|      m_limits(parent != nullptr ? parent->limits() : BER_Decoder::Limits::BER()), m_parent(parent) {
  ------------------
  |  Branch (641:16): [True: 56.0k, False: 0]
  ------------------
  642|  56.0k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  643|  56.0k|   m_source = m_data_src.get();
  644|  56.0k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceENS0_6LimitsE:
  654|  3.63k|BER_Decoder::BER_Decoder(DataSource& src, Limits limits) : m_limits(limits), m_source(&src) {}
_ZN5Botan11BER_DecoderC2ENSt3__14spanIKhLm18446744073709551615EEENS0_6LimitsE:
  659|  15.5k|BER_Decoder::BER_Decoder(std::span<const uint8_t> buf, Limits limits) : m_limits(limits) {
  660|  15.5k|   m_data_src = std::make_unique<DataSource_Memory>(buf);
  661|  15.5k|   m_source = m_data_src.get();
  662|  15.5k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  671|  67.6k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag) {
  672|       |   // TODO support this case properly
  673|  67.6k|   if(type_tag != ASN1_Type::NoObject || class_tag != ASN1_Class::NoObject) {
  ------------------
  |  Branch (673:7): [True: 0, False: 67.6k]
  |  Branch (673:42): [True: 0, False: 67.6k]
  ------------------
  674|      0|      throw Not_Implemented("BER_Decoder::decode(ASN1_Object) does not support implicit tagged decoding");
  675|      0|   }
  676|  67.6k|   obj.decode_from(*this);
  677|  67.6k|   return (*this);
  678|  67.6k|}
_ZN5Botan11BER_Decoder6decodeERbNS_9ASN1_TypeENS_10ASN1_ClassE:
  702|     45|BER_Decoder& BER_Decoder::decode(bool& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  703|     45|   const BER_Object obj = get_next_object();
  704|     45|   obj.assert_is_a(type_tag, class_tag);
  705|       |
  706|     45|   if(obj.length() != 1) {
  ------------------
  |  Branch (706:7): [True: 10, False: 35]
  ------------------
  707|     10|      throw BER_Decoding_Error("BER boolean value had invalid size");
  708|     10|   }
  709|       |
  710|     35|   const uint8_t val = obj.bits()[0];
  711|       |
  712|       |   // DER requires boolean values to be exactly 0x00 or 0xFF
  713|     35|   if(m_limits.require_der_encoding() && val != 0x00 && val != 0xFF) {
  ------------------
  |  Branch (713:7): [True: 35, False: 0]
  |  Branch (713:42): [True: 26, False: 9]
  |  Branch (713:57): [True: 12, False: 14]
  ------------------
  714|     12|      throw BER_Decoding_Error("Detected non-canonical boolean encoding in DER structure");
  715|     12|   }
  716|       |
  717|     23|   out = (val != 0) ? true : false;
  ------------------
  |  Branch (717:10): [True: 14, False: 9]
  ------------------
  718|       |
  719|     23|   return (*this);
  720|     35|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  725|  6.51k|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  726|  6.51k|   BigInt integer;
  727|  6.51k|   decode(integer, type_tag, class_tag);
  728|       |
  729|  6.51k|   if(integer.signum() < 0) {
  ------------------
  |  Branch (729:7): [True: 155, False: 6.36k]
  ------------------
  730|    155|      throw BER_Decoding_Error("Decoded small integer value was negative");
  731|    155|   }
  732|       |
  733|  6.36k|   if(integer.bits() > 32) {
  ------------------
  |  Branch (733:7): [True: 66, False: 6.29k]
  ------------------
  734|     66|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  735|     66|   }
  736|       |
  737|  6.29k|   out = 0;
  738|  24.9k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (738:22): [True: 18.6k, False: 6.29k]
  ------------------
  739|  18.6k|      out = (out << 8) | integer.byte_at(3 - i);
  740|  18.6k|   }
  741|       |
  742|  6.29k|   return (*this);
  743|  6.36k|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  775|  15.6k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  776|  15.6k|   const BER_Object obj = get_next_object();
  777|  15.6k|   obj.assert_is_a(type_tag, class_tag);
  778|       |
  779|       |   // An INTEGER must have at least one content octet (X.690 section 8.3.1)
  780|  15.6k|   if(obj.length() == 0) {
  ------------------
  |  Branch (780:7): [True: 26, False: 15.5k]
  ------------------
  781|     26|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  782|     26|   }
  783|       |
  784|       |   // DER requires minimal INTEGER encoding (X.690 section 8.3.2)
  785|  15.5k|   if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (785:7): [True: 13.9k, False: 1.63k]
  ------------------
  786|  13.9k|      if(obj.length() > 1) {
  ------------------
  |  Branch (786:10): [True: 8.09k, False: 5.84k]
  ------------------
  787|  8.09k|         if(obj.bits()[0] == 0x00 && (obj.bits()[1] & 0x80) == 0) {
  ------------------
  |  Branch (787:13): [True: 280, False: 7.81k]
  |  Branch (787:38): [True: 6, False: 274]
  ------------------
  788|      6|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  789|      6|         }
  790|  8.09k|         if(obj.bits()[0] == 0xFF && (obj.bits()[1] & 0x80) != 0) {
  ------------------
  |  Branch (790:13): [True: 136, False: 7.95k]
  |  Branch (790:38): [True: 8, False: 128]
  ------------------
  791|      8|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  792|      8|         }
  793|  8.09k|      }
  794|  13.9k|   }
  795|       |
  796|  15.5k|   out = ASN1::integer_from_contents(obj.data());
  797|       |
  798|  15.5k|   return (*this);
  799|  15.5k|}
_ZN5Botan4ASN121integer_from_contentsENSt3__14spanIKhLm18446744073709551615EEE:
  801|  14.5k|BigInt ASN1::integer_from_contents(std::span<const uint8_t> contents) {
  802|  14.5k|   if(contents.empty()) {
  ------------------
  |  Branch (802:7): [True: 0, False: 14.5k]
  ------------------
  803|      0|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  804|      0|   }
  805|       |
  806|  14.5k|   BigInt out;
  807|       |
  808|  14.5k|   const bool negative = (contents[0] & 0x80) == 0x80;
  809|       |
  810|  14.5k|   if(negative) {
  ------------------
  |  Branch (810:7): [True: 1.42k, False: 13.1k]
  ------------------
  811|  1.42k|      secure_vector<uint8_t> vec(contents.begin(), contents.end());
  812|  1.87k|      for(size_t i = vec.size(); i > 0; --i) {
  ------------------
  |  Branch (812:34): [True: 1.87k, False: 0]
  ------------------
  813|  1.87k|         const bool gt0 = (vec[i - 1] > 0);
  814|  1.87k|         vec[i - 1] -= 1;
  815|  1.87k|         if(gt0) {
  ------------------
  |  Branch (815:13): [True: 1.42k, False: 448]
  ------------------
  816|  1.42k|            break;
  817|  1.42k|         }
  818|  1.87k|      }
  819|  16.6k|      for(auto& byte : vec) {
  ------------------
  |  Branch (819:22): [True: 16.6k, False: 1.42k]
  ------------------
  820|  16.6k|         byte = ~byte;
  821|  16.6k|      }
  822|  1.42k|      out._assign_from_bytes(vec);
  823|  1.42k|      out.set_sign(BigInt::Negative);
  824|  13.1k|   } else {
  825|  13.1k|      out._assign_from_bytes(contents);
  826|  13.1k|   }
  827|       |
  828|  14.5k|   return out;
  829|  14.5k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
 1033|  14.8k|                                 ASN1_Class class_tag) {
 1034|  14.8k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (1034:7): [True: 0, False: 14.8k]
  |  Branch (1034:46): [True: 0, False: 0]
  ------------------
 1035|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
 1036|      0|   }
 1037|       |
 1038|  14.8k|   asn1_decode_binary_string(buffer, get_next_object(), real_type, type_tag, class_tag, m_limits);
 1039|  14.8k|   return (*this);
 1040|  14.8k|}
_ZN5Botan11BER_Decoder16decode_bitstringERNS_14ASN1_BitStringENS_9ASN1_TypeENS_10ASN1_ClassE:
 1042|  2.92k|BER_Decoder& BER_Decoder::decode_bitstring(ASN1_BitString& out, ASN1_Type type_tag, ASN1_Class class_tag) {
 1043|  2.92k|   const BER_Object obj = get_next_object();
 1044|       |
 1045|  2.92k|   std::vector<uint8_t> bits;
 1046|  2.92k|   uint8_t unused_bits = 0;
 1047|       |
 1048|  2.92k|   if(is_constructed(obj.class_tag())) {
  ------------------
  |  Branch (1048:7): [True: 2, False: 2.92k]
  ------------------
 1049|      2|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
 1050|      2|      if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (1050:10): [True: 1, False: 1]
  ------------------
 1051|      1|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
 1052|      1|      }
 1053|      1|      bits.reserve(obj.length());  // upper possible bound on the output size
 1054|      1|      unused_bits = asn1_concat_constructed_bit_string(bits, obj, m_limits, 0);
 1055|  2.92k|   } else {
 1056|  2.92k|      unused_bits = asn1_bitstring_unused_bits(obj, type_tag, class_tag, m_limits.require_der_encoding());
 1057|  2.92k|      bits.assign(obj.bits() + 1, obj.bits() + obj.length());
 1058|  2.92k|   }
 1059|       |
 1060|  2.92k|   if(unused_bits > 0 && !bits.empty()) {
  ------------------
  |  Branch (1060:7): [True: 11, False: 2.91k]
  |  Branch (1060:26): [True: 11, False: 0]
  ------------------
 1061|     11|      bits.back() &= static_cast<uint8_t>(0xFF << unused_bits);
 1062|     11|   }
 1063|       |
 1064|  2.92k|   out = ASN1_BitString(std::move(bits), unused_bits);
 1065|  2.92k|   return (*this);
 1066|  2.92k|}
_ZN5Botan11BER_Decoder22decode_named_bitstringERmmNS_9ASN1_TypeENS_10ASN1_ClassE:
 1071|     38|                                                 ASN1_Class class_tag) {
 1072|     38|   if(width > 64) {
  ------------------
  |  Branch (1072:7): [True: 0, False: 38]
  ------------------
 1073|      0|      throw Invalid_Argument("BER_Decoder: Named BIT STRING width is too large");
 1074|      0|   }
 1075|       |
 1076|     38|   ASN1_BitString bits;
 1077|     38|   decode_bitstring(bits, type_tag, class_tag);
 1078|       |
 1079|     38|   if(bits.bit_length() > width) {
  ------------------
  |  Branch (1079:7): [True: 5, False: 33]
  ------------------
 1080|      5|      throw BER_Decoding_Error("Named BIT STRING exceeds declared width");
 1081|      5|   }
 1082|       |
 1083|     33|   if(m_limits.require_der_encoding() && bits.bit_length() > 0 && !bits.bit_at(bits.bit_length() - 1)) {
  ------------------
  |  Branch (1083:7): [True: 23, False: 10]
  |  Branch (1083:42): [True: 20, False: 3]
  |  Branch (1083:67): [True: 4, False: 16]
  ------------------
 1084|      4|      throw BER_Decoding_Error("Named BIT STRING is not minimally encoded");
 1085|      4|   }
 1086|       |
 1087|     29|   uint64_t decoded = 0;
 1088|    129|   for(size_t bit = 0; bit != bits.bit_length(); ++bit) {
  ------------------
  |  Branch (1088:24): [True: 100, False: 29]
  ------------------
 1089|    100|      if(bits.bit_at(bit)) {
  ------------------
  |  Branch (1089:10): [True: 66, False: 34]
  ------------------
 1090|     66|         decoded |= uint64_t(1) << (width - 1 - bit);
 1091|     66|      }
 1092|    100|   }
 1093|       |
 1094|     29|   out = decoded;
 1095|     29|   return (*this);
 1096|     33|}
_ZN5Botan4ASN120is_single_der_objectENSt3__14spanIKhLm18446744073709551615EEENS_9ASN1_TypeENS_10ASN1_ClassE:
 1100|    646|bool is_single_der_object(std::span<const uint8_t> bytes, ASN1_Type expected_type, ASN1_Class expected_class) {
 1101|    646|   if(bytes.empty()) {
  ------------------
  |  Branch (1101:7): [True: 0, False: 646]
  ------------------
 1102|      0|      return false;
 1103|      0|   }
 1104|       |
 1105|    646|   try {
 1106|    646|      DataSource_Span src(bytes);
 1107|       |
 1108|    646|      ASN1_Type type_tag = ASN1_Type::NoObject;
 1109|    646|      ASN1_Class class_tag = ASN1_Class::NoObject;
 1110|    646|      const size_t tag_bytes = decode_tag(&src, type_tag, class_tag);
 1111|       |
 1112|    646|      if(type_tag != expected_type || class_tag != expected_class) {
  ------------------
  |  Branch (1112:10): [True: 471, False: 175]
  |  Branch (1112:39): [True: 7, False: 168]
  ------------------
 1113|    433|         return false;
 1114|    433|      }
 1115|       |
 1116|    213|      const auto dl = decode_length(&src, /*allow_indef=*/0, /*der_mode=*/true, is_constructed(expected_class));
 1117|       |
 1118|    213|      const size_t header_bytes = tag_bytes + dl.field_length();
 1119|    213|      if(header_bytes > bytes.size()) {
  ------------------
  |  Branch (1119:10): [True: 0, False: 213]
  ------------------
 1120|      0|         return false;
 1121|      0|      }
 1122|    213|      return dl.content_length() == bytes.size() - header_bytes;
 1123|    213|   } catch(Decoding_Error&) {
 1124|     53|      return false;
 1125|     53|   }
 1126|    646|}
_ZN5Botan4ASN122is_der_sequence_headerENSt3__14spanIKhLm18446744073709551615EEE:
 1128|    236|bool is_der_sequence_header(std::span<const uint8_t> bytes) {
 1129|    236|   return is_single_der_object(bytes, ASN1_Type::Sequence, ASN1_Class::Universal | ASN1_Class::Constructed);
 1130|    236|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   29|   140k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   30|   140k|   auto b = ber->read_byte();
   31|       |
   32|   140k|   if(!b) {
  ------------------
  |  Branch (32:7): [True: 282, False: 140k]
  ------------------
   33|    282|      type_tag = ASN1_Type::NoObject;
   34|    282|      class_tag = ASN1_Class::NoObject;
   35|    282|      return 0;
   36|    282|   }
   37|       |
   38|   140k|   if((*b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (38:7): [True: 139k, False: 1.01k]
  ------------------
   39|   139k|      type_tag = ASN1_Type(*b & 0x1F);
   40|   139k|      class_tag = ASN1_Class(*b & 0xE0);
   41|       |      // The EOC marker is primitive; a constructed universal tag 0 has no
   42|       |      // valid meaning and would otherwise bypass the EOC handling, which
   43|       |      // matches on (Eoc, Universal) exactly
   44|   139k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (44:10): [True: 3.29k, False: 135k]
  |  Branch (44:40): [True: 23, False: 3.27k]
  ------------------
   45|     23|         throw BER_Decoding_Error("EOC tag with constructed encoding");
   46|     23|      }
   47|   139k|      return 1;
   48|   139k|   }
   49|       |
   50|  1.01k|   size_t tag_bytes = 1;
   51|  1.01k|   class_tag = ASN1_Class(*b & 0xE0);
   52|       |
   53|  1.01k|   uint32_t tag_buf = 0;
   54|  3.48k|   while(true) {
  ------------------
  |  Branch (54:10): [True: 3.48k, Folded]
  ------------------
   55|  3.48k|      b = ber->read_byte();
   56|  3.48k|      if(!b) {
  ------------------
  |  Branch (56:10): [True: 38, False: 3.45k]
  ------------------
   57|     38|         throw BER_Decoding_Error("Long-form tag truncated");
   58|     38|      }
   59|       |      // Reject if shifting in another 7 bits would overflow the uint32_t tag
   60|  3.45k|      if((tag_buf >> 25) != 0) {
  ------------------
  |  Branch (60:10): [True: 62, False: 3.38k]
  ------------------
   61|     62|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   62|     62|      }
   63|       |      // This is required even by BER (see X.690 section 8.1.2.4.2 sentence c).
   64|       |      // Bits 7-1 of the first subsequent octet must not be all zero; this rules
   65|       |      // out both 0x80 (continuation with no data) and 0x00 (a long-form encoding
   66|       |      // of tag value 0, which collides with the EOC marker).
   67|  3.38k|      if(tag_bytes == 1 && (*b & 0x7F) == 0) {
  ------------------
  |  Branch (67:10): [True: 1.00k, False: 2.38k]
  |  Branch (67:28): [True: 30, False: 971]
  ------------------
   68|     30|         throw BER_Decoding_Error("Long form tag with leading zero");
   69|     30|      }
   70|  3.35k|      ++tag_bytes;
   71|  3.35k|      tag_buf = (tag_buf << 7) | (*b & 0x7F);
   72|  3.35k|      if((*b & 0x80) == 0) {
  ------------------
  |  Branch (72:10): [True: 886, False: 2.47k]
  ------------------
   73|    886|         break;
   74|    886|      }
   75|  3.35k|   }
   76|       |   // Per X.690 8.1.2.2, tag values 0-30 shall be encoded in the short form.
   77|       |   // Long-form encoding is reserved for tag values >= 31 (X.690 8.1.2.3).
   78|       |   // This is unconditional and applies to BER as well as DER.
   79|    886|   if(tag_buf <= 30) {
  ------------------
  |  Branch (79:7): [True: 32, False: 854]
  ------------------
   80|     32|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
   81|     32|   }
   82|       |
   83|    854|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (83:7): [True: 4, False: 850]
  ------------------
   84|      4|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
   85|      4|   }
   86|       |
   87|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
   88|    850|   type_tag = ASN1_Type(tag_buf);
   89|    850|   return tag_bytes;
   90|    854|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceEmbb:
  135|   139k|BerDecodedLength decode_length(DataSource* ber, size_t allow_indef, bool der_mode, bool constructed) {
  136|   139k|   uint8_t b = 0;
  137|   139k|   if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (137:7): [True: 135, False: 139k]
  ------------------
  138|    135|      throw BER_Decoding_Error("Length field not found");
  139|    135|   }
  140|   139k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (140:7): [True: 129k, False: 10.2k]
  ------------------
  141|   129k|      return BerDecodedLength(b, 1);
  142|   129k|   }
  143|       |
  144|  10.2k|   const size_t num_length_bytes = (b & 0x7F);
  145|  10.2k|   if(num_length_bytes > 4) {
  ------------------
  |  Branch (145:7): [True: 304, False: 9.93k]
  ------------------
  146|    304|      throw BER_Decoding_Error("Length field is too large");
  147|    304|   }
  148|       |
  149|  9.93k|   const size_t field_size = 1 + num_length_bytes;
  150|       |
  151|  9.93k|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (151:7): [True: 20, False: 9.91k]
  ------------------
  152|     20|      if(der_mode) {
  ------------------
  |  Branch (152:10): [True: 20, False: 0]
  ------------------
  153|     20|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  154|     20|      } else if(!constructed) {
  ------------------
  |  Branch (154:17): [True: 0, False: 0]
  ------------------
  155|       |         // Indefinite length is only valid for constructed types (X.690 8.1.3.2)
  156|      0|         throw BER_Decoding_Error("Indefinite-length encoding used with non-constructed type");
  157|      0|      } else if(allow_indef == 0) {
  ------------------
  |  Branch (157:17): [True: 0, False: 0]
  ------------------
  158|      0|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
  159|      0|      } else {
  160|       |         // find_eoc returns bytes up to and including the EOC marker.
  161|       |         // Return the content length; the caller consumes the EOC separately.
  162|      0|         const size_t eoc_len = find_eoc(ber, /*base_offset=*/0, allow_indef - 1);
  163|      0|         if(eoc_len < 2) {
  ------------------
  |  Branch (163:13): [True: 0, False: 0]
  ------------------
  164|      0|            throw BER_Decoding_Error("Invalid EOC encoding");
  165|      0|         }
  166|      0|         return BerDecodedLength::indefinite(eoc_len - 2, field_size);
  167|      0|      }
  168|     20|   }
  169|       |
  170|  9.91k|   size_t length = 0;
  171|       |
  172|  29.1k|   for(size_t i = 0; i != num_length_bytes; ++i) {
  ------------------
  |  Branch (172:22): [True: 19.2k, False: 9.85k]
  ------------------
  173|  19.2k|      if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (173:10): [True: 63, False: 19.1k]
  ------------------
  174|     63|         throw BER_Decoding_Error("Corrupted length field");
  175|     63|      }
  176|       |      // Can't overflow since we already checked that num_length_bytes <= 4
  177|  19.1k|      length = (length << 8) | b;
  178|  19.1k|   }
  179|       |
  180|       |   // DER requires shortest possible length encoding
  181|  9.85k|   if(der_mode) {
  ------------------
  |  Branch (181:7): [True: 9.85k, False: 0]
  ------------------
  182|  9.85k|      if(length < 128) {
  ------------------
  |  Branch (182:10): [True: 34, False: 9.81k]
  ------------------
  183|     34|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  184|     34|      }
  185|  9.81k|      if(num_length_bytes > 1 && length < (size_t(1) << ((num_length_bytes - 1) * 8))) {
  ------------------
  |  Branch (185:10): [True: 9.04k, False: 770]
  |  Branch (185:34): [True: 5, False: 9.04k]
  ------------------
  186|      5|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  187|      5|      }
  188|  9.81k|   }
  189|       |
  190|  9.81k|   return BerDecodedLength(length, field_size);
  191|  9.85k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emm:
  108|   138k|            BerDecodedLength(content_length, field_length, false) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emmb:
  125|   138k|            m_content_length(content_length), m_field_length(field_length), m_indefinite(indefinite) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_18peek_tagEPNS_10DataSourceEmRNS_9ASN1_TypeERNS_10ASN1_ClassE:
  197|  4.21k|size_t peek_tag(DataSource* src, size_t offset, ASN1_Type& type_tag, ASN1_Class& class_tag) {
  198|  4.21k|   uint8_t b = 0;
  199|  4.21k|   if(src->peek(&b, 1, offset) == 0) {
  ------------------
  |  Branch (199:7): [True: 0, False: 4.21k]
  ------------------
  200|      0|      type_tag = ASN1_Type::NoObject;
  201|      0|      class_tag = ASN1_Class::NoObject;
  202|      0|      return 0;
  203|      0|   }
  204|       |
  205|  4.21k|   if((b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (205:7): [True: 3.95k, False: 263]
  ------------------
  206|  3.95k|      type_tag = ASN1_Type(b & 0x1F);
  207|  3.95k|      class_tag = ASN1_Class(b & 0xE0);
  208|       |      // The EOC marker is primitive; a constructed universal tag 0 has no
  209|       |      // valid meaning and would otherwise bypass the EOC handling, which
  210|       |      // matches on (Eoc, Universal) exactly
  211|  3.95k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (211:10): [True: 785, False: 3.17k]
  |  Branch (211:40): [True: 5, False: 780]
  ------------------
  212|      5|         throw BER_Decoding_Error("EOC tag with constructed encoding");
  213|      5|      }
  214|  3.95k|      return 1;
  215|  3.95k|   }
  216|       |
  217|    263|   class_tag = ASN1_Class(b & 0xE0);
  218|    263|   size_t tag_bytes = 1;
  219|    263|   uint32_t tag_buf = 0;
  220|       |
  221|    597|   while(true) {
  ------------------
  |  Branch (221:10): [True: 597, Folded]
  ------------------
  222|    597|      if(src->peek(&b, 1, offset + tag_bytes) == 0) {
  ------------------
  |  Branch (222:10): [True: 5, False: 592]
  ------------------
  223|      5|         throw BER_Decoding_Error("Long-form tag truncated");
  224|      5|      }
  225|       |      // Reject if shifting in another 7 bits would overflow the uint32_t tag
  226|    592|      if((tag_buf >> 25) != 0) {
  ------------------
  |  Branch (226:10): [True: 13, False: 579]
  ------------------
  227|     13|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
  228|     13|      }
  229|       |      // Required even by BER (X.690 section 8.1.2.4.2 sentence c).
  230|       |      // Bits 7-1 of the first subsequent octet must not be all zero; this rules
  231|       |      // out both 0x80 (continuation with no data) and 0x00 (a long-form encoding
  232|       |      // of tag value 0, which collides with the EOC marker).
  233|    579|      if(tag_bytes == 1 && (b & 0x7F) == 0) {
  ------------------
  |  Branch (233:10): [True: 262, False: 317]
  |  Branch (233:28): [True: 3, False: 259]
  ------------------
  234|      3|         throw BER_Decoding_Error("Long form tag with leading zero");
  235|      3|      }
  236|    576|      ++tag_bytes;
  237|    576|      tag_buf = (tag_buf << 7) | (b & 0x7F);
  238|    576|      if((b & 0x80) == 0) {
  ------------------
  |  Branch (238:10): [True: 242, False: 334]
  ------------------
  239|    242|         break;
  240|    242|      }
  241|    576|   }
  242|       |
  243|       |   // Per X.690 8.1.2.2, tag values 0-30 shall be encoded in the short form.
  244|       |   // Long-form encoding is reserved for tag values >= 31 (X.690 8.1.2.3).
  245|       |   // This is unconditional and applies to BER as well as DER.
  246|    242|   if(tag_buf <= 30) {
  ------------------
  |  Branch (246:7): [True: 8, False: 234]
  ------------------
  247|      8|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
  248|      8|   }
  249|       |
  250|    234|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (250:7): [True: 1, False: 233]
  ------------------
  251|      1|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
  252|      1|   }
  253|       |
  254|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
  255|    233|   type_tag = ASN1_Type(tag_buf);
  256|    233|   return tag_bytes;
  257|    234|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_111peek_lengthEPNS_10DataSourceEmRmmbb:
  265|  4.18k|   DataSource* src, size_t offset, size_t& field_size, size_t allow_indef, bool constructed, bool der_mode) {
  266|  4.18k|   uint8_t b = 0;
  267|  4.18k|   if(src->peek(&b, 1, offset) == 0) {
  ------------------
  |  Branch (267:7): [True: 11, False: 4.17k]
  ------------------
  268|     11|      throw BER_Decoding_Error("Length field not found");
  269|     11|   }
  270|       |
  271|  4.17k|   field_size = 1;
  272|  4.17k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (272:7): [True: 4.06k, False: 106]
  ------------------
  273|  4.06k|      return b;
  274|  4.06k|   }
  275|       |
  276|    106|   const size_t num_length_bytes = (b & 0x7F);
  277|    106|   field_size += num_length_bytes;
  278|    106|   if(field_size > 5) {
  ------------------
  |  Branch (278:7): [True: 23, False: 83]
  ------------------
  279|     23|      throw BER_Decoding_Error("Length field is too large");
  280|     23|   }
  281|       |
  282|     83|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (282:7): [True: 3, False: 80]
  ------------------
  283|       |      // Indefinite length is not allowed in DER
  284|      3|      if(der_mode) {
  ------------------
  |  Branch (284:10): [True: 3, False: 0]
  ------------------
  285|      3|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  286|      3|      }
  287|       |      // Indefinite length is only valid for constructed types (X.690 8.1.3.2)
  288|      0|      if(!constructed) {
  ------------------
  |  Branch (288:10): [True: 0, False: 0]
  ------------------
  289|      0|         throw BER_Decoding_Error("Indefinite-length encoding used with non-constructed type");
  290|      0|      }
  291|      0|      if(allow_indef == 0) {
  ------------------
  |  Branch (291:10): [True: 0, False: 0]
  ------------------
  292|      0|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
  293|      0|      }
  294|      0|      return find_eoc(src, offset + 1, allow_indef - 1);
  295|      0|   }
  296|       |
  297|     80|   size_t length = 0;
  298|    289|   for(size_t i = 0; i < num_length_bytes; ++i) {
  ------------------
  |  Branch (298:22): [True: 218, False: 71]
  ------------------
  299|    218|      if(src->peek(&b, 1, offset + 1 + i) == 0) {
  ------------------
  |  Branch (299:10): [True: 9, False: 209]
  ------------------
  300|      9|         throw BER_Decoding_Error("Corrupted length field");
  301|      9|      }
  302|    209|      if(get_byte<0>(length) != 0) {
  ------------------
  |  Branch (302:10): [True: 0, False: 209]
  ------------------
  303|      0|         throw BER_Decoding_Error("Field length overflow");
  304|      0|      }
  305|    209|      length = (length << 8) | b;
  306|    209|   }
  307|     71|   return length;
  308|     80|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedENS_10ASN1_ClassE:
   22|   164k|bool is_constructed(ASN1_Class class_tag) {
   23|   164k|   return (static_cast<uint32_t>(class_tag) & static_cast<uint32_t>(ASN1_Class::Constructed)) != 0;
   24|   164k|}
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength14content_lengthEv:
  114|   552k|      size_t content_length() const { return m_content_length; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength17indefinite_lengthEv:
  121|   137k|      bool indefinite_length() const { return m_indefinite; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12total_lengthEv:
  117|   138k|      size_t total_length() const { return m_indefinite ? m_content_length + 2 : m_content_length; }
  ------------------
  |  Branch (117:44): [True: 0, False: 138k]
  ------------------
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120verify_set_is_sortedENSt3__14spanIKhLm18446744073709551615EEE:
  426|  2.83k|void verify_set_is_sorted(std::span<const uint8_t> content) {
  427|  2.83k|   DataSource_Span src(content);
  428|  2.83k|   size_t offset = 0;
  429|  2.83k|   std::optional<std::span<const uint8_t>> prev;
  430|       |
  431|  6.89k|   while(offset < content.size()) {
  ------------------
  |  Branch (431:10): [True: 4.21k, False: 2.67k]
  ------------------
  432|  4.21k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  433|  4.21k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  434|  4.21k|      const size_t tag_size = peek_tag(&src, offset, type_tag, class_tag);
  435|       |
  436|  4.21k|      size_t length_size = 0;
  437|  4.21k|      const size_t item_size =
  438|  4.21k|         peek_length(&src, offset + tag_size, length_size, /*allow_indef=*/0, is_constructed(class_tag), true);
  439|       |
  440|  4.21k|      const auto end = checked_add(offset, tag_size, length_size, item_size);
  441|  4.21k|      if(!end || *end > content.size()) {
  ------------------
  |  Branch (441:10): [True: 81, False: 4.13k]
  |  Branch (441:18): [True: 81, False: 4.05k]
  ------------------
  442|     81|         throw BER_Decoding_Error("SET element exceeds available data");
  443|     81|      }
  444|       |
  445|  4.13k|      const auto elem = content.subspan(offset, *end - offset);
  446|  4.13k|      if(prev && std::lexicographical_compare(elem.begin(), elem.end(), prev->begin(), prev->end())) {
  ------------------
  |  Branch (446:10): [True: 1.26k, False: 2.87k]
  |  Branch (446:18): [True: 71, False: 1.19k]
  ------------------
  447|     71|         throw BER_Decoding_Error("Detected unsorted SET in DER structure");
  448|     71|      }
  449|  4.06k|      prev = elem;
  450|  4.06k|      offset = *end;
  451|  4.06k|   }
  452|  2.83k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_126asn1_bitstring_unused_bitsERKNS_10BER_ObjectENS_9ASN1_TypeENS_10ASN1_ClassEb:
  985|  2.91k|uint8_t asn1_bitstring_unused_bits(const BER_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag, bool require_der) {
  986|  2.91k|   obj.assert_is_a(type_tag, class_tag);
  987|  2.91k|   BOTAN_ASSERT_NOMSG(!is_constructed(obj));
  ------------------
  |  |   77|  2.91k|   do {                                                                     \
  |  |   78|  2.91k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.91k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.91k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.91k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.91k]
  |  |  ------------------
  ------------------
  988|       |
  989|  2.91k|   if(obj.length() == 0) {
  ------------------
  |  Branch (989:7): [True: 3, False: 2.90k]
  ------------------
  990|      3|      throw BER_Decoding_Error("Invalid BIT STRING");
  991|      3|   }
  992|       |
  993|  2.90k|   const uint8_t unused_bits = obj.bits()[0];
  994|       |
  995|  2.90k|   if(unused_bits >= 8) {
  ------------------
  |  Branch (995:7): [True: 8, False: 2.90k]
  ------------------
  996|      8|      throw BER_Decoding_Error("Invalid number of unused bits in BIT STRING");
  997|      8|   }
  998|       |
  999|  2.90k|   if(obj.length() == 1 && unused_bits != 0) {
  ------------------
  |  Branch (999:7): [True: 14, False: 2.88k]
  |  Branch (999:28): [True: 5, False: 9]
  ------------------
 1000|      5|      throw BER_Decoding_Error("Invalid BIT STRING");
 1001|      5|   }
 1002|       |
 1003|  2.89k|   if(require_der && unused_bits > 0) {
  ------------------
  |  Branch (1003:7): [True: 2.85k, False: 42]
  |  Branch (1003:22): [True: 22, False: 2.83k]
  ------------------
 1004|     22|      const uint8_t last_byte = obj.bits()[obj.length() - 1];
 1005|     22|      if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (1005:10): [True: 11, False: 11]
  ------------------
 1006|     11|         throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
 1007|     11|      }
 1008|     22|   }
 1009|       |
 1010|  2.88k|   return unused_bits;
 1011|  2.89k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedERKNS_10BER_ObjectE:
  833|  17.7k|bool is_constructed(const BER_Object& obj) {
  834|  17.7k|   return is_constructed(obj.class_tag());
  835|  17.7k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_SpanC2ENSt3__14spanIKhLm18446744073709551615EEE:
  414|  3.47k|      explicit DataSource_Span(std::span<const uint8_t> buf) : m_buf(buf) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_Span4readEPhm:
  392|  1.35k|      size_t read(uint8_t out[], size_t length) override {
  393|  1.35k|         const size_t got = std::min(m_buf.size() - m_offset, length);
  394|  1.35k|         copy_mem(out, m_buf.data() + m_offset, got);
  395|  1.35k|         m_offset += got;
  396|  1.35k|         return got;
  397|  1.35k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_115DataSource_Span4peekEPhmm:
  399|  9.21k|      size_t peek(uint8_t out[], size_t length, size_t peek_offset) const override {
  400|  9.21k|         if(peek_offset >= m_buf.size() - m_offset) {
  ------------------
  |  Branch (400:13): [True: 25, False: 9.19k]
  ------------------
  401|     25|            return 0;
  402|     25|         }
  403|  9.19k|         const size_t got = std::min(m_buf.size() - m_offset - peek_offset, length);
  404|  9.19k|         copy_mem(out, m_buf.data() + m_offset + peek_offset, got);
  405|  9.19k|         return got;
  406|  9.21k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12field_lengthEv:
  119|    160|      size_t field_length() const { return m_field_length; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  379|  56.0k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  349|  2.42M|      size_t read(uint8_t out[], size_t length) override {
  350|  2.42M|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|  2.42M|   do {                                                                     \
  |  |   78|  2.42M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.42M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.42M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.42M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.42M]
  |  |  ------------------
  ------------------
  351|  2.42M|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  352|  2.42M|         copy_mem(out, m_obj.bits() + m_offset, got);
  353|  2.42M|         m_offset += got;
  354|  2.42M|         return got;
  355|  2.42M|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  370|   100k|      bool check_available(size_t n) override {
  371|   100k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|   100k|   do {                                                                     \
  |  |   78|   100k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   100k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 100k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   100k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 100k]
  |  |  ------------------
  ------------------
  372|   100k|         return (n <= (m_obj.length() - m_offset));
  373|   100k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  375|  92.0k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  377|  92.0k|      size_t get_bytes_read() const override { return m_offset; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINSt3__19allocatorIhEEEEvRNS2_6vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassERKNS_11BER_Decoder6LimitsE:
  927|  14.8k|                               const BER_Decoder::Limits& limits) {
  928|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding;
  929|       |   // in BER the constructed (fragmented) form is decoded by concatenation
  930|  14.8k|   if(is_constructed(obj)) {
  ------------------
  |  Branch (930:7): [True: 7, False: 14.8k]
  ------------------
  931|      7|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  932|       |
  933|      7|      if(limits.require_der_encoding()) {
  ------------------
  |  Branch (933:10): [True: 1, False: 6]
  ------------------
  934|      1|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  935|      1|      }
  936|       |
  937|       |      // Concatenate into a temporary so a failed decode leaves buffer unmodified
  938|      6|      std::vector<uint8_t, Alloc> concat;
  939|      6|      concat.reserve(obj.length());  // upper possible bound on the output size
  940|      6|      if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (940:10): [True: 0, False: 6]
  ------------------
  941|      0|         asn1_concat_constructed_octet_string(concat, obj, limits, 0);
  942|      6|      } else {
  943|      6|         asn1_concat_constructed_bit_string(concat, obj, limits, 0);
  944|      6|      }
  945|      6|      buffer = std::move(concat);
  946|      6|      return;
  947|      7|   }
  948|       |
  949|  14.8k|   obj.assert_is_a(type_tag, class_tag);
  950|       |
  951|  14.8k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (951:7): [True: 14.8k, False: 10]
  ------------------
  952|  14.8k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  953|  14.8k|   } else {
  954|     10|      if(obj.length() == 0) {
  ------------------
  |  Branch (954:10): [True: 0, False: 10]
  ------------------
  955|      0|         throw BER_Decoding_Error("Invalid BIT STRING");
  956|      0|      }
  957|       |
  958|     10|      const uint8_t unused_bits = obj.bits()[0];
  959|       |
  960|     10|      if(unused_bits >= 8) {
  ------------------
  |  Branch (960:10): [True: 0, False: 10]
  ------------------
  961|      0|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  962|      0|      }
  963|       |
  964|       |      // Empty BIT STRING with unused bits > 0 ...
  965|     10|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (965:10): [True: 0, False: 10]
  |  Branch (965:29): [True: 0, False: 0]
  ------------------
  966|      0|         throw BER_Decoding_Error("Invalid BIT STRING");
  967|      0|      }
  968|       |
  969|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  970|     10|      if(limits.require_der_encoding() && unused_bits > 0) {
  ------------------
  |  Branch (970:10): [True: 0, False: 10]
  |  Branch (970:43): [True: 0, False: 0]
  ------------------
  971|      0|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  972|      0|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (972:13): [True: 0, False: 0]
  ------------------
  973|      0|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  974|      0|         }
  975|      0|      }
  976|       |
  977|     10|      buffer.resize(obj.length() - 1);
  978|       |
  979|     10|      if(obj.length() > 1) {
  ------------------
  |  Branch (979:10): [True: 0, False: 10]
  ------------------
  980|      0|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  981|      0|      }
  982|     10|   }
  983|  14.8k|}

_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   89|  3.02k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   90|  3.02k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  3.02k|      if(l > 0) {
   92|  3.02k|         vec.insert(vec.end(), b, b + l);
   93|  3.02k|      }
   94|  3.02k|   };
   95|  3.02k|}
_ZN5Botan11DER_Encoder12DER_Sequence13push_contentsERS0_:
  100|    193|void DER_Encoder::DER_Sequence::push_contents(DER_Encoder& der) {
  101|    193|   const auto real_class_tag = m_class_tag | ASN1_Class::Constructed;
  102|       |
  103|    193|   if(m_sort_contents) {
  ------------------
  |  Branch (103:7): [True: 0, False: 193]
  ------------------
  104|      0|      std::sort(m_set_contents.begin(), m_set_contents.end());
  105|      0|      for(const auto& set_elem : m_set_contents) {
  ------------------
  |  Branch (105:32): [True: 0, False: 0]
  ------------------
  106|      0|         m_contents += set_elem;
  107|      0|      }
  108|      0|      m_set_contents.clear();
  109|      0|   }
  110|       |
  111|    193|   der.add_object(m_type_tag, real_class_tag, m_contents.data(), m_contents.size());
  112|    193|   m_contents.clear();
  113|    193|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhmS3_m:
  130|    193|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t hdr[], size_t hdr_len, const uint8_t val[], size_t val_len) {
  131|    193|   if(m_sort_contents) {
  ------------------
  |  Branch (131:7): [True: 0, False: 193]
  ------------------
  132|      0|      secure_vector<uint8_t> m;
  133|      0|      m.reserve(hdr_len + val_len);
  134|      0|      m += std::make_pair(hdr, hdr_len);
  135|      0|      m += std::make_pair(val, val_len);
  136|      0|      m_set_contents.push_back(std::move(m));
  137|    193|   } else {
  138|    193|      m_contents += std::make_pair(hdr, hdr_len);
  139|    193|      m_contents += std::make_pair(val, val_len);
  140|    193|   }
  141|    193|}
_ZN5Botan11DER_Encoder12DER_SequenceC2ENS_9ASN1_TypeENS_10ASN1_ClassEb:
  154|    193|      m_type_tag(type_tag),
  155|    193|      m_class_tag(class_tag),
  156|    193|      m_sort_contents(sort_contents || (type_tag == ASN1_Type::Set && class_tag == ASN1_Class::Universal)) {}
  ------------------
  |  Branch (156:23): [True: 0, False: 193]
  |  Branch (156:41): [True: 0, False: 193]
  |  Branch (156:71): [True: 0, False: 0]
  ------------------
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  192|    193|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  193|    193|   return start_cons(type_tag, class_tag, false);
  194|    193|}
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassEb:
  200|    193|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag, bool sort_contents) {
  201|    193|   m_subsequences.push_back(DER_Sequence(type_tag, class_tag, sort_contents));
  202|    193|   return (*this);
  203|    193|}
_ZN5Botan11DER_Encoder8end_consEv:
  208|    193|DER_Encoder& DER_Encoder::end_cons() {
  209|    193|   if(m_subsequences.empty()) {
  ------------------
  |  Branch (209:7): [True: 0, False: 193]
  ------------------
  210|      0|      throw Invalid_State("DER_Encoder::end_cons: No such sequence");
  211|      0|   }
  212|       |
  213|    193|   DER_Sequence last_seq = std::move(m_subsequences[m_subsequences.size() - 1]);
  214|    193|   m_subsequences.pop_back();
  215|    193|   last_seq.push_contents(*this);
  216|       |
  217|    193|   return (*this);
  218|    193|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  285|  3.22k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  286|  3.22k|   std::vector<uint8_t> hdr;
  287|  3.22k|   encode_tag(hdr, type_tag, class_tag);
  288|  3.22k|   encode_length(hdr, length);
  289|       |
  290|  3.22k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (290:7): [True: 193, False: 3.02k]
  ------------------
  291|    193|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  292|  3.02k|   } else if(m_append_output) {
  ------------------
  |  Branch (292:14): [True: 3.02k, False: 4]
  ------------------
  293|  3.02k|      m_append_output(hdr.data(), hdr.size());
  294|  3.02k|      m_append_output(rep, length);
  295|  3.02k|   } else {
  296|      4|      m_default_outbuf += hdr;
  297|      4|      m_default_outbuf += std::make_pair(rep, length);
  298|      4|   }
  299|       |
  300|  3.22k|   return (*this);
  301|  3.22k|}
_ZN5Botan4ASN116integer_contentsERKNS_6BigIntE:
  356|  9.03k|std::vector<uint8_t> ASN1::integer_contents(const BigInt& n) {
  357|  9.03k|   if(n == 0) {
  ------------------
  |  Branch (357:7): [True: 199, False: 8.83k]
  ------------------
  358|    199|      return {0x00};
  359|    199|   }
  360|       |
  361|       |   // Serialize magnitude with one extra leading byte
  362|  8.83k|   auto contents = n.serialize(n.bytes() + 1);
  363|       |
  364|  8.83k|   if(n.signum() < 0) {
  ------------------
  |  Branch (364:7): [True: 654, False: 8.17k]
  ------------------
  365|       |      // Two's complement: bitwise NOT then increment
  366|  7.14k|      for(auto& byte : contents) {
  ------------------
  |  Branch (366:22): [True: 7.14k, False: 654]
  ------------------
  367|  7.14k|         byte = ~byte;
  368|  7.14k|      }
  369|    932|      for(size_t i = contents.size(); i > 0; --i) {
  ------------------
  |  Branch (369:39): [True: 932, False: 0]
  ------------------
  370|    932|         if(++contents[i - 1] != 0) {
  ------------------
  |  Branch (370:13): [True: 654, False: 278]
  ------------------
  371|    654|            break;
  372|    654|         }
  373|    932|      }
  374|    654|   }
  375|       |
  376|       |   /*
  377|       |   * DER requires the leading byte be emitted only if it required
  378|       |   */
  379|  8.83k|   BOTAN_ASSERT_NOMSG(contents.size() >= 2);
  ------------------
  |  |   77|  8.83k|   do {                                                                     \
  |  |   78|  8.83k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.83k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.83k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.83k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.83k]
  |  |  ------------------
  ------------------
  380|  8.83k|   const bool leading_byte_redundant =
  381|  8.83k|      (contents[0] == 0x00 && (contents[1] & 0x80) == 0) || (contents[0] == 0xFF && (contents[1] & 0x80) != 0);
  ------------------
  |  Branch (381:8): [True: 8.17k, False: 654]
  |  Branch (381:31): [True: 7.93k, False: 238]
  |  Branch (381:62): [True: 654, False: 238]
  |  Branch (381:85): [True: 556, False: 98]
  ------------------
  382|       |
  383|  8.83k|   if(leading_byte_redundant) {
  ------------------
  |  Branch (383:7): [True: 8.49k, False: 336]
  ------------------
  384|  8.49k|      contents.erase(contents.begin());
  385|  8.49k|   }
  386|  8.83k|   return contents;
  387|  9.03k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   26|  3.22k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   27|  3.22k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   28|  3.22k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   29|       |
   30|  3.22k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (30:7): [True: 4, False: 3.21k]
  ------------------
   31|      4|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   32|      4|   }
   33|       |
   34|  3.21k|   if(type_tag <= 30) {
  ------------------
  |  Branch (34:7): [True: 3.10k, False: 116]
  ------------------
   35|  3.10k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   36|  3.10k|   } else {
   37|    116|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   38|    116|      blocks = (blocks - (blocks % 7)) / 7;
   39|       |
   40|    116|      BOTAN_ASSERT_NOMSG(blocks > 0);
  ------------------
  |  |   77|    116|   do {                                                                     \
  |  |   78|    116|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    116|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 116]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    116|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 116]
  |  |  ------------------
  ------------------
   41|       |
   42|    116|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   43|    433|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (43:25): [True: 317, False: 116]
  ------------------
   44|    317|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   45|    317|      }
   46|    116|      encoded_tag.push_back(type_tag & 0x7F);
   47|    116|   }
   48|  3.21k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   53|  3.21k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   54|  3.21k|   if(length <= 127) {
  ------------------
  |  Branch (54:7): [True: 3.21k, False: 0]
  ------------------
   55|  3.21k|      encoded_length.push_back(static_cast<uint8_t>(length));
   56|  3.21k|   } else {
   57|      0|      const size_t bytes_needed = significant_bytes(length);
   58|       |
   59|      0|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   60|       |
   61|      0|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (61:53): [True: 0, False: 0]
  ------------------
   62|      0|         encoded_length.push_back(get_byte_var(i, length));
   63|      0|      }
   64|      0|   }
   65|  3.21k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   90|  6.04k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  6.04k|      if(l > 0) {
  ------------------
  |  Branch (91:10): [True: 6.00k, False: 41]
  ------------------
   92|  6.00k|         vec.insert(vec.end(), b, b + l);
   93|  6.00k|      }
   94|  6.04k|   };

_ZN5Botan7OID_MapC2Ev:
   11|      1|OID_Map::OID_Map() {
   12|      1|   m_str2oid = OID_Map::load_str2oid_map();
   13|      1|   m_oid2str = OID_Map::load_oid2str_map();
   14|      1|}
_ZN5Botan7OID_Map15global_registryEv:
   16|    798|OID_Map& OID_Map::global_registry() {
   17|    798|   static OID_Map g_map;
   18|    798|   return g_map;
   19|    798|}
_ZN5Botan7OID_Map7str2oidENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   88|    798|OID OID_Map::str2oid(std::string_view str) {
   89|    798|   if(auto oid = lookup_static_oid_name(str)) {
  ------------------
  |  Branch (89:12): [True: 798, False: 0]
  ------------------
   90|    798|      return std::move(*oid);
   91|    798|   }
   92|       |
   93|      0|   const lock_guard_type<mutex_type> lock(m_mutex);
   94|      0|   auto i = m_str2oid.find(std::string(str));
   95|      0|   if(i != m_str2oid.end()) {
  ------------------
  |  Branch (95:7): [True: 0, False: 0]
  ------------------
   96|      0|      return i->second;
   97|      0|   }
   98|       |
   99|      0|   return OID();
  100|      0|}

_ZN5Botan7OID_Map22lookup_static_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  744|    798|std::optional<OID> OID_Map::lookup_static_oid_name(std::string_view req) {
  745|    798|   const uint32_t hc = hash_oid_name(req);
  746|       |
  747|    798|   switch(hc) {
  748|      0|      case 0x00545:
  ------------------
  |  Branch (748:7): [True: 0, False: 798]
  ------------------
  749|      0|         return if_match(req, "Twofish/GCM", {1, 3, 6, 1, 4, 1, 25258, 3, 102});
  750|      0|      case 0x00CF3:
  ------------------
  |  Branch (750:7): [True: 0, False: 798]
  ------------------
  751|      0|         return if_match(req, "SphincsPlus-sha2-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 4});
  752|      0|      case 0x015FE:
  ------------------
  |  Branch (752:7): [True: 0, False: 798]
  ------------------
  753|      0|         return if_match(req, "FrodoKEM-640-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 1});
  754|      0|      case 0x01F9E:
  ------------------
  |  Branch (754:7): [True: 0, False: 798]
  ------------------
  755|      0|         return if_match(req, "MD5", {1, 2, 840, 113549, 2, 5});
  756|      0|      case 0x02293:
  ------------------
  |  Branch (756:7): [True: 0, False: 798]
  ------------------
  757|      0|         return if_match(req, "SphincsPlus-shake-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 4});
  758|      0|      case 0x02B93:
  ------------------
  |  Branch (758:7): [True: 0, False: 798]
  ------------------
  759|      0|         return if_match(req, "Microsoft SmartcardLogon", {1, 3, 6, 1, 4, 1, 311, 20, 2, 2});
  760|      0|      case 0x041D5:
  ------------------
  |  Branch (760:7): [True: 0, False: 798]
  ------------------
  761|      0|         return if_match(req, "secp160k1", {1, 3, 132, 0, 9});
  762|      0|      case 0x044B3:
  ------------------
  |  Branch (762:7): [True: 0, False: 798]
  ------------------
  763|      0|         return if_match(req, "Camellia-256/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 8});
  764|      0|      case 0x048B2:
  ------------------
  |  Branch (764:7): [True: 0, False: 798]
  ------------------
  765|      0|         return if_match(req, "secp160r1", {1, 3, 132, 0, 8});
  766|      0|      case 0x048B3:
  ------------------
  |  Branch (766:7): [True: 0, False: 798]
  ------------------
  767|      0|         return if_match(req, "secp160r2", {1, 3, 132, 0, 30});
  768|      0|      case 0x05CDA:
  ------------------
  |  Branch (768:7): [True: 0, False: 798]
  ------------------
  769|      0|         return if_match(req, "X520.Country", {2, 5, 4, 6});
  770|      0|      case 0x07783:
  ------------------
  |  Branch (770:7): [True: 0, False: 798]
  ------------------
  771|      0|         return if_match(req, "PKIX.ServerAuth", {1, 3, 6, 1, 5, 5, 7, 3, 1});
  772|      0|      case 0x086C7:
  ------------------
  |  Branch (772:7): [True: 0, False: 798]
  ------------------
  773|      0|         return if_match(req, "numsp384d1", {1, 3, 6, 1, 4, 1, 25258, 4, 2});
  774|      0|      case 0x08A92:
  ------------------
  |  Branch (774:7): [True: 0, False: 798]
  ------------------
  775|      0|         return if_match(req, "RSA/PKCS1v15(SHA-1)", {1, 2, 840, 113549, 1, 1, 5});
  776|      0|      case 0x09EA0:
  ------------------
  |  Branch (776:7): [True: 0, False: 798]
  ------------------
  777|      0|         return if_match(req, "DES/CBC", {1, 3, 14, 3, 2, 7});
  778|      0|      case 0x0B2D6:
  ------------------
  |  Branch (778:7): [True: 0, False: 798]
  ------------------
  779|      0|         return if_match(req, "ECDSA/SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 3, 12});
  780|      0|      case 0x0BA72:
  ------------------
  |  Branch (780:7): [True: 0, False: 798]
  ------------------
  781|      0|         return if_match(req, "SphincsPlus-sha2-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 1});
  782|      0|      case 0x0BE23:
  ------------------
  |  Branch (782:7): [True: 0, False: 798]
  ------------------
  783|      0|         return if_match(req, "ECGDSA", {1, 3, 36, 3, 3, 2, 5, 2, 1});
  784|      0|      case 0x0C109:
  ------------------
  |  Branch (784:7): [True: 0, False: 798]
  ------------------
  785|      0|         return if_match(req, "PKCS9.FriendlyName", {1, 2, 840, 113549, 1, 9, 20});
  786|      0|      case 0x0D012:
  ------------------
  |  Branch (786:7): [True: 0, False: 798]
  ------------------
  787|      0|         return if_match(req, "SphincsPlus-shake-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 1});
  788|      0|      case 0x0DCE9:
  ------------------
  |  Branch (788:7): [True: 0, False: 798]
  ------------------
  789|      0|         return if_match(req, "ClassicMcEliece_8192128f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 10});
  790|      0|      case 0x0E52A:
  ------------------
  |  Branch (790:7): [True: 0, False: 798]
  ------------------
  791|      0|         return if_match(req, "numsp512d1", {1, 3, 6, 1, 4, 1, 25258, 4, 3});
  792|      0|      case 0x0F9CC:
  ------------------
  |  Branch (792:7): [True: 0, False: 798]
  ------------------
  793|      0|         return if_match(req, "PKCS9.UnstructuredName", {1, 2, 840, 113549, 1, 9, 2});
  794|      0|      case 0x0FF45:
  ------------------
  |  Branch (794:7): [True: 0, False: 798]
  ------------------
  795|      0|         return if_match(req, "Camellia-256/GCM", {0, 3, 4401, 5, 3, 1, 9, 46});
  796|      0|      case 0x1033D:
  ------------------
  |  Branch (796:7): [True: 0, False: 798]
  ------------------
  797|      0|         return if_match(req, "DSA/SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 3, 7});
  798|      0|      case 0x1139D:
  ------------------
  |  Branch (798:7): [True: 0, False: 798]
  ------------------
  799|      0|         return if_match(req, "secp192k1", {1, 3, 132, 0, 31});
  800|      0|      case 0x113D6:
  ------------------
  |  Branch (800:7): [True: 0, False: 798]
  ------------------
  801|      0|         return if_match(req, "X520.DNQualifier", {2, 5, 4, 46});
  802|      0|      case 0x11A7A:
  ------------------
  |  Branch (802:7): [True: 0, False: 798]
  ------------------
  803|      0|         return if_match(req, "secp192r1", {1, 2, 840, 10045, 3, 1, 1});
  804|      0|      case 0x12096:
  ------------------
  |  Branch (804:7): [True: 0, False: 798]
  ------------------
  805|      0|         return if_match(req, "SM2_Kex", {1, 2, 156, 10197, 1, 301, 2});
  806|      0|      case 0x13FC1:
  ------------------
  |  Branch (806:7): [True: 0, False: 798]
  ------------------
  807|      0|         return if_match(req, "X520.GenerationalQualifier", {2, 5, 4, 44});
  808|      0|      case 0x1445B:
  ------------------
  |  Branch (808:7): [True: 0, False: 798]
  ------------------
  809|      0|         return if_match(req, "PKCS5.PBKDF2", {1, 2, 840, 113549, 1, 5, 12});
  810|      0|      case 0x1495D:
  ------------------
  |  Branch (810:7): [True: 0, False: 798]
  ------------------
  811|      0|         return if_match(req, "eFrodoKEM-1344-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 3});
  812|      0|      case 0x14E30:
  ------------------
  |  Branch (812:7): [True: 0, False: 798]
  ------------------
  813|      0|         return if_match(req, "ClassicMcEliece_460896", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 3});
  814|      0|      case 0x14FB1:
  ------------------
  |  Branch (814:7): [True: 0, False: 798]
  ------------------
  815|      0|         return if_match(req, "XMSS-draft12", {1, 3, 6, 1, 4, 1, 25258, 1, 8});
  816|      0|      case 0x156E3:
  ------------------
  |  Branch (816:7): [True: 0, False: 798]
  ------------------
  817|      0|         return if_match(req, "Compression.Zlib", {1, 2, 840, 113549, 1, 9, 16, 3, 8});
  818|      0|      case 0x1579E:
  ------------------
  |  Branch (818:7): [True: 0, False: 798]
  ------------------
  819|      0|         return if_match(req, "Streebog-512", {1, 2, 643, 7, 1, 1, 2, 3});
  820|      0|      case 0x1701A:
  ------------------
  |  Branch (820:7): [True: 0, False: 798]
  ------------------
  821|      0|         return if_match(req, "X509v3.AnyExtendedKeyUsage", {2, 5, 29, 37, 0});
  822|      0|      case 0x175EF:
  ------------------
  |  Branch (822:7): [True: 0, False: 798]
  ------------------
  823|      0|         return if_match(req, "Kyber-1024-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 3});
  824|      0|      case 0x17709:
  ------------------
  |  Branch (824:7): [True: 0, False: 798]
  ------------------
  825|      0|         return if_match(req, "X520.GivenName", {2, 5, 4, 42});
  826|      0|      case 0x17AD9:
  ------------------
  |  Branch (826:7): [True: 0, False: 798]
  ------------------
  827|      0|         return if_match(req, "RSA/PKCS1v15(SM3)", {1, 2, 156, 10197, 1, 504});
  828|      0|      case 0x17CE2:
  ------------------
  |  Branch (828:7): [True: 0, False: 798]
  ------------------
  829|      0|         return if_match(req, "SLH-DSA-SHA2-256f", {2, 16, 840, 1, 101, 3, 4, 3, 25});
  830|      0|      case 0x17CEF:
  ------------------
  |  Branch (830:7): [True: 0, False: 798]
  ------------------
  831|      0|         return if_match(req, "SLH-DSA-SHA2-256s", {2, 16, 840, 1, 101, 3, 4, 3, 24});
  832|      0|      case 0x18618:
  ------------------
  |  Branch (832:7): [True: 0, False: 798]
  ------------------
  833|      0|         return if_match(req, "FrodoKEM-976-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 2});
  834|      0|      case 0x19480:
  ------------------
  |  Branch (834:7): [True: 0, False: 798]
  ------------------
  835|      0|         return if_match(req, "eFrodoKEM-1344-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 3});
  836|      0|      case 0x1958A:
  ------------------
  |  Branch (836:7): [True: 0, False: 798]
  ------------------
  837|      0|         return if_match(req, "X509v3.InvalidityDate", {2, 5, 29, 24});
  838|      0|      case 0x19851:
  ------------------
  |  Branch (838:7): [True: 0, False: 798]
  ------------------
  839|      0|         return if_match(req, "DSA/SHA-1", {1, 2, 840, 10040, 4, 3});
  840|      0|      case 0x1B2E7:
  ------------------
  |  Branch (840:7): [True: 0, False: 798]
  ------------------
  841|      0|         return if_match(req, "KeyWrap.AES-128", {2, 16, 840, 1, 101, 3, 4, 1, 5});
  842|      0|      case 0x1B9BE:
  ------------------
  |  Branch (842:7): [True: 0, False: 798]
  ------------------
  843|      0|         return if_match(req, "KeyWrap.AES-192", {2, 16, 840, 1, 101, 3, 4, 1, 25});
  844|      0|      case 0x1D439:
  ------------------
  |  Branch (844:7): [True: 0, False: 798]
  ------------------
  845|      0|         return if_match(req, "SphincsPlus-haraka-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 4});
  846|      0|      case 0x2065B:
  ------------------
  |  Branch (846:7): [True: 0, False: 798]
  ------------------
  847|      0|         return if_match(req, "KeyWrap.CAST-128", {1, 2, 840, 113533, 7, 66, 15});
  848|      0|      case 0x216A0:
  ------------------
  |  Branch (848:7): [True: 0, False: 798]
  ------------------
  849|      0|         return if_match(req, "ML-KEM-512", {2, 16, 840, 1, 101, 3, 4, 4, 1});
  850|      0|      case 0x2216B:
  ------------------
  |  Branch (850:7): [True: 0, False: 798]
  ------------------
  851|      0|         return if_match(req, "GOST-34.10-2012-512", {1, 2, 643, 7, 1, 1, 1, 2});
  852|      0|      case 0x22C2C:
  ------------------
  |  Branch (852:7): [True: 0, False: 798]
  ------------------
  853|      0|         return if_match(req, "ElGamal", {1, 3, 6, 1, 4, 1, 3029, 1, 2, 1});
  854|      0|      case 0x2559A:
  ------------------
  |  Branch (854:7): [True: 0, False: 798]
  ------------------
  855|      0|         return if_match(req, "X520.Initials", {2, 5, 4, 43});
  856|      0|      case 0x271AC:
  ------------------
  |  Branch (856:7): [True: 0, False: 798]
  ------------------
  857|      0|         return if_match(req, "PKIX.AutonomousSysIds", {1, 3, 6, 1, 5, 5, 7, 1, 8});
  858|      0|      case 0x2808B:
  ------------------
  |  Branch (858:7): [True: 0, False: 798]
  ------------------
  859|      0|         return if_match(req, "PKCS7.Data", {1, 2, 840, 113549, 1, 7, 1});
  860|      0|      case 0x281B8:
  ------------------
  |  Branch (860:7): [True: 0, False: 798]
  ------------------
  861|      0|         return if_match(req, "SphincsPlus-haraka-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 1});
  862|      0|      case 0x282FE:
  ------------------
  |  Branch (862:7): [True: 0, False: 798]
  ------------------
  863|      0|         return if_match(req, "PKIX.OCSP.Nonce", {1, 3, 6, 1, 5, 5, 7, 48, 1, 2});
  864|      0|      case 0x29999:
  ------------------
  |  Branch (864:7): [True: 0, False: 798]
  ------------------
  865|      0|         return if_match(req, "DSA/SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 3, 6});
  866|      0|      case 0x2A83D:
  ------------------
  |  Branch (866:7): [True: 0, False: 798]
  ------------------
  867|      0|         return if_match(req, "SHA-224", {2, 16, 840, 1, 101, 3, 4, 2, 4});
  868|      0|      case 0x2AB30:
  ------------------
  |  Branch (868:7): [True: 0, False: 798]
  ------------------
  869|      0|         return if_match(req, "SHA-256", {2, 16, 840, 1, 101, 3, 4, 2, 1});
  870|      0|      case 0x2ABEF:
  ------------------
  |  Branch (870:7): [True: 0, False: 798]
  ------------------
  871|      0|         return if_match(req, "KeyWrap.AES-256", {2, 16, 840, 1, 101, 3, 4, 1, 45});
  872|      0|      case 0x2BAEF:
  ------------------
  |  Branch (872:7): [True: 0, False: 798]
  ------------------
  873|      0|         return if_match(req, "SM2_Sig/SM3", {1, 2, 156, 10197, 1, 501});
  874|      0|      case 0x2C39A:
  ------------------
  |  Branch (874:7): [True: 0, False: 798]
  ------------------
  875|      0|         return if_match(req, "ECGDSA/RIPEMD-160", {1, 3, 36, 3, 3, 2, 5, 4, 1});
  876|      0|      case 0x2C54F:
  ------------------
  |  Branch (876:7): [True: 0, False: 798]
  ------------------
  877|      0|         return if_match(req, "ECDSA/SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 3, 9});
  878|      0|      case 0x2EEA6:
  ------------------
  |  Branch (878:7): [True: 0, False: 798]
  ------------------
  879|      0|         return if_match(req, "RSA/PKCS1v15(RIPEMD-160)", {1, 3, 36, 3, 3, 1, 2});
  880|      0|      case 0x2EFBA:
  ------------------
  |  Branch (880:7): [True: 0, False: 798]
  ------------------
  881|      0|         return if_match(req, "Kyber-512-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 1});
  882|      0|      case 0x2F0AD:
  ------------------
  |  Branch (882:7): [True: 0, False: 798]
  ------------------
  883|      0|         return if_match(req, "PKCS7.EncryptedData", {1, 2, 840, 113549, 1, 7, 6});
  884|      0|      case 0x2F219:
  ------------------
  |  Branch (884:7): [True: 0, False: 798]
  ------------------
  885|      0|         return if_match(req, "PBE-SHA1-2DES", {1, 2, 840, 113549, 1, 12, 1, 4});
  886|      0|      case 0x3133E:
  ------------------
  |  Branch (886:7): [True: 0, False: 798]
  ------------------
  887|      0|         return if_match(req, "SLH-DSA-SHA2-128f", {2, 16, 840, 1, 101, 3, 4, 3, 21});
  888|      0|      case 0x3134B:
  ------------------
  |  Branch (888:7): [True: 0, False: 798]
  ------------------
  889|      0|         return if_match(req, "SLH-DSA-SHA2-128s", {2, 16, 840, 1, 101, 3, 4, 3, 20});
  890|      0|      case 0x3160D:
  ------------------
  |  Branch (890:7): [True: 0, False: 798]
  ------------------
  891|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(224))", {2, 16, 840, 1, 101, 3, 4, 3, 13});
  892|      0|      case 0x319E0:
  ------------------
  |  Branch (892:7): [True: 0, False: 798]
  ------------------
  893|      0|         return if_match(req, "GOST-34.10-2012-256/Streebog-256", {1, 2, 643, 7, 1, 1, 3, 2});
  894|      0|      case 0x31B3D:
  ------------------
  |  Branch (894:7): [True: 0, False: 798]
  ------------------
  895|      0|         return if_match(req, "HMAC(SHA-512)", {1, 2, 840, 113549, 2, 11});
  896|      0|      case 0x31C6D:
  ------------------
  |  Branch (896:7): [True: 0, False: 798]
  ------------------
  897|      0|         return if_match(req, "secp384r1", {1, 3, 132, 0, 34});
  898|      0|      case 0x32899:
  ------------------
  |  Branch (898:7): [True: 0, False: 798]
  ------------------
  899|      0|         return if_match(req, "TripleDES/CBC", {1, 2, 840, 113549, 3, 7});
  900|    620|      case 0x33C9C:
  ------------------
  |  Branch (900:7): [True: 620, False: 178]
  ------------------
  901|    620|         return if_match(req, "PKIX.SmtpUTF8Mailbox", {1, 3, 6, 1, 5, 5, 7, 8, 9});
  902|      0|      case 0x33D04:
  ------------------
  |  Branch (902:7): [True: 0, False: 798]
  ------------------
  903|      0|         return if_match(req, "PKCS12.SecretBag", {1, 2, 840, 113549, 1, 12, 10, 1, 5});
  904|      0|      case 0x3615D:
  ------------------
  |  Branch (904:7): [True: 0, False: 798]
  ------------------
  905|      0|         return if_match(req, "FrodoKEM-976-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 2});
  906|      0|      case 0x361B8:
  ------------------
  |  Branch (906:7): [True: 0, False: 798]
  ------------------
  907|      0|         return if_match(req, "Ed25519", {1, 3, 101, 112});
  908|      0|      case 0x3649D:
  ------------------
  |  Branch (908:7): [True: 0, False: 798]
  ------------------
  909|      0|         return if_match(req, "SHAKE-128", {2, 16, 840, 1, 101, 3, 4, 2, 11});
  910|      0|      case 0x36693:
  ------------------
  |  Branch (910:7): [True: 0, False: 798]
  ------------------
  911|      0|         return if_match(req, "ClassicMcEliece_348864", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 1});
  912|      0|      case 0x373C7:
  ------------------
  |  Branch (912:7): [True: 0, False: 798]
  ------------------
  913|      0|         return if_match(req, "ML-DSA-4x4", {2, 16, 840, 1, 101, 3, 4, 3, 17});
  914|      0|      case 0x3750B:
  ------------------
  |  Branch (914:7): [True: 0, False: 798]
  ------------------
  915|      0|         return if_match(req, "ClassicMcEliece_8192128", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 9});
  916|      0|      case 0x39890:
  ------------------
  |  Branch (916:7): [True: 0, False: 798]
  ------------------
  917|      0|         return if_match(req, "Ed448", {1, 3, 101, 113});
  918|      0|      case 0x3A438:
  ------------------
  |  Branch (918:7): [True: 0, False: 798]
  ------------------
  919|      0|         return if_match(req, "SHA-384", {2, 16, 840, 1, 101, 3, 4, 2, 2});
  920|      0|      case 0x3A963:
  ------------------
  |  Branch (920:7): [True: 0, False: 798]
  ------------------
  921|      0|         return if_match(req, "DH", {1, 2, 840, 10046, 2, 1});
  922|      0|      case 0x3AC83:
  ------------------
  |  Branch (922:7): [True: 0, False: 798]
  ------------------
  923|      0|         return if_match(req, "MGF1", {1, 2, 840, 113549, 1, 1, 8});
  924|      0|      case 0x3ACBA:
  ------------------
  |  Branch (924:7): [True: 0, False: 798]
  ------------------
  925|      0|         return if_match(req, "X509v3.IssuerAlternativeName", {2, 5, 29, 18});
  926|      0|      case 0x3B273:
  ------------------
  |  Branch (926:7): [True: 0, False: 798]
  ------------------
  927|      0|         return if_match(req, "KeyWrap.TripleDES", {1, 2, 840, 113549, 1, 9, 16, 3, 6});
  928|      0|      case 0x3B91E:
  ------------------
  |  Branch (928:7): [True: 0, False: 798]
  ------------------
  929|      0|         return if_match(req, "X509v3.PrivateKeyUsagePeriod", {2, 5, 29, 16});
  930|      0|      case 0x3BC8A:
  ------------------
  |  Branch (930:7): [True: 0, False: 798]
  ------------------
  931|      0|         return if_match(req, "SLH-DSA-SHAKE-192f", {2, 16, 840, 1, 101, 3, 4, 3, 29});
  932|      0|      case 0x3BC97:
  ------------------
  |  Branch (932:7): [True: 0, False: 798]
  ------------------
  933|      0|         return if_match(req, "SLH-DSA-SHAKE-192s", {2, 16, 840, 1, 101, 3, 4, 3, 28});
  934|      0|      case 0x3D127:
  ------------------
  |  Branch (934:7): [True: 0, False: 798]
  ------------------
  935|      0|         return if_match(req, "DSA", {1, 2, 840, 10040, 4, 1});
  936|      0|      case 0x3E249:
  ------------------
  |  Branch (936:7): [True: 0, False: 798]
  ------------------
  937|      0|         return if_match(req, "HSS-LMS", {1, 2, 840, 113549, 1, 9, 16, 3, 17});
  938|      0|      case 0x3E7D5:
  ------------------
  |  Branch (938:7): [True: 0, False: 798]
  ------------------
  939|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(256))", {2, 16, 840, 1, 101, 3, 4, 3, 14});
  940|      0|      case 0x3F748:
  ------------------
  |  Branch (940:7): [True: 0, False: 798]
  ------------------
  941|      0|         return if_match(req, "GOST.OGRN", {1, 2, 643, 100, 1});
  942|      0|      case 0x3F99F:
  ------------------
  |  Branch (942:7): [True: 0, False: 798]
  ------------------
  943|      0|         return if_match(req, "X509v3.BasicConstraints", {2, 5, 29, 19});
  944|      0|      case 0x40726:
  ------------------
  |  Branch (944:7): [True: 0, False: 798]
  ------------------
  945|      0|         return if_match(req, "SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 2, 10});
  946|      0|      case 0x407BF:
  ------------------
  |  Branch (946:7): [True: 0, False: 798]
  ------------------
  947|      0|         return if_match(req, "ML-KEM-768", {2, 16, 840, 1, 101, 3, 4, 4, 2});
  948|      0|      case 0x41334:
  ------------------
  |  Branch (948:7): [True: 0, False: 798]
  ------------------
  949|      0|         return if_match(req, "ECDSA/SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 3, 11});
  950|      0|      case 0x42DF3:
  ------------------
  |  Branch (950:7): [True: 0, False: 798]
  ------------------
  951|      0|         return if_match(req, "X509v3.CRLDistributionPoints", {2, 5, 29, 31});
  952|      0|      case 0x437FB:
  ------------------
  |  Branch (952:7): [True: 0, False: 798]
  ------------------
  953|      0|         return if_match(req, "brainpool160r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 1});
  954|      0|      case 0x441F5:
  ------------------
  |  Branch (954:7): [True: 0, False: 798]
  ------------------
  955|      0|         return if_match(req, "gost_256A", {1, 2, 643, 7, 1, 2, 1, 1, 1});
  956|      0|      case 0x441F6:
  ------------------
  |  Branch (956:7): [True: 0, False: 798]
  ------------------
  957|      0|         return if_match(req, "gost_256B", {1, 2, 643, 7, 1, 2, 1, 1, 2});
  958|      0|      case 0x44221:
  ------------------
  |  Branch (958:7): [True: 0, False: 798]
  ------------------
  959|      0|         return if_match(req, "GOST-34.10-2012-512/Streebog-512", {1, 2, 643, 7, 1, 1, 3, 3});
  960|      0|      case 0x44322:
  ------------------
  |  Branch (960:7): [True: 0, False: 798]
  ------------------
  961|      0|         return if_match(req, "ClassicMcEliece_6960119pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 3});
  962|      0|      case 0x44973:
  ------------------
  |  Branch (962:7): [True: 0, False: 798]
  ------------------
  963|      0|         return if_match(req, "Kyber-512-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 1});
  964|      0|      case 0x45C27:
  ------------------
  |  Branch (964:7): [True: 0, False: 798]
  ------------------
  965|      0|         return if_match(req, "RSA/PKCS1v15(SHA-512-256)", {1, 2, 840, 113549, 1, 1, 16});
  966|      0|      case 0x45C85:
  ------------------
  |  Branch (966:7): [True: 0, False: 798]
  ------------------
  967|      0|         return if_match(req, "X509v3.ReasonCode", {2, 5, 29, 21});
  968|      0|      case 0x45DA5:
  ------------------
  |  Branch (968:7): [True: 0, False: 798]
  ------------------
  969|      0|         return if_match(req, "SHAKE-256", {2, 16, 840, 1, 101, 3, 4, 2, 12});
  970|      0|      case 0x4663C:
  ------------------
  |  Branch (970:7): [True: 0, False: 798]
  ------------------
  971|      0|         return if_match(req, "X509v3.PolicyConstraints", {2, 5, 29, 36});
  972|      0|      case 0x480F7:
  ------------------
  |  Branch (972:7): [True: 0, False: 798]
  ------------------
  973|      0|         return if_match(req, "Serpent/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 4});
  974|      0|      case 0x48627:
  ------------------
  |  Branch (974:7): [True: 0, False: 798]
  ------------------
  975|      0|         return if_match(req, "Dilithium-4x4-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 1});
  976|      0|      case 0x48861:
  ------------------
  |  Branch (976:7): [True: 0, False: 798]
  ------------------
  977|      0|         return if_match(req, "ChaCha20Poly1305", {1, 2, 840, 113549, 1, 9, 16, 3, 18});
  978|      0|      case 0x4A292:
  ------------------
  |  Branch (978:7): [True: 0, False: 798]
  ------------------
  979|      0|         return if_match(req, "frp256v1", {1, 2, 250, 1, 223, 101, 256, 1});
  980|      0|      case 0x4A9EE:
  ------------------
  |  Branch (980:7): [True: 0, False: 798]
  ------------------
  981|      0|         return if_match(req, "ClassicMcEliece_6960119f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 8});
  982|      0|      case 0x4BF87:
  ------------------
  |  Branch (982:7): [True: 0, False: 798]
  ------------------
  983|      0|         return if_match(req, "PKIX.TNAuthList", {1, 3, 6, 1, 5, 5, 7, 1, 26});
  984|      0|      case 0x4C088:
  ------------------
  |  Branch (984:7): [True: 0, False: 798]
  ------------------
  985|      0|         return if_match(req, "eFrodoKEM-976-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 2});
  986|      0|      case 0x4C513:
  ------------------
  |  Branch (986:7): [True: 0, False: 798]
  ------------------
  987|      0|         return if_match(req, "DSA/SHA-224", {2, 16, 840, 1, 101, 3, 4, 3, 1});
  988|      0|      case 0x4C806:
  ------------------
  |  Branch (988:7): [True: 0, False: 798]
  ------------------
  989|      0|         return if_match(req, "DSA/SHA-256", {2, 16, 840, 1, 101, 3, 4, 3, 2});
  990|      0|      case 0x4D740:
  ------------------
  |  Branch (990:7): [True: 0, False: 798]
  ------------------
  991|      0|         return if_match(req, "X509v3.AnyPolicy", {2, 5, 29, 32, 0});
  992|      0|      case 0x4DE49:
  ------------------
  |  Branch (992:7): [True: 0, False: 798]
  ------------------
  993|      0|         return if_match(req, "RSA/PKCS1v15(SHA-512)", {1, 2, 840, 113549, 1, 1, 13});
  994|      0|      case 0x4ED5D:
  ------------------
  |  Branch (994:7): [True: 0, False: 798]
  ------------------
  995|      0|         return if_match(req, "CAST-128/CBC", {1, 2, 840, 113533, 7, 66, 10});
  996|      0|      case 0x4FCDC:
  ------------------
  |  Branch (996:7): [True: 0, False: 798]
  ------------------
  997|      0|         return if_match(req, "RSA", {1, 2, 840, 113549, 1, 1, 1});
  998|      0|      case 0x501CB:
  ------------------
  |  Branch (998:7): [True: 0, False: 798]
  ------------------
  999|      0|         return if_match(req, "ECDSA/SHA-224", {1, 2, 840, 10045, 4, 3, 1});
 1000|      0|      case 0x50395:
  ------------------
  |  Branch (1000:7): [True: 0, False: 798]
  ------------------
 1001|      0|         return if_match(req, "GOST-34.10/GOST-R-34.11-94", {1, 2, 643, 2, 2, 3});
 1002|      0|      case 0x504BE:
  ------------------
  |  Branch (1002:7): [True: 0, False: 798]
  ------------------
 1003|      0|         return if_match(req, "ECDSA/SHA-256", {1, 2, 840, 10045, 4, 3, 2});
 1004|      0|      case 0x509C3:
  ------------------
  |  Branch (1004:7): [True: 0, False: 798]
  ------------------
 1005|      0|         return if_match(req, "brainpool192r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 3});
 1006|      0|      case 0x509F9:
  ------------------
  |  Branch (1006:7): [True: 0, False: 798]
  ------------------
 1007|      0|         return if_match(req, "PKCS9.ContentType", {1, 2, 840, 113549, 1, 9, 3});
 1008|      0|      case 0x50B26:
  ------------------
  |  Branch (1008:7): [True: 0, False: 798]
  ------------------
 1009|      0|         return if_match(req, "FrodoKEM-640-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 1});
 1010|      0|      case 0x50D78:
  ------------------
  |  Branch (1010:7): [True: 0, False: 798]
  ------------------
 1011|      0|         return if_match(req, "x962_p192v2", {1, 2, 840, 10045, 3, 1, 2});
 1012|      0|      case 0x50D79:
  ------------------
  |  Branch (1012:7): [True: 0, False: 798]
  ------------------
 1013|      0|         return if_match(req, "x962_p192v3", {1, 2, 840, 10045, 3, 1, 3});
 1014|      0|      case 0x51DC6:
  ------------------
  |  Branch (1014:7): [True: 0, False: 798]
  ------------------
 1015|      0|         return if_match(req, "AES-128/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 1});
 1016|      0|      case 0x52DB6:
  ------------------
  |  Branch (1016:7): [True: 0, False: 798]
  ------------------
 1017|      0|         return if_match(req, "HMAC(SHA-224)", {1, 2, 840, 113549, 2, 8});
 1018|      0|      case 0x53E11:
  ------------------
  |  Branch (1018:7): [True: 0, False: 798]
  ------------------
 1019|      0|         return if_match(req, "FrodoKEM-1344-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 3});
 1020|      0|      case 0x54012:
  ------------------
  |  Branch (1020:7): [True: 0, False: 798]
  ------------------
 1021|      0|         return if_match(req, "PKIX.TimeStamping", {1, 3, 6, 1, 5, 5, 7, 3, 8});
 1022|      0|      case 0x5407A:
  ------------------
  |  Branch (1022:7): [True: 0, False: 798]
  ------------------
 1023|      0|         return if_match(req, "Serpent/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 1});
 1024|      0|      case 0x5576D:
  ------------------
  |  Branch (1024:7): [True: 0, False: 798]
  ------------------
 1025|      0|         return if_match(req, "SphincsPlus-sha2-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 2});
 1026|      0|      case 0x55EF6:
  ------------------
  |  Branch (1026:7): [True: 0, False: 798]
  ------------------
 1027|      0|         return if_match(req, "AES-192/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 2});
 1028|      0|      case 0x55FFA:
  ------------------
  |  Branch (1028:7): [True: 0, False: 798]
  ------------------
 1029|      0|         return if_match(req, "ML-DSA-6x5", {2, 16, 840, 1, 101, 3, 4, 3, 18});
 1030|      0|      case 0x56826:
  ------------------
  |  Branch (1030:7): [True: 0, False: 798]
  ------------------
 1031|      0|         return if_match(req, "brainpool320r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 9});
 1032|      0|      case 0x56D0D:
  ------------------
  |  Branch (1032:7): [True: 0, False: 798]
  ------------------
 1033|      0|         return if_match(req, "SphincsPlus-shake-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 2});
 1034|      0|      case 0x57077:
  ------------------
  |  Branch (1034:7): [True: 0, False: 798]
  ------------------
 1035|      0|         return if_match(req, "XMSS-draft6", {1, 3, 6, 1, 4, 1, 25258, 1, 5});
 1036|      0|      case 0x5818B:
  ------------------
  |  Branch (1036:7): [True: 0, False: 798]
  ------------------
 1037|      0|         return if_match(req, "ECGDSA/SHA-224", {1, 3, 36, 3, 3, 2, 5, 4, 3});
 1038|      0|      case 0x5847E:
  ------------------
  |  Branch (1038:7): [True: 0, False: 798]
  ------------------
 1039|      0|         return if_match(req, "ECGDSA/SHA-256", {1, 3, 36, 3, 3, 2, 5, 4, 4});
 1040|      0|      case 0x5898B:
  ------------------
  |  Branch (1040:7): [True: 0, False: 798]
  ------------------
 1041|      0|         return if_match(req, "SHA-512", {2, 16, 840, 1, 101, 3, 4, 2, 3});
 1042|      0|      case 0x58991:
  ------------------
  |  Branch (1042:7): [True: 0, False: 798]
  ------------------
 1043|      0|         return if_match(req, "PKIX.OCSP.NoCheck", {1, 3, 6, 1, 5, 5, 7, 48, 1, 5});
 1044|      0|      case 0x59717:
  ------------------
  |  Branch (1044:7): [True: 0, False: 798]
  ------------------
 1045|      0|         return if_match(req, "X509v3.SubjectKeyIdentifier", {2, 5, 29, 14});
 1046|      0|      case 0x5A1E1:
  ------------------
  |  Branch (1046:7): [True: 0, False: 798]
  ------------------
 1047|      0|         return if_match(req, "PKCS12.KeyBag", {1, 2, 840, 113549, 1, 12, 10, 1, 1});
 1048|      0|      case 0x5A570:
  ------------------
  |  Branch (1048:7): [True: 0, False: 798]
  ------------------
 1049|      0|         return if_match(req, "X520.CommonName", {2, 5, 4, 3});
 1050|      0|      case 0x5A990:
  ------------------
  |  Branch (1050:7): [True: 0, False: 798]
  ------------------
 1051|      0|         return if_match(req, "ECDSA/SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 3, 10});
 1052|      0|      case 0x5AB0E:
  ------------------
  |  Branch (1052:7): [True: 0, False: 798]
  ------------------
 1053|      0|         return if_match(req, "SphincsPlus-sha2-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 5});
 1054|      0|      case 0x5AC4A:
  ------------------
  |  Branch (1054:7): [True: 0, False: 798]
  ------------------
 1055|      0|         return if_match(req, "X520.Surname", {2, 5, 4, 4});
 1056|      0|      case 0x5AF2C:
  ------------------
  |  Branch (1056:7): [True: 0, False: 798]
  ------------------
 1057|      0|         return if_match(req, "ClassicMcEliece_8192128pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 5});
 1058|      0|      case 0x5BC39:
  ------------------
  |  Branch (1058:7): [True: 0, False: 798]
  ------------------
 1059|      0|         return if_match(req, "X509v3.KeyUsage", {2, 5, 29, 15});
 1060|      0|      case 0x5BDDB:
  ------------------
  |  Branch (1060:7): [True: 0, False: 798]
  ------------------
 1061|      0|         return if_match(req, "numsp256d1", {1, 3, 6, 1, 4, 1, 25258, 4, 1});
 1062|      0|      case 0x5C0AE:
  ------------------
  |  Branch (1062:7): [True: 0, False: 798]
  ------------------
 1063|      0|         return if_match(req, "SphincsPlus-shake-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 5});
 1064|      0|      case 0x5C10E:
  ------------------
  |  Branch (1064:7): [True: 0, False: 798]
  ------------------
 1065|      0|         return if_match(req, "DSA/SHA-384", {2, 16, 840, 1, 101, 3, 4, 3, 3});
 1066|      0|      case 0x5CFE5:
  ------------------
  |  Branch (1066:7): [True: 0, False: 798]
  ------------------
 1067|      0|         return if_match(req, "PKCS9.X509Certificate", {1, 2, 840, 113549, 1, 9, 22, 1});
 1068|      0|      case 0x5D1CF:
  ------------------
  |  Branch (1068:7): [True: 0, False: 798]
  ------------------
 1069|      0|         return if_match(req, "X520.SerialNumber", {2, 5, 4, 5});
 1070|      0|      case 0x5D375:
  ------------------
  |  Branch (1070:7): [True: 0, False: 798]
  ------------------
 1071|      0|         return if_match(req, "SM4/OCB", {1, 2, 156, 10197, 1, 104, 100});
 1072|      0|      case 0x5DD49:
  ------------------
  |  Branch (1072:7): [True: 0, False: 798]
  ------------------
 1073|      0|         return if_match(req, "AES-128/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 2});
 1074|      0|      case 0x5DE4E:
  ------------------
  |  Branch (1074:7): [True: 0, False: 798]
  ------------------
 1075|      0|         return if_match(req, "AES-128/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 7});
 1076|      0|      case 0x5DF23:
  ------------------
  |  Branch (1076:7): [True: 0, False: 798]
  ------------------
 1077|      0|         return if_match(req, "HMAC(SHA-512-256)", {1, 2, 840, 113549, 2, 13});
 1078|      0|      case 0x5ED04:
  ------------------
  |  Branch (1078:7): [True: 0, False: 798]
  ------------------
 1079|      0|         return if_match(req, "SM2", {1, 2, 156, 10197, 1, 301, 1});
 1080|      0|      case 0x5ED05:
  ------------------
  |  Branch (1080:7): [True: 0, False: 798]
  ------------------
 1081|      0|         return if_match(req, "SM3", {1, 2, 156, 10197, 1, 401});
 1082|      0|      case 0x5FDC6:
  ------------------
  |  Branch (1082:7): [True: 0, False: 798]
  ------------------
 1083|      0|         return if_match(req, "ECDSA/SHA-384", {1, 2, 840, 10045, 4, 3, 3});
 1084|      0|      case 0x6199F:
  ------------------
  |  Branch (1084:7): [True: 0, False: 798]
  ------------------
 1085|      0|         return if_match(req, "SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 2, 7});
 1086|      0|      case 0x61E79:
  ------------------
  |  Branch (1086:7): [True: 0, False: 798]
  ------------------
 1087|      0|         return if_match(req, "AES-192/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 22});
 1088|      0|      case 0x61F7E:
  ------------------
  |  Branch (1088:7): [True: 0, False: 798]
  ------------------
 1089|      0|         return if_match(req, "AES-192/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 27});
 1090|      0|      case 0x64947:
  ------------------
  |  Branch (1090:7): [True: 0, False: 798]
  ------------------
 1091|      0|         return if_match(req, "OpenPGP.Ed25519", {1, 3, 6, 1, 4, 1, 11591, 15, 1});
 1092|      0|      case 0x652E7:
  ------------------
  |  Branch (1092:7): [True: 0, False: 798]
  ------------------
 1093|      0|         return if_match(req, "sm2p256v1", {1, 2, 156, 10197, 1, 301});
 1094|      0|      case 0x6697B:
  ------------------
  |  Branch (1094:7): [True: 0, False: 798]
  ------------------
 1095|      0|         return if_match(req, "FrodoKEM-1344-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 3});
 1096|      0|      case 0x67B2C:
  ------------------
  |  Branch (1096:7): [True: 0, False: 798]
  ------------------
 1097|      0|         return if_match(req, "X520.State", {2, 5, 4, 8});
 1098|      0|      case 0x67B9B:
  ------------------
  |  Branch (1098:7): [True: 0, False: 798]
  ------------------
 1099|      0|         return if_match(req, "HMAC(SHA-384)", {1, 2, 840, 113549, 2, 10});
 1100|      0|      case 0x67D86:
  ------------------
  |  Branch (1100:7): [True: 0, False: 798]
  ------------------
 1101|      0|         return if_match(req, "ECGDSA/SHA-384", {1, 3, 36, 3, 3, 2, 5, 4, 5});
 1102|      0|      case 0x68A0B:
  ------------------
  |  Branch (1102:7): [True: 0, False: 798]
  ------------------
 1103|      0|         return if_match(req, "Camellia-128/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 6});
 1104|      0|      case 0x68E33:
  ------------------
  |  Branch (1104:7): [True: 0, False: 798]
  ------------------
 1105|      0|         return if_match(req, "PKCS9.ExtensionRequest", {1, 2, 840, 113549, 1, 9, 14});
 1106|      0|      case 0x69126:
  ------------------
  |  Branch (1106:7): [True: 0, False: 798]
  ------------------
 1107|      0|         return if_match(req, "X509v3.SubjectAlternativeName", {2, 5, 29, 17});
 1108|      0|      case 0x692F8:
  ------------------
  |  Branch (1108:7): [True: 0, False: 798]
  ------------------
 1109|      0|         return if_match(req, "SM4/CBC", {1, 2, 156, 10197, 1, 104, 2});
 1110|      0|      case 0x695E1:
  ------------------
  |  Branch (1110:7): [True: 0, False: 798]
  ------------------
 1111|      0|         return if_match(req, "Dilithium-4x4-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 1});
 1112|      0|      case 0x696DC:
  ------------------
  |  Branch (1112:7): [True: 0, False: 798]
  ------------------
 1113|      0|         return if_match(req, "PKIX.IpAddrBlocks", {1, 3, 6, 1, 5, 5, 7, 1, 7});
 1114|      0|      case 0x6A7CA:
  ------------------
  |  Branch (1114:7): [True: 0, False: 798]
  ------------------
 1115|      0|         return if_match(req, "ECDSA", {1, 2, 840, 10045, 2, 1});
 1116|      0|      case 0x6BD26:
  ------------------
  |  Branch (1116:7): [True: 0, False: 798]
  ------------------
 1117|      0|         return if_match(req, "GOST.INN", {1, 2, 643, 3, 131, 1, 1});
 1118|      0|      case 0x6CB3B:
  ------------------
  |  Branch (1118:7): [True: 0, False: 798]
  ------------------
 1119|      0|         return if_match(req, "Camellia-192/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 7});
 1120|      0|      case 0x6E602:
  ------------------
  |  Branch (1120:7): [True: 0, False: 798]
  ------------------
 1121|      0|         return if_match(req, "Dilithium-8x7-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 3});
 1122|      0|      case 0x6F0C2:
  ------------------
  |  Branch (1122:7): [True: 0, False: 798]
  ------------------
 1123|      0|         return if_match(req, "RSA/PKCS1v15(SHA-224)", {1, 2, 840, 113549, 1, 1, 14});
 1124|      0|      case 0x6F9F8:
  ------------------
  |  Branch (1124:7): [True: 0, False: 798]
  ------------------
 1125|      0|         return if_match(req, "PKCS12.SafeContentsBag", {1, 2, 840, 113549, 1, 12, 10, 1, 6});
 1126|      0|      case 0x6FB26:
  ------------------
  |  Branch (1126:7): [True: 0, False: 798]
  ------------------
 1127|      0|         return if_match(req, "PKIX.AuthorityInformationAccess", {1, 3, 6, 1, 5, 5, 7, 1, 1});
 1128|      0|      case 0x70BB6:
  ------------------
  |  Branch (1128:7): [True: 0, False: 798]
  ------------------
 1129|      0|         return if_match(req, "brainpool384r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 11});
 1130|      0|      case 0x70EA6:
  ------------------
  |  Branch (1130:7): [True: 0, False: 798]
  ------------------
 1131|      0|         return if_match(req, "PKCS12.PKCS8ShroudedKeyBag", {1, 2, 840, 113549, 1, 12, 10, 1, 2});
 1132|      0|      case 0x71EB3:
  ------------------
  |  Branch (1132:7): [True: 0, False: 798]
  ------------------
 1133|      0|         return if_match(req, "SphincsPlus-haraka-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 2});
 1134|      0|      case 0x7382C:
  ------------------
  |  Branch (1134:7): [True: 0, False: 798]
  ------------------
 1135|      0|         return if_match(req, "ML-KEM-1024", {2, 16, 840, 1, 101, 3, 4, 4, 3});
 1136|      0|      case 0x743BD:
  ------------------
  |  Branch (1136:7): [True: 0, False: 798]
  ------------------
 1137|      0|         return if_match(req, "AES-256/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 3});
 1138|      0|      case 0x7498E:
  ------------------
  |  Branch (1138:7): [True: 0, False: 798]
  ------------------
 1139|      0|         return if_match(req, "Camellia-128/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 2});
 1140|      0|      case 0x74C2E:
  ------------------
  |  Branch (1140:7): [True: 0, False: 798]
  ------------------
 1141|      0|         return if_match(req, "ML-DSA-8x7", {2, 16, 840, 1, 101, 3, 4, 3, 19});
 1142|      0|      case 0x7505F:
  ------------------
  |  Branch (1142:7): [True: 0, False: 798]
  ------------------
 1143|      0|         return if_match(req, "PKIX.XMPPAddr", {1, 3, 6, 1, 5, 5, 7, 8, 5});
 1144|      0|      case 0x7517A:
  ------------------
  |  Branch (1144:7): [True: 0, False: 798]
  ------------------
 1145|      0|         return if_match(req, "RSA/PKCS1v15(MD2)", {1, 2, 840, 113549, 1, 1, 2});
 1146|      0|      case 0x7546B:
  ------------------
  |  Branch (1146:7): [True: 0, False: 798]
  ------------------
 1147|      0|         return if_match(req, "RSA/PKCS1v15(MD5)", {1, 2, 840, 113549, 1, 1, 4});
 1148|      0|      case 0x75921:
  ------------------
  |  Branch (1148:7): [True: 0, False: 798]
  ------------------
 1149|      0|         return if_match(req, "ClassicMcEliece_348864f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 2});
 1150|      0|      case 0x76784:
  ------------------
  |  Branch (1150:7): [True: 0, False: 798]
  ------------------
 1151|      0|         return if_match(req, "SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 2, 9});
 1152|      0|      case 0x768FD:
  ------------------
  |  Branch (1152:7): [True: 0, False: 798]
  ------------------
 1153|      0|         return if_match(req, "PKCS9.LocalKeyId", {1, 2, 840, 113549, 1, 9, 21});
 1154|      0|      case 0x76A19:
  ------------------
  |  Branch (1154:7): [True: 0, False: 798]
  ------------------
 1155|      0|         return if_match(req, "brainpool512r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 13});
 1156|      0|      case 0x77254:
  ------------------
  |  Branch (1156:7): [True: 0, False: 798]
  ------------------
 1157|      0|         return if_match(req, "SphincsPlus-haraka-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 5});
 1158|      0|      case 0x77ADC:
  ------------------
  |  Branch (1158:7): [True: 0, False: 798]
  ------------------
 1159|      0|         return if_match(req, "secp224k1", {1, 3, 132, 0, 32});
 1160|      0|      case 0x781B9:
  ------------------
  |  Branch (1160:7): [True: 0, False: 798]
  ------------------
 1161|      0|         return if_match(req, "secp224r1", {1, 3, 132, 0, 33});
 1162|      0|      case 0x78ABE:
  ------------------
  |  Branch (1162:7): [True: 0, False: 798]
  ------------------
 1163|      0|         return if_match(req, "Camellia-192/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 3});
 1164|      0|      case 0x792F2:
  ------------------
  |  Branch (1164:7): [True: 0, False: 798]
  ------------------
 1165|      0|         return if_match(req, "ClassicMcEliece_6688128pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 1});
 1166|      0|      case 0x7A661:
  ------------------
  |  Branch (1166:7): [True: 0, False: 798]
  ------------------
 1167|      0|         return if_match(req, "DSA/SHA-512", {2, 16, 840, 1, 101, 3, 4, 3, 4});
 1168|      0|      case 0x7A977:
  ------------------
  |  Branch (1168:7): [True: 0, False: 798]
  ------------------
 1169|      0|         return if_match(req, "X509v3.ExtendedKeyUsage", {2, 5, 29, 37});
 1170|      0|      case 0x7AE67:
  ------------------
  |  Branch (1170:7): [True: 0, False: 798]
  ------------------
 1171|      0|         return if_match(req, "SM2_Enc", {1, 2, 156, 10197, 1, 301, 3});
 1172|      0|      case 0x7B602:
  ------------------
  |  Branch (1172:7): [True: 0, False: 798]
  ------------------
 1173|      0|         return if_match(req, "Twofish/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 5});
 1174|      0|      case 0x7B9A1:
  ------------------
  |  Branch (1174:7): [True: 0, False: 798]
  ------------------
 1175|      0|         return if_match(req, "SphincsPlus-sha2-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 3});
 1176|      0|      case 0x7BB0A:
  ------------------
  |  Branch (1176:7): [True: 0, False: 798]
  ------------------
 1177|      0|         return if_match(req, "SLH-DSA-SHAKE-256f", {2, 16, 840, 1, 101, 3, 4, 3, 31});
 1178|      0|      case 0x7BB17:
  ------------------
  |  Branch (1178:7): [True: 0, False: 798]
  ------------------
 1179|      0|         return if_match(req, "SLH-DSA-SHAKE-256s", {2, 16, 840, 1, 101, 3, 4, 3, 30});
 1180|      0|      case 0x7BCF3:
  ------------------
  |  Branch (1180:7): [True: 0, False: 798]
  ------------------
 1181|      0|         return if_match(req, "PKIX.EmailProtection", {1, 3, 6, 1, 5, 5, 7, 3, 4});
 1182|      0|      case 0x7CC2C:
  ------------------
  |  Branch (1182:7): [True: 0, False: 798]
  ------------------
 1183|      0|         return if_match(req, "SHA-512-256", {2, 16, 840, 1, 101, 3, 4, 2, 6});
 1184|      0|      case 0x7CF41:
  ------------------
  |  Branch (1184:7): [True: 0, False: 798]
  ------------------
 1185|      0|         return if_match(req, "SphincsPlus-shake-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 3});
 1186|      0|      case 0x7DB91:
  ------------------
  |  Branch (1186:7): [True: 0, False: 798]
  ------------------
 1187|      0|         return if_match(req, "GOST-34.10", {1, 2, 643, 2, 2, 19});
 1188|      0|      case 0x7E319:
  ------------------
  |  Branch (1188:7): [True: 0, False: 798]
  ------------------
 1189|      0|         return if_match(req, "ECDSA/SHA-512", {1, 2, 840, 10045, 4, 3, 4});
 1190|      0|      case 0x7E874:
  ------------------
  |  Branch (1190:7): [True: 0, False: 798]
  ------------------
 1191|      0|         return if_match(req, "ClassicMcEliece_6688128f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 6});
 1192|      0|      case 0x7EAAF:
  ------------------
  |  Branch (1192:7): [True: 0, False: 798]
  ------------------
 1193|      0|         return if_match(req, "eFrodoKEM-640-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 1});
 1194|      0|      case 0x7F51F:
  ------------------
  |  Branch (1194:7): [True: 0, False: 798]
  ------------------
 1195|      0|         return if_match(req, "PKIX.IPsecTunnel", {1, 3, 6, 1, 5, 5, 7, 3, 6});
 1196|      0|      case 0x80272:
  ------------------
  |  Branch (1196:7): [True: 0, False: 798]
  ------------------
 1197|      0|         return if_match(req, "X520.Organization", {2, 5, 4, 10});
 1198|      0|      case 0x80340:
  ------------------
  |  Branch (1198:7): [True: 0, False: 798]
  ------------------
 1199|      0|         return if_match(req, "AES-256/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 42});
 1200|      0|      case 0x80445:
  ------------------
  |  Branch (1200:7): [True: 0, False: 798]
  ------------------
 1201|      0|         return if_match(req, "AES-256/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 47});
 1202|      0|      case 0x811F7:
  ------------------
  |  Branch (1202:7): [True: 0, False: 798]
  ------------------
 1203|      0|         return if_match(req, "HMAC(SHA-256)", {1, 2, 840, 113549, 2, 9});
 1204|      0|      case 0x82434:
  ------------------
  |  Branch (1204:7): [True: 0, False: 798]
  ------------------
 1205|      0|         return if_match(req, "PKCS9.X509CRL", {1, 2, 840, 113549, 1, 9, 23, 1});
 1206|      0|      case 0x82B47:
  ------------------
  |  Branch (1206:7): [True: 0, False: 798]
  ------------------
 1207|      0|         return if_match(req, "Threefish-512/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 2});
 1208|      0|      case 0x83EA7:
  ------------------
  |  Branch (1208:7): [True: 0, False: 798]
  ------------------
 1209|      0|         return if_match(req, "RSA/PKCS1v15(SHA-384)", {1, 2, 840, 113549, 1, 1, 12});
 1210|      0|      case 0x84596:
  ------------------
  |  Branch (1210:7): [True: 0, False: 798]
  ------------------
 1211|      0|         return if_match(req, "eFrodoKEM-640-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 1});
 1212|      0|      case 0x8469F:
  ------------------
  |  Branch (1212:7): [True: 0, False: 798]
  ------------------
 1213|      0|         return if_match(req, "ClassicMcEliece_6960119pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 4});
 1214|      0|      case 0x84CA4:
  ------------------
  |  Branch (1214:7): [True: 0, False: 798]
  ------------------
 1215|      0|         return if_match(req, "secp256k1", {1, 3, 132, 0, 10});
 1216|      0|      case 0x85381:
  ------------------
  |  Branch (1216:7): [True: 0, False: 798]
  ------------------
 1217|      0|         return if_match(req, "secp256r1", {1, 2, 840, 10045, 3, 1, 7});
 1218|      0|      case 0x854FC:
  ------------------
  |  Branch (1218:7): [True: 0, False: 798]
  ------------------
 1219|      0|         return if_match(req, "PKIX.IPsecUser", {1, 3, 6, 1, 5, 5, 7, 3, 7});
 1220|      0|      case 0x85F51:
  ------------------
  |  Branch (1220:7): [True: 0, False: 798]
  ------------------
 1221|      0|         return if_match(req, "Serpent/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 4});
 1222|      0|      case 0x862D9:
  ------------------
  |  Branch (1222:7): [True: 0, False: 798]
  ------------------
 1223|      0|         return if_match(req, "ECGDSA/SHA-512", {1, 3, 36, 3, 3, 2, 5, 4, 6});
 1224|      0|      case 0x87585:
  ------------------
  |  Branch (1224:7): [True: 0, False: 798]
  ------------------
 1225|      0|         return if_match(req, "Twofish/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 3});
 1226|      0|      case 0x877D1:
  ------------------
  |  Branch (1226:7): [True: 0, False: 798]
  ------------------
 1227|      0|         return if_match(req, "PKCS9.EmailAddress", {1, 2, 840, 113549, 1, 9, 1});
 1228|     89|      case 0x87D27:
  ------------------
  |  Branch (1228:7): [True: 89, False: 709]
  ------------------
 1229|     89|         return if_match(req, "PKIX.CertificateAuthorityIssuers", {1, 3, 6, 1, 5, 5, 7, 48, 2});
 1230|      0|      case 0x87E42:
  ------------------
  |  Branch (1230:7): [True: 0, False: 798]
  ------------------
 1231|      0|         return if_match(req, "X509v3.AuthorityKeyIdentifier", {2, 5, 29, 35});
 1232|      0|      case 0x889B1:
  ------------------
  |  Branch (1232:7): [True: 0, False: 798]
  ------------------
 1233|      0|         return if_match(req, "ECDSA/SHA-1", {1, 2, 840, 10045, 4, 1});
 1234|      0|      case 0x89658:
  ------------------
  |  Branch (1234:7): [True: 0, False: 798]
  ------------------
 1235|      0|         return if_match(req, "PBE-PKCS5v20", {1, 2, 840, 113549, 1, 5, 13});
 1236|      0|      case 0x8976D:
  ------------------
  |  Branch (1236:7): [True: 0, False: 798]
  ------------------
 1237|      0|         return if_match(req, "PKCS9.MessageDigest", {1, 2, 840, 113549, 1, 9, 4});
 1238|      0|      case 0x8B002:
  ------------------
  |  Branch (1238:7): [True: 0, False: 798]
  ------------------
 1239|      0|         return if_match(req, "Camellia-256/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 8});
 1240|      0|      case 0x8B935:
  ------------------
  |  Branch (1240:7): [True: 0, False: 798]
  ------------------
 1241|      0|         return if_match(req, "ClassicMcEliece_6688128", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 5});
 1242|      0|      case 0x8BB11:
  ------------------
  |  Branch (1242:7): [True: 0, False: 798]
  ------------------
 1243|      0|         return if_match(req, "X509v3.NoRevocationAvailable", {2, 5, 29, 56});
 1244|      0|      case 0x8CE3D:
  ------------------
  |  Branch (1244:7): [True: 0, False: 798]
  ------------------
 1245|      0|         return if_match(req, "PKCS9.ChallengePassword", {1, 2, 840, 113549, 1, 9, 7});
 1246|      0|      case 0x8D45C:
  ------------------
  |  Branch (1246:7): [True: 0, False: 798]
  ------------------
 1247|      0|         return if_match(req, "ECKCDSA", {1, 0, 14888, 3, 0, 5});
 1248|      0|      case 0x8E0C1:
  ------------------
  |  Branch (1248:7): [True: 0, False: 798]
  ------------------
 1249|      0|         return if_match(req, "X509v3.CertificatePolicies", {2, 5, 29, 32});
 1250|      0|      case 0x8E39A:
  ------------------
  |  Branch (1250:7): [True: 0, False: 798]
  ------------------
 1251|      0|         return if_match(req, "HSS-LMS-Private-Key", {1, 3, 6, 1, 4, 1, 25258, 1, 13});
 1252|      0|      case 0x8EC51:
  ------------------
  |  Branch (1252:7): [True: 0, False: 798]
  ------------------
 1253|      0|         return if_match(req, "Kyber-768-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 2});
 1254|      0|      case 0x8F94A:
  ------------------
  |  Branch (1254:7): [True: 0, False: 798]
  ------------------
 1255|      0|         return if_match(req, "Dilithium-6x5-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 2});
 1256|      0|      case 0x8FC20:
  ------------------
  |  Branch (1256:7): [True: 0, False: 798]
  ------------------
 1257|      0|         return if_match(req, "AES-128/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 1});
 1258|      0|      case 0x8FDE0:
  ------------------
  |  Branch (1258:7): [True: 0, False: 798]
  ------------------
 1259|      0|         return if_match(req, "SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 2, 8});
 1260|      0|      case 0x919E3:
  ------------------
  |  Branch (1260:7): [True: 0, False: 798]
  ------------------
 1261|      0|         return if_match(req, "Serpent/GCM", {1, 3, 6, 1, 4, 1, 25258, 3, 101});
 1262|      0|      case 0x91C1A:
  ------------------
  |  Branch (1262:7): [True: 0, False: 798]
  ------------------
 1263|      0|         return if_match(req, "X25519", {1, 3, 101, 110});
 1264|      0|      case 0x91DC4:
  ------------------
  |  Branch (1264:7): [True: 0, False: 798]
  ------------------
 1265|      0|         return if_match(req, "McEliece", {1, 3, 6, 1, 4, 1, 25258, 1, 3});
 1266|      0|      case 0x93467:
  ------------------
  |  Branch (1266:7): [True: 0, False: 798]
  ------------------
 1267|      0|         return if_match(req, "Dilithium-6x5-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 2});
 1268|      0|      case 0x93D50:
  ------------------
  |  Branch (1268:7): [True: 0, False: 798]
  ------------------
 1269|      0|         return if_match(req, "AES-192/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 2});
 1270|      0|      case 0x95166:
  ------------------
  |  Branch (1270:7): [True: 0, False: 798]
  ------------------
 1271|      0|         return if_match(req, "SLH-DSA-SHAKE-128f", {2, 16, 840, 1, 101, 3, 4, 3, 27});
 1272|      0|      case 0x95173:
  ------------------
  |  Branch (1272:7): [True: 0, False: 798]
  ------------------
 1273|      0|         return if_match(req, "SLH-DSA-SHAKE-128s", {2, 16, 840, 1, 101, 3, 4, 3, 26});
 1274|     89|      case 0x952D6:
  ------------------
  |  Branch (1274:7): [True: 89, False: 709]
  ------------------
 1275|     89|         return if_match(req, "PKIX.OCSP", {1, 3, 6, 1, 5, 5, 7, 48, 1});
 1276|      0|      case 0x959B9:
  ------------------
  |  Branch (1276:7): [True: 0, False: 798]
  ------------------
 1277|      0|         return if_match(req, "PKIX.IPsecEndSystem", {1, 3, 6, 1, 5, 5, 7, 3, 5});
 1278|      0|      case 0x96F85:
  ------------------
  |  Branch (1278:7): [True: 0, False: 798]
  ------------------
 1279|      0|         return if_match(req, "Camellia-256/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 4});
 1280|      0|      case 0x97D5E:
  ------------------
  |  Branch (1280:7): [True: 0, False: 798]
  ------------------
 1281|      0|         return if_match(req, "HMAC(SHA-1)", {1, 2, 840, 113549, 2, 7});
 1282|      0|      case 0x9805C:
  ------------------
  |  Branch (1282:7): [True: 0, False: 798]
  ------------------
 1283|      0|         return if_match(req, "SEED/CBC", {1, 2, 410, 200004, 1, 4});
 1284|      0|      case 0x980E7:
  ------------------
  |  Branch (1284:7): [True: 0, False: 798]
  ------------------
 1285|      0|         return if_match(req, "SphincsPlus-haraka-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 3});
 1286|      0|      case 0x980F5:
  ------------------
  |  Branch (1286:7): [True: 0, False: 798]
  ------------------
 1287|      0|         return if_match(req, "GOST.SubjectSigningTool", {1, 2, 643, 100, 111});
 1288|      0|      case 0x98B03:
  ------------------
  |  Branch (1288:7): [True: 0, False: 798]
  ------------------
 1289|      0|         return if_match(req, "XMSS", {0, 4, 0, 127, 0, 15, 1, 1, 13, 0});
 1290|      0|      case 0x9A6B2:
  ------------------
  |  Branch (1290:7): [True: 0, False: 798]
  ------------------
 1291|      0|         return if_match(req, "ECKCDSA/SHA-1", {1, 2, 410, 200004, 1, 100, 4, 3});
 1292|      0|      case 0x9B1CF:
  ------------------
  |  Branch (1292:7): [True: 0, False: 798]
  ------------------
 1293|      0|         return if_match(req, "SM4/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 9});
 1294|      0|      case 0x9B6B2:
  ------------------
  |  Branch (1294:7): [True: 0, False: 798]
  ------------------
 1295|      0|         return if_match(req, "AES-128/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 6});
 1296|      0|      case 0x9B6BB:
  ------------------
  |  Branch (1296:7): [True: 0, False: 798]
  ------------------
 1297|      0|         return if_match(req, "X520.OrganizationalUnit", {2, 5, 4, 11});
 1298|      0|      case 0x9B851:
  ------------------
  |  Branch (1298:7): [True: 0, False: 798]
  ------------------
 1299|      0|         return if_match(req, "OpenPGP.Curve25519", {1, 3, 6, 1, 4, 1, 3029, 1, 5, 1});
 1300|      0|      case 0x9C80B:
  ------------------
  |  Branch (1300:7): [True: 0, False: 798]
  ------------------
 1301|      0|         return if_match(req, "SLH-DSA-SHA2-192f", {2, 16, 840, 1, 101, 3, 4, 3, 23});
 1302|      0|      case 0x9C818:
  ------------------
  |  Branch (1302:7): [True: 0, False: 798]
  ------------------
 1303|      0|         return if_match(req, "SLH-DSA-SHA2-192s", {2, 16, 840, 1, 101, 3, 4, 3, 22});
 1304|      0|      case 0x9CD2B:
  ------------------
  |  Branch (1304:7): [True: 0, False: 798]
  ------------------
 1305|      0|         return if_match(req, "Scrypt", {1, 3, 6, 1, 4, 1, 11591, 4, 11});
 1306|      0|      case 0x9CDE1:
  ------------------
  |  Branch (1306:7): [True: 0, False: 798]
  ------------------
 1307|      0|         return if_match(req, "GOST-34.10-2012-256/SHA-256", {1, 3, 6, 1, 4, 1, 25258, 1, 6, 1});
 1308|      0|      case 0x9CF73:
  ------------------
  |  Branch (1308:7): [True: 0, False: 798]
  ------------------
 1309|      0|         return if_match(req, "ClassicMcEliece_460896f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 4});
 1310|      0|      case 0x9D354:
  ------------------
  |  Branch (1310:7): [True: 0, False: 798]
  ------------------
 1311|      0|         return if_match(req, "RIPEMD-160", {1, 3, 36, 3, 2, 1});
 1312|      0|      case 0x9D503:
  ------------------
  |  Branch (1312:7): [True: 0, False: 798]
  ------------------
 1313|      0|         return if_match(req, "RSA/PKCS1v15(SHA-256)", {1, 2, 840, 113549, 1, 1, 11});
 1314|      0|      case 0x9EC88:
  ------------------
  |  Branch (1314:7): [True: 0, False: 798]
  ------------------
 1315|      0|         return if_match(req, "DSA/SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 3, 8});
 1316|      0|      case 0x9EF36:
  ------------------
  |  Branch (1316:7): [True: 0, False: 798]
  ------------------
 1317|      0|         return if_match(req, "ClassicMcEliece_6960119", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 7});
 1318|      0|      case 0x9F764:
  ------------------
  |  Branch (1318:7): [True: 0, False: 798]
  ------------------
 1319|      0|         return if_match(req, "X448", {1, 3, 101, 111});
 1320|      0|      case 0x9F7E2:
  ------------------
  |  Branch (1320:7): [True: 0, False: 798]
  ------------------
 1321|      0|         return if_match(req, "AES-192/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 26});
 1322|      0|      case 0x9F9C5:
  ------------------
  |  Branch (1322:7): [True: 0, False: 798]
  ------------------
 1323|      0|         return if_match(req, "ClassicMcEliece_6688128pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 2});
 1324|      0|      case 0xA0805:
  ------------------
  |  Branch (1324:7): [True: 0, False: 798]
  ------------------
 1325|      0|         return if_match(req, "PKCS9.SDSICertificate", {1, 2, 840, 113549, 1, 9, 22, 2});
 1326|      0|      case 0xA2B5B:
  ------------------
  |  Branch (1326:7): [True: 0, False: 798]
  ------------------
 1327|      0|         return if_match(req, "X509v3.CRLNumber", {2, 5, 29, 20});
 1328|      0|      case 0xA3005:
  ------------------
  |  Branch (1328:7): [True: 0, False: 798]
  ------------------
 1329|      0|         return if_match(req, "X520.Title", {2, 5, 4, 12});
 1330|      0|      case 0xA323F:
  ------------------
  |  Branch (1330:7): [True: 0, False: 798]
  ------------------
 1331|      0|         return if_match(req, "X509v3.NameConstraints", {2, 5, 29, 30});
 1332|      0|      case 0xA3C55:
  ------------------
  |  Branch (1332:7): [True: 0, False: 798]
  ------------------
 1333|      0|         return if_match(req, "X520.Pseudonym", {2, 5, 4, 65});
 1334|      0|      case 0xA4809:
  ------------------
  |  Branch (1334:7): [True: 0, False: 798]
  ------------------
 1335|      0|         return if_match(req, "SphincsPlus-sha2-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 6});
 1336|      0|      case 0xA57AF:
  ------------------
  |  Branch (1336:7): [True: 0, False: 798]
  ------------------
 1337|      0|         return if_match(req, "secp521r1", {1, 3, 132, 0, 35});
 1338|      0|      case 0xA5DA9:
  ------------------
  |  Branch (1338:7): [True: 0, False: 798]
  ------------------
 1339|      0|         return if_match(req, "SphincsPlus-shake-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 6});
 1340|      0|      case 0xA6865:
  ------------------
  |  Branch (1340:7): [True: 0, False: 798]
  ------------------
 1341|      0|         return if_match(req, "Camellia-128/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 6});
 1342|      0|      case 0xA6C61:
  ------------------
  |  Branch (1342:7): [True: 0, False: 798]
  ------------------
 1343|      0|         return if_match(req, "SM4/GCM", {1, 2, 156, 10197, 1, 104, 8});
 1344|      0|      case 0xA8439:
  ------------------
  |  Branch (1344:7): [True: 0, False: 798]
  ------------------
 1345|      0|         return if_match(req, "PKCS12.CertBag", {1, 2, 840, 113549, 1, 12, 10, 1, 3});
 1346|      0|      case 0xA9061:
  ------------------
  |  Branch (1346:7): [True: 0, False: 798]
  ------------------
 1347|      0|         return if_match(req, "Kyber-768-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 2});
 1348|      0|      case 0xAA995:
  ------------------
  |  Branch (1348:7): [True: 0, False: 798]
  ------------------
 1349|      0|         return if_match(req, "Camellia-192/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 7});
 1350|      0|      case 0xAAE2B:
  ------------------
  |  Branch (1350:7): [True: 0, False: 798]
  ------------------
 1351|      0|         return if_match(req, "Dilithium-8x7-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 3});
 1352|      0|      case 0xABCED:
  ------------------
  |  Branch (1352:7): [True: 0, False: 798]
  ------------------
 1353|      0|         return if_match(req, "GOST.IssuerSigningTool", {1, 2, 643, 100, 112});
 1354|      0|      case 0xABD24:
  ------------------
  |  Branch (1354:7): [True: 0, False: 798]
  ------------------
 1355|      0|         return if_match(req, "RSA/OAEP", {1, 2, 840, 113549, 1, 1, 7});
 1356|      0|      case 0xAC2EC:
  ------------------
  |  Branch (1356:7): [True: 0, False: 798]
  ------------------
 1357|      0|         return if_match(req, "Streebog-256", {1, 2, 643, 7, 1, 1, 2, 2});
 1358|      0|      case 0xAC3DD:
  ------------------
  |  Branch (1358:7): [True: 0, False: 798]
  ------------------
 1359|      0|         return if_match(req, "Certificate Comment", {2, 16, 840, 1, 113730, 1, 13});
 1360|      0|      case 0xAC511:
  ------------------
  |  Branch (1360:7): [True: 0, False: 798]
  ------------------
 1361|      0|         return if_match(req, "PBE-SHA1-3DES", {1, 2, 840, 113549, 1, 12, 1, 3});
 1362|      0|      case 0xAE6FE:
  ------------------
  |  Branch (1362:7): [True: 0, False: 798]
  ------------------
 1363|      0|         return if_match(req, "PKIX.ClientAuth", {1, 3, 6, 1, 5, 5, 7, 3, 2});
 1364|      0|      case 0xAE8D3:
  ------------------
  |  Branch (1364:7): [True: 0, False: 798]
  ------------------
 1365|      0|         return if_match(req, "ClassicMcEliece_8192128pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 6});
 1366|      0|      case 0xAF476:
  ------------------
  |  Branch (1366:7): [True: 0, False: 798]
  ------------------
 1367|      0|         return if_match(req, "ECDH", {1, 3, 132, 1, 12});
 1368|      0|      case 0xAFA6A:
  ------------------
  |  Branch (1368:7): [True: 0, False: 798]
  ------------------
 1369|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(384))", {2, 16, 840, 1, 101, 3, 4, 3, 15});
 1370|      0|      case 0xB2217:
  ------------------
  |  Branch (1370:7): [True: 0, False: 798]
  ------------------
 1371|      0|         return if_match(req, "AES-256/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 3});
 1372|      0|      case 0xB22F7:
  ------------------
  |  Branch (1372:7): [True: 0, False: 798]
  ------------------
 1373|      0|         return if_match(req, "Camellia-128/GCM", {0, 3, 4401, 5, 3, 1, 9, 6});
 1374|      0|      case 0xB23DE:
  ------------------
  |  Branch (1374:7): [True: 0, False: 798]
  ------------------
 1375|      0|         return if_match(req, "X520.Locality", {2, 5, 4, 7});
 1376|      0|      case 0xB2FBD:
  ------------------
  |  Branch (1376:7): [True: 0, False: 798]
  ------------------
 1377|      0|         return if_match(req, "ECKCDSA/SHA-224", {1, 2, 410, 200004, 1, 100, 4, 4});
 1378|      0|      case 0xB32B0:
  ------------------
  |  Branch (1378:7): [True: 0, False: 798]
  ------------------
 1379|      0|         return if_match(req, "ECKCDSA/SHA-256", {1, 2, 410, 200004, 1, 100, 4, 5});
 1380|      0|      case 0xB360E:
  ------------------
  |  Branch (1380:7): [True: 0, False: 798]
  ------------------
 1381|      0|         return if_match(req, "eFrodoKEM-976-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 2});
 1382|      0|      case 0xB4368:
  ------------------
  |  Branch (1382:7): [True: 0, False: 798]
  ------------------
 1383|      0|         return if_match(req, "ECGDSA/SHA-1", {1, 3, 36, 3, 3, 2, 5, 4, 2});
 1384|      0|      case 0xB58CD:
  ------------------
  |  Branch (1384:7): [True: 0, False: 798]
  ------------------
 1385|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(512))", {2, 16, 840, 1, 101, 3, 4, 3, 16});
 1386|      0|      case 0xB6427:
  ------------------
  |  Branch (1386:7): [True: 0, False: 798]
  ------------------
 1387|      0|         return if_match(req, "Camellia-192/GCM", {0, 3, 4401, 5, 3, 1, 9, 26});
 1388|      0|      case 0xB7102:
  ------------------
  |  Branch (1388:7): [True: 0, False: 798]
  ------------------
 1389|      0|         return if_match(req, "brainpool224r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 5});
 1390|      0|      case 0xB710D:
  ------------------
  |  Branch (1390:7): [True: 0, False: 798]
  ------------------
 1391|      0|         return if_match(req, "X509v3.CRLIssuingDistributionPoint", {2, 5, 29, 28});
 1392|      0|      case 0xB72D4:
  ------------------
  |  Branch (1392:7): [True: 0, False: 798]
  ------------------
 1393|      0|         return if_match(req, "Microsoft UPN", {1, 3, 6, 1, 4, 1, 311, 20, 2, 3});
 1394|      0|      case 0xB73A5:
  ------------------
  |  Branch (1394:7): [True: 0, False: 798]
  ------------------
 1395|      0|         return if_match(req, "RSA/PSS", {1, 2, 840, 113549, 1, 1, 10});
 1396|      0|      case 0xB84B3:
  ------------------
  |  Branch (1396:7): [True: 0, False: 798]
  ------------------
 1397|      0|         return if_match(req, "PKIX.CodeSigning", {1, 3, 6, 1, 5, 5, 7, 3, 3});
 1398|      0|      case 0xB8CB9:
  ------------------
  |  Branch (1398:7): [True: 0, False: 798]
  ------------------
 1399|      0|         return if_match(req, "GOST-34.10-2012-256", {1, 2, 643, 7, 1, 1, 1, 1});
 1400|      0|      case 0xB945C:
  ------------------
  |  Branch (1400:7): [True: 0, False: 798]
  ------------------
 1401|      0|         return if_match(req, "Twofish/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 5});
 1402|      0|      case 0xB94E4:
  ------------------
  |  Branch (1402:7): [True: 0, False: 798]
  ------------------
 1403|      0|         return if_match(req, "gost_512A", {1, 2, 643, 7, 1, 2, 1, 2, 1});
 1404|      0|      case 0xB94E5:
  ------------------
  |  Branch (1404:7): [True: 0, False: 798]
  ------------------
 1405|      0|         return if_match(req, "gost_512B", {1, 2, 643, 7, 1, 2, 1, 2, 2});
 1406|      0|      case 0xBA1D8:
  ------------------
  |  Branch (1406:7): [True: 0, False: 798]
  ------------------
 1407|      0|         return if_match(req, "X520.StreetAddress", {2, 5, 4, 9});
 1408|      0|      case 0xBCB45:
  ------------------
  |  Branch (1408:7): [True: 0, False: 798]
  ------------------
 1409|      0|         return if_match(req, "PKCS12.CRLBag", {1, 2, 840, 113549, 1, 12, 10, 1, 4});
 1410|      0|      case 0xBCC82:
  ------------------
  |  Branch (1410:7): [True: 0, False: 798]
  ------------------
 1411|      0|         return if_match(req, "x962_p239v1", {1, 2, 840, 10045, 3, 1, 4});
 1412|      0|      case 0xBCC83:
  ------------------
  |  Branch (1412:7): [True: 0, False: 798]
  ------------------
 1413|      0|         return if_match(req, "x962_p239v2", {1, 2, 840, 10045, 3, 1, 5});
 1414|      0|      case 0xBCC84:
  ------------------
  |  Branch (1414:7): [True: 0, False: 798]
  ------------------
 1415|      0|         return if_match(req, "x962_p239v3", {1, 2, 840, 10045, 3, 1, 6});
 1416|      0|      case 0xBD92B:
  ------------------
  |  Branch (1416:7): [True: 0, False: 798]
  ------------------
 1417|      0|         return if_match(req, "X509v3.HoldInstructionCode", {2, 5, 29, 23});
 1418|      0|      case 0xBDCA9:
  ------------------
  |  Branch (1418:7): [True: 0, False: 798]
  ------------------
 1419|      0|         return if_match(req, "AES-256/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 46});
 1420|      0|      case 0xBE48D:
  ------------------
  |  Branch (1420:7): [True: 0, False: 798]
  ------------------
 1421|      0|         return if_match(req, "PKIX.OCSP.BasicResponse", {1, 3, 6, 1, 5, 5, 7, 48, 1, 1});
 1422|      0|      case 0xBF71E:
  ------------------
  |  Branch (1422:7): [True: 0, False: 798]
  ------------------
 1423|      0|         return if_match(req, "Kyber-1024-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 3});
 1424|      0|      case 0xBFF01:
  ------------------
  |  Branch (1424:7): [True: 0, False: 798]
  ------------------
 1425|      0|         return if_match(req, "DSA/SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 3, 5});
 1426|      0|      case 0xC0F4F:
  ------------------
  |  Branch (1426:7): [True: 0, False: 798]
  ------------------
 1427|      0|         return if_match(req, "SphincsPlus-haraka-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 6});
 1428|      0|      case 0xC1875:
  ------------------
  |  Branch (1428:7): [True: 0, False: 798]
  ------------------
 1429|      0|         return if_match(req, "SHA-1", {1, 3, 14, 3, 2, 26});
 1430|      0|      case 0xC28D1:
  ------------------
  |  Branch (1430:7): [True: 0, False: 798]
  ------------------
 1431|      0|         return if_match(req, "PKIX.OCSPSigning", {1, 3, 6, 1, 5, 5, 7, 3, 9});
 1432|      0|      case 0xC42CA:
  ------------------
  |  Branch (1432:7): [True: 0, False: 798]
  ------------------
 1433|      0|         return if_match(req, "brainpool256r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 7});
 1434|      0|      default:
  ------------------
  |  Branch (1434:7): [True: 0, False: 798]
  ------------------
 1435|      0|         return {};
 1436|    798|   }
 1437|    798|}
_ZN5Botan7OID_Map16load_oid2str_mapEv:
 1439|      1|std::unordered_map<OID, std::string> OID_Map::load_oid2str_map() {
 1440|      1|   return {
 1441|      1|      {OID{2, 5, 8, 1, 1}, "RSA"},
 1442|      1|      {OID{1, 3, 6, 1, 4, 1, 8301, 3, 1, 2, 9, 0, 38}, "secp521r1"},
 1443|      1|      {OID{1, 2, 643, 2, 2, 35, 1}, "gost_256A"},
 1444|      1|      {OID{1, 2, 643, 2, 2, 36, 0}, "gost_256A"},
 1445|      1|   };
 1446|      1|}
_ZN5Botan7OID_Map16load_str2oid_mapEv:
 1448|      1|std::unordered_map<std::string, OID> OID_Map::load_str2oid_map() {
 1449|      1|   return {
 1450|      1|      {"Curve25519", OID{1, 3, 101, 110}},
 1451|      1|      {"SM2_Sig", OID{1, 2, 156, 10197, 1, 301, 1}},
 1452|      1|      {"RSA/EMSA3(MD2)", OID{1, 2, 840, 113549, 1, 1, 2}},
 1453|      1|      {"RSA/EMSA3(MD5)", OID{1, 2, 840, 113549, 1, 1, 4}},
 1454|      1|      {"RSA/EMSA3(SHA-1)", OID{1, 2, 840, 113549, 1, 1, 5}},
 1455|      1|      {"RSA/EMSA3(SHA-256)", OID{1, 2, 840, 113549, 1, 1, 11}},
 1456|      1|      {"RSA/EMSA3(SHA-384)", OID{1, 2, 840, 113549, 1, 1, 12}},
 1457|      1|      {"RSA/EMSA3(SHA-512)", OID{1, 2, 840, 113549, 1, 1, 13}},
 1458|      1|      {"RSA/EMSA3(SHA-224)", OID{1, 2, 840, 113549, 1, 1, 14}},
 1459|      1|      {"RSA/EMSA3(SHA-512-256)", OID{1, 2, 840, 113549, 1, 1, 16}},
 1460|      1|      {"RSA/EMSA3(SHA-3(224))", OID{2, 16, 840, 1, 101, 3, 4, 3, 13}},
 1461|      1|      {"RSA/EMSA3(SHA-3(256))", OID{2, 16, 840, 1, 101, 3, 4, 3, 14}},
 1462|      1|      {"RSA/EMSA3(SHA-3(384))", OID{2, 16, 840, 1, 101, 3, 4, 3, 15}},
 1463|      1|      {"RSA/EMSA3(SHA-3(512))", OID{2, 16, 840, 1, 101, 3, 4, 3, 16}},
 1464|      1|      {"RSA/EMSA3(SM3)", OID{1, 2, 156, 10197, 1, 504}},
 1465|      1|      {"RSA/EMSA3(RIPEMD-160)", OID{1, 3, 36, 3, 3, 1, 2}},
 1466|      1|      {"RSA/EMSA4", OID{1, 2, 840, 113549, 1, 1, 10}},
 1467|      1|      {"PBES2", OID{1, 2, 840, 113549, 1, 5, 13}},
 1468|      1|   };
 1469|      1|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_113hash_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   34|    798|uint32_t hash_oid_name(std::string_view s) {
   35|    798|   uint64_t hash = 0x8188B31879A4879A;
   36|       |
   37|  16.0k|   for(const char c : s) {
  ------------------
  |  Branch (37:21): [True: 16.0k, False: 798]
  ------------------
   38|  16.0k|      hash *= 251;
   39|  16.0k|      hash += c;
   40|  16.0k|   }
   41|       |
   42|    798|   return static_cast<uint32_t>(hash % 805289);
   43|    798|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_18if_matchENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_St16initializer_listIjE:
   26|    798|std::optional<OID> if_match(std::string_view req, std::string_view actual, std::initializer_list<uint32_t> oid) {
   27|    798|   if(req == actual) {
  ------------------
  |  Branch (27:7): [True: 798, False: 0]
  ------------------
   28|    798|      return OID(oid);
   29|    798|   } else {
   30|      0|      return {};
   31|      0|   }
   32|    798|}

_ZN5Botan13base64_decodeEPKcmb:
  189|    192|secure_vector<uint8_t> base64_decode(const char input[], size_t input_length, bool ignore_ws) {
  190|    192|   return base_decode_to_vec<secure_vector<uint8_t>>(Base64(), input, input_length, ignore_ws);
  191|    192|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decode_max_outputEm:
   43|    384|      static constexpr size_t decode_max_output(size_t input_length) {
   44|       |         // Divide before multiply to avoid overflow; round_up makes the division exact.
   45|    384|         return (round_up(input_length, m_encoding_bytes_out) / m_encoding_bytes_out) * m_encoding_bytes_in;
   46|    384|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6413bits_consumedEv:
   34|     36|      static constexpr size_t bits_consumed() noexcept { return m_encoding_bits; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEc:
  112|  53.3k|uint8_t Base64::lookup_binary_value(char input) noexcept {
  113|  53.3k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
  114|       |
  115|       |   // Assumes each byte is either 0x00 or 0x80
  116|  53.3k|   auto index_of_first_set_byte = [](uint64_t v) {
  117|  53.3k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  118|  53.3k|   };
  119|       |
  120|  53.3k|   constexpr uint64_t lo = 0x0101010101010101;
  121|       |
  122|  53.3k|   const uint8_t x = static_cast<uint8_t>(input);
  123|       |
  124|  53.3k|   const uint64_t x8 = x * lo;
  125|       |
  126|       |   // Defines the valid ASCII ranges of base64, except the special chars (below)
  127|  53.3k|   constexpr uint64_t val_l = make_uint64(0, 0, 0, 0, 0, 'A', 'a', '0');
  128|  53.3k|   constexpr uint64_t val_u = make_uint64(0, 0, 0, 0, 0, 26, 26, 10);
  129|       |
  130|       |   // If x is in one of the ranges return a mask. Otherwise we xor in at the
  131|       |   // high word which will be our invalid marker
  132|  53.3k|   auto v_mask = swar_in_range<uint64_t>(x8, val_l, val_u) ^ 0x80000000;
  133|       |
  134|       |   // This is the offset added to x to get the value
  135|  53.3k|   const uint64_t val_v = 0xbfb904 ^ (0xFF000000 - (x << 24));
  136|       |
  137|  53.3k|   const uint8_t z = x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
  138|       |
  139|       |   // Valid base64 special characters, and some whitespace chars
  140|  53.3k|   constexpr uint64_t specials_i = make_uint64(0, '+', '/', '=', ' ', '\n', '\t', '\r');
  141|       |
  142|  53.3k|   const uint64_t specials_v = 0x3e3f8180808080 ^ (static_cast<uint64_t>(z) << 56);
  143|       |
  144|  53.3k|   const uint64_t smask = has_zero_byte(x8 ^ specials_i) ^ 0x8000000000000000;
  145|       |
  146|  53.3k|   return static_cast<uint8_t>(specials_v >> (8 * index_of_first_set_byte(smask)));
  147|  53.3k|}
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_0clEm:
  116|   106k|   auto index_of_first_set_byte = [](uint64_t v) {
  117|   106k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  118|   106k|   };
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_1clEm:
  113|  53.3k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6414check_bad_charEhcb:
  150|  40.8k|bool Base64::check_bad_char(uint8_t bin, char input, bool ignore_ws) {
  151|  40.8k|   if(bin <= 0x3F) {
  ------------------
  |  Branch (151:7): [True: 10.2k, False: 30.5k]
  ------------------
  152|  10.2k|      return true;
  153|  30.5k|   } else if(!(bin == 0x81 || (bin == 0x80 && ignore_ws))) {
  ------------------
  |  Branch (153:16): [True: 268, False: 30.2k]
  |  Branch (153:32): [True: 30.2k, False: 59]
  |  Branch (153:47): [True: 30.2k, False: 0]
  ------------------
  154|     59|      throw Invalid_Argument(fmt("base64_decode: invalid character '{}'", format_char_for_display(input)));
  155|     59|   }
  156|  30.5k|   return false;
  157|  40.8k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base644nameEv:
   24|     37|      static std::string name() { return "base64"; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base646decodeEPhPKh:
   54|  2.57k|      static void decode(uint8_t* out_ptr, const uint8_t decode_buf[4]) {
   55|  2.57k|         out_ptr[0] = (decode_buf[0] << 2) | (decode_buf[1] >> 4);
   56|  2.57k|         out_ptr[1] = (decode_buf[1] << 4) | (decode_buf[2] >> 2);
   57|  2.57k|         out_ptr[2] = (decode_buf[2] << 6) | decode_buf[3];
   58|  2.57k|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6415bytes_to_removeEm:
   60|    120|      static size_t bytes_to_remove(size_t final_truncate) { return final_truncate; }

_ZNK5Botan6BigInt7byte_atEm:
  118|  18.6k|uint8_t BigInt::byte_at(size_t n) const {
  119|  18.6k|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  120|  18.6k|}
_ZNK5Botan6BigInt8cmp_wordEm:
  122|  9.03k|int32_t BigInt::cmp_word(word other) const {
  123|  9.03k|   if(signum() < 0) {
  ------------------
  |  Branch (123:7): [True: 654, False: 8.37k]
  ------------------
  124|    654|      return -1;  // other is positive ...
  125|    654|   }
  126|       |
  127|  8.37k|   const size_t sw = this->sig_words();
  128|  8.37k|   if(sw > 1) {
  ------------------
  |  Branch (128:7): [True: 1.51k, False: 6.85k]
  ------------------
  129|  1.51k|      return 1;  // must be larger since other is just one word ...
  130|  1.51k|   }
  131|       |
  132|  6.85k|   return bigint_cmp(this->_data(), sw, &other, 1);
  133|  8.37k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  14.5k|void BigInt::Data::set_to_zero() {
  192|  14.5k|   m_reg.resize(m_reg.capacity());
  193|  14.5k|   clear_mem(m_reg.data(), m_reg.size());
  194|  14.5k|   m_sig_words = 0;
  195|  14.5k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  14.5k|size_t BigInt::Data::calc_sig_words() const {
  216|  14.5k|   const size_t sz = m_reg.size();
  217|  14.5k|   size_t sig = sz;
  218|       |
  219|  14.5k|   word sub = 1;
  220|       |
  221|   133k|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 118k, False: 14.5k]
  ------------------
  222|   118k|      const word w = m_reg[sz - i - 1];
  223|   118k|      sub &= ct_is_zero(w);
  224|   118k|      sig -= sub;
  225|   118k|   }
  226|       |
  227|       |   /*
  228|       |   * This depends on the data so is poisoned, but unpoison it here as
  229|       |   * later conditionals are made on the size.
  230|       |   */
  231|  14.5k|   CT::unpoison(sig);
  232|       |
  233|  14.5k|   return sig;
  234|  14.5k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  18.8k|size_t BigInt::bytes() const {
  295|  18.8k|   return round_up(bits(), 8) / 8;
  296|  18.8k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  23.5k|size_t BigInt::top_bits_free() const {
  299|  23.5k|   const size_t words = sig_words();
  300|       |
  301|  23.5k|   const word top_word = word_at(words - 1);
  302|  23.5k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  23.5k|   CT::unpoison(bits_used);
  304|  23.5k|   return WordInfo<word>::bits - bits_used;
  305|  23.5k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  23.6k|size_t BigInt::bits() const {
  308|  23.6k|   const size_t words = sig_words();
  309|       |
  310|  23.6k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 71, False: 23.5k]
  ------------------
  311|     71|      return 0;
  312|     71|   }
  313|       |
  314|  23.5k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  23.5k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  23.5k|   return full_words + top_bits;
  318|  23.6k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|  9.44k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|  9.44k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  9.44k|   do {                                                          \
  |  |   36|  9.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.44k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.44k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.44k]
  |  |  ------------------
  ------------------
  397|       |
  398|  9.44k|   this->binary_encode(output.data(), output.size());
  399|  9.44k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|  9.44k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|  9.44k|   const size_t full_words = len / sizeof(word);
  406|  9.44k|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|  14.0k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 4.56k, False: 9.44k]
  ------------------
  409|  4.56k|      const word w = word_at(i);
  410|  4.56k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|  4.56k|   }
  412|       |
  413|  9.44k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 9.36k, False: 85]
  ------------------
  414|  9.36k|      const word w = word_at(full_words);
  415|       |
  416|  33.7k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 24.3k, False: 9.36k]
  ------------------
  417|  24.3k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|  24.3k|      }
  419|  9.36k|   }
  420|  9.44k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  14.5k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  14.5k|   clear();
  427|       |
  428|  14.5k|   const size_t length = bytes.size();
  429|  14.5k|   const size_t full_words = length / sizeof(word);
  430|  14.5k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  14.5k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 12.9k, False: 1.62k]
  ------------------
  433|       |
  434|  20.8k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 6.34k, False: 14.5k]
  ------------------
  435|  6.34k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|  6.34k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|  6.34k|   }
  438|       |
  439|  14.5k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 12.9k, False: 1.62k]
  ------------------
  440|  12.9k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  12.9k|   do {                                                                     \
  |  |   78|  12.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  12.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 12.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  12.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 12.9k]
  |  |  ------------------
  ------------------
  441|  12.9k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  12.9k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  12.9k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  12.9k|   }
  445|       |
  446|  14.5k|   m_data.swap(reg);
  447|  14.5k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  30.1k|void BigInt::_const_time_unpoison() const {
  560|  30.1k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  30.1k|}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    367|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    367|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    367|   label.clear();
   66|       |
   67|    367|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    367|   const std::string PEM_HEADER2 = "-----";
   69|    367|   size_t position = 0;
   70|       |
   71|  11.6k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 11.3k, False: 324]
  ------------------
   72|  11.3k|      auto b = source.read_byte();
   73|       |
   74|  11.3k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 42, False: 11.3k]
  ------------------
   75|     42|         throw Decoding_Error("PEM: No PEM header found");
   76|     42|      }
   77|  11.3k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 3.91k, False: 7.41k]
  ------------------
   78|  3.91k|         ++position;
   79|  7.41k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 7.41k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  7.41k|      } else {
   82|  7.41k|         position = 0;
   83|  7.41k|      }
   84|  11.3k|   }
   85|    324|   position = 0;
   86|  5.05k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 4.77k, False: 278]
  ------------------
   87|  4.77k|      auto b = source.read_byte();
   88|       |
   89|  4.77k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 41, False: 4.73k]
  ------------------
   90|     41|         throw Decoding_Error("PEM: No PEM header found");
   91|     41|      }
   92|  4.73k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 1.40k, False: 3.33k]
  ------------------
   93|  1.40k|         ++position;
   94|  3.33k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 4, False: 3.32k]
  ------------------
   95|      4|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      4|      }
   97|       |
   98|  4.73k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 3.32k, False: 1.40k]
  ------------------
   99|  3.32k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 3.32k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  3.32k|         label += static_cast<char>(*b);
  103|  3.32k|      }
  104|  4.73k|   }
  105|       |
  106|    278|   std::vector<char> b64;
  107|       |
  108|    278|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    278|   position = 0;
  110|   103k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 103k, False: 192]
  ------------------
  111|   103k|      auto b = source.read_byte();
  112|       |
  113|   103k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 72, False: 103k]
  ------------------
  114|     72|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     72|      }
  116|   103k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 3.94k, False: 99.6k]
  ------------------
  117|  3.94k|         ++position;
  118|  99.6k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 14, False: 99.5k]
  ------------------
  119|     14|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|     14|      }
  121|       |
  122|   103k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 99.5k, False: 3.94k]
  ------------------
  123|  99.5k|         b64.push_back(*b);
  124|  99.5k|      }
  125|   103k|   }
  126|       |
  127|    192|   return base64_decode(b64.data(), b64.size());
  128|    278|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  3.64k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  3.64k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  3.64k|   secure_vector<uint8_t> search_buf(search_range);
  147|  3.64k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  3.64k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 456, False: 3.18k]
  ------------------
  150|    456|      return false;
  151|    456|   }
  152|       |
  153|  3.18k|   size_t index = 0;
  154|       |
  155|  2.16M|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 2.16M, False: 3.17k]
  ------------------
  156|  2.16M|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 12.9k, False: 2.15M]
  ------------------
  157|  12.9k|         ++index;
  158|  2.15M|      } else {
  159|  2.15M|         index = 0;
  160|  2.15M|      }
  161|       |
  162|  2.16M|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 9, False: 2.16M]
  ------------------
  163|      9|         return true;
  164|      9|      }
  165|  2.16M|   }
  166|       |
  167|  3.17k|   return false;
  168|  3.18k|}

_ZN5Botan15allocate_memoryEmm:
   21|  38.1k|BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size) {
   22|  38.1k|   if(elems == 0 || elem_size == 0) {
  ------------------
  |  Branch (22:7): [True: 0, False: 38.1k]
  |  Branch (22:21): [True: 0, False: 38.1k]
  ------------------
   23|      0|      return nullptr;
   24|      0|   }
   25|       |
   26|       |   // Some calloc implementations do not check for overflow (?!?)
   27|  38.1k|   if(!checked_mul(elems, elem_size).has_value()) {
  ------------------
  |  Branch (27:7): [True: 0, False: 38.1k]
  ------------------
   28|      0|      throw std::bad_alloc();
   29|      0|   }
   30|       |
   31|       |#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
   32|       |   // NOLINTNEXTLINE(*-const-correctness) bug in clang-tidy
   33|       |   if(void* p = mlock_allocator::instance().allocate(elems, elem_size)) {
   34|       |      return p;
   35|       |   }
   36|       |#endif
   37|       |
   38|       |#if defined(BOTAN_TARGET_OS_HAS_ALLOC_CONCEAL)
   39|       |   void* ptr = ::calloc_conceal(elems, elem_size);
   40|       |#else
   41|       |   // NOLINTNEXTLINE(*-const-correctness) bug in clang-tidy
   42|  38.1k|   void* ptr = std::calloc(elems, elem_size);  // NOLINT(*-no-malloc,*-owning-memory)
   43|  38.1k|#endif
   44|  38.1k|   if(ptr == nullptr) {
  ------------------
  |  Branch (44:7): [True: 0, False: 38.1k]
  ------------------
   45|      0|      [[unlikely]] throw std::bad_alloc();
   46|      0|   }
   47|  38.1k|   return ptr;
   48|  38.1k|}
_ZN5Botan17deallocate_memoryEPvmm:
   50|  38.1k|void deallocate_memory(void* p, size_t elems, size_t elem_size) {
   51|  38.1k|   if(p == nullptr) {
  ------------------
  |  Branch (51:7): [True: 0, False: 38.1k]
  ------------------
   52|      0|      [[unlikely]] return;
   53|      0|   }
   54|       |
   55|  38.1k|   secure_scrub_memory(p, elems * elem_size);
   56|       |
   57|       |#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
   58|       |   if(mlock_allocator::instance().deallocate(p, elems, elem_size)) {
   59|       |      return;
   60|       |   }
   61|       |#endif
   62|       |
   63|  38.1k|   std::free(p);  // NOLINT(*-no-malloc,*-owning-memory)
   64|  38.1k|}

_ZN5Botan22throw_invalid_argumentEPKcS1_S1_:
   23|     44|void throw_invalid_argument(const char* message, const char* func, const char* file) {
   24|     44|   throw Invalid_Argument(fmt("{} in {}:{}", message, func, file));
   25|     44|}

_ZN5Botan19next_utf8_codepointENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERm:
   53|  15.3k|uint32_t next_utf8_codepoint(std::string_view utf8, size_t& pos) {
   54|  15.3k|   auto read_continuation = [&]() -> uint32_t {
   55|  15.3k|      if(pos >= utf8.size()) {
   56|  15.3k|         throw Decoding_Error("Invalid UTF-8 sequence");
   57|  15.3k|      }
   58|  15.3k|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   59|  15.3k|      if((b & 0xC0) != 0x80) {
   60|  15.3k|         throw Decoding_Error("Invalid UTF-8 sequence");
   61|  15.3k|      }
   62|  15.3k|      return b & 0x3F;
   63|  15.3k|   };
   64|       |
   65|  15.3k|   if(pos >= utf8.size()) {
  ------------------
  |  Branch (65:7): [True: 0, False: 15.3k]
  ------------------
   66|      0|      throw Decoding_Error("Invalid UTF-8 sequence");
   67|      0|   }
   68|  15.3k|   const uint8_t lead = static_cast<uint8_t>(utf8[pos++]);
   69|  15.3k|   uint32_t c = 0;
   70|       |
   71|  15.3k|   if(lead <= 0x7F) {
  ------------------
  |  Branch (71:7): [True: 14.9k, False: 393]
  ------------------
   72|  14.9k|      c = lead;
   73|  14.9k|   } else if((lead & 0xE0) == 0xC0) {
  ------------------
  |  Branch (73:14): [True: 110, False: 283]
  ------------------
   74|    110|      c = (lead & 0x1F) << 6;
   75|    110|      c |= read_continuation();
   76|    110|      if(c < 0x80) {
  ------------------
  |  Branch (76:10): [True: 4, False: 106]
  ------------------
   77|      4|         throw Decoding_Error("Overlong UTF-8 sequence");
   78|      4|      }
   79|    283|   } else if((lead & 0xF0) == 0xE0) {
  ------------------
  |  Branch (79:14): [True: 93, False: 190]
  ------------------
   80|     93|      c = (lead & 0x0F) << 12;
   81|     93|      c |= read_continuation() << 6;
   82|     93|      c |= read_continuation();
   83|     93|      if(c < 0x800) {
  ------------------
  |  Branch (83:10): [True: 4, False: 89]
  ------------------
   84|      4|         throw Decoding_Error("Overlong UTF-8 sequence");
   85|      4|      }
   86|    190|   } else if((lead & 0xF8) == 0xF0) {
  ------------------
  |  Branch (86:14): [True: 116, False: 74]
  ------------------
   87|    116|      c = (lead & 0x07) << 18;
   88|    116|      c |= read_continuation() << 12;
   89|    116|      c |= read_continuation() << 6;
   90|    116|      c |= read_continuation();
   91|    116|      if(c < 0x10000) {
  ------------------
  |  Branch (91:10): [True: 7, False: 109]
  ------------------
   92|      7|         throw Decoding_Error("Overlong UTF-8 sequence");
   93|      7|      }
   94|    116|   } else {
   95|     74|      throw Decoding_Error("Invalid UTF-8 sequence");
   96|     74|   }
   97|       |
   98|  15.2k|   if(c > 0x10FFFF) {
  ------------------
  |  Branch (98:7): [True: 6, False: 15.2k]
  ------------------
   99|      6|      throw Decoding_Error("UTF-8 sequence encodes value outside Unicode range");
  100|      6|   }
  101|  15.2k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (101:7): [True: 111, False: 15.1k]
  |  Branch (101:22): [True: 9, False: 102]
  ------------------
  102|      9|      throw Decoding_Error("UTF-8 sequence encodes surrogate code point");
  103|      9|   }
  104|       |
  105|  15.2k|   return c;
  106|  15.2k|}
_ZN5Botan13is_valid_utf8ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  108|  1.95k|bool is_valid_utf8(std::string_view utf8) {
  109|  1.95k|   try {
  110|  1.95k|      size_t pos = 0;
  111|  17.2k|      while(pos < utf8.size()) {
  ------------------
  |  Branch (111:13): [True: 15.3k, False: 1.95k]
  ------------------
  112|  15.3k|         const uint32_t c = next_utf8_codepoint(utf8, pos);
  113|  15.3k|         BOTAN_UNUSED(c);
  ------------------
  |  |  144|  15.3k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  114|  15.3k|      }
  115|  1.95k|   } catch(Decoding_Error&) {
  116|    159|      return false;
  117|    159|   }
  118|  1.79k|   return true;
  119|  1.95k|}
_ZN5Botan12ucs2_to_utf8ENSt3__14spanIKhLm18446744073709551615EEE:
  121|    255|std::string ucs2_to_utf8(std::span<const uint8_t> ucs2) {
  122|    255|   if(ucs2.size() % 2 != 0) {
  ------------------
  |  Branch (122:7): [True: 3, False: 252]
  ------------------
  123|      3|      throw Decoding_Error("Invalid length for UCS-2 string");
  124|      3|   }
  125|       |
  126|    252|   const size_t chars = ucs2.size() / 2;
  127|       |
  128|    252|   std::string s;
  129|  1.22k|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (129:22): [True: 971, False: 252]
  ------------------
  130|    971|      const uint32_t c = load_be<uint16_t>(ucs2.data(), i);
  131|    971|      append_utf8_for(s, c);
  132|    971|   }
  133|       |
  134|    252|   return s;
  135|    255|}
_ZN5Botan12ucs4_to_utf8ENSt3__14spanIKhLm18446744073709551615EEE:
  155|     79|std::string ucs4_to_utf8(std::span<const uint8_t> ucs4) {
  156|     79|   if(ucs4.size() % 4 != 0) {
  ------------------
  |  Branch (156:7): [True: 4, False: 75]
  ------------------
  157|      4|      throw Decoding_Error("Invalid length for UCS-4 string");
  158|      4|   }
  159|       |
  160|     75|   const size_t chars = ucs4.size() / 4;
  161|       |
  162|     75|   std::string s;
  163|    233|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (163:22): [True: 158, False: 75]
  ------------------
  164|    158|      const uint32_t c = load_be<uint32_t>(ucs4.data(), i);
  165|    158|      append_utf8_for(s, c);
  166|    158|   }
  167|       |
  168|     75|   return s;
  169|     79|}
_ZN5Botan14latin1_to_utf8ENSt3__14spanIKhLm18446744073709551615EEE:
  190|    241|std::string latin1_to_utf8(std::span<const uint8_t> chars) {
  191|    241|   std::string s;
  192|  3.17k|   for(const uint8_t b : chars) {
  ------------------
  |  Branch (192:24): [True: 3.17k, False: 241]
  ------------------
  193|  3.17k|      append_utf8_for(s, static_cast<uint32_t>(b));
  194|  3.17k|   }
  195|    241|   return s;
  196|    241|}
_ZN5Botan21is_ascii_control_charEc:
  198|     59|bool is_ascii_control_char(char c) {
  199|     59|   const uint8_t b = static_cast<uint8_t>(c);
  200|     59|   return b < 0x20 || b == 0x7F;
  ------------------
  |  Branch (200:11): [True: 22, False: 37]
  |  Branch (200:23): [True: 0, False: 37]
  ------------------
  201|     59|}
_ZN5Botan23format_char_for_displayEc:
  243|     59|std::string format_char_for_display(char c) {
  244|     59|   std::string out;
  245|     59|   out += '\'';
  246|       |
  247|     59|   if(c == '\t') {
  ------------------
  |  Branch (247:7): [True: 0, False: 59]
  ------------------
  248|      0|      out += "\\t";
  249|     59|   } else if(c == '\n') {
  ------------------
  |  Branch (249:14): [True: 0, False: 59]
  ------------------
  250|      0|      out += "\\n";
  251|     59|   } else if(c == '\r') {
  ------------------
  |  Branch (251:14): [True: 0, False: 59]
  ------------------
  252|      0|      out += "\\r";
  253|     59|   } else if(is_ascii_control_char(c) || static_cast<uint8_t>(c) >= 0x80) {
  ------------------
  |  Branch (253:14): [True: 22, False: 37]
  |  Branch (253:42): [True: 28, False: 9]
  ------------------
  254|     50|      const auto b = static_cast<uint8_t>(c);
  255|     50|      out += "\\x";
  256|     50|      out += nibble_to_hex(b >> 4);
  257|     50|      out += nibble_to_hex(b);
  258|     50|   } else {
  259|      9|      out += c;
  260|      9|   }
  261|       |
  262|     59|   out += '\'';
  263|       |
  264|     59|   return out;
  265|     59|}
charset.cpp:_ZZN5Botan19next_utf8_codepointENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERmENK3$_0clEv:
   54|    625|   auto read_continuation = [&]() -> uint32_t {
   55|    625|      if(pos >= utf8.size()) {
  ------------------
  |  Branch (55:10): [True: 19, False: 606]
  ------------------
   56|     19|         throw Decoding_Error("Invalid UTF-8 sequence");
   57|     19|      }
   58|    606|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   59|    606|      if((b & 0xC0) != 0x80) {
  ------------------
  |  Branch (59:10): [True: 36, False: 570]
  ------------------
   60|     36|         throw Decoding_Error("Invalid UTF-8 sequence");
   61|     36|      }
   62|    570|      return b & 0x3F;
   63|    606|   };
charset.cpp:_ZN5Botan12_GLOBAL__N_115append_utf8_forERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   17|  4.30k|void append_utf8_for(std::string& s, uint32_t c) {
   18|  4.30k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (18:7): [True: 308, False: 3.99k]
  |  Branch (18:22): [True: 18, False: 290]
  ------------------
   19|     18|      throw Decoding_Error("Invalid Unicode character");
   20|     18|   }
   21|       |
   22|  4.28k|   if(c <= 0x7F) {
  ------------------
  |  Branch (22:7): [True: 2.27k, False: 2.01k]
  ------------------
   23|  2.27k|      const uint8_t b0 = static_cast<uint8_t>(c);
   24|  2.27k|      s.push_back(static_cast<char>(b0));
   25|  2.27k|   } else if(c <= 0x7FF) {
  ------------------
  |  Branch (25:14): [True: 1.19k, False: 813]
  ------------------
   26|  1.19k|      const uint8_t b0 = 0xC0 | static_cast<uint8_t>(c >> 6);
   27|  1.19k|      const uint8_t b1 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   28|  1.19k|      s.push_back(static_cast<char>(b0));
   29|  1.19k|      s.push_back(static_cast<char>(b1));
   30|  1.19k|   } else if(c <= 0xFFFF) {
  ------------------
  |  Branch (30:14): [True: 678, False: 135]
  ------------------
   31|    678|      const uint8_t b0 = 0xE0 | static_cast<uint8_t>(c >> 12);
   32|    678|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   33|    678|      const uint8_t b2 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   34|    678|      s.push_back(static_cast<char>(b0));
   35|    678|      s.push_back(static_cast<char>(b1));
   36|    678|      s.push_back(static_cast<char>(b2));
   37|    678|   } else if(c <= 0x10FFFF) {
  ------------------
  |  Branch (37:14): [True: 82, False: 53]
  ------------------
   38|     82|      const uint8_t b0 = 0xF0 | static_cast<uint8_t>(c >> 18);
   39|     82|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 12) & 0x3F);
   40|     82|      const uint8_t b2 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   41|     82|      const uint8_t b3 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   42|     82|      s.push_back(static_cast<char>(b0));
   43|     82|      s.push_back(static_cast<char>(b1));
   44|     82|      s.push_back(static_cast<char>(b2));
   45|     82|      s.push_back(static_cast<char>(b3));
   46|     82|   } else {
   47|     53|      throw Decoding_Error("Invalid Unicode character");
   48|     53|   }
   49|  4.28k|}

_ZN5Botan10DataSource9read_byteERh:
   27|  2.27M|size_t DataSource::read_byte(uint8_t& out) {
   28|  2.27M|   return read(&out, 1);
   29|  2.27M|}
_ZN5Botan10DataSource9read_byteEv:
   34|   263k|std::optional<uint8_t> DataSource::read_byte() {
   35|   263k|   uint8_t b = 0;
   36|   263k|   if(this->read(&b, 1) == 1) {
  ------------------
  |  Branch (36:7): [True: 263k, False: 475]
  ------------------
   37|   263k|      return b;
   38|   263k|   } else {
   39|    475|      return {};
   40|    475|   }
   41|   263k|}
_ZNK5Botan10DataSource9peek_byteERh:
   46|  4.00k|size_t DataSource::peek_byte(uint8_t& out) const {
   47|  4.00k|   return peek(&out, 1, 0);
   48|  4.00k|}
_ZN5Botan17DataSource_Memory4readEPhm:
   73|   246k|size_t DataSource_Memory::read(uint8_t out[], size_t length) {
   74|   246k|   const size_t got = std::min<size_t>(m_source.size() - m_offset, length);
   75|   246k|   copy_mem(out, m_source.data() + m_offset, got);
   76|   246k|   m_offset += got;
   77|   246k|   return got;
   78|   246k|}
_ZN5Botan17DataSource_Memory15check_availableEm:
   80|  37.9k|bool DataSource_Memory::check_available(size_t n) {
   81|  37.9k|   return (n <= (m_source.size() - m_offset));
   82|  37.9k|}
_ZNK5Botan17DataSource_Memory4peekEPhmm:
   87|  7.64k|size_t DataSource_Memory::peek(uint8_t out[], size_t length, size_t peek_offset) const {
   88|  7.64k|   const size_t bytes_left = m_source.size() - m_offset;
   89|  7.64k|   if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (89:7): [True: 0, False: 7.64k]
  ------------------
   90|      0|      return 0;
   91|      0|   }
   92|       |
   93|  7.64k|   const size_t got = std::min(bytes_left - peek_offset, length);
   94|  7.64k|   copy_mem(out, &m_source[m_offset + peek_offset], got);
   95|  7.64k|   return got;
   96|  7.64k|}
_ZNK5Botan17DataSource_Memory11end_of_dataEv:
  101|  18.3k|bool DataSource_Memory::end_of_data() const {
  102|  18.3k|   return (m_offset == m_source.size());
  103|  18.3k|}

_ZN5Botan7DNSName11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  136|  1.31k|std::optional<DNSName> DNSName::from_string(std::string_view name) {
  137|  1.31k|   if(auto canon = check_and_canonicalize_dns_name(name)) {
  ------------------
  |  Branch (137:12): [True: 1.17k, False: 131]
  ------------------
  138|       |      // TODO(C++23) std::string::contains
  139|  1.17k|      if(canon->find('*') != std::string::npos) {
  ------------------
  |  Branch (139:10): [True: 10, False: 1.16k]
  ------------------
  140|     10|         return {};
  141|     10|      }
  142|  1.16k|      return DNSName(std::move(*canon));
  143|  1.17k|   } else {
  144|    131|      return {};
  145|    131|   }
  146|  1.31k|}
_ZN5Botan7DNSName15from_san_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  149|    697|std::optional<DNSName> DNSName::from_san_string(std::string_view name) {
  150|    697|   if(auto canon = check_and_canonicalize_dns_name(name)) {
  ------------------
  |  Branch (150:12): [True: 666, False: 31]
  ------------------
  151|       |      /*
  152|       |      Validate the wildcard shape: at most one "*", and if present it must be in
  153|       |      the leftmost label (no "." before it). This matches the RFC 6125 6.4.3
  154|       |      form that host_wildcard_match accepts and rejects eg "*.*.example.com" or
  155|       |      "foo.*.example.com"
  156|       |      */
  157|    666|      const auto first_star = canon->find('*');
  158|    666|      if(first_star != std::string::npos) {
  ------------------
  |  Branch (158:10): [True: 51, False: 615]
  ------------------
  159|     51|         if(canon->find('*', first_star + 1) != std::string::npos) {
  ------------------
  |  Branch (159:13): [True: 8, False: 43]
  ------------------
  160|      8|            return std::nullopt;
  161|      8|         }
  162|     43|         const auto first_dot = canon->find('.');
  163|     43|         if(first_dot != std::string::npos && first_dot < first_star) {
  ------------------
  |  Branch (163:13): [True: 30, False: 13]
  |  Branch (163:47): [True: 9, False: 21]
  ------------------
  164|      9|            return std::nullopt;
  165|      9|         }
  166|       |         /*
  167|       |         RFC 6125 6.4.3: "the client SHOULD NOT attempt to match a presented
  168|       |         identifier where the wildcard character is embedded within an
  169|       |         A-label or U-label"
  170|       |         */
  171|     34|         if(canon->starts_with("xn--")) {
  ------------------
  |  Branch (171:13): [True: 3, False: 31]
  ------------------
  172|      3|            return std::nullopt;
  173|      3|         }
  174|       |         // A wildcard match requires at least three labels, so shorter
  175|       |         // patterns ("*", "*.com") could never match any host
  176|     31|         if(std::count(canon->begin(), canon->end(), '.') < 2) {
  ------------------
  |  Branch (176:13): [True: 18, False: 13]
  ------------------
  177|     18|            return std::nullopt;
  178|     18|         }
  179|     31|      }
  180|    628|      return DNSName(std::move(*canon));
  181|    666|   } else {
  182|     31|      return {};
  183|     31|   }
  184|    697|}
dns_name.cpp:_ZN5Botan12_GLOBAL__N_131check_and_canonicalize_dns_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   23|  2.00k|std::optional<std::string> check_and_canonicalize_dns_name(std::string_view name) {
   24|       |   /*
   25|       |   * RFC 1035 limits names to "255 octets or less", but that is in the wire
   26|       |   * encoding, which includes a length octet per label plus the root label.
   27|       |   * In presentation form (without a trailing dot) the limit is 253.
   28|       |   */
   29|  2.00k|   if(name.size() > 253) {
  ------------------
  |  Branch (29:7): [True: 0, False: 2.00k]
  ------------------
   30|      0|      return {};
   31|      0|   }
   32|       |
   33|       |   // DNS names are not empty
   34|  2.00k|   if(name.empty()) {
  ------------------
  |  Branch (34:7): [True: 0, False: 2.00k]
  ------------------
   35|      0|      return {};
   36|      0|   }
   37|       |
   38|       |   // DNS names do not start with or end with a dot
   39|  2.00k|   if(name.starts_with(".") || name.ends_with(".")) {
  ------------------
  |  Branch (39:7): [True: 8, False: 1.99k]
  |  Branch (39:32): [True: 6, False: 1.99k]
  ------------------
   40|     14|      return {};
   41|     14|   }
   42|       |
   43|       |   /*
   44|       |   * Table mapping uppercase to lowercase and only including values valid for
   45|       |   * DNS names: A-Z, a-z, 0-9, '-', '.', plus '*' for wildcarding (RFC 1035)
   46|       |   */
   47|       |   // clang-format off
   48|  1.99k|   constexpr uint8_t DNS_CHAR_MAPPING[128] = {
   49|  1.99k|      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
   50|  1.99k|      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
   51|  1.99k|      '\0', '\0', '\0', '\0',  '*', '\0', '\0',  '-',  '.', '\0',  '0',  '1',  '2',  '3',  '4',  '5',  '6',  '7',  '8',
   52|  1.99k|       '9', '\0', '\0', '\0', '\0', '\0', '\0', '\0',  'a',  'b',  'c',  'd',  'e',  'f',  'g',  'h',  'i',  'j',  'k',
   53|  1.99k|       'l',  'm',  'n',  'o',  'p',  'q',  'r',  's',  't',  'u',  'v',  'w',  'x',  'y',  'z', '\0', '\0', '\0', '\0',
   54|  1.99k|       '\0', '\0',  'a',  'b',  'c',  'd',  'e',  'f',  'g',  'h',  'i',  'j',  'k',  'l',  'm',  'n',  'o',  'p',  'q',
   55|  1.99k|       'r',  's',  't',  'u',  'v',  'w',  'x',  'y',  'z', '\0', '\0', '\0', '\0', '\0',
   56|  1.99k|   };
   57|       |   // clang-format on
   58|       |
   59|  1.99k|   std::string canon;
   60|  1.99k|   canon.reserve(name.size());
   61|       |
   62|       |   // RFC 1035: DNS labels must not exceed 63 characters
   63|  1.99k|   size_t current_label_length = 0;
   64|       |
   65|       |   // Tracks if the name consists only of digits and dots
   66|  1.99k|   bool all_numeric = true;
   67|       |
   68|  14.9k|   for(size_t i = 0; i != name.size(); ++i) {
  ------------------
  |  Branch (68:22): [True: 13.0k, False: 1.86k]
  ------------------
   69|  13.0k|      const char c = name[i];
   70|       |
   71|  13.0k|      if(c == '.') {
  ------------------
  |  Branch (71:10): [True: 241, False: 12.8k]
  ------------------
   72|       |         // Sequential dot (.) characters are not allowed
   73|    241|         if(i > 0 && name[i - 1] == '.') {
  ------------------
  |  Branch (73:13): [True: 241, False: 0]
  |  Branch (73:22): [True: 4, False: 237]
  ------------------
   74|      4|            return {};
   75|      4|         }
   76|       |
   77|       |         // Empty labels are not allowed
   78|    237|         if(current_label_length == 0) {
  ------------------
  |  Branch (78:13): [True: 0, False: 237]
  ------------------
   79|      0|            return {};
   80|      0|         }
   81|    237|         current_label_length = 0;  // Reset for next label
   82|  12.8k|      } else {
   83|  12.8k|         current_label_length++;
   84|       |
   85|       |         // Labels cannot exceed maximum DNS label length
   86|  12.8k|         if(current_label_length > 63) {
  ------------------
  |  Branch (86:13): [True: 5, False: 12.8k]
  ------------------
   87|      5|            return {};
   88|      5|         }
   89|  12.8k|      }
   90|       |
   91|  13.0k|      const uint8_t cu = static_cast<uint8_t>(c);
   92|       |      // DNS names are not allowed to include any high-bit set characters
   93|  13.0k|      if(cu >= 128) {
  ------------------
  |  Branch (93:10): [True: 42, False: 13.0k]
  ------------------
   94|     42|         return {};
   95|     42|      }
   96|  13.0k|      const uint8_t mapped = DNS_CHAR_MAPPING[cu];
   97|       |      // DNS names are from a restricted character set
   98|  13.0k|      if(mapped == 0) {
  ------------------
  |  Branch (98:10): [True: 64, False: 12.9k]
  ------------------
   99|     64|         return {};
  100|     64|      }
  101|       |
  102|  12.9k|      if(mapped != '.' && (mapped < '0' || mapped > '9')) {
  ------------------
  |  Branch (102:10): [True: 12.7k, False: 237]
  |  Branch (102:28): [True: 417, False: 12.3k]
  |  Branch (102:44): [True: 7.23k, False: 5.08k]
  ------------------
  103|  7.65k|         all_numeric = false;
  104|  7.65k|      }
  105|       |
  106|  12.9k|      if(mapped == '-') {
  ------------------
  |  Branch (106:10): [True: 344, False: 12.6k]
  ------------------
  107|       |         // DNS labels are not allowed to include a leading or trailing hyphen
  108|    344|         if(i == 0 || (i > 0 && name[i - 1] == '.')) {
  ------------------
  |  Branch (108:13): [True: 3, False: 341]
  |  Branch (108:24): [True: 341, False: 0]
  |  Branch (108:33): [True: 3, False: 338]
  ------------------
  109|      6|            return {};  // leading hyphen
  110|      6|         }
  111|       |
  112|    338|         if(i == name.size() - 1 || (i < name.size() - 1 && name[i + 1] == '.')) {
  ------------------
  |  Branch (112:13): [True: 5, False: 333]
  |  Branch (112:38): [True: 333, False: 0]
  |  Branch (112:61): [True: 3, False: 330]
  ------------------
  113|      8|            return {};  // trailing hyphen
  114|      8|         }
  115|    338|      }
  116|  12.9k|      canon.push_back(static_cast<char>(mapped));
  117|  12.9k|   }
  118|       |
  119|       |   // This should never be hit, due to earlier validation steps
  120|  1.86k|   if(current_label_length == 0) {
  ------------------
  |  Branch (120:7): [True: 0, False: 1.86k]
  ------------------
  121|      0|      return {};
  122|      0|   }
  123|       |
  124|       |   // An entirely numeric name ("1.2.3.4") is either a misplaced IP address
  125|       |   // or an attempt at confusing some other system; reject outright
  126|  1.86k|   if(all_numeric) {
  ------------------
  |  Branch (126:7): [True: 19, False: 1.84k]
  ------------------
  127|     19|      return {};
  128|     19|   }
  129|       |
  130|  1.84k|   return canon;
  131|  1.86k|}

_ZN5Botan12EmailAddress11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   78|    669|std::optional<EmailAddress> EmailAddress::from_string(std::string_view addr) {
   79|    669|   auto parsed = parse_email_address(addr);
   80|       |
   81|    669|   if(parsed) {
  ------------------
  |  Branch (81:7): [True: 484, False: 185]
  ------------------
   82|       |      // Verify the local-part is all ASCII
   83|  1.80k|      for(const char c : parsed->first) {
  ------------------
  |  Branch (83:24): [True: 1.80k, False: 479]
  ------------------
   84|  1.80k|         if(static_cast<uint8_t>(c) >= 0x80) {
  ------------------
  |  Branch (84:13): [True: 5, False: 1.80k]
  ------------------
   85|      5|            return {};
   86|      5|         }
   87|  1.80k|      }
   88|    479|      return EmailAddress(std::move(parsed->first), std::move(parsed->second));
   89|    484|   } else {
   90|    185|      return {};
   91|    185|   }
   92|    669|}
email.cpp:_ZN5Botan12_GLOBAL__N_119parse_email_addressENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   16|    669|std::optional<std::pair<std::string, DNSName>> parse_email_address(std::string_view addr) {
   17|       |   /*
   18|       |   * RFC 5322 atext: ALPHA / DIGIT plus "!#$%&'*+-/=?^_`{|}~" (plus ".")
   19|       |   *
   20|       |   * Anything outside this set in the local part requires quoting,
   21|       |   * which we deliberately don't accept.
   22|       |   */
   23|    669|   constexpr auto is_atext_or_dot = CharacterValidityTable::alpha_numeric_plus(".!#$%&'*+-/=?^_`{|}~");
   24|       |
   25|    669|   if(addr.empty() || !is_valid_utf8(addr)) {
  ------------------
  |  Branch (25:7): [True: 0, False: 669]
  |  Branch (25:23): [True: 82, False: 587]
  ------------------
   26|     82|      return {};
   27|     82|   }
   28|       |
   29|    587|   const auto at = addr.find('@');
   30|       |
   31|       |   // Must be one (and only one) @ sign
   32|    587|   if(at == std::string_view::npos || addr.find('@', at + 1) != std::string_view::npos) {
  ------------------
  |  Branch (32:7): [True: 19, False: 568]
  |  Branch (32:39): [True: 8, False: 560]
  ------------------
   33|     27|      return {};
   34|     27|   }
   35|       |
   36|       |   // Split at the @ sign and verify both halves are non-empty
   37|    560|   const std::string_view local = addr.substr(0, at);
   38|    560|   const std::string_view domain = addr.substr(at + 1);
   39|       |
   40|    560|   if(local.empty() || domain.empty()) {
  ------------------
  |  Branch (40:7): [True: 5, False: 555]
  |  Branch (40:24): [True: 3, False: 552]
  ------------------
   41|      8|      return {};
   42|      8|   }
   43|       |
   44|       |   // RFC 3696 section 3:
   45|       |   //
   46|       |   //  period (".") may also appear [in an email address local-part],
   47|       |   //  but may not be used to start or end the local part, nor may two
   48|       |   //  or more consecutive periods appear.
   49|       |
   50|       |   // TODO(C++23): use std::string::contains
   51|    552|   if(local.starts_with('.') || local.ends_with('.') || local.find("..") != std::string_view::npos) {
  ------------------
  |  Branch (51:7): [True: 3, False: 549]
  |  Branch (51:33): [True: 7, False: 542]
  |  Branch (51:57): [True: 10, False: 532]
  ------------------
   52|     20|      return {};
   53|     20|   }
   54|       |
   55|       |   // RFC 5322 dot-atom. This intentionally omits support for quoting
   56|  2.55k|   for(const char c : local) {
  ------------------
  |  Branch (56:21): [True: 2.55k, False: 504]
  ------------------
   57|       |      // Here we accept high bit for UTF-8 for SmtpUtf8Mailbox
   58|  2.55k|      if(!is_atext_or_dot(c) && static_cast<uint8_t>(c) < 0x80) {
  ------------------
  |  Branch (58:10): [True: 64, False: 2.49k]
  |  Branch (58:33): [True: 28, False: 36]
  ------------------
   59|     28|         return {};
   60|     28|      }
   61|  2.55k|   }
   62|       |
   63|    504|   auto parsed_domain = DNSName::from_string(domain);
   64|    504|   if(!parsed_domain.has_value()) {
  ------------------
  |  Branch (64:7): [True: 20, False: 484]
  ------------------
   65|     20|      return {};
   66|     20|   }
   67|       |
   68|    484|   return std::make_pair(std::string(local), parsed_domain.value());
   69|    504|}

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  9.05k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  3.85k|Exception::Exception(std::string_view msg, const std::exception& e) : m_msg(fmt("{} failed with {}", msg, e.what())) {}
_ZN5Botan9ExceptionC2EPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   75|      4|Exception::Exception(const char* prefix, std::string_view msg) : m_msg(fmt("{} {}", prefix, msg)) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|    475|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Encoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  123|      4|Encoding_Error::Encoding_Error(std::string_view name) : Exception("Encoding error:", name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  8.57k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  3.85k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan11IPv4Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   90|    878|std::optional<IPv4Address> IPv4Address::from_string(std::string_view str) {
   91|    878|   if(auto ipv4 = string_to_ipv4(str)) {
  ------------------
  |  Branch (91:12): [True: 64, False: 814]
  ------------------
   92|     64|      return IPv4Address(*ipv4);
   93|    814|   } else {
   94|    814|      return {};
   95|    814|   }
   96|    878|}
ipv4_address.cpp:_ZN5Botan12_GLOBAL__N_114string_to_ipv4ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   21|    878|std::optional<uint32_t> string_to_ipv4(std::string_view str) {
   22|       |   // At least 3 dots + 4 1-digit integers
   23|       |   // At most 3 dots + 4 3-digit integers
   24|    878|   if(str.size() < 3 + 4 * 1 || str.size() > 3 + 4 * 3) {
  ------------------
  |  Branch (24:7): [True: 518, False: 360]
  |  Branch (24:33): [True: 124, False: 236]
  ------------------
   25|    642|      return {};
   26|    642|   }
   27|       |
   28|       |   // the final result
   29|    236|   uint32_t ip = 0;
   30|       |   // the number of '.' seen so far
   31|    236|   size_t dots = 0;
   32|       |   // accumulates one quad (range 0-255)
   33|    236|   uint32_t accum = 0;
   34|       |   // # of digits pushed to accum since last dot
   35|    236|   size_t cur_digits = 0;
   36|       |
   37|  1.08k|   for(const char c : str) {
  ------------------
  |  Branch (37:21): [True: 1.08k, False: 68]
  ------------------
   38|  1.08k|      if(c == '.') {
  ------------------
  |  Branch (38:10): [True: 247, False: 840]
  ------------------
   39|       |         // . without preceding digit is invalid
   40|    247|         if(cur_digits == 0) {
  ------------------
  |  Branch (40:13): [True: 5, False: 242]
  ------------------
   41|      5|            return {};
   42|      5|         }
   43|    242|         dots += 1;
   44|       |         // too many dots
   45|    242|         if(dots > 3) {
  ------------------
  |  Branch (45:13): [True: 3, False: 239]
  ------------------
   46|      3|            return {};
   47|      3|         }
   48|       |
   49|    239|         cur_digits = 0;
   50|    239|         ip = (ip << 8) | accum;
   51|    239|         accum = 0;
   52|    840|      } else if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (52:17): [True: 818, False: 22]
  |  Branch (52:29): [True: 740, False: 78]
  ------------------
   53|    740|         const auto d = static_cast<uint8_t>(c - '0');
   54|       |
   55|       |         // prohibit leading zero in quad (used for octal)
   56|    740|         if(cur_digits > 0 && accum == 0) {
  ------------------
  |  Branch (56:13): [True: 345, False: 395]
  |  Branch (56:31): [True: 11, False: 334]
  ------------------
   57|     11|            return {};
   58|     11|         }
   59|    729|         accum = (accum * 10) + d;
   60|       |
   61|    729|         if(accum > 255) {
  ------------------
  |  Branch (61:13): [True: 49, False: 680]
  ------------------
   62|     49|            return {};
   63|     49|         }
   64|       |
   65|    680|         cur_digits++;
   66|    680|         BOTAN_ASSERT_NOMSG(cur_digits <= 3);
  ------------------
  |  |   77|    680|   do {                                                                     \
  |  |   78|    680|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    680|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 680]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    680|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 680]
  |  |  ------------------
  ------------------
   67|    680|      } else {
   68|    100|         return {};
   69|    100|      }
   70|  1.08k|   }
   71|       |
   72|       |   // no trailing digits?
   73|     68|   if(cur_digits == 0) {
  ------------------
  |  Branch (73:7): [True: 0, False: 68]
  ------------------
   74|      0|      return {};
   75|      0|   }
   76|       |
   77|       |   // insufficient # of dots
   78|     68|   if(dots != 3) {
  ------------------
  |  Branch (78:7): [True: 4, False: 64]
  ------------------
   79|      4|      return {};
   80|      4|   }
   81|       |
   82|     64|   ip = (ip << 8) | accum;
   83|       |
   84|     64|   return ip;
   85|     68|}

_ZN5Botan11IPv6AddressC2ENSt3__14spanIKhLm16EEE:
   17|    135|IPv6Address::IPv6Address(std::span<const uint8_t, 16> ip) : m_ip{} {
   18|  2.29k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (18:22): [True: 2.16k, False: 135]
  ------------------
   19|  2.16k|      m_ip[i] = ip[i];
   20|  2.16k|   }
   21|    135|}
_ZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   24|    124|std::optional<IPv6Address> IPv6Address::from_string(std::string_view str) {
   25|    124|   if(str.empty()) {
  ------------------
  |  Branch (25:7): [True: 0, False: 124]
  ------------------
   26|      0|      return {};
   27|      0|   }
   28|       |
   29|       |   // Parsed hex groups, split by whether they appeared before or after a "::".
   30|       |   // If no "::" appears, only `pre` is populated and must reach exactly 8 groups.
   31|    124|   std::array<uint16_t, 8> pre{};
   32|    124|   std::array<uint16_t, 8> post{};
   33|    124|   size_t pre_count = 0;
   34|    124|   size_t post_count = 0;
   35|    124|   bool seen_double_colon = false;
   36|       |
   37|    124|   auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|    124|      if(c >= '0' && c <= '9') {
   39|    124|         return c - '0';
   40|    124|      } else if(c >= 'a' && c <= 'f') {
   41|    124|         return 10 + (c - 'a');
   42|    124|      } else if(c >= 'A' && c <= 'F') {
   43|    124|         return 10 + (c - 'A');
   44|    124|      } else {
   45|    124|         return {};
   46|    124|      }
   47|    124|   };
   48|       |
   49|    124|   size_t idx = 0;
   50|    124|   bool expect_group = true;  // set after any separator, cleared after a group
   51|       |
   52|    994|   while(idx < str.size()) {
  ------------------
  |  Branch (52:10): [True: 958, False: 36]
  ------------------
   53|    958|      if(str[idx] == ':') {
  ------------------
  |  Branch (53:10): [True: 411, False: 547]
  ------------------
   54|    411|         if(idx + 1 < str.size() && str[idx + 1] == ':') {
  ------------------
  |  Branch (54:13): [True: 405, False: 6]
  |  Branch (54:37): [True: 54, False: 351]
  ------------------
   55|     54|            if(seen_double_colon) {
  ------------------
  |  Branch (55:16): [True: 3, False: 51]
  ------------------
   56|      3|               return {};  // at most one "::"
   57|      3|            }
   58|     51|            seen_double_colon = true;
   59|     51|            idx += 2;
   60|     51|            expect_group = (idx < str.size());
   61|     51|            continue;
   62|     54|         }
   63|       |         // single ':' separator between groups, only valid after a group
   64|    357|         if(expect_group) {
  ------------------
  |  Branch (64:13): [True: 3, False: 354]
  ------------------
   65|      3|            return {};
   66|      3|         }
   67|    354|         expect_group = true;
   68|    354|         idx += 1;
   69|    354|         continue;
   70|    357|      }
   71|       |
   72|       |      // Parse a hex group of 1..4 digits
   73|    547|      const size_t group_start = idx;
   74|    547|      uint32_t group = 0;
   75|    547|      size_t hex_chars = 0;
   76|  1.77k|      while(idx < str.size() && hex_chars < 4) {
  ------------------
  |  Branch (76:13): [True: 1.74k, False: 31]
  |  Branch (76:33): [True: 1.62k, False: 114]
  ------------------
   77|  1.62k|         const auto digit = hex_value(str[idx]);
   78|  1.62k|         if(digit.has_value() == false) {
  ------------------
  |  Branch (78:13): [True: 402, False: 1.22k]
  ------------------
   79|    402|            break;
   80|    402|         }
   81|  1.22k|         group = (group << 4) | static_cast<uint32_t>(digit.value());
   82|  1.22k|         idx += 1;
   83|  1.22k|         hex_chars += 1;
   84|  1.22k|      }
   85|    547|      if(hex_chars == 0) {
  ------------------
  |  Branch (85:10): [True: 46, False: 501]
  ------------------
   86|     46|         return {};
   87|     46|      }
   88|       |      // If a 5th hex digit follows, the group is oversized.
   89|    501|      if(hex_chars == 4 && idx < str.size() && hex_value(str[idx]).has_value()) {
  ------------------
  |  Branch (89:10): [True: 119, False: 382]
  |  Branch (89:10): [True: 19, False: 482]
  |  Branch (89:28): [True: 114, False: 5]
  |  Branch (89:48): [True: 19, False: 95]
  ------------------
   90|     19|         return {};
   91|     19|      }
   92|       |
   93|       |      /*
   94|       |      RFC 4291 2.2 allows the final 32 bits in dotted decimal, eg
   95|       |      "::ffff:1.2.3.4". The dotted quad must consume the remainder of the
   96|       |      input, and accounts for two 16-bit groups.
   97|       |      */
   98|    482|      if(idx < str.size() && str[idx] == '.') {
  ------------------
  |  Branch (98:10): [True: 451, False: 31]
  |  Branch (98:30): [True: 8, False: 443]
  ------------------
   99|      8|         const auto ipv4 = IPv4Address::from_string(str.substr(group_start));
  100|      8|         if(!ipv4.has_value()) {
  ------------------
  |  Branch (100:13): [True: 8, False: 0]
  ------------------
  101|      8|            return {};
  102|      8|         }
  103|      0|         const uint32_t v4 = ipv4->address();
  104|      0|         const std::array<uint16_t, 2> v4_groups{static_cast<uint16_t>(v4 >> 16), static_cast<uint16_t>(v4 & 0xFFFF)};
  105|      0|         for(const auto g : v4_groups) {
  ------------------
  |  Branch (105:27): [True: 0, False: 0]
  ------------------
  106|      0|            if(seen_double_colon) {
  ------------------
  |  Branch (106:16): [True: 0, False: 0]
  ------------------
  107|      0|               if(post_count >= 8) {
  ------------------
  |  Branch (107:19): [True: 0, False: 0]
  ------------------
  108|      0|                  return {};
  109|      0|               }
  110|      0|               post[post_count++] = g;
  111|      0|            } else {
  112|      0|               if(pre_count >= 8) {
  ------------------
  |  Branch (112:19): [True: 0, False: 0]
  ------------------
  113|      0|                  return {};
  114|      0|               }
  115|      0|               pre[pre_count++] = g;
  116|      0|            }
  117|      0|         }
  118|      0|         idx = str.size();
  119|      0|         expect_group = false;
  120|      0|         continue;
  121|      0|      }
  122|       |
  123|    474|      if(seen_double_colon) {
  ------------------
  |  Branch (123:10): [True: 166, False: 308]
  ------------------
  124|    166|         if(post_count >= 8) {
  ------------------
  |  Branch (124:13): [True: 4, False: 162]
  ------------------
  125|      4|            return {};
  126|      4|         }
  127|    162|         post[post_count++] = static_cast<uint16_t>(group);
  128|    308|      } else {
  129|    308|         if(pre_count >= 8) {
  ------------------
  |  Branch (129:13): [True: 5, False: 303]
  ------------------
  130|      5|            return {};
  131|      5|         }
  132|    303|         pre[pre_count++] = static_cast<uint16_t>(group);
  133|    303|      }
  134|    465|      expect_group = false;
  135|    465|   }
  136|       |
  137|       |   // Trailing single ':' is invalid
  138|     36|   if(expect_group) {
  ------------------
  |  Branch (138:7): [True: 4, False: 32]
  ------------------
  139|      4|      return {};
  140|      4|   }
  141|       |
  142|     32|   const size_t total_groups = pre_count + post_count;
  143|     32|   if(seen_double_colon) {
  ------------------
  |  Branch (143:7): [True: 22, False: 10]
  ------------------
  144|       |      // "::" has to cover at least one zero group
  145|     22|      if(total_groups > 7) {
  ------------------
  |  Branch (145:10): [True: 3, False: 19]
  ------------------
  146|      3|         return {};
  147|      3|      }
  148|     22|   } else {
  149|     10|      if(total_groups != 8) {
  ------------------
  |  Branch (149:10): [True: 6, False: 4]
  ------------------
  150|      6|         return {};
  151|      6|      }
  152|     10|   }
  153|       |
  154|     23|   std::array<uint8_t, 16> out{};
  155|     79|   for(size_t i = 0; i != pre_count; ++i) {
  ------------------
  |  Branch (155:22): [True: 56, False: 23]
  ------------------
  156|     56|      out[2 * i] = get_byte<0>(pre[i]);
  157|     56|      out[2 * i + 1] = get_byte<1>(pre[i]);
  158|     56|   }
  159|     23|   const size_t gap = 8 - total_groups;
  160|     69|   for(size_t i = 0; i != post_count; ++i) {
  ------------------
  |  Branch (160:22): [True: 46, False: 23]
  ------------------
  161|     46|      const size_t target = pre_count + gap + i;
  162|     46|      out[2 * target] = get_byte<0>(post[i]);
  163|     46|      out[2 * target + 1] = get_byte<1>(post[i]);
  164|     46|   }
  165|     23|   return IPv6Address(out);
  166|     32|}
ipv6_address.cpp:_ZZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEENK3$_0clEc:
   37|  1.74k|   auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|  1.74k|      if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (38:10): [True: 1.67k, False: 65]
  |  Branch (38:22): [True: 356, False: 1.32k]
  ------------------
   39|    356|         return c - '0';
   40|  1.38k|      } else if(c >= 'a' && c <= 'f') {
  ------------------
  |  Branch (40:17): [True: 472, False: 915]
  |  Branch (40:29): [True: 452, False: 20]
  ------------------
   41|    452|         return 10 + (c - 'a');
   42|    935|      } else if(c >= 'A' && c <= 'F') {
  ------------------
  |  Branch (42:17): [True: 469, False: 466]
  |  Branch (42:29): [True: 438, False: 31]
  ------------------
   43|    438|         return 10 + (c - 'A');
   44|    497|      } else {
   45|    497|         return {};
   46|    497|      }
   47|  1.74k|   };

_ZN5Botan19secure_scrub_memoryEPvm:
   25|   349k|void secure_scrub_memory(void* ptr, size_t n) {
   26|   349k|   return secure_zeroize_buffer(ptr, n);
   27|   349k|}
_ZN5Botan21secure_zeroize_bufferEPvm:
   29|   349k|void secure_zeroize_buffer(void* ptr, size_t n) {
   30|   349k|   if(n == 0) {
  ------------------
  |  Branch (30:7): [True: 176k, False: 172k]
  ------------------
   31|   176k|      return;
   32|   176k|   }
   33|       |
   34|       |#if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY)
   35|       |   ::RtlSecureZeroMemory(ptr, n);
   36|       |
   37|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_BZERO)
   38|   172k|   ::explicit_bzero(ptr, n);
   39|       |
   40|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_MEMSET)
   41|       |   (void)::explicit_memset(ptr, 0, n);
   42|       |
   43|       |#else
   44|       |   /*
   45|       |   * Call memset through a static volatile pointer, which the compiler should
   46|       |   * not elide. This construct should be safe in conforming compilers, but who
   47|       |   * knows. This has been checked to generate the expected code, which saves the
   48|       |   * memset address in the data segment and unconditionally loads and jumps to
   49|       |   * that address, with the following targets:
   50|       |   *
   51|       |   * x86-64: Clang 19, GCC 6, 11, 13, 14
   52|       |   * riscv64: GCC 14
   53|       |   * aarch64: GCC 14
   54|       |   * armv7: GCC 14
   55|       |   *
   56|       |   * Actually all of them generated the expected jump even without marking the
   57|       |   * function pointer as volatile. However this seems worth including as an
   58|       |   * additional precaution.
   59|       |   */
   60|       |   static void* (*const volatile memset_ptr)(void*, int, size_t) = std::memset;
   61|       |   (memset_ptr)(ptr, 0, n);
   62|       |#endif
   63|   172k|}

_ZN5Botan9parse_u16ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   60|     90|std::optional<uint16_t> parse_u16(std::string_view input, bool require_canonical) {
   61|     90|   return parse_decimal_integer<uint16_t>(input, require_canonical);
   62|     90|}
_ZN5Botan9parse_u32ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   64|  69.5k|std::optional<uint32_t> parse_u32(std::string_view input, bool require_canonical) {
   65|  69.5k|   return parse_decimal_integer<uint32_t>(input, require_canonical);
   66|  69.5k|}
_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   76|  69.5k|uint32_t to_u32bit(std::string_view input) {
   77|  69.5k|   if(const auto parsed = parse_u32(input)) {
  ------------------
  |  Branch (77:18): [True: 69.4k, False: 30]
  ------------------
   78|  69.4k|      return *parsed;
   79|  69.4k|   } else {
   80|     30|      throw Invalid_Argument(fmt("Failed to parse input '{}' as a 32-bit integer", input));
   81|     30|   }
   82|  69.5k|}
_ZN5Botan14tolower_stringENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  183|  1.97k|std::string tolower_string(std::string_view str) {
  184|       |   // Locale-independent ASCII fold; the only callers (DNS name canonicalization
  185|       |   // for SAN/name-constraints) work on ASCII strings per RFC 1035.
  186|  1.97k|   std::string lower(str);
  187|  5.33k|   for(char& c : lower) {
  ------------------
  |  Branch (187:16): [True: 5.33k, False: 1.97k]
  ------------------
  188|  5.33k|      if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (188:10): [True: 4.97k, False: 360]
  |  Branch (188:22): [True: 4.57k, False: 408]
  ------------------
  189|  4.57k|         c = static_cast<char>(c + ('a' - 'A'));
  190|  4.57k|      }
  191|  5.33k|   }
  192|  1.97k|   return lower;
  193|  1.97k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEtEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   32|     90|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   33|     90|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (33:7): [True: 0, False: 90]
  |  Branch (33:24): [True: 4, False: 86]
  ------------------
   34|      4|      return {};
   35|      4|   }
   36|       |
   37|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   38|     86|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (38:7): [True: 86, False: 0]
  |  Branch (38:28): [True: 57, False: 29]
  |  Branch (38:48): [True: 3, False: 54]
  ------------------
   39|      3|      return {};
   40|      3|   }
   41|       |
   42|     83|   T accum = 0;
   43|       |
   44|    190|   for(const char c : input) {
  ------------------
  |  Branch (44:21): [True: 190, False: 55]
  ------------------
   45|    190|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (45:21): [True: 166, False: 24]
  ------------------
   46|    166|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (46:13): [True: 4, False: 162]
  ------------------
   47|      4|            return {};
   48|      4|         }
   49|    162|         accum = accum * 10 + static_cast<T>(*digit);
   50|    162|      } else {
   51|     24|         return {};
   52|     24|      }
   53|    190|   }
   54|       |
   55|     55|   return accum;
   56|     83|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_116digit_from_asciiEc:
   23|   140k|std::optional<size_t> digit_from_ascii(char c) {
   24|   140k|   if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (24:7): [True: 140k, False: 37]
  |  Branch (24:19): [True: 140k, False: 17]
  ------------------
   25|   140k|      return c - '0';
   26|   140k|   } else {
   27|     54|      return {};
   28|     54|   }
   29|   140k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEjEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   32|  69.5k|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   33|  69.5k|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (33:7): [True: 0, False: 69.5k]
  |  Branch (33:24): [True: 0, False: 69.5k]
  ------------------
   34|      0|      return {};
   35|      0|   }
   36|       |
   37|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   38|  69.5k|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (38:7): [True: 0, False: 69.5k]
  |  Branch (38:28): [True: 0, False: 0]
  |  Branch (38:48): [True: 0, False: 0]
  ------------------
   39|      0|      return {};
   40|      0|   }
   41|       |
   42|  69.5k|   T accum = 0;
   43|       |
   44|   139k|   for(const char c : input) {
  ------------------
  |  Branch (44:21): [True: 139k, False: 69.4k]
  ------------------
   45|   139k|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (45:21): [True: 139k, False: 30]
  ------------------
   46|   139k|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (46:13): [True: 0, False: 139k]
  ------------------
   47|      0|            return {};
   48|      0|         }
   49|   139k|         accum = accum * 10 + static_cast<T>(*digit);
   50|   139k|      } else {
   51|     30|         return {};
   52|     30|      }
   53|   139k|   }
   54|       |
   55|  69.4k|   return accum;
   56|  69.5k|}

_ZNK5Botan3URIssERKS0_:
  115|  2.33k|std::strong_ordering URI::operator<=>(const URI& other) const {
  116|  2.33k|   const bool has_authority = raw_authority().has_value();
  117|  2.33k|   const bool other_has_authority = other.raw_authority().has_value();
  118|       |
  119|  2.33k|   return std::tie(m_scheme, has_authority, m_authority, m_path, m_query, m_fragment) <=>
  120|  2.33k|          std::tie(
  121|  2.33k|             other.m_scheme, other_has_authority, other.m_authority, other.m_path, other.m_query, other.m_fragment);
  122|  2.33k|}
_ZNK5Botan3URI13raw_authorityEv:
  130|  4.66k|std::optional<std::string_view> URI::raw_authority() const {
  131|  4.66k|   const auto colon = m_raw.find(':');
  132|  4.66k|   BOTAN_ASSERT_NOMSG(colon != std::string::npos);
  ------------------
  |  |   77|  4.66k|   do {                                                                     \
  |  |   78|  4.66k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.66k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.66k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.66k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.66k]
  |  |  ------------------
  ------------------
  133|       |
  134|  4.66k|   const size_t rest_offset = colon + 1;
  135|  4.66k|   if(m_raw.size() < rest_offset + 2 || m_raw[rest_offset] != '/' || m_raw[rest_offset + 1] != '/') {
  ------------------
  |  Branch (135:7): [True: 366, False: 4.30k]
  |  Branch (135:41): [True: 1.26k, False: 3.03k]
  |  Branch (135:70): [True: 1.08k, False: 1.95k]
  ------------------
  136|  2.71k|      return std::nullopt;
  137|  2.71k|   }
  138|       |
  139|  1.95k|   const size_t authority_start = rest_offset + 2;
  140|  1.95k|   const auto authority_end = m_raw.find_first_of("/?#", authority_start);
  141|  1.95k|   const size_t authority_len =
  142|  1.95k|      (authority_end == std::string::npos) ? std::string::npos : authority_end - authority_start;
  ------------------
  |  Branch (142:7): [True: 782, False: 1.17k]
  ------------------
  143|  1.95k|   return std::string_view(m_raw).substr(authority_start, authority_len);
  144|  4.66k|}
_ZNK5Botan3URI9AuthorityssERKS1_:
  146|    624|std::strong_ordering URI::Authority::operator<=>(const URI::Authority& other) const {
  147|       |   /*
  148|       |   Userinfo is compared without normalization; RFC 3986 6.2.2.1:
  149|       |      When a URI uses components of the generic syntax, the component
  150|       |      syntax equivalence rules always apply; namely, that the scheme
  151|       |      and host are case-insensitive and therefore should be normalized
  152|       |      to lowercase. ... The other generic syntax components are assumed
  153|       |      to be case-sensitive unless specifically defined otherwise by the
  154|       |      scheme.
  155|       |   */
  156|    624|   return std::tie(m_userinfo, m_host, m_port) <=> std::tie(other.m_userinfo, other.m_host, other.m_port);
  157|    624|}
_ZN5Botan3URI11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  164|  2.04k|std::optional<URI> URI::from_string(std::string_view raw) {
  165|       |   // Empty string is not a valid URI
  166|  2.04k|   if(raw.empty()) {
  ------------------
  |  Branch (166:7): [True: 0, False: 2.04k]
  ------------------
  167|      0|      return {};
  168|      0|   }
  169|       |
  170|       |   // RFC 3986:
  171|       |   // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  172|  2.04k|   constexpr auto is_scheme_cont_char = CharacterValidityTable::alpha_numeric_plus("+-.");
  173|       |
  174|  2.04k|   const auto is_ascii_alpha = [](char c) -> bool { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); };
  175|       |
  176|       |   // Check the first scheme character
  177|  2.04k|   if(!is_ascii_alpha(raw.front())) {
  ------------------
  |  Branch (177:7): [True: 25, False: 2.02k]
  ------------------
  178|     25|      return {};
  179|     25|   }
  180|       |
  181|       |   // Scan the rest of the scheme
  182|  2.02k|   size_t i = 1;
  183|  5.52k|   while(i < raw.size() && is_scheme_cont_char(raw[i])) {
  ------------------
  |  Branch (183:10): [True: 5.52k, False: 5]
  |  Branch (183:28): [True: 3.50k, False: 2.01k]
  ------------------
  184|  3.50k|      ++i;
  185|  3.50k|   }
  186|       |   // Scheme wasn't followed by ':' -> invalid
  187|  2.02k|   if(i >= raw.size() || raw[i] != ':') {
  ------------------
  |  Branch (187:7): [True: 5, False: 2.01k]
  |  Branch (187:26): [True: 42, False: 1.97k]
  ------------------
  188|     47|      return {};
  189|     47|   }
  190|       |
  191|       |   // Canonicalize the scheme
  192|  1.97k|   const std::string scheme = tolower_string(raw.substr(0, i));
  193|       |
  194|  1.97k|   auto rest = raw.substr(i + 1);
  195|       |
  196|  1.97k|   std::optional<Authority> parsed_authority;
  197|  1.97k|   std::string_view path_query_fragment;
  198|       |
  199|  1.97k|   if(rest.starts_with("//")) {
  ------------------
  |  Branch (199:7): [True: 1.15k, False: 824]
  ------------------
  200|  1.15k|      rest.remove_prefix(2);  // Strip off the '//'
  201|       |
  202|       |      // Authority runs to the first '/', '?' or '#'. The remaining is `path ? query # fragment`,
  203|       |      // which is validated against the RFC 3986 character set.
  204|  1.15k|      const auto end = rest.find_first_of("/?#");
  205|  1.15k|      const auto authority = (end == std::string_view::npos) ? rest : rest.substr(0, end);
  ------------------
  |  Branch (205:30): [True: 421, False: 731]
  ------------------
  206|  1.15k|      path_query_fragment = (end == std::string_view::npos) ? std::string_view{} : rest.substr(end);
  ------------------
  |  Branch (206:29): [True: 421, False: 731]
  ------------------
  207|       |
  208|       |      // Parse and validate non-empty authority strings (hostname, IPv4, or IPv6 address)
  209|  1.15k|      if(!authority.empty()) {
  ------------------
  |  Branch (209:10): [True: 1.11k, False: 38]
  ------------------
  210|  1.11k|         parsed_authority = Authority::from_string(authority);
  211|  1.11k|         if(!parsed_authority.has_value()) {
  ------------------
  |  Branch (211:13): [True: 381, False: 733]
  ------------------
  212|    381|            return {};
  213|    381|         }
  214|  1.11k|      }
  215|  1.15k|   } else {
  216|    824|      path_query_fragment = rest;
  217|    824|   }
  218|       |
  219|       |   // Validate any `path ? query # fragment` portions of the URL
  220|  1.59k|   if(!validate_path_query_fragment(path_query_fragment)) {
  ------------------
  |  Branch (220:7): [True: 194, False: 1.40k]
  ------------------
  221|    194|      return {};
  222|    194|   }
  223|       |
  224|       |   // Split into path / query / fragment. Validation above guarantees at most
  225|       |   // one '#', so the first '#' is the fragment delimiter, and within the
  226|       |   // pre-fragment portion the first '?' (if any) is the query delimiter.
  227|  1.40k|   const auto hash = path_query_fragment.find('#');
  228|  1.40k|   const auto pre_fragment =
  229|  1.40k|      (hash == std::string_view::npos) ? path_query_fragment : path_query_fragment.substr(0, hash);
  ------------------
  |  Branch (229:7): [True: 999, False: 402]
  ------------------
  230|  1.40k|   std::optional<std::string> fragment;
  231|  1.40k|   if(hash != std::string_view::npos) {
  ------------------
  |  Branch (231:7): [True: 402, False: 999]
  ------------------
  232|    402|      fragment = std::string(path_query_fragment.substr(hash + 1));
  233|    402|   }
  234|       |
  235|  1.40k|   const auto qmark = pre_fragment.find('?');
  236|  1.40k|   const auto path = (qmark == std::string_view::npos) ? pre_fragment : pre_fragment.substr(0, qmark);
  ------------------
  |  Branch (236:22): [True: 1.03k, False: 367]
  ------------------
  237|  1.40k|   std::optional<std::string> query;
  238|  1.40k|   if(qmark != std::string_view::npos) {
  ------------------
  |  Branch (238:7): [True: 367, False: 1.03k]
  ------------------
  239|    367|      query = std::string(pre_fragment.substr(qmark + 1));
  240|    367|   }
  241|       |
  242|       |   // Accept
  243|  1.40k|   return URI(
  244|  1.40k|      std::string(raw), scheme, std::move(parsed_authority), std::string(path), std::move(query), std::move(fragment));
  245|  1.59k|}
_ZN5Botan3URI9Authority11from_stringENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  248|  1.11k|std::optional<URI::Authority> URI::Authority::from_string(std::string_view raw) {
  249|  1.11k|   if(raw.empty()) {
  ------------------
  |  Branch (249:7): [True: 0, False: 1.11k]
  ------------------
  250|      0|      return {};
  251|      0|   }
  252|       |
  253|       |   // Capture the full input now; the userinfo prefix is stripped from
  254|       |   // `raw` below, and m_raw must reflect the original
  255|  1.11k|   const std::string original_input(raw);
  256|       |
  257|       |   /*
  258|       |   RFC 3986
  259|       |     userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
  260|       |
  261|       |   Thus a unencoded '@' is not allowed inside userinfo, and the single '@' splits the
  262|       |   username from the authority. The @ being present at all is significant; an empty
  263|       |   userinfo ("https://@example.com/") is distinct from no userinfo at all.
  264|       |   */
  265|  1.11k|   std::optional<std::string> userinfo;
  266|  1.11k|   const auto first_at = raw.find('@');
  267|  1.11k|   if(first_at != std::string_view::npos) {
  ------------------
  |  Branch (267:7): [True: 614, False: 500]
  ------------------
  268|    614|      if(raw.find('@', first_at + 1) != std::string_view::npos) {
  ------------------
  |  Branch (268:10): [True: 9, False: 605]
  ------------------
  269|      9|         return {};
  270|      9|      }
  271|    605|      const auto userinfo_view = raw.substr(0, first_at);
  272|    605|      if(!validate_userinfo(userinfo_view)) {
  ------------------
  |  Branch (272:10): [True: 76, False: 529]
  ------------------
  273|     76|         return {};
  274|     76|      }
  275|    529|      userinfo = std::string(userinfo_view);
  276|    529|      raw.remove_prefix(first_at + 1);
  277|    529|   }
  278|       |
  279|  1.02k|   std::string_view host_view;
  280|  1.02k|   std::string_view port_str;
  281|  1.02k|   std::optional<Host> host;
  282|       |
  283|  1.02k|   if(!raw.empty() && raw.front() == '[') {
  ------------------
  |  Branch (283:7): [True: 1.02k, False: 5]
  |  Branch (283:23): [True: 141, False: 883]
  ------------------
  284|       |      // Bracketed IPv6 literal.
  285|    141|      const auto close = raw.find(']');
  286|    141|      if(close == std::string_view::npos) {
  ------------------
  |  Branch (286:10): [True: 5, False: 136]
  ------------------
  287|      5|         return {};
  288|      5|      }
  289|    136|      host_view = raw.substr(1, close - 1);
  290|    136|      if(host_view.empty()) {
  ------------------
  |  Branch (290:10): [True: 3, False: 133]
  ------------------
  291|      3|         return {};
  292|      3|      }
  293|    133|      const auto after = raw.substr(close + 1);
  294|    133|      if(!after.empty()) {
  ------------------
  |  Branch (294:10): [True: 36, False: 97]
  ------------------
  295|     36|         if(after.front() != ':') {
  ------------------
  |  Branch (295:13): [True: 9, False: 27]
  ------------------
  296|      9|            return {};
  297|      9|         }
  298|     27|         port_str = after.substr(1);
  299|     27|      }
  300|    124|      auto ipv6 = IPv6Address::from_string(host_view);
  301|    124|      if(!ipv6.has_value()) {
  ------------------
  |  Branch (301:10): [True: 101, False: 23]
  ------------------
  302|    101|         return {};
  303|    101|      }
  304|     23|      host = *ipv6;
  305|    888|   } else {
  306|       |      // host[:port] with no brackets. Only one ':' is allowed (port).
  307|    888|      const auto colon = raw.find(':');
  308|    888|      if(colon == std::string_view::npos) {
  ------------------
  |  Branch (308:10): [True: 771, False: 117]
  ------------------
  309|    771|         host_view = raw;
  310|    771|      } else {
  311|    117|         host_view = raw.substr(0, colon);
  312|    117|         port_str = raw.substr(colon + 1);
  313|       |
  314|       |         // Verify the `:` char is the only one that appears
  315|    117|         if(port_str.find(':') != std::string::npos) {
  ------------------
  |  Branch (315:13): [True: 7, False: 110]
  ------------------
  316|      7|            return {};
  317|      7|         }
  318|    117|      }
  319|       |
  320|    881|      if(host_view.empty()) {
  ------------------
  |  Branch (320:10): [True: 7, False: 874]
  ------------------
  321|      7|         return {};
  322|      7|      }
  323|       |
  324|       |      // Technically valid per RFC 3986 but likely not something we want to support
  325|    874|      if(host_view.ends_with('.')) {
  ------------------
  |  Branch (325:10): [True: 4, False: 870]
  ------------------
  326|      4|         return {};
  327|      4|      }
  328|       |
  329|    870|      if(auto ipv4 = IPv4Address::from_string(host_view)) {
  ------------------
  |  Branch (329:15): [True: 64, False: 806]
  ------------------
  330|     64|         host = *ipv4;
  331|    806|      } else if(auto dns = DNSName::from_string(host_view)) {
  ------------------
  |  Branch (331:22): [True: 685, False: 121]
  ------------------
  332|    685|         host = std::move(*dns);
  333|    685|      } else {
  334|    121|         return {};
  335|    121|      }
  336|    870|   }
  337|       |
  338|    772|   std::optional<uint16_t> port;
  339|       |
  340|    772|   if(!port_str.empty()) {
  ------------------
  |  Branch (340:7): [True: 90, False: 682]
  ------------------
  341|     90|      port = parse_port(port_str);
  342|     90|      if(!port.has_value()) {
  ------------------
  |  Branch (342:10): [True: 39, False: 51]
  ------------------
  343|     39|         return {};
  344|     39|      }
  345|     90|   }
  346|       |
  347|    733|   return Authority(original_input, std::move(userinfo), std::move(*host), port);
  348|    772|}
uri.cpp:_ZZN5Botan3URI11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEENK3$_0clEc:
  174|  2.04k|   const auto is_ascii_alpha = [](char c) -> bool { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); };
  ------------------
  |  Branch (174:61): [True: 82, False: 1.96k]
  |  Branch (174:73): [True: 79, False: 3]
  |  Branch (174:87): [True: 1.94k, False: 22]
  |  Branch (174:99): [True: 1.94k, False: 3]
  ------------------
uri.cpp:_ZN5Botan12_GLOBAL__N_128validate_path_query_fragmentENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   46|  1.59k|bool validate_path_query_fragment(std::string_view tail) {
   47|       |   /*
   48|       |   * RFC 3986 syntax for the path/query/fragment of a URI:
   49|       |   *
   50|       |   *   URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
   51|       |   *   pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
   52|       |   *   segment       = *pchar
   53|       |   *   path-abempty  = *( "/" segment )
   54|       |   *   query         = *( pchar / "/" / "?" )
   55|       |   *   fragment     =  *( pchar / "/" / "?" )
   56|       |   */
   57|       |
   58|  1.59k|   constexpr auto is_pchar_or_slash = CharacterValidityTable::alpha_numeric_plus("-._~!$&'()*+,;=:@/");
   59|       |
   60|  1.59k|   enum class State : uint8_t { Path, Query, Fragment };
   61|  1.59k|   State state = State::Path;
   62|       |
   63|  20.2k|   for(size_t i = 0; i < tail.size(); ++i) {
  ------------------
  |  Branch (63:22): [True: 18.8k, False: 1.40k]
  ------------------
   64|  18.8k|      const char c = tail[i];
   65|  18.8k|      if(c == '%') {
  ------------------
  |  Branch (65:10): [True: 414, False: 18.4k]
  ------------------
   66|    414|         if(i + 2 >= tail.size() || !is_valid_percent_escape(tail[i + 1], tail[i + 2])) {
  ------------------
  |  Branch (66:13): [True: 6, False: 408]
  |  Branch (66:37): [True: 67, False: 341]
  ------------------
   67|     73|            return false;
   68|     73|         }
   69|    341|         i += 2;
   70|    341|         continue;
   71|    414|      }
   72|  18.4k|      if(c == '?') {
  ------------------
  |  Branch (72:10): [True: 953, False: 17.4k]
  ------------------
   73|       |         // First '?' transitions from path to query, any further '?' are literal
   74|    953|         if(state == State::Path) {
  ------------------
  |  Branch (74:13): [True: 402, False: 551]
  ------------------
   75|    402|            state = State::Query;
   76|    402|         }
   77|    953|         continue;
   78|    953|      }
   79|  17.4k|      if(c == '#') {
  ------------------
  |  Branch (79:10): [True: 433, False: 17.0k]
  ------------------
   80|       |         // There is only one '#' fragment delimiter, second '#' is invalid
   81|    433|         if(state == State::Fragment) {
  ------------------
  |  Branch (81:13): [True: 9, False: 424]
  ------------------
   82|      9|            return false;
   83|      9|         }
   84|    424|         state = State::Fragment;
   85|    424|         continue;
   86|    433|      }
   87|  17.0k|      if(!is_pchar_or_slash(c)) {
  ------------------
  |  Branch (87:10): [True: 112, False: 16.9k]
  ------------------
   88|    112|         return false;
   89|    112|      }
   90|  17.0k|   }
   91|  1.40k|   return true;
   92|  1.59k|}
uri.cpp:_ZN5Botan12_GLOBAL__N_123is_valid_percent_escapeEcc:
   29|    816|bool is_valid_percent_escape(char c1, char c2) {
   30|    816|   auto is_hex_digit = [](char c) {
   31|    816|      return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
   32|    816|   };
   33|       |
   34|    816|   if(!is_hex_digit(c1) || !is_hex_digit(c2)) {
  ------------------
  |  Branch (34:7): [True: 63, False: 753]
  |  Branch (34:28): [True: 52, False: 701]
  ------------------
   35|    115|      return false;
   36|    115|   }
   37|       |
   38|       |   // Proactively reject embedded null (%00)
   39|    701|   if(c1 == '0' && c2 == '0') {
  ------------------
  |  Branch (39:7): [True: 53, False: 648]
  |  Branch (39:20): [True: 6, False: 47]
  ------------------
   40|      6|      return false;
   41|      6|   }
   42|       |
   43|    695|   return true;
   44|    701|}
uri.cpp:_ZZN5Botan12_GLOBAL__N_123is_valid_percent_escapeEccENK3$_0clEc:
   30|  1.56k|   auto is_hex_digit = [](char c) {
   31|  1.56k|      return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
  ------------------
  |  Branch (31:15): [True: 1.50k, False: 61]
  |  Branch (31:27): [True: 326, False: 1.18k]
  |  Branch (31:41): [True: 558, False: 685]
  |  Branch (31:53): [True: 533, False: 25]
  |  Branch (31:67): [True: 637, False: 73]
  |  Branch (31:79): [True: 595, False: 42]
  ------------------
   32|  1.56k|   };
uri.cpp:_ZN5Botan12_GLOBAL__N_117validate_userinfoENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   94|    605|bool validate_userinfo(std::string_view userinfo) {
   95|    605|   constexpr auto is_valid_userinfo_char = CharacterValidityTable::alpha_numeric_plus("-._~!$&'()*+,;=:");
   96|       |
   97|  4.84k|   for(size_t i = 0; i < userinfo.size(); ++i) {
  ------------------
  |  Branch (97:22): [True: 4.32k, False: 529]
  ------------------
   98|  4.32k|      const char c = userinfo[i];
   99|  4.32k|      if(c == '%') {
  ------------------
  |  Branch (99:10): [True: 411, False: 3.90k]
  ------------------
  100|    411|         if(i + 2 >= userinfo.size() || !is_valid_percent_escape(userinfo[i + 1], userinfo[i + 2])) {
  ------------------
  |  Branch (100:13): [True: 3, False: 408]
  |  Branch (100:41): [True: 54, False: 354]
  ------------------
  101|     57|            return false;
  102|     57|         }
  103|    354|         i += 2;
  104|    354|         continue;
  105|    411|      }
  106|  3.90k|      if(!is_valid_userinfo_char(c)) {
  ------------------
  |  Branch (106:10): [True: 19, False: 3.89k]
  ------------------
  107|     19|         return false;
  108|     19|      }
  109|  3.90k|   }
  110|    529|   return true;
  111|    605|}
uri.cpp:_ZN5Botan12_GLOBAL__N_110parse_portENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   18|     90|std::optional<uint16_t> parse_port(std::string_view s) {
   19|       |   // RFC 3986 port is "*DIGIT" but we reject leading zeros ("host:0080")
   20|     90|   if(const auto port = parse_u16(s, /*require_canonical=*/true)) {
  ------------------
  |  Branch (20:18): [True: 55, False: 35]
  ------------------
   21|     55|      if(*port > 0) {
  ------------------
  |  Branch (21:10): [True: 51, False: 4]
  ------------------
   22|     51|         return port;
   23|     51|      }
   24|     55|   }
   25|       |
   26|     39|   return {};
   27|     90|}

_ZN5Botan15AlternativeName7add_uriENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   17|  2.16k|void AlternativeName::add_uri(std::string_view uri) {
   18|  2.16k|   if(uri.empty()) {
  ------------------
  |  Branch (18:7): [True: 121, False: 2.04k]
  ------------------
   19|    121|      return;
   20|    121|   }
   21|  2.04k|   if(auto parsed = URI::from_string(uri)) {
  ------------------
  |  Branch (21:12): [True: 1.39k, False: 647]
  ------------------
   22|  1.39k|      add_uri(std::move(*parsed));
   23|  1.39k|   } else {
   24|    647|      throw Decoding_Error("Invalid URI in SubjectAlternativeName");
   25|    647|   }
   26|  2.04k|}
_ZN5Botan15AlternativeName7add_uriENS_3URIE:
   28|  1.39k|void AlternativeName::add_uri(URI uri) {
   29|  1.39k|   m_uri.insert(std::move(uri));
   30|  1.39k|}
_ZN5Botan15AlternativeName9add_emailENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   40|    696|void AlternativeName::add_email(std::string_view addr) {
   41|    696|   if(addr.empty()) {
  ------------------
  |  Branch (41:7): [True: 27, False: 669]
  ------------------
   42|     27|      return;
   43|     27|   }
   44|    669|   if(auto parsed = EmailAddress::from_string(addr)) {
  ------------------
  |  Branch (44:12): [True: 479, False: 190]
  ------------------
   45|    479|      add_email(std::move(*parsed));
   46|    479|   } else {
   47|    190|      throw Decoding_Error("Invalid email address in SubjectAlternativeName");
   48|    190|   }
   49|    669|}
_ZN5Botan15AlternativeName9add_emailENS_12EmailAddressE:
   51|    479|void AlternativeName::add_email(EmailAddress addr) {
   52|    479|   m_email.insert(std::move(addr));
   53|    479|}
_ZN5Botan15AlternativeName7add_dnsENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   63|    724|void AlternativeName::add_dns(std::string_view dns) {
   64|    724|   if(dns.empty()) {
  ------------------
  |  Branch (64:7): [True: 27, False: 697]
  ------------------
   65|     27|      return;
   66|     27|   }
   67|    697|   if(auto parsed = DNSName::from_san_string(dns)) {
  ------------------
  |  Branch (67:12): [True: 628, False: 69]
  ------------------
   68|    628|      add_dns(std::move(*parsed));
   69|    628|   } else {
   70|     69|      throw Decoding_Error("Invalid DNS name in SubjectAlternativeName");
   71|     69|   }
   72|    697|}
_ZN5Botan15AlternativeName7add_dnsENS_7DNSNameE:
   74|    628|void AlternativeName::add_dns(DNSName dns) {
   75|    628|   m_dns.insert(std::move(dns));
   76|    628|}
_ZN5Botan15AlternativeName17add_registered_idERKNS_3OIDE:
   97|    173|void AlternativeName::add_registered_id(const OID& oid) {
   98|    173|   m_registered_ids.insert(oid);
   99|    173|}
_ZN5Botan15AlternativeName6add_dnERKNS_7X509_DNE:
  101|    178|void AlternativeName::add_dn(const X509_DN& dn) {
  102|    178|   m_dn_names.insert(dn);
  103|    178|}
_ZN5Botan15AlternativeName16add_ipv4_addressERKNS_11IPv4AddressE:
  105|    733|void AlternativeName::add_ipv4_address(const IPv4Address& ip) {
  106|    733|   m_ipv4_addrs.insert(ip);
  107|    733|}
_ZN5Botan15AlternativeName16add_ipv6_addressERKNS_11IPv6AddressE:
  109|    135|void AlternativeName::add_ipv6_address(const IPv6Address& ip) {
  110|    135|   m_ipv6_addrs.insert(ip);
  111|    135|}
_ZNK5Botan15AlternativeName5countEv:
  113|    154|size_t AlternativeName::count() const {
  114|    154|   const auto sum = checked_add(m_dns.size(),
  115|    154|                                m_uri.size(),
  116|    154|                                m_email.size(),
  117|    154|                                m_ipv4_addrs.size(),
  118|    154|                                m_ipv6_addrs.size(),
  119|    154|                                m_dn_names.size(),
  120|    154|                                m_other_name_values.size(),
  121|    154|                                m_registered_ids.size());
  122|       |
  123|    154|   BOTAN_ASSERT_NOMSG(sum.has_value());
  ------------------
  |  |   77|    154|   do {                                                                     \
  |  |   78|    154|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    154|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 154]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    154|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 154]
  |  |  ------------------
  ------------------
  124|    154|   return sum.value();
  125|    154|}
_ZNK5Botan15AlternativeName9has_itemsEv:
  127|    154|bool AlternativeName::has_items() const {
  128|    154|   return this->count() > 0;
  129|    154|}
_ZN5Botan15AlternativeName11decode_fromERNS_11BER_DecoderE:
  198|  2.20k|void AlternativeName::decode_from(BER_Decoder& source) {
  199|  2.20k|   BER_Decoder names = source.start_sequence();
  200|       |
  201|  8.02k|   while(names.more_items()) {
  ------------------
  |  Branch (201:10): [True: 6.54k, False: 1.48k]
  ------------------
  202|  6.54k|      const BER_Object obj = names.get_next_object();
  203|       |
  204|  6.54k|      if(obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (204:10): [True: 706, False: 5.83k]
  ------------------
  205|    706|         BER_Decoder othername(obj, names.limits());
  206|       |
  207|    706|         OID oid;
  208|    706|         othername.decode(oid);
  209|    706|         const BER_Object othername_value_outer = othername.get_next_object();
  210|    706|         othername.verify_end();
  211|       |
  212|    706|         if(!othername_value_outer.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (212:13): [True: 7, False: 699]
  ------------------
  213|      7|            throw Decoding_Error("Invalid tags on otherName value");
  214|      7|         }
  215|       |
  216|    699|         BER_Decoder othername_value_inner(othername_value_outer, names.limits());
  217|       |
  218|    699|         const BER_Object value = othername_value_inner.get_next_object();
  219|    699|         othername_value_inner.verify_end();
  220|       |
  221|       |         // Capture the inner ANY value verbatim so applications can retrieve
  222|       |         // it regardless of its ASN.1 form.
  223|    699|         std::vector<uint8_t> raw_value;
  224|    699|         DER_Encoder(raw_value).add_object(value.type_tag(), value.class_tag(), value.data());
  225|    699|         m_other_name_values.insert(OtherNameValue{oid, std::move(raw_value)});
  226|       |
  227|       |         // Populate old string view for compatibility
  228|    699|         if(ASN1_String::is_string_type(value.type()) && value.get_class() == ASN1_Class::Universal) {
  ------------------
  |  Branch (228:13): [True: 508, False: 191]
  |  Branch (228:58): [True: 465, False: 43]
  ------------------
  229|    465|            try {
  230|    465|               m_othernames.insert(std::make_pair(oid, ASN1_String(ASN1::to_string(value), value.type())));
  231|    465|            } catch(const Invalid_Argument&) {  // NOLINT(*-empty-catch)
  232|    268|            }
  233|    465|         }
  234|       |
  235|    699|         if(oid == OID::from_string("PKIX.SmtpUTF8Mailbox")) {
  ------------------
  |  Branch (235:13): [True: 0, False: 699]
  ------------------
  236|      0|            if(!value.is_a(ASN1_Type::Utf8String, ASN1_Class::Universal)) {
  ------------------
  |  Branch (236:16): [True: 0, False: 0]
  ------------------
  237|      0|               throw Decoding_Error("SmtpUTF8Mailbox otherName must contain a UTF8String");
  238|      0|            }
  239|      0|            auto parsed_mailbox = SmtpUtf8Mailbox::from_string(ASN1::to_string(value));
  240|      0|            if(!parsed_mailbox.has_value()) {
  ------------------
  |  Branch (240:16): [True: 0, False: 0]
  ------------------
  241|      0|               throw Decoding_Error("Invalid SmtpUTF8Mailbox encoding");
  242|      0|            }
  243|      0|            m_smtp_utf8_mailboxes.insert(std::move(*parsed_mailbox));
  244|      0|         }
  245|  5.83k|      } else if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (245:17): [True: 696, False: 5.14k]
  ------------------
  246|    696|         add_email(ASN1::to_string(obj));
  247|  5.14k|      } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (247:17): [True: 724, False: 4.41k]
  ------------------
  248|    724|         add_dns(ASN1::to_string(obj));
  249|  4.41k|      } else if(obj.is_a(3, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (249:17): [True: 57, False: 4.35k]
  ------------------
  250|       |         // x400Address not supported but it is a SEQUENCE so we know it cannot be empty
  251|     57|         if(obj.length() == 0) {
  ------------------
  |  Branch (251:13): [True: 4, False: 53]
  ------------------
  252|      4|            throw Decoding_Error("Invalid x400Address field");
  253|      4|         }
  254|  4.35k|      } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (254:17): [True: 312, False: 4.04k]
  ------------------
  255|    312|         BER_Decoder dec(obj, names.limits());
  256|    312|         X509_DN dn;
  257|    312|         dec.decode(dn).verify_end();
  258|    312|         this->add_dn(dn);
  259|  4.04k|      } else if(obj.is_a(5, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (259:17): [True: 116, False: 3.93k]
  ------------------
  260|       |         // ediPartyName not supported but it is a SEQUENCE so we know it cannot be empty
  261|    116|         if(obj.length() == 0) {
  ------------------
  |  Branch (261:13): [True: 3, False: 113]
  ------------------
  262|      3|            throw Decoding_Error("Invalid ediPartyName field");
  263|      3|         }
  264|  3.93k|      } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (264:17): [True: 2.16k, False: 1.76k]
  ------------------
  265|  2.16k|         this->add_uri(ASN1::to_string(obj));
  266|  2.16k|      } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (266:17): [True: 881, False: 883]
  ------------------
  267|    881|         if(obj.length() == 4) {
  ------------------
  |  Branch (267:13): [True: 733, False: 148]
  ------------------
  268|    733|            const uint32_t ip = load_be<uint32_t>(obj.bits(), 0);
  269|    733|            this->add_ipv4_address(ip);
  270|    733|         } else if(obj.length() == 16) {
  ------------------
  |  Branch (270:20): [True: 135, False: 13]
  ------------------
  271|    135|            const IPv6Address ip(std::span<const uint8_t, 16>{obj.bits(), 16});
  272|    135|            this->add_ipv6_address(ip);
  273|    135|         } else {
  274|     13|            throw Decoding_Error("Invalid IP constraint neither IPv4 or IPv6");
  275|     13|         }
  276|    883|      } else if(obj.is_a(8, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (276:17): [True: 185, False: 698]
  ------------------
  277|       |         // [8] registeredID is IMPLICIT OBJECT IDENTIFIER.
  278|    185|         OID oid;
  279|    185|         names.decode_implicit(obj, oid, ASN1_Type::ObjectId, ASN1_Class::Universal);
  280|    185|         this->add_registered_id(oid);
  281|    698|      } else {
  282|    698|         throw Decoding_Error(fmt("Unknown GeneralName tag {}/class {}",
  283|    698|                                  static_cast<uint32_t>(obj.type_tag()),
  284|    698|                                  static_cast<uint32_t>(obj.class_tag())));
  285|    698|      }
  286|  6.54k|   }
  287|  2.20k|}

_ZN5Botan9CRL_Entry11decode_fromERNS_11BER_DecoderE:
   89|  9.08k|void CRL_Entry::decode_from(BER_Decoder& source) {
   90|  9.08k|   auto data = std::make_unique<CRL_Entry_Data>();
   91|       |
   92|  9.08k|   BER_Decoder entry = source.start_sequence();
   93|       |
   94|  9.08k|   entry.decode(data->m_serial);
   95|  9.08k|   entry.decode(data->m_time);
   96|       |
   97|  9.08k|   data->m_serial_bits = data->m_serial.magnitude();
   98|       |
   99|  9.08k|   if(entry.more_items()) {
  ------------------
  |  Branch (99:7): [True: 7.65k, False: 1.43k]
  ------------------
  100|  7.65k|      data->m_extensions.decode_from(entry, Extension_Context::CRL_Entry);
  101|       |
  102|       |      // TODO(Botan4) start checking that CRLEntry extensions is not empty
  103|       |      // Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension
  104|       |
  105|  7.65k|      if(const auto* ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_ReasonCode>()) {
  ------------------
  |  Branch (105:22): [True: 1.64k, False: 6.01k]
  ------------------
  106|  1.64k|         const auto reason = ext->get_reason();
  107|       |
  108|       |         /*
  109|       |         * This reason code only makes sense in the context of delta CRL processing, which
  110|       |         * we do not currently support. Seeing it in a regular CRL suggests that something
  111|       |         * has gone very wrong (eg we are somehow processing a delta CRL, though that
  112|       |         * shouldn't happen since the delta CRL indicator extension should be a critical
  113|       |         * extension which we will reject.)
  114|       |         */
  115|  1.64k|         if(reason == CRL_Code::RemoveFromCrl) {
  ------------------
  |  Branch (115:13): [True: 2, False: 1.63k]
  ------------------
  116|      2|            throw Decoding_Error("CRL entry ReasonCode extension included invalid RemoveFromCrl");
  117|      2|         }
  118|  1.63k|         data->m_reason = reason;
  119|  6.01k|      } else {
  120|  6.01k|         data->m_reason = CRL_Code::Unspecified;
  121|  6.01k|      }
  122|  7.65k|   }
  123|       |
  124|  9.08k|   entry.end_cons();
  125|       |
  126|  9.08k|   m_data = std::move(data);
  127|  9.08k|}
_ZNK5Botan9CRL_Entry4dataEv:
  129|  13.0k|const CRL_Entry_Data& CRL_Entry::data() const {
  130|  13.0k|   if(!m_data) {
  ------------------
  |  Branch (130:7): [True: 0, False: 13.0k]
  ------------------
  131|      0|      throw Invalid_State("CRL_Entry_Data uninitialized");
  132|      0|   }
  133|       |
  134|  13.0k|   return *m_data;
  135|  13.0k|}
_ZNK5Botan9CRL_Entry6serialEv:
  141|  3.87k|const X509_Serial_Number& CRL_Entry::serial() const {
  142|  3.87k|   return data().m_serial;
  143|  3.87k|}
_ZNK5Botan9CRL_Entry10extensionsEv:
  153|  9.18k|const Extensions& CRL_Entry::extensions() const {
  154|  9.18k|   return data().m_extensions;
  155|  9.18k|}
_ZN5Botan14CRL_Entry_DataC2Ev:
   32|  9.08k|      CRL_Entry_Data() = default;

_ZNK5Botan8X509_CRL9PEM_labelEv:
   62|  4.04k|std::string X509_CRL::PEM_label() const {
   63|  4.04k|   return "X509 CRL";
   64|  4.04k|}
_ZNK5Botan8X509_CRL20alternate_PEM_labelsEv:
   66|     93|std::vector<std::string> X509_CRL::alternate_PEM_labels() const {
   67|     93|   return {"CRL"};
   68|     93|}
_ZN5Botan8X509_CRLC2ERNS_10DataSourceE:
   70|  4.00k|X509_CRL::X509_CRL(DataSource& src) {
   71|  4.00k|   load_data(src);
   72|  4.00k|}
_ZN5Botan8X509_CRL12force_decodeEv:
  242|  2.79k|void X509_CRL::force_decode() {
  243|  2.79k|   m_data.reset(decode_crl_body(signed_body(), signature_algorithm()).release());
  244|  2.79k|}
x509_crl.cpp:_ZN5Botan12_GLOBAL__N_115decode_crl_bodyERKNSt3__16vectorIhNS1_9allocatorIhEEEERKNS_19AlgorithmIdentifierE:
  130|  2.79k|std::unique_ptr<CRL_Data> decode_crl_body(const std::vector<uint8_t>& body, const AlgorithmIdentifier& sig_algo) {
  131|  2.79k|   auto data = std::make_unique<CRL_Data>();
  132|       |
  133|  2.79k|   BER_Decoder tbs_crl(body, BER_Decoder::Limits::DER());
  134|       |
  135|  2.79k|   tbs_crl.decode_optional(data->m_version, ASN1_Type::Integer, ASN1_Class::Universal);
  136|  2.79k|   data->m_version += 1;  // wire-format is 0-based
  137|       |
  138|  2.79k|   if(data->m_version != 1 && data->m_version != 2) {
  ------------------
  |  Branch (138:7): [True: 2.44k, False: 349]
  |  Branch (138:31): [True: 42, False: 2.40k]
  ------------------
  139|     42|      throw Decoding_Error("Unknown X.509 CRL version " + std::to_string(data->m_version));
  140|     42|   }
  141|       |
  142|       |   // Extensions are only defined for v2 CRLs
  143|  2.74k|   const bool supports_extensions = data->m_version > 1;
  144|       |
  145|  2.74k|   AlgorithmIdentifier sig_algo_inner;
  146|  2.74k|   tbs_crl.decode(sig_algo_inner);
  147|       |
  148|  2.74k|   if(sig_algo != sig_algo_inner) {
  ------------------
  |  Branch (148:7): [True: 101, False: 2.64k]
  ------------------
  149|    101|      throw Decoding_Error("Algorithm identifier mismatch in CRL");
  150|    101|   }
  151|       |
  152|  2.64k|   tbs_crl.decode(data->m_issuer).decode(data->m_this_update);
  153|       |
  154|       |   // According to RFC 5280 Section 5.1, nextUpdate is OPTIONAL and may be
  155|       |   // encoded as either a UTCTime or a GeneralizedTime. Section 5.1.2.5
  156|       |   // further states that "[c]onforming CRL issuers MUST include the nextUpdate
  157|       |   // field in all CRLs". Obviously, not everyone complies...
  158|       |   //
  159|       |   // See https://github.com/randombit/botan/issues/4722 for more details.
  160|  2.64k|   {
  161|  2.64k|      const auto& next_update = tbs_crl.peek_next_object();
  162|  2.64k|      if(next_update.is_a(ASN1_Type::UtcTime, ASN1_Class::Universal) ||
  ------------------
  |  Branch (162:10): [True: 1.62k, False: 1.02k]
  ------------------
  163|  1.02k|         next_update.is_a(ASN1_Type::GeneralizedTime, ASN1_Class::Universal)) {
  ------------------
  |  Branch (163:10): [True: 4, False: 1.01k]
  ------------------
  164|    845|         tbs_crl.decode(data->m_next_update);
  165|    845|      }
  166|  2.64k|   }
  167|       |
  168|  2.64k|   BER_Object next = tbs_crl.get_next_object();
  169|       |
  170|  2.64k|   if(next.is_a(ASN1_Type::Sequence, ASN1_Class::Constructed)) {
  ------------------
  |  Branch (170:7): [True: 336, False: 2.31k]
  ------------------
  171|    336|      BER_Decoder cert_list(next, tbs_crl.limits());
  172|       |
  173|  9.41k|      while(cert_list.more_items()) {
  ------------------
  |  Branch (173:13): [True: 9.08k, False: 333]
  ------------------
  174|  9.08k|         CRL_Entry entry;
  175|  9.08k|         cert_list.decode(entry);
  176|       |
  177|  9.08k|         if(entry.extensions().has_unknown_critical_extension()) {
  ------------------
  |  Branch (177:13): [True: 1, False: 9.08k]
  ------------------
  178|      1|            data->m_has_unknown_critical_extension = true;
  179|      1|         }
  180|       |
  181|  9.08k|         if(!supports_extensions && entry.extensions().count() > 0) {
  ------------------
  |  Branch (181:13): [True: 388, False: 8.69k]
  |  Branch (181:37): [True: 3, False: 385]
  ------------------
  182|      3|            throw Decoding_Error("X509 CRL included extensions in a version that doesn't support them");
  183|      3|         }
  184|       |
  185|  9.08k|         data->m_entries.push_back(std::move(entry));
  186|  9.08k|      }
  187|       |
  188|       |      /*
  189|       |      RFC 5280 Section 5.1.2.6
  190|       |         When there are no revoked certificates, the revoked certificates list MUST be absent.
  191|       |
  192|       |      So strictly speaking we should be checking that m_entries is not empty. But practically,
  193|       |      it seems nearly all implementations accept a present-but-empty SEQUENCE as equivalent
  194|       |      to an absent one, and several major ones (including GnuTLS) will emit it. Considering
  195|       |      this situation, and the benign nature of the deviation, accept the non-conforming encoding.
  196|       |      */
  197|       |
  198|    333|      next = tbs_crl.get_next_object();
  199|    333|   }
  200|       |
  201|  2.64k|   if(next.is_a(0, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (201:7): [True: 1.51k, False: 1.13k]
  ------------------
  202|  1.51k|      if(!supports_extensions) {
  ------------------
  |  Branch (202:10): [True: 1, False: 1.51k]
  ------------------
  203|      1|         throw Decoding_Error("X509 CRL included extensions in a version that doesn't support them");
  204|      1|      }
  205|  1.51k|      BER_Decoder crl_options(next, tbs_crl.limits());
  206|  1.51k|      data->m_extensions.decode_from(crl_options, Extension_Context::CRL);
  207|  1.51k|      crl_options.verify_end();
  208|  1.51k|      if(data->m_extensions.has_unknown_critical_extension()) {
  ------------------
  |  Branch (208:10): [True: 0, False: 1.51k]
  ------------------
  209|      0|         data->m_has_unknown_critical_extension = true;
  210|      0|      }
  211|       |
  212|  1.51k|      if(tbs_crl.get_next_object().is_set()) {
  ------------------
  |  Branch (212:10): [True: 2, False: 1.50k]
  ------------------
  213|      2|         throw Decoding_Error("Unknown tag following extensions in CRL");
  214|      2|      }
  215|  1.51k|   }
  216|       |
  217|  2.64k|   tbs_crl.verify_end("Unexpected trailing data after CRL");
  218|       |
  219|       |   // Now cache some fields from the extensions
  220|  2.64k|   if(const auto* ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_Number>()) {
  ------------------
  |  Branch (220:19): [True: 13, False: 2.62k]
  ------------------
  221|     13|      data->m_crl_number = ext->crl_number();
  222|     13|   }
  223|  2.64k|   if(const auto* ext = data->m_extensions.get_extension_object_as<Cert_Extension::Authority_Key_ID>()) {
  ------------------
  |  Branch (223:19): [True: 4, False: 2.63k]
  ------------------
  224|      4|      data->m_auth_key_id = ext->get_key_id();
  225|      4|   }
  226|  2.64k|   if(const auto* ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_Issuing_Distribution_Point>()) {
  ------------------
  |  Branch (226:19): [True: 0, False: 2.64k]
  ------------------
  227|      0|      const auto& dpn = ext->distribution_point_name();
  228|      0|      if(dpn.has_value() && dpn->full_name().has_value()) {
  ------------------
  |  Branch (228:10): [True: 0, False: 0]
  |  Branch (228:29): [True: 0, False: 0]
  ------------------
  229|      0|         for(const auto& uri : dpn->full_name()->uri_names()) {
  ------------------
  |  Branch (229:30): [True: 0, False: 0]
  ------------------
  230|      0|            data->m_idp_urls.push_back(uri);
  231|      0|         }
  232|      0|      }
  233|      0|   }
  234|       |
  235|  2.64k|   data->update_index();
  236|       |
  237|  2.64k|   return data;
  238|  2.64k|}
_ZN5Botan8CRL_DataC2Ev:
   34|  2.79k|      CRL_Data() = default;
_ZN5Botan8CRL_Data12update_indexEv:
   36|     52|      void update_index() {
   37|     52|         m_revoked_serials.clear();
   38|  3.87k|         for(const auto& entry : m_entries) {
  ------------------
  |  Branch (38:32): [True: 3.87k, False: 52]
  ------------------
   39|  3.87k|            m_revoked_serials.insert(entry.serial());
   40|  3.87k|         }
   41|     52|      }

_ZN5BotanltERKNS_7X509_DNES2_:
  354|    190|bool operator<(const X509_DN& dn1, const X509_DN& dn2) {
  355|    190|   return dn1._canonical_bytes() < dn2._canonical_bytes();
  356|    190|}
_ZN5Botan7X509_DN11decode_fromERNS_11BER_DecoderE:
  408|  2.73k|void X509_DN::decode_from(BER_Decoder& source) {
  409|  2.73k|   std::vector<uint8_t> bits;
  410|       |
  411|  2.73k|   source.start_sequence().raw_bytes(bits).end_cons();
  412|       |
  413|  2.73k|   BER_Decoder sequence(bits, source.limits());
  414|       |
  415|  2.73k|   std::vector<std::vector<std::pair<OID, ASN1_String>>> rdns;
  416|       |
  417|       |   // Cap AVAs per RDN to bound work for downstream set-based matching.
  418|       |   // No legitimate cert has anywhere near this many AVAs in a single RDN.
  419|  2.73k|   constexpr size_t MAX_AVAS_PER_RDN = 32;
  420|       |
  421|  5.60k|   while(sequence.more_items()) {
  ------------------
  |  Branch (421:10): [True: 2.87k, False: 2.72k]
  ------------------
  422|  2.87k|      BER_Decoder rdn_decoder = sequence.start_set();
  423|       |
  424|  2.87k|      std::vector<std::pair<OID, ASN1_String>> rdn;
  425|  5.48k|      while(rdn_decoder.more_items()) {
  ------------------
  |  Branch (425:13): [True: 2.60k, False: 2.87k]
  ------------------
  426|  2.60k|         OID oid;
  427|  2.60k|         ASN1_String str;
  428|       |
  429|  2.60k|         rdn_decoder.start_sequence()
  430|  2.60k|            .decode(oid)
  431|  2.60k|            .decode(str)  // TODO support Any
  432|  2.60k|            .end_cons();
  433|       |
  434|  2.60k|         rdn.emplace_back(std::move(oid), std::move(str));
  435|       |
  436|  2.60k|         if(rdn.size() > MAX_AVAS_PER_RDN) {
  ------------------
  |  Branch (436:13): [True: 0, False: 2.60k]
  ------------------
  437|      0|            throw Decoding_Error("X.500 RDN has too many attribute-value assertions");
  438|      0|         }
  439|  2.60k|      }
  440|       |
  441|       |      /*
  442|       |      RFC 5280 4.1.2.4:
  443|       |         RelativeDistinguishedName ::=
  444|       |           SET SIZE (1..MAX) OF AttributeTypeAndValue
  445|       |      */
  446|  2.87k|      if(rdn.empty()) {
  ------------------
  |  Branch (446:10): [True: 4, False: 2.87k]
  ------------------
  447|      4|         throw Decoding_Error("X.500 RDN must contain at least one attribute-value assertion");
  448|      4|      }
  449|  2.87k|      rdns.push_back(std::move(rdn));
  450|  2.87k|   }
  451|       |
  452|  2.72k|   auto canonical_bits = canonicalize_dn(rdns);
  453|       |
  454|  2.72k|   m_rdn = std::move(rdns);
  455|  2.72k|   m_dn_bits = std::move(bits);
  456|  2.72k|   m_canonical_dn_bits = std::move(canonical_bits);
  457|  2.72k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_115canonicalize_dnERKNSt3__16vectorINS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEENS7_IS9_EEEE:
  311|  2.20k|std::vector<uint8_t> canonicalize_dn(const std::vector<std::vector<std::pair<OID, ASN1_String>>>& rdns) {
  312|  2.20k|   auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  313|  2.20k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  314|  2.20k|      out.insert(out.end(), data_len.begin(), data_len.end());
  315|  2.20k|      out.insert(out.end(), data.begin(), data.end());
  316|  2.20k|   };
  317|       |
  318|  2.20k|   std::vector<uint8_t> canonical_bits;
  319|       |
  320|  2.20k|   for(const auto& rdn : rdns) {
  ------------------
  |  Branch (320:24): [True: 2.20k, False: 2.20k]
  ------------------
  321|  2.20k|      std::vector<uint8_t> rdn_bits;
  322|       |
  323|  2.21k|      for(const auto& [oid, value] : canonicalize_rdn(rdn)) {
  ------------------
  |  Branch (323:36): [True: 2.21k, False: 2.20k]
  ------------------
  324|  2.21k|         append_canonical_data(rdn_bits, oid.BER_encode());
  325|  2.21k|         append_canonical_data(rdn_bits, value);
  326|  2.21k|      }
  327|       |
  328|  2.20k|      append_canonical_data(canonical_bits, rdn_bits);
  329|  2.20k|   }
  330|       |
  331|  2.20k|   return canonical_bits;
  332|  2.20k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_116canonicalize_rdnERKNSt3__16vectorINS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEE:
  299|  2.20k|std::vector<std::pair<OID, std::string>> canonicalize_rdn(const std::vector<std::pair<OID, ASN1_String>>& rdn) {
  300|  2.20k|   std::vector<std::pair<OID, std::string>> result;
  301|  2.20k|   result.reserve(rdn.size());
  302|  2.21k|   for(const auto& ava : rdn) {
  ------------------
  |  Branch (302:24): [True: 2.21k, False: 2.20k]
  ------------------
  303|  2.21k|      result.emplace_back(ava.first, X500_Char_Iterator::canonicalize(ava.second.value()));
  304|  2.21k|   }
  305|  2.20k|   if(result.size() != 1) {
  ------------------
  |  Branch (305:7): [True: 2, False: 2.20k]
  ------------------
  306|      2|      std::sort(result.begin(), result.end());
  307|      2|   }
  308|  2.20k|   return result;
  309|  2.20k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator12canonicalizeENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  115|  2.21k|      static std::string canonicalize(std::string_view name) {
  116|  2.21k|         std::string result;
  117|  2.21k|         result.reserve(name.size());
  118|       |
  119|  2.21k|         X500_Char_Iterator it(name);
  120|  17.2k|         while(auto c = it.next()) {
  ------------------
  |  Branch (120:21): [True: 15.0k, False: 2.21k]
  ------------------
  121|  15.0k|            result += *c;
  122|  15.0k|         }
  123|       |
  124|  2.21k|         return result;
  125|  2.21k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_IteratorC2ENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   82|  2.21k|      explicit X500_Char_Iterator(std::string_view s) : m_str(s), m_pos(0) {
   83|       |         // Skip leading whitespace
   84|  2.45k|         while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (84:16): [True: 2.44k, False: 13]
  |  Branch (84:40): [True: 248, False: 2.19k]
  ------------------
   85|    248|            ++m_pos;
   86|    248|         }
   87|  2.21k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator4nextEv:
   90|  17.2k|      std::optional<char> next() {
   91|  17.2k|         if(m_pos >= m_str.size()) {
  ------------------
  |  Branch (91:13): [True: 2.15k, False: 15.1k]
  ------------------
   92|  2.15k|            return std::nullopt;
   93|  2.15k|         }
   94|       |
   95|  15.1k|         if(is_space(m_str[m_pos])) {
  ------------------
  |  Branch (95:13): [True: 515, False: 14.6k]
  ------------------
   96|       |            // Skip the entire whitespace run
   97|  1.17k|            while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (97:19): [True: 1.11k, False: 55]
  |  Branch (97:43): [True: 656, False: 460]
  ------------------
   98|    656|               ++m_pos;
   99|    656|            }
  100|       |            // Emit a single space only if more content follows (strip trailing ws)
  101|    515|            if(m_pos < m_str.size()) {
  ------------------
  |  Branch (101:16): [True: 460, False: 55]
  ------------------
  102|    460|               return ' ';
  103|    460|            }
  104|     55|            return std::nullopt;
  105|    515|         }
  106|       |
  107|  14.6k|         const char c = m_str[m_pos++];
  108|       |         // Locale-independent ASCII fold; RFC 5280 DN matching does not depend on libc locale
  109|  14.6k|         if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (109:13): [True: 7.80k, False: 6.81k]
  |  Branch (109:25): [True: 5.93k, False: 1.87k]
  ------------------
  110|  5.93k|            return static_cast<char>(c + ('a' - 'A'));
  111|  5.93k|         }
  112|  8.68k|         return c;
  113|  14.6k|      }
x509_dn.cpp:_ZZN5Botan12_GLOBAL__N_115canonicalize_dnERKNSt3__16vectorINS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEENS7_IS9_EEEEENK3$_0clINS2_IhNS7_IhEEEEEEDaRSH_RKT_:
  312|  4.42k|   auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  313|  4.42k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  314|  4.42k|      out.insert(out.end(), data_len.begin(), data_len.end());
  315|  4.42k|      out.insert(out.end(), data.begin(), data.end());
  316|  4.42k|   };
x509_dn.cpp:_ZZN5Botan12_GLOBAL__N_115canonicalize_dnERKNSt3__16vectorINS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEENS7_IS9_EEEEENK3$_0clINS1_12basic_stringIcNS1_11char_traitsIcEENS7_IcEEEEEEDaRNS2_IhNS7_IhEEEERKT_:
  312|  2.21k|   auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  313|  2.21k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  314|  2.21k|      out.insert(out.end(), data_len.begin(), data_len.end());
  315|  2.21k|      out.insert(out.end(), data.begin(), data.end());
  316|  2.21k|   };
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_18is_spaceEc:
   27|  18.6k|bool is_space(char c) {
   28|  18.6k|   return c == ' ' || c == '\t';
  ------------------
  |  Branch (28:11): [True: 979, False: 17.7k]
  |  Branch (28:23): [True: 440, False: 17.2k]
  ------------------
   29|  18.6k|}

_ZN5Botan10Extensions15create_extn_objERKNS_3OIDEbRKNSt3__16vectorIhNS4_9allocatorIhEEEENS4_8optionalINS_17Extension_ContextEEE:
  148|  14.8k|                                                                   std::optional<Extension_Context> context) {
  149|  14.8k|   auto extn = extension_from_oid(oid);
  150|       |
  151|  14.8k|   if(!extn) {
  ------------------
  |  Branch (151:7): [True: 8.47k, False: 6.33k]
  ------------------
  152|       |      // some other unknown extension type
  153|  8.47k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  154|  8.47k|   } else {
  155|  6.33k|      if(context.has_value() && !extn->is_appropriate_context(*context)) {
  ------------------
  |  Branch (155:10): [True: 6.33k, False: 0]
  |  Branch (155:33): [True: 28, False: 6.30k]
  ------------------
  156|     28|         throw Decoding_Error(fmt("Extension {} is not allowed in this context", extn->oid_name()));
  157|     28|      }
  158|       |
  159|  6.30k|      try {
  160|  6.30k|         extn->decode_inner(body);
  161|  6.30k|         return extn;
  162|  6.30k|      } catch(const Exception&) {
  163|       |         // OID was recognized but contents failed to decode
  164|  4.51k|         extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical, /*failed_to_decode=*/true);
  165|  4.51k|      }
  166|  6.30k|   }
  167|       |
  168|       |   // This is always Unknown_Extension:
  169|  12.9k|   extn->decode_inner(body);
  170|  12.9k|   return extn;
  171|  14.8k|}
_ZNK5Botan10Extensions15Extensions_Info3objEv:
  173|  3.96k|const Certificate_Extension& Extensions::Extensions_Info::obj() const {
  174|  3.96k|   BOTAN_ASSERT_NONNULL(m_obj.get());
  ------------------
  |  |  116|  3.96k|   do {                                                                                   \
  |  |  117|  3.96k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 3.96k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  3.96k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 3.96k]
  |  |  ------------------
  ------------------
  175|  3.96k|   return *m_obj;
  176|  3.96k|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  256|  7.77k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  257|  7.77k|   auto extn = m_extension_info.find(oid);
  258|  7.77k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (258:7): [True: 3.81k, False: 3.96k]
  ------------------
  259|  3.81k|      return nullptr;
  260|  3.81k|   }
  261|       |
  262|  3.96k|   return &extn->second.obj();
  263|  7.77k|}
_ZN5Botan10Extensions11decode_fromERNS_11BER_DecoderENSt3__18optionalINS_17Extension_ContextEEE:
  326|  9.16k|void Extensions::decode_from(BER_Decoder& from_source, std::optional<Extension_Context> context) {
  327|  9.16k|   m_extension_oids.clear();
  328|  9.16k|   m_extension_info.clear();
  329|  9.16k|   m_has_unknown_critical_extension = false;
  330|       |
  331|  9.16k|   BER_Decoder sequence = from_source.start_sequence();
  332|       |
  333|  23.6k|   while(sequence.more_items()) {
  ------------------
  |  Branch (333:10): [True: 15.3k, False: 8.24k]
  ------------------
  334|  15.3k|      OID oid;
  335|  15.3k|      bool critical = false;
  336|  15.3k|      std::vector<uint8_t> bits;
  337|       |
  338|  15.3k|      sequence.start_sequence()
  339|  15.3k|         .decode(oid)
  340|  15.3k|         .decode_optional(critical, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  341|  15.3k|         .decode(bits, ASN1_Type::OctetString)
  342|  15.3k|         .end_cons();
  343|       |
  344|  15.3k|      auto obj = create_extn_obj(oid, critical, bits, context);
  345|       |      // Unknown_Extension is the only Certificate_Extension with an empty oid_name
  346|  15.3k|      if(critical && obj->oid_name().empty()) {
  ------------------
  |  Branch (346:10): [True: 2, False: 15.3k]
  |  Branch (346:10): [True: 2, False: 15.3k]
  |  Branch (346:22): [True: 2, False: 0]
  ------------------
  347|      2|         m_has_unknown_critical_extension = true;
  348|      2|      }
  349|  15.3k|      Extensions_Info info(critical, bits, std::move(obj));
  350|       |
  351|       |      // RFC 5280 4.2: "A certificate MUST NOT include more than one
  352|       |      // instance of a particular extension."
  353|  15.3k|      if(!m_extension_info.emplace(oid, info).second) {
  ------------------
  |  Branch (353:10): [True: 920, False: 14.4k]
  ------------------
  354|    920|         throw Decoding_Error("Duplicate certificate extension encountered");
  355|    920|      }
  356|  14.4k|      m_extension_oids.push_back(oid);
  357|  14.4k|   }
  358|  8.24k|   sequence.verify_end();
  359|  8.24k|}
_ZNK5Botan14Cert_Extension17Basic_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  363|      3|bool Basic_Constraints::is_appropriate_context(Extension_Context context) const {
  364|      3|   return context == Extension_Context::Certificate;
  365|      3|}
_ZNK5Botan14Cert_Extension9Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  367|      1|bool Key_Usage::is_appropriate_context(Extension_Context context) const {
  368|      1|   return context == Extension_Context::Certificate;
  369|      1|}
_ZNK5Botan14Cert_Extension14Subject_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  371|      3|bool Subject_Key_ID::is_appropriate_context(Extension_Context context) const {
  372|      3|   return context == Extension_Context::Certificate;
  373|      3|}
_ZNK5Botan14Cert_Extension16Authority_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  375|     85|bool Authority_Key_ID::is_appropriate_context(Extension_Context context) const {
  376|     85|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (376:11): [True: 0, False: 85]
  |  Branch (376:56): [True: 84, False: 1]
  ------------------
  377|     85|}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  379|      1|bool Subject_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  380|      1|   return context == Extension_Context::Certificate;
  381|      1|}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  383|  1.98k|bool Issuer_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  384|  1.98k|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (384:11): [True: 0, False: 1.98k]
  |  Branch (384:56): [True: 1.98k, False: 1]
  ------------------
  385|  1.98k|}
_ZNK5Botan14Cert_Extension18Extended_Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  387|      1|bool Extended_Key_Usage::is_appropriate_context(Extension_Context context) const {
  388|      1|   return context == Extension_Context::Certificate;
  389|      1|}
_ZNK5Botan14Cert_Extension16Name_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  391|      2|bool Name_Constraints::is_appropriate_context(Extension_Context context) const {
  392|      2|   return context == Extension_Context::Certificate;
  393|      2|}
_ZNK5Botan14Cert_Extension20Certificate_Policies22is_appropriate_contextENS_17Extension_ContextE:
  395|      2|bool Certificate_Policies::is_appropriate_context(Extension_Context context) const {
  396|      2|   return context == Extension_Context::Certificate;
  397|      2|}
_ZNK5Botan14Cert_Extension28Authority_Information_Access22is_appropriate_contextENS_17Extension_ContextE:
  399|     90|bool Authority_Information_Access::is_appropriate_context(Extension_Context context) const {
  400|     90|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (400:11): [True: 0, False: 90]
  |  Branch (400:56): [True: 90, False: 0]
  ------------------
  401|     90|}
_ZNK5Botan14Cert_Extension10CRL_Number22is_appropriate_contextENS_17Extension_ContextE:
  403|     49|bool CRL_Number::is_appropriate_context(Extension_Context context) const {
  404|     49|   return context == Extension_Context::CRL;
  405|     49|}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode22is_appropriate_contextENS_17Extension_ContextE:
  407|  3.92k|bool CRL_ReasonCode::is_appropriate_context(Extension_Context context) const {
  408|       |   // RFC 6960 4.4.5: "All the extensions specified as CRL entry extensions
  409|       |   // -- in Section 5.3 of [RFC5280] -- are also supported as singleExtensions."
  410|  3.92k|   return context == Extension_Context::CRL_Entry || context == Extension_Context::OCSP_Response;
  ------------------
  |  Branch (410:11): [True: 3.92k, False: 3]
  |  Branch (410:54): [True: 0, False: 3]
  ------------------
  411|  3.92k|}
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points22is_appropriate_contextENS_17Extension_ContextE:
  413|      3|bool CRL_Distribution_Points::is_appropriate_context(Extension_Context context) const {
  414|      3|   return context == Extension_Context::Certificate;
  415|      3|}
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point22is_appropriate_contextENS_17Extension_ContextE:
  417|    183|bool CRL_Issuing_Distribution_Point::is_appropriate_context(Extension_Context context) const {
  418|    183|   return context == Extension_Context::CRL;
  419|    183|}
_ZNK5Botan14Cert_Extension21NoRevocationAvailable22is_appropriate_contextENS_17Extension_ContextE:
  425|      1|bool NoRevocationAvailable::is_appropriate_context(Extension_Context context) const {
  426|      1|   return context == Extension_Context::Certificate;
  427|      1|}
_ZNK5Botan14Cert_Extension10TNAuthList22is_appropriate_contextENS_17Extension_ContextE:
  429|      1|bool TNAuthList::is_appropriate_context(Extension_Context context) const {
  430|      1|   return context == Extension_Context::Certificate;
  431|      1|}
_ZNK5Botan14Cert_Extension15IPAddressBlocks22is_appropriate_contextENS_17Extension_ContextE:
  433|      1|bool IPAddressBlocks::is_appropriate_context(Extension_Context context) const {
  434|      1|   return context == Extension_Context::Certificate;
  435|      1|}
_ZNK5Botan14Cert_Extension8ASBlocks22is_appropriate_contextENS_17Extension_ContextE:
  437|      1|bool ASBlocks::is_appropriate_context(Extension_Context context) const {
  438|      1|   return context == Extension_Context::Certificate;
  439|      1|}
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2Ebm:
  446|      3|      Basic_Constraints(is_ca, is_ca ? std::optional<size_t>(path_length_constraint) : std::nullopt) {}
  ------------------
  |  Branch (446:32): [True: 0, False: 3]
  ------------------
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2EbNSt3__18optionalImEE:
  449|      3|      m_is_ca(is_ca), m_path_length_constraint(path_length_constraint) {
  450|      3|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (450:7): [True: 3, False: 0]
  |  Branch (450:19): [True: 0, False: 3]
  ------------------
  451|       |      // RFC 5280 Sec 4.2.1.9 "CAs MUST NOT include the pathLenConstraint field unless the cA boolean is asserted"
  452|      0|      throw Invalid_Argument(
  453|      0|         "Basic_Constraints nonsensical to set a path length constraint for a non-CA basicConstraints");
  454|      0|   }
  455|      3|}
_ZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  624|     84|void Authority_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  625|       |   /*
  626|       |   * RFC 5280 Section 4.2.1.1
  627|       |   *
  628|       |   * AuthorityKeyIdentifier ::= SEQUENCE {
  629|       |   *    keyIdentifier             [0] KeyIdentifier           OPTIONAL,
  630|       |   *    authorityCertIssuer       [1] GeneralNames            OPTIONAL,
  631|       |   *    authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
  632|       |   */
  633|     84|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  634|     84|   BER_Decoder seq = ber.start_sequence();
  635|       |
  636|     84|   m_key_id.clear();
  637|     84|   m_authority_cert.reset();
  638|       |
  639|     84|   bool key_id_present = false;
  640|     84|   std::optional<AlternativeName> authority_cert_issuer;
  641|     84|   std::optional<X509_Serial_Number> authority_cert_serial;
  642|       |
  643|     84|   seq.decode_optional_field(0,
  644|     84|                             ASN1_Class::ContextSpecific,
  645|     84|                             [&](BER_Decoder& d) {
  646|     84|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  647|     84|                                key_id_present = true;
  648|     84|                             })
  649|     84|      .decode_optional_field(1,
  650|     84|                             ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  651|     84|                             [&](BER_Decoder& d) {
  652|     84|                                AlternativeName names;
  653|     84|                                d.decode_implicit(names,
  654|     84|                                                  ASN1_Type(1),
  655|     84|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  656|     84|                                                  ASN1_Type::Sequence,
  657|     84|                                                  ASN1_Class::Constructed);
  658|     84|                                authority_cert_issuer = std::move(names);
  659|     84|                             })
  660|     84|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  661|     84|         X509_Serial_Number serial;
  662|     84|         d.decode_implicit(
  663|     84|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  664|     84|         authority_cert_serial = std::move(serial);
  665|     84|      });
  666|       |
  667|     84|   seq.end_cons();
  668|     84|   ber.verify_end();
  669|       |
  670|     84|   if(key_id_present) {
  ------------------
  |  Branch (670:7): [True: 10, False: 74]
  ------------------
  671|     10|      if(m_key_id.empty()) {
  ------------------
  |  Branch (671:10): [True: 0, False: 10]
  ------------------
  672|      0|         throw Decoding_Error("AuthorityKeyIdentifier keyIdentifier must not be empty");
  673|      0|      }
  674|     10|      if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (674:10): [True: 3, False: 7]
  ------------------
  675|      3|         throw Decoding_Error(fmt("AuthorityKeyIdentifier keyIdentifier length {} exceeds limit of {} bytes",
  676|      3|                                  m_key_id.size(),
  677|      3|                                  MaximumKeyIdentifierLength));
  678|      3|      }
  679|     10|   }
  680|       |
  681|       |   // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
  682|     81|   if(authority_cert_issuer.has_value() && authority_cert_issuer->is_empty()) {
  ------------------
  |  Branch (682:7): [True: 0, False: 81]
  |  Branch (682:44): [True: 0, False: 0]
  ------------------
  683|      0|      throw Decoding_Error("AuthorityKeyIdentifier authorityCertIssuer must contain at least one GeneralName");
  684|      0|   }
  685|       |
  686|       |   /*
  687|       |   * RFC 5280 Appendix A.2:
  688|       |   *
  689|       |   *    authorityCertIssuer and authorityCertSerialNumber MUST both be
  690|       |   *    present or both be absent
  691|       |   */
  692|     81|   if(authority_cert_issuer.has_value() != authority_cert_serial.has_value()) {
  ------------------
  |  Branch (692:7): [True: 4, False: 77]
  ------------------
  693|      4|      throw Decoding_Error(
  694|      4|         "AuthorityKeyIdentifier authorityCertIssuer and authorityCertSerialNumber must both be present or absent");
  695|      4|   }
  696|       |
  697|     77|   if(authority_cert_issuer.has_value()) {
  ------------------
  |  Branch (697:7): [True: 0, False: 77]
  ------------------
  698|      0|      m_authority_cert =
  699|      0|         Authority_Cert_Identifier{std::move(*authority_cert_issuer), std::move(*authority_cert_serial)};
  700|      0|   }
  701|     77|}
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  736|  1.98k|void Issuer_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  737|       |   /* RFC 5280 Section 4.2.1.7 - IssuerAltName ::= GeneralNames
  738|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  739|  1.98k|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  740|  1.98k|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (740:7): [True: 3, False: 1.97k]
  ------------------
  741|      3|      throw Decoding_Error("IssuerAlternativeName extension must contain at least one GeneralName");
  742|      3|   }
  743|  1.98k|}
_ZN5Botan14Cert_Extension28Authority_Information_Access12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1134|     90|void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) {
 1135|       |   /*
 1136|       |   * RFC 5280 Section 4.2.2.1
 1137|       |   *
 1138|       |   * AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription
 1139|       |   * AccessDescription ::= SEQUENCE {
 1140|       |   *    accessMethod          OBJECT IDENTIFIER,
 1141|       |   *    accessLocation        GeneralName }
 1142|       |   */
 1143|     90|   BER_Decoder outer(in, BER_Decoder::Limits::DER());
 1144|     90|   BER_Decoder ber = outer.start_sequence();
 1145|       |
 1146|     90|   const OID ocsp_responder = OID::from_string("PKIX.OCSP");
 1147|     90|   const OID ca_issuer = OID::from_string("PKIX.CertificateAuthorityIssuers");
 1148|       |
 1149|     90|   m_access_descriptions.clear();
 1150|     90|   m_ocsp_responders.clear();
 1151|     90|   m_ca_issuers.clear();
 1152|       |
 1153|    307|   while(ber.more_items()) {
  ------------------
  |  Branch (1153:10): [True: 218, False: 89]
  ------------------
 1154|    218|      OID oid;
 1155|       |
 1156|    218|      BER_Decoder info = ber.start_sequence();
 1157|       |
 1158|    218|      info.decode(oid);
 1159|    218|      const BER_Object name = info.get_next_object();
 1160|       |
 1161|       |      /* RFC 5280 4.2.2.1:
 1162|       |      *    AccessDescription  ::=  SEQUENCE {
 1163|       |      *         accessMethod          OBJECT IDENTIFIER,
 1164|       |      *         accessLocation        GeneralName  }
 1165|       |      */
 1166|    218|      if(!name.is_set()) {
  ------------------
  |  Branch (1166:10): [True: 1, False: 217]
  ------------------
 1167|      1|         throw Decoding_Error("AuthorityInformationAccess AccessDescription missing accessLocation");
 1168|      1|      }
 1169|    217|      validate_general_name_encoding(name.type_tag(), name.get_class(), name.data());
 1170|    217|      info.end_cons();
 1171|       |
 1172|    217|      m_access_descriptions.emplace_back(
 1173|    217|         oid, name.type_tag(), name.get_class(), std::vector<uint8_t>(name.data().begin(), name.data().end()));
 1174|       |
 1175|    217|      if(name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (1175:10): [True: 42, False: 175]
  ------------------
 1176|     42|         if(oid == ocsp_responder) {
  ------------------
  |  Branch (1176:13): [True: 1, False: 41]
  ------------------
 1177|      1|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1177:21): [True: 1, False: 0]
  ------------------
 1178|      1|               m_ocsp_responders.push_back(std::move(*parsed));
 1179|      1|            } else {
 1180|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess OCSP responder");
 1181|      0|            }
 1182|     41|         } else if(oid == ca_issuer) {
  ------------------
  |  Branch (1182:20): [True: 1, False: 40]
  ------------------
 1183|      1|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1183:21): [True: 1, False: 0]
  ------------------
 1184|      1|               m_ca_issuers.push_back(std::move(*parsed));
 1185|      1|            } else {
 1186|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess CA issuers");
 1187|      0|            }
 1188|      1|         }
 1189|     42|      }
 1190|    217|   }
 1191|       |
 1192|     89|   ber.end_cons();
 1193|     89|   outer.verify_end();
 1194|       |
 1195|     89|   if(m_access_descriptions.empty()) {
  ------------------
  |  Branch (1195:7): [True: 0, False: 89]
  ------------------
 1196|      0|      throw Decoding_Error("AuthorityInformationAccess extension must contain at least one AccessDescription");
 1197|      0|   }
 1198|     89|}
_ZNK5Botan14Cert_Extension10CRL_Number10crl_numberEv:
 1204|     13|const BigInt& CRL_Number::crl_number() const {
 1205|       |   // This can only happen via a misuse of the CRL_Number default constructor
 1206|     13|   BOTAN_STATE_CHECK(m_has_value);
  ------------------
  |  |   51|     13|   do {                                                         \
  |  |   52|     13|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     13|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 13]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     13|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 13]
  |  |  ------------------
  ------------------
 1207|     13|   return m_crl_number;
 1208|     13|}
_ZN5Botan14Cert_Extension10CRL_Number12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1238|     48|void CRL_Number::decode_inner(const std::vector<uint8_t>& in) {
 1239|       |   /* RFC 5280 Section 5.2.3 - CRLNumber ::= INTEGER (0..MAX) */
 1240|     48|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_crl_number).verify_end();
 1241|     48|   if(m_crl_number.signum() < 0) {
  ------------------
  |  Branch (1241:7): [True: 4, False: 44]
  ------------------
 1242|      4|      throw Decoding_Error("CRL number cannot be negative");
 1243|      4|   }
 1244|     44|   m_has_value = true;
 1245|     44|}
_ZN5Botan14Cert_Extension14CRL_ReasonCode12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1259|  3.92k|void CRL_ReasonCode::decode_inner(const std::vector<uint8_t>& in) {
 1260|       |   /*
 1261|       |   * RFC 5280 Section 5.3.1
 1262|       |   *
 1263|       |   * CRLReason ::= ENUMERATED {
 1264|       |   *      unspecified             (0),
 1265|       |   *      keyCompromise           (1),
 1266|       |   *      cACompromise            (2),
 1267|       |   *      affiliationChanged      (3),
 1268|       |   *      superseded              (4),
 1269|       |   *      cessationOfOperation    (5),
 1270|       |   *      certificateHold         (6),
 1271|       |   *           -- value 7 is not used
 1272|       |   *      removeFromCRL           (8),
 1273|       |   *      privilegeWithdrawn      (9),
 1274|       |   *      aACompromise           (10) }
 1275|       |   */
 1276|  3.92k|   size_t reason_code = 0;
 1277|  3.92k|   BER_Decoder(in, BER_Decoder::Limits::DER())
 1278|  3.92k|      .decode(reason_code, ASN1_Type::Enumerated, ASN1_Class::Universal)
 1279|  3.92k|      .verify_end();
 1280|       |
 1281|  3.92k|   if(reason_code == 7 || reason_code > 10) {
  ------------------
  |  Branch (1281:7): [True: 1.76k, False: 2.15k]
  |  Branch (1281:27): [True: 515, False: 1.64k]
  ------------------
 1282|    565|      throw Decoding_Error(fmt("CRLReason has unknown enumeration value {}", reason_code));
 1283|    565|   }
 1284|       |
 1285|  3.36k|   m_reason = static_cast<CRL_Code>(reason_code);
 1286|  3.36k|}
_ZN5Botan14Cert_Extension21DistributionPointName11decode_fromERNS_11BER_DecoderE:
 1355|     35|void DistributionPointName::decode_from(BER_Decoder& ber) {
 1356|     35|   const BER_Object& obj = ber.peek_next_object();
 1357|     35|   if(obj.is_a(0, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1357:7): [True: 28, False: 7]
  ------------------
 1358|     28|      AlternativeName full_name;
 1359|     28|      ber.decode_implicit(full_name,
 1360|     28|                          ASN1_Type(0),
 1361|     28|                          ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1362|     28|                          ASN1_Type::Sequence,
 1363|     28|                          ASN1_Class::Constructed);
 1364|       |      // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 1365|     28|      if(!full_name.has_items()) {
  ------------------
  |  Branch (1365:10): [True: 4, False: 24]
  ------------------
 1366|      4|         throw Decoding_Error("DistributionPointName fullName must contain at least one GeneralName");
 1367|      4|      }
 1368|     24|      if(std::ranges::any_of(full_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1368:10): [True: 0, False: 24]
  ------------------
 1369|      0|         throw Decoding_Error("DistributionPointName fullName must not contain an empty directoryName");
 1370|      0|      }
 1371|     24|      m_full_name = std::move(full_name);
 1372|     24|   } else if(obj.is_a(1, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1372:14): [True: 3, False: 4]
  ------------------
 1373|      3|      throw Decoding_Error("nameRelativeToCrlIssuer not supported in DistributionPointName");
 1374|      4|   } else {
 1375|      4|      throw Decoding_Error("DistributionPointName CHOICE is neither fullName nor nameRelativeToCRLIssuer");
 1376|      4|   }
 1377|     35|}
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1551|    181|void CRL_Issuing_Distribution_Point::decode_inner(const std::vector<uint8_t>& buf) {
 1552|       |   /*
 1553|       |   * RFC 5280 Section 5.2.5
 1554|       |   *
 1555|       |   * IssuingDistributionPoint ::= SEQUENCE {
 1556|       |   *      distributionPoint          [0] DistributionPointName OPTIONAL,
 1557|       |   *      onlyContainsUserCerts      [1] BOOLEAN DEFAULT FALSE,
 1558|       |   *      onlyContainsCACerts        [2] BOOLEAN DEFAULT FALSE,
 1559|       |   *      onlySomeReasons            [3] ReasonFlags OPTIONAL,
 1560|       |   *      indirectCRL                [4] BOOLEAN DEFAULT FALSE,
 1561|       |   *      onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE }
 1562|       |   */
 1563|    181|   BER_Decoder outer(buf, BER_Decoder::Limits::DER());
 1564|    181|   BER_Decoder seq = outer.start_sequence();
 1565|       |
 1566|    181|   m_dp_name.reset();
 1567|    181|   m_only_contains_user_certs = false;
 1568|    181|   m_only_contains_ca_certs = false;
 1569|    181|   m_only_some_reasons = {};
 1570|    181|   m_indirect_crl = false;
 1571|    181|   m_only_contains_attribute_certs = false;
 1572|       |
 1573|    181|   auto decode_implicit_bool = [&](BER_Decoder& dec, uint32_t tag) -> bool {
 1574|    181|      bool value = false;
 1575|    181|      dec.decode(value, ASN1_Type(tag), ASN1_Class::ContextSpecific);
 1576|    181|      return value;
 1577|    181|   };
 1578|       |
 1579|       |   // DER: these optional fields appear at most once and in increasing tag
 1580|       |   // order. Decoding them in tag order and then rejecting anything left over
 1581|       |   // (see end_cons below) catches out-of-order, duplicate, and unknown fields.
 1582|    181|   seq.decode_optional_field(0,
 1583|    181|                             ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1584|    181|                             [&](BER_Decoder& d) {
 1585|    181|                                DistributionPointName name;
 1586|    181|                                d.start_context_specific(0).decode(name).verify_end();
 1587|    181|                                m_dp_name = std::move(name);
 1588|    181|                             })
 1589|    181|      .decode_optional_field(1,
 1590|    181|                             ASN1_Class::ContextSpecific,
 1591|    181|                             [&](BER_Decoder& d) { m_only_contains_user_certs = decode_implicit_bool(d, 1); })
 1592|    181|      .decode_optional_field(
 1593|    181|         2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_only_contains_ca_certs = decode_implicit_bool(d, 2); })
 1594|    181|      .decode_optional_field(3,
 1595|    181|                             ASN1_Class::ContextSpecific,
 1596|    181|                             [&](BER_Decoder& d) { m_only_some_reasons = decode_reason_flags_implicit(d, 3); })
 1597|    181|      .decode_optional_field(
 1598|    181|         4, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_indirect_crl = decode_implicit_bool(d, 4); })
 1599|    181|      .decode_optional_field(5, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
 1600|    181|         m_only_contains_attribute_certs = decode_implicit_bool(d, 5);
 1601|    181|      });
 1602|       |
 1603|    181|   seq.end_cons();
 1604|    181|   outer.verify_end();
 1605|       |
 1606|       |   /* RFC 5280 5.2.5: "Conforming CRLs issuers MUST NOT issue CRLs where the
 1607|       |   * DER encoding of the issuing distribution point extension is an empty
 1608|       |   * sequence." Empty here means none of the fields above were present. */
 1609|    181|   if(!m_dp_name.has_value() && !m_only_contains_user_certs && !m_only_contains_ca_certs &&
  ------------------
  |  Branch (1609:7): [True: 0, False: 181]
  |  Branch (1609:33): [True: 0, False: 0]
  |  Branch (1609:64): [True: 0, False: 0]
  ------------------
 1610|      0|      !m_only_some_reasons.has_value() && !m_indirect_crl && !m_only_contains_attribute_certs) {
  ------------------
  |  Branch (1610:7): [True: 0, False: 0]
  |  Branch (1610:43): [True: 0, False: 0]
  |  Branch (1610:62): [True: 0, False: 0]
  ------------------
 1611|      0|      throw Decoding_Error("IssuingDistributionPoint must contain at least one field");
 1612|      0|   }
 1613|       |
 1614|       |   /* RFC 5280 5.2.5: "at most one of onlyContainsUserCerts,
 1615|       |   * onlyContainsCACerts, and onlyContainsAttributeCerts may be set to TRUE." */
 1616|    181|   const size_t scope_set = static_cast<size_t>(m_only_contains_user_certs) +
 1617|    181|                            static_cast<size_t>(m_only_contains_ca_certs) +
 1618|    181|                            static_cast<size_t>(m_only_contains_attribute_certs);
 1619|    181|   if(scope_set > 1) {
  ------------------
  |  Branch (1619:7): [True: 0, False: 181]
  ------------------
 1620|      0|      throw Decoding_Error(
 1621|      0|         "IssuingDistributionPoint sets more than one of onlyContainsUserCerts/CACerts/AttributeCerts");
 1622|      0|   }
 1623|    181|}
_ZN5Botan14Cert_Extension17Unknown_Extension12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2612|  12.9k|void Unknown_Extension::decode_inner(const std::vector<uint8_t>& bytes) {
 2613|       |   // Just treat as an opaque blob at this level
 2614|  12.9k|   m_bytes = bytes;
 2615|  12.9k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_118extension_from_oidERKNS_3OIDE:
   55|  14.8k|std::unique_ptr<Certificate_Extension> extension_from_oid(const OID& oid) {
   56|  14.8k|   if(auto iso_ext = is_sub_element_of(oid, {2, 5, 29})) {
  ------------------
  |  Branch (56:12): [True: 11.6k, False: 3.20k]
  ------------------
   57|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   58|  11.6k|      switch(*iso_ext) {
  ------------------
  |  Branch (58:14): [True: 6.24k, False: 5.36k]
  ------------------
   59|      3|         case 14:
  ------------------
  |  Branch (59:10): [True: 3, False: 11.6k]
  ------------------
   60|      3|            return make_extension<Cert_Extension::Subject_Key_ID>(oid);
   61|      1|         case 15:
  ------------------
  |  Branch (61:10): [True: 1, False: 11.6k]
  ------------------
   62|      1|            return make_extension<Cert_Extension::Key_Usage>(oid);
   63|      1|         case 17:
  ------------------
  |  Branch (63:10): [True: 1, False: 11.6k]
  ------------------
   64|      1|            return make_extension<Cert_Extension::Subject_Alternative_Name>(oid);
   65|  1.98k|         case 18:
  ------------------
  |  Branch (65:10): [True: 1.98k, False: 9.62k]
  ------------------
   66|  1.98k|            return make_extension<Cert_Extension::Issuer_Alternative_Name>(oid);
   67|      3|         case 19:
  ------------------
  |  Branch (67:10): [True: 3, False: 11.6k]
  ------------------
   68|      3|            return make_extension<Cert_Extension::Basic_Constraints>(oid);
   69|     49|         case 20:
  ------------------
  |  Branch (69:10): [True: 49, False: 11.5k]
  ------------------
   70|     49|            return make_extension<Cert_Extension::CRL_Number>(oid);
   71|  3.92k|         case 21:
  ------------------
  |  Branch (71:10): [True: 3.92k, False: 7.67k]
  ------------------
   72|  3.92k|            return make_extension<Cert_Extension::CRL_ReasonCode>(oid);
   73|    183|         case 28:
  ------------------
  |  Branch (73:10): [True: 183, False: 11.4k]
  ------------------
   74|    183|            return make_extension<Cert_Extension::CRL_Issuing_Distribution_Point>(oid);
   75|      2|         case 30:
  ------------------
  |  Branch (75:10): [True: 2, False: 11.6k]
  ------------------
   76|      2|            return make_extension<Cert_Extension::Name_Constraints>(oid);
   77|      3|         case 31:
  ------------------
  |  Branch (77:10): [True: 3, False: 11.6k]
  ------------------
   78|      3|            return make_extension<Cert_Extension::CRL_Distribution_Points>(oid);
   79|      2|         case 32:
  ------------------
  |  Branch (79:10): [True: 2, False: 11.6k]
  ------------------
   80|      2|            return make_extension<Cert_Extension::Certificate_Policies>(oid);
   81|     85|         case 35:
  ------------------
  |  Branch (81:10): [True: 85, False: 11.5k]
  ------------------
   82|     85|            return make_extension<Cert_Extension::Authority_Key_ID>(oid);
   83|      1|         case 37:
  ------------------
  |  Branch (83:10): [True: 1, False: 11.6k]
  ------------------
   84|      1|            return make_extension<Cert_Extension::Extended_Key_Usage>(oid);
   85|      1|         case 56:
  ------------------
  |  Branch (85:10): [True: 1, False: 11.6k]
  ------------------
   86|      1|            return make_extension<Cert_Extension::NoRevocationAvailable>(oid);
   87|  11.6k|      }
   88|  11.6k|   }
   89|       |
   90|  8.57k|   if(auto pkix_ext = is_sub_element_of(oid, {1, 3, 6, 1, 5, 5, 7, 1})) {
  ------------------
  |  Branch (90:12): [True: 94, False: 8.47k]
  ------------------
   91|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   92|     94|      switch(*pkix_ext) {
  ------------------
  |  Branch (92:14): [True: 93, False: 1]
  ------------------
   93|     90|         case 1:
  ------------------
  |  Branch (93:10): [True: 90, False: 4]
  ------------------
   94|     90|            return make_extension<Cert_Extension::Authority_Information_Access>(oid);
   95|      1|         case 7:
  ------------------
  |  Branch (95:10): [True: 1, False: 93]
  ------------------
   96|      1|            return make_extension<Cert_Extension::IPAddressBlocks>(oid);
   97|      1|         case 8:
  ------------------
  |  Branch (97:10): [True: 1, False: 93]
  ------------------
   98|      1|            return make_extension<Cert_Extension::ASBlocks>(oid);
   99|      1|         case 26:
  ------------------
  |  Branch (99:10): [True: 1, False: 93]
  ------------------
  100|      1|            return make_extension<Cert_Extension::TNAuthList>(oid);
  101|     94|      }
  102|     94|   }
  103|       |
  104|  8.47k|   if(oid == Cert_Extension::OCSP_NoCheck::static_oid()) {
  ------------------
  |  Branch (104:7): [True: 0, False: 8.47k]
  ------------------
  105|      0|      return make_extension<Cert_Extension::OCSP_NoCheck>(oid);
  106|      0|   }
  107|       |
  108|  8.47k|   return nullptr;  // unknown
  109|  8.47k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14Subject_Key_IDEEEDaRKNS_3OIDE:
   50|      3|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      3|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      3|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      3|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3]
  |  |  ------------------
  ------------------
   52|      3|   return std::make_unique<T>();
   53|      3|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension9Key_UsageEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension24Subject_Alternative_NameEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23Issuer_Alternative_NameEEEDaRKNS_3OIDE:
   50|  1.98k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.98k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.98k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.98k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.98k]
  |  |  ------------------
  ------------------
   52|  1.98k|   return std::make_unique<T>();
   53|  1.98k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension17Basic_ConstraintsEEEDaRKNS_3OIDE:
   50|      3|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      3|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      3|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      3|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3]
  |  |  ------------------
  ------------------
   52|      3|   return std::make_unique<T>();
   53|      3|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10CRL_NumberEEEDaRKNS_3OIDE:
   50|     49|auto make_extension([[maybe_unused]] const OID& oid) {
   51|     49|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     49|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     49|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 49]
  |  |  ------------------
  ------------------
   52|     49|   return std::make_unique<T>();
   53|     49|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14CRL_ReasonCodeEEEDaRKNS_3OIDE:
   50|  3.92k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  3.92k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  3.92k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.92k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.92k]
  |  |  ------------------
  ------------------
   52|  3.92k|   return std::make_unique<T>();
   53|  3.92k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEDaRKNS_3OIDE:
   50|    183|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    183|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    183|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    183|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 183]
  |  |  ------------------
  ------------------
   52|    183|   return std::make_unique<T>();
   53|    183|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Name_ConstraintsEEEDaRKNS_3OIDE:
   50|      2|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      2|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      2|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      2|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2]
  |  |  ------------------
  ------------------
   52|      2|   return std::make_unique<T>();
   53|      2|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23CRL_Distribution_PointsEEEDaRKNS_3OIDE:
   50|      3|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      3|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      3|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      3|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3]
  |  |  ------------------
  ------------------
   52|      3|   return std::make_unique<T>();
   53|      3|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension20Certificate_PoliciesEEEDaRKNS_3OIDE:
   50|      2|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      2|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      2|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      2|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2]
  |  |  ------------------
  ------------------
   52|      2|   return std::make_unique<T>();
   53|      2|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Authority_Key_IDEEEDaRKNS_3OIDE:
   50|     85|auto make_extension([[maybe_unused]] const OID& oid) {
   51|     85|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     85|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     85|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 85]
  |  |  ------------------
  ------------------
   52|     85|   return std::make_unique<T>();
   53|     85|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension18Extended_Key_UsageEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension21NoRevocationAvailableEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension28Authority_Information_AccessEEEDaRKNS_3OIDE:
   50|     90|auto make_extension([[maybe_unused]] const OID& oid) {
   51|     90|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     90|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     90|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 90]
  |  |  ------------------
  ------------------
   52|     90|   return std::make_unique<T>();
   53|     90|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension15IPAddressBlocksEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension8ASBlocksEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10TNAuthListEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
 1023|    193|void validate_general_name_encoding(ASN1_Type tag, ASN1_Class cls, std::span<const uint8_t> value) {
 1024|       |   // AlternativeName decodes GeneralNames; AIA accessLocation is a single GeneralName.
 1025|    193|   std::vector<uint8_t> wrapped_name;
 1026|    193|   DER_Encoder(wrapped_name).start_sequence().add_object(tag, cls, value).end_cons();
 1027|       |
 1028|    193|   AlternativeName decoded_name;
 1029|    193|   BER_Decoder(wrapped_name, BER_Decoder::Limits::DER()).decode(decoded_name).verify_end();
 1030|       |
 1031|    193|   if((tag == ASN1_Type(1) || tag == ASN1_Type(2) || tag == ASN1_Type(6)) && value.empty()) {
  ------------------
  |  Branch (1031:8): [True: 58, False: 135]
  |  Branch (1031:31): [True: 11, False: 124]
  |  Branch (1031:54): [True: 44, False: 80]
  |  Branch (1031:78): [True: 1, False: 55]
  ------------------
 1032|      1|      throw Decoding_Error("GeneralName IA5String value must not be empty");
 1033|      1|   }
 1034|    192|   if(tag == ASN1_Type(4) &&
  ------------------
  |  Branch (1034:7): [True: 2, False: 190]
  ------------------
 1035|      2|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1035:7): [True: 1, False: 1]
  ------------------
 1036|      1|      throw Decoding_Error("GeneralName directoryName must not be empty");
 1037|      1|   }
 1038|    192|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEEENK3$_0clERKNS_7X509_DNE:
 1035|      2|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_0clERNS_11BER_DecoderE:
  645|     13|                             [&](BER_Decoder& d) {
  646|     13|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  647|     13|                                key_id_present = true;
  648|     13|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_1clERNS_11BER_DecoderE:
  651|      7|                             [&](BER_Decoder& d) {
  652|      7|                                AlternativeName names;
  653|      7|                                d.decode_implicit(names,
  654|      7|                                                  ASN1_Type(1),
  655|      7|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  656|      7|                                                  ASN1_Type::Sequence,
  657|      7|                                                  ASN1_Class::Constructed);
  658|      7|                                authority_cert_issuer = std::move(names);
  659|      7|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_2clERNS_11BER_DecoderE:
  660|      6|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  661|      6|         X509_Serial_Number serial;
  662|      6|         d.decode_implicit(
  663|      6|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  664|      6|         authority_cert_serial = std::move(serial);
  665|      6|      });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128decode_reason_flags_implicitERNS_11BER_DecoderEj:
 1296|     38|ReasonFlags decode_reason_flags_implicit(BER_Decoder& decoder, uint32_t tag) {
 1297|     38|   uint64_t bits = 0;
 1298|     38|   decoder.decode_named_bitstring(bits, ReasonFlagsNamedBitWidth, ASN1_Type(tag), ASN1_Class::ContextSpecific);
 1299|     38|   return ReasonFlags(checked_cast_to<uint16_t>(bits));
 1300|     38|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_1clERNS_11BER_DecoderE:
 1584|     35|                             [&](BER_Decoder& d) {
 1585|     35|                                DistributionPointName name;
 1586|     35|                                d.start_context_specific(0).decode(name).verify_end();
 1587|     35|                                m_dp_name = std::move(name);
 1588|     35|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_2clERNS_11BER_DecoderE:
 1591|      8|                             [&](BER_Decoder& d) { m_only_contains_user_certs = decode_implicit_bool(d, 1); })
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_0clERNS_11BER_DecoderEj:
 1573|     27|   auto decode_implicit_bool = [&](BER_Decoder& dec, uint32_t tag) -> bool {
 1574|     27|      bool value = false;
 1575|     27|      dec.decode(value, ASN1_Type(tag), ASN1_Class::ContextSpecific);
 1576|     27|      return value;
 1577|     27|   };
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_3clERNS_11BER_DecoderE:
 1593|     10|         2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_only_contains_ca_certs = decode_implicit_bool(d, 2); })
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_4clERNS_11BER_DecoderE:
 1596|     38|                             [&](BER_Decoder& d) { m_only_some_reasons = decode_reason_flags_implicit(d, 3); })
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_5clERNS_11BER_DecoderE:
 1598|      4|         4, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_indirect_crl = decode_implicit_bool(d, 4); })
x509_ext.cpp:_ZZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_6clERNS_11BER_DecoderE:
 1599|      5|      .decode_optional_field(5, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
 1600|      5|         m_only_contains_attribute_certs = decode_implicit_bool(d, 5);
 1601|      5|      });

_ZN5Botan11X509_Object9load_dataERNS_10DataSourceE:
   24|  4.00k|void X509_Object::load_data(DataSource& in) {
   25|  4.00k|   try {
   26|  4.00k|      if(ASN1::maybe_BER(in) && !PEM_Code::matches(in)) {
  ------------------
  |  Branch (26:10): [True: 3.64k, False: 358]
  |  Branch (26:33): [True: 3.63k, False: 9]
  ------------------
   27|  3.63k|         BER_Decoder dec(in, BER_Decoder::Limits::DER());
   28|  3.63k|         decode_from(dec);
   29|       |         // Call to verify_end omitted here since we have to sometimes decode
   30|       |         // multiple certificates encoded sequentially in a DataSource
   31|  3.63k|      } else {
   32|    367|         std::string got_label;
   33|    367|         DataSource_Memory ber(PEM_Code::decode(in, got_label));
   34|       |
   35|    367|         if(got_label != PEM_label()) {
  ------------------
  |  Branch (35:13): [True: 93, False: 274]
  ------------------
   36|     93|            bool is_alternate = false;
   37|     93|            for(const std::string_view alt_label : alternate_PEM_labels()) {
  ------------------
  |  Branch (37:50): [True: 93, False: 92]
  ------------------
   38|     93|               if(got_label == alt_label) {
  ------------------
  |  Branch (38:19): [True: 1, False: 92]
  ------------------
   39|      1|                  is_alternate = true;
   40|      1|                  break;
   41|      1|               }
   42|     93|            }
   43|       |
   44|     93|            if(!is_alternate) {
  ------------------
  |  Branch (44:16): [True: 92, False: 1]
  ------------------
   45|     92|               throw Decoding_Error("Unexpected PEM label for " + PEM_label() + " of " + got_label);
   46|     92|            }
   47|     93|         }
   48|       |
   49|    275|         BER_Decoder dec(ber, BER_Decoder::Limits::DER());
   50|    275|         decode_from(dec);
   51|       |         // Call to verify_end omitted here since we have to sometimes decode
   52|       |         // multiple certificates encoded sequentially in a DataSource
   53|    275|      }
   54|  4.00k|   } catch(Decoding_Error& e) {
   55|  3.85k|      throw Decoding_Error(PEM_label() + " decoding", e);
   56|  3.85k|   }
   57|  4.00k|}
_ZNK5Botan11X509_Object11signed_bodyEv:
   66|  2.79k|const std::vector<uint8_t>& X509_Object::signed_body() const {
   67|  2.79k|   if(!m_signed_data) {
  ------------------
  |  Branch (67:7): [True: 0, False: 2.79k]
  ------------------
   68|      0|      throw Invalid_State("X509_Object uninitialized");
   69|      0|   }
   70|  2.79k|   return m_signed_data->m_tbs_bits;
   71|  2.79k|}
_ZNK5Botan11X509_Object19signature_algorithmEv:
   73|  2.79k|const AlgorithmIdentifier& X509_Object::signature_algorithm() const {
   74|  2.79k|   if(!m_signed_data) {
  ------------------
  |  Branch (74:7): [True: 0, False: 2.79k]
  ------------------
   75|      0|      throw Invalid_State("X509_Object uninitialized");
   76|      0|   }
   77|  2.79k|   return m_signed_data->m_sig_algo;
   78|  2.79k|}
_ZN5Botan11X509_Object11decode_fromERNS_11BER_DecoderE:
   93|  3.63k|void X509_Object::decode_from(BER_Decoder& from) {
   94|  3.63k|   auto data = std::make_shared<Signed_Data>();
   95|       |
   96|  3.63k|   from.start_sequence()
   97|  3.63k|      .start_sequence()
   98|  3.63k|      .raw_bytes(data->m_tbs_bits)
   99|  3.63k|      .end_cons()
  100|  3.63k|      .decode(data->m_sig_algo)
  101|  3.63k|      .decode_octet_aligned_bitstring(data->m_sig)
  102|  3.63k|      .end_cons();
  103|       |
  104|  3.63k|   m_signed_data = std::move(data);
  105|  3.63k|   force_decode();
  106|  3.63k|}

_ZN5Botan18X509_Serial_NumberC2ERKNS_6BigIntE:
   20|  9.03k|X509_Serial_Number::X509_Serial_Number(const BigInt& value) : m_contents(ASN1::integer_contents(value)) {}
_ZNK5Botan18X509_Serial_Number11is_negativeEv:
   65|  76.2k|bool X509_Serial_Number::is_negative() const {
   66|  76.2k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  76.2k|   do {                                                         \
  |  |   52|  76.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  76.2k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 76.2k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  76.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 76.2k]
  |  |  ------------------
  ------------------
   67|  76.2k|   return (m_contents[0] & 0x80) == 0x80;
   68|  76.2k|}
_ZNK5Botan18X509_Serial_Number7is_zeroEv:
   70|  8.84k|bool X509_Serial_Number::is_zero() const {
   71|  8.84k|   return m_contents.size() == 1 && m_contents[0] == 0x00;
  ------------------
  |  Branch (71:11): [True: 1.12k, False: 7.71k]
  |  Branch (71:37): [True: 196, False: 928]
  ------------------
   72|  8.84k|}
_ZNK5Botan18X509_Serial_Number9magnitudeEv:
   74|  8.84k|std::vector<uint8_t> X509_Serial_Number::magnitude() const {
   75|  8.84k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  8.84k|   do {                                                         \
  |  |   52|  8.84k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  8.84k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 8.84k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  8.84k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 8.84k]
  |  |  ------------------
  ------------------
   76|       |
   77|  8.84k|   if(is_zero()) {
  ------------------
  |  Branch (77:7): [True: 196, False: 8.64k]
  ------------------
   78|    196|      return {};
   79|  8.64k|   } else if(is_negative()) {
  ------------------
  |  Branch (79:14): [True: 616, False: 8.02k]
  ------------------
   80|    616|      return to_bigint().serialize();
   81|  8.02k|   } else if(m_contents[0] == 0x00) {
  ------------------
  |  Branch (81:14): [True: 158, False: 7.87k]
  ------------------
   82|       |      // Positive value whose leading magnitude bit is set; skip the sign octet
   83|    158|      return {m_contents.begin() + 1, m_contents.end()};
   84|  7.87k|   } else {
   85|  7.87k|      return m_contents;
   86|  7.87k|   }
   87|  8.84k|}
_ZNK5Botan18X509_Serial_Number9to_bigintEv:
   89|    616|BigInt X509_Serial_Number::to_bigint() const {
   90|    616|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|    616|   do {                                                         \
  |  |   52|    616|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    616|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 616]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    616|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 616]
  |  |  ------------------
  ------------------
   91|    616|   return ASN1::integer_from_contents(m_contents);
   92|    616|}
_ZN5Botan18X509_Serial_Number11decode_fromERNS_11BER_DecoderE:
  108|  9.04k|void X509_Serial_Number::decode_from(BER_Decoder& from) {
  109|       |   // Decode via BigInt so the decoder's limits apply, in particular the
  110|       |   // rejection of non-minimal INTEGER encodings in DER mode
  111|  9.04k|   BigInt value;
  112|  9.04k|   from.decode(value);
  113|  9.04k|   *this = X509_Serial_Number(value);
  114|  9.04k|}
_ZNK5Botan18X509_Serial_NumberssERKS0_:
  116|  33.8k|std::strong_ordering X509_Serial_Number::operator<=>(const X509_Serial_Number& other) const {
  117|  33.8k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  33.8k|   do {                                                         \
  |  |   52|  33.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  33.8k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 33.8k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  33.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 33.8k]
  |  |  ------------------
  ------------------
  118|       |
  119|  33.8k|   const bool neg = is_negative();
  120|       |
  121|  33.8k|   if(neg != other.is_negative()) {
  ------------------
  |  Branch (121:7): [True: 960, False: 32.8k]
  ------------------
  122|    960|      return neg ? std::strong_ordering::less : std::strong_ordering::greater;
  ------------------
  |  Branch (122:14): [True: 732, False: 228]
  ------------------
  123|    960|   }
  124|       |
  125|       |   // Same sign: for positive values the longer encoding is the larger value,
  126|       |   // for negative values the longer encoding is the smaller (more negative)
  127|  32.8k|   if(m_contents.size() != other.m_contents.size()) {
  ------------------
  |  Branch (127:7): [True: 758, False: 32.0k]
  ------------------
  128|    758|      const bool shorter = m_contents.size() < other.m_contents.size();
  129|    758|      return (shorter != neg) ? std::strong_ordering::less : std::strong_ordering::greater;
  ------------------
  |  Branch (129:14): [True: 558, False: 200]
  ------------------
  130|    758|   }
  131|       |
  132|       |   /*
  133|       |   * When comparing two values of the same sign in two's complement
  134|       |   * encoding, the lexicographic ordering is correct for both signs,
  135|       |   * for instance -2 (0xFE) is less than -1 (0xFF)
  136|       |   */
  137|  32.0k|   const int cmp = std::memcmp(m_contents.data(), other.m_contents.data(), m_contents.size());
  138|  32.0k|   if(cmp < 0) {
  ------------------
  |  Branch (138:7): [True: 19.0k, False: 13.0k]
  ------------------
  139|  19.0k|      return std::strong_ordering::less;
  140|  19.0k|   } else if(cmp > 0) {
  ------------------
  |  Branch (140:14): [True: 11.1k, False: 1.85k]
  ------------------
  141|  11.1k|      return std::strong_ordering::greater;
  142|  11.1k|   } else {
  143|  1.85k|      return std::strong_ordering::equal;
  144|  1.85k|   }
  145|  32.0k|}

