_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|  1.08k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|  1.08k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|  5.41k|      void clear() {
   72|  5.41k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|  5.41k|         m_position = 0;
   74|  5.41k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|  7.16k|      [[nodiscard]] std::optional<std::span<const T>> handle_unaligned_data(BufferSlicer& slicer) {
  167|       |         // When the final block is to be deferred, we would need to store and
  168|       |         // hold a buffer that contains exactly one block until more data is
  169|       |         // passed or it is explicitly consumed.
  170|  7.16k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 7.16k]
  ------------------
  171|       |
  172|  7.16k|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 7.16k, False: 0]
  |  Branch (172:31): [True: 2.88k, False: 4.28k]
  ------------------
  173|       |            // We are currently in alignment and the passed-in data source
  174|       |            // contains enough data to benefit from aligned processing.
  175|       |            // Therefore, we don't copy anything into the intermittent buffer.
  176|  2.88k|            return std::nullopt;
  177|  2.88k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|  4.28k|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|  4.28k|         append(slicer.take(elements_to_consume));
  183|       |
  184|       |         // If we collected enough data, we push out one full block. When
  185|       |         // deferring the final block is enabled, we additionally check that
  186|       |         // more input data is available to continue processing a consecutive
  187|       |         // block.
  188|  4.28k|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 0, False: 4.28k]
  |  Branch (188:36): [True: 0, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|      0|            return consume();
  190|  4.28k|         } else {
  191|  4.28k|            return std::nullopt;
  192|  4.28k|         }
  193|  4.28k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|  10.0k|      constexpr bool defers_final_block() const {
  234|  10.0k|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|  10.0k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|  8.61k|      void append(std::span<const T> elements) {
   91|  8.61k|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   84|  8.61k|   do {                                                                     \
  |  |   85|  8.61k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  8.61k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 8.61k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  8.61k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 8.61k]
  |  |  ------------------
  ------------------
   92|  8.61k|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|  8.61k|         m_position += elements.size();
   94|  8.61k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|  22.5k|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|  19.2k|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|  5.32k|      [[nodiscard]] std::span<const T> consume() {
  201|  5.32k|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   84|  5.32k|   do {                                                                     \
  |  |   85|  5.32k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  5.32k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 5.32k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  5.32k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 5.32k]
  |  |  ------------------
  ------------------
  202|  5.32k|         m_position = 0;
  203|  5.32k|         return m_buffer;
  204|  5.32k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|  17.2k|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  2.88k|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  2.88k|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   84|  2.88k|   do {                                                                     \
  |  |   85|  2.88k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.88k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.88k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.88k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  2.88k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 2.88k]
  ------------------
  132|  2.88k|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  2.88k|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  2.88k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|  5.32k|      void fill_up_with_zeros() {
   80|  5.32k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 5.32k, False: 0]
  ------------------
   81|  5.32k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|  5.32k|            m_position = m_buffer.size();
   83|  5.32k|         }
   84|  5.32k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|  4.32k|      std::span<T> directly_modify_last(size_t elements) {
  114|  4.32k|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   84|  4.32k|   do {                                                                     \
  |  |   85|  4.32k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  4.32k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 4.32k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  4.32k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 4.32k]
  |  |  ------------------
  ------------------
  115|  4.32k|         return std::span(m_buffer).last(elements);
  116|  4.32k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|  4.32k|      constexpr size_t size() const { return m_buffer.size(); }

_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  6.12k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  6.12k|   size_t hb = 0;
   75|       |
   76|  36.7k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 30.6k, False: 6.12k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  30.6k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  30.6k|      hb += z;
   80|  30.6k|      n >>= z;
   81|  30.6k|   }
   82|       |
   83|  6.12k|   hb += static_cast<size_t>(n);
   84|       |
   85|  6.12k|   return hb;
   86|  6.12k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  30.6k|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|  30.6k|   const T a = ~x & (x - 1);
   51|  30.6k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  30.6k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  30.6k|   return mask & s;
   54|  30.6k|}
_ZN5Botan17significant_bytesITkNSt3__117unsigned_integralEmEEmT_:
   94|  4.05k|BOTAN_FORCE_INLINE constexpr size_t significant_bytes(T n) {
   95|  4.05k|   size_t b = 0;
   96|       |
   97|  16.2k|   for(size_t s = 8 * sizeof(T) / 2; s >= 8; s /= 2) {
  ------------------
  |  Branch (97:38): [True: 12.1k, False: 4.05k]
  ------------------
   98|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   99|  12.1k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
  100|  12.1k|      b += z / 8;
  101|  12.1k|      n >>= z;
  102|  12.1k|   }
  103|       |
  104|  4.05k|   b += (n != 0);
  105|       |
  106|  4.05k|   return b;
  107|  4.05k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|   101k|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|   101k|   const T a = ~x & (x - 1);
   51|   101k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|   101k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|   101k|   return mask & s;
   54|   101k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  217|  2.66k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  218|       |   //return (mask & a) | (~mask & b);
  219|  2.66k|   return (b ^ (mask & (a ^ b)));
  220|  2.66k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|  90.1k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  90.1k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  90.1k|   return static_cast<T>(0) - top;
   31|  90.1k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|  88.9k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  88.9k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  88.9k|}
_ZN5Botan12ceil_tobytesITkNSt3__117unsigned_integralEmEET_S2_:
  176|  10.1k|BOTAN_FORCE_INLINE constexpr T ceil_tobytes(T bits) {
  177|  10.1k|   return (bits + 7) / 8;
  178|  10.1k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  14.8k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  14.8k|   size_t hb = 0;
   75|       |
   76|   103k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 89.0k, False: 14.8k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  89.0k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  89.0k|      hb += z;
   80|  89.0k|      n >>= z;
   81|  89.0k|   }
   82|       |
   83|  14.8k|   hb += static_cast<size_t>(n);
   84|       |
   85|  14.8k|   return hb;
   86|  14.8k|}
_ZN5Botan13ceil_divisionITkNSt3__117unsigned_integralEmEET_S2_S2_:
  167|  10.7k|BOTAN_FORCE_INLINE constexpr T ceil_division(T a, T b) {
  168|       |   // Same as `(a + b - 1) / b` but avoids possible overflow
  169|  10.7k|   return a / b + ((a % b != 0) ? 1 : 0);
  ------------------
  |  Branch (169:20): [True: 10.6k, False: 136]
  ------------------
  170|  10.7k|}

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

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

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

base64.cpp:_ZN5Botan11base_decodeINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmRmbb:
  124|    161|                   bool ignore_ws = true) {
  125|       |   // TODO(Botan4) Check if we can use just base. or Base:: here instead
  126|    161|   constexpr size_t decoding_bytes_in = std::remove_reference_t<Base>::decoding_bytes_in();
  127|    161|   constexpr size_t decoding_bytes_out = std::remove_reference_t<Base>::decoding_bytes_out();
  128|       |
  129|    161|   input_consumed = 0;
  130|       |
  131|    161|   uint8_t* out_ptr = output;
  132|    161|   std::array<uint8_t, decoding_bytes_in> decode_buf{};
  133|    161|   size_t decode_buf_pos = 0;
  134|    161|   size_t final_truncate = 0;
  135|    161|   bool seen_padding = false;
  136|       |
  137|    161|   clear_mem(output, base.decode_max_output(input_length));
  138|       |
  139|  54.0k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (139:22): [True: 53.8k, False: 152]
  ------------------
  140|  53.8k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  141|       |
  142|       |      // This call might throw Invalid_Argument
  143|  53.8k|      if(base.check_bad_char(bin, input[i], ignore_ws)) {
  ------------------
  |  Branch (143:10): [True: 6.86k, False: 47.0k]
  ------------------
  144|       |         // Padding may only appear at the end, so a data symbol must never
  145|       |         // follow one (0x81 marks a padding character)
  146|  6.86k|         if(seen_padding) {
  ------------------
  |  Branch (146:13): [True: 1, False: 6.86k]
  ------------------
  147|      1|            throw Invalid_Argument(base.name() + " decoding failed, data follows padding");
  148|      1|         }
  149|  6.86k|         decode_buf[decode_buf_pos] = bin;
  150|  6.86k|         ++decode_buf_pos;
  151|  47.0k|      } else if(bin == 0x81) {
  ------------------
  |  Branch (151:17): [True: 333, False: 46.6k]
  ------------------
  152|    333|         seen_padding = true;
  153|    333|      }
  154|       |
  155|       |      /*
  156|       |      * If we're at the end of the input, pad with 0s and truncate
  157|       |      */
  158|  53.8k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (158:10): [True: 53.8k, False: 51]
  |  Branch (158:26): [True: 82, False: 53.7k]
  ------------------
  159|     82|         if(decode_buf_pos) {
  ------------------
  |  Branch (159:13): [True: 37, False: 45]
  ------------------
  160|     37|            const size_t bits_per_symbol = base.bits_consumed();
  161|     37|            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|     37|            if(pad_bits >= bits_per_symbol) {
  ------------------
  |  Branch (165:16): [True: 7, False: 30]
  ------------------
  166|      7|               throw Invalid_Argument(base.name() + " decoding failed, invalid length");
  167|      7|            }
  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: 1, False: 29]
  ------------------
  173|      1|               throw Invalid_Argument(base.name() + " decoding failed, nonzero padding bits");
  174|      1|            }
  175|       |
  176|     64|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (176:44): [True: 35, False: 29]
  ------------------
  177|     35|               decode_buf[j] = 0;
  178|     35|            }
  179|       |
  180|     29|            final_truncate = decoding_bytes_in - decode_buf_pos;
  181|     29|            decode_buf_pos = decoding_bytes_in;
  182|     29|         }
  183|     82|      }
  184|       |
  185|  53.8k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (185:10): [True: 1.71k, False: 52.1k]
  ------------------
  186|  1.71k|         base.decode(out_ptr, decode_buf.data());
  187|       |
  188|  1.71k|         out_ptr += decoding_bytes_out;
  189|  1.71k|         decode_buf_pos = 0;
  190|  1.71k|         input_consumed = i + 1;
  191|  1.71k|      }
  192|  53.8k|   }
  193|       |
  194|  30.6k|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (194:10): [True: 30.5k, False: 136]
  |  Branch (194:43): [True: 30.5k, False: 16]
  ------------------
  195|  30.5k|      ++input_consumed;
  196|  30.5k|   }
  197|       |
  198|    152|   const size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  199|       |
  200|    152|   return written;
  201|    161|}
base64.cpp:_ZN5Botan16base_decode_fullINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmb:
  204|    161|size_t base_decode_full(const Base& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  205|    161|   size_t consumed = 0;
  206|    161|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  207|       |
  208|    161|   if(consumed != input_length) {
  ------------------
  |  Branch (208:7): [True: 16, False: 145]
  ------------------
  209|     16|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  210|     16|   }
  211|       |
  212|    145|   return written;
  213|    161|}

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   93|  8.20k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  155|  8.25k|      static CPUID_Data& state() {
  156|  8.25k|         static CPUID::CPUID_Data g_cpuid;
  157|  8.25k|         return g_cpuid;
  158|  8.25k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  143|  8.25k|            bool has_bit(uint32_t bit) const { return (m_processor_features & bit) == bit; }
_ZN5Botan5CPUID3hasENS_10CPUFeatureES1_:
   98|     47|      static bool has(CPUID::Feature feat1, CPUID::Feature feat2) {
   99|     47|         return state().has_bit(feat1.as_u32() | feat2.as_u32());
  100|     47|      }
_ZN5Botan5CPUID6is_setEjNS_10CPUFeatureE:
  126|      5|      static inline bool is_set(uint32_t allowed, CPUID::Feature bit) {
  127|      5|         const uint32_t feat_bit = bit.as_u32();
  128|      5|         return ((allowed & feat_bit) == feat_bit);
  129|      5|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_1_bitsEEjmT_NS_10CPUFeatureEj:
  116|      7|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  117|      7|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  118|      7|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (118:13): [True: 7, False: 0]
  ------------------
  119|      7|            return (bit.as_u32() & allowed);
  120|      7|         } else {
  121|      0|            return 0;
  122|      0|         }
  123|      7|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_7_bitsEEjmT_NS_10CPUFeatureEj:
  116|      8|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  117|      8|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  118|      8|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (118:13): [True: 5, False: 3]
  ------------------
  119|      5|            return (bit.as_u32() & allowed);
  120|      5|         } else {
  121|      3|            return 0;
  122|      3|         }
  123|      8|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE18x86_CPUID_7_1_bitsEEjmT_NS_10CPUFeatureEj:
  116|      3|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  117|      3|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  118|      3|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (118:13): [True: 0, False: 3]
  ------------------
  119|      0|            return (bit.as_u32() & allowed);
  120|      3|         } else {
  121|      3|            return 0;
  122|      3|         }
  123|      3|      }

_ZNK5Botan10CPUFeature6as_u32Ev:
   56|  8.31k|      uint32_t as_u32() const { return static_cast<uint32_t>(m_bit); }
_ZN5Botan10CPUFeatureC2ENS0_3BitE:
   54|  8.32k|      CPUFeature(Bit b) : m_bit(b) {}  // NOLINT(*-explicit-conversions,*-explicit-constructor)

_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  1.28k|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  1.28k|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  1.28k|         return Mask<T>::expand_top_bit(u);
  453|  1.28k|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  1.28k|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZN5Botan2CT4MaskImEC2Em:
  637|  2.66k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  26.6k|constexpr void unpoison(const T& p) {
  113|  26.6k|   unpoison(&p, 1);
  114|  26.6k|}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  1.38k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|  2.66k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  2.66k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  1.28k|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  1.28k|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  1.28k|         return Mask<T>::is_zero(diff);
  445|  1.28k|      }
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  46.6k|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|  46.6k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  151|  46.6k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  46.6k|}

_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  11.1k|std::string fmt(std::string_view format, const T&... args) {
   54|  11.1k|   std::ostringstream oss;
   55|  11.1k|   oss.imbue(std::locale::classic());
   56|  11.1k|   fmt_detail::do_fmt(oss, format, args...);
   57|  11.1k|   return oss.str();
   58|  11.1k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  11.1k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  11.1k|   size_t i = 0;
   27|       |
   28|  98.4k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 98.4k, False: 0]
  ------------------
   29|  98.4k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 11.1k, False: 87.2k]
  |  Branch (29:30): [True: 11.1k, False: 0]
  |  Branch (29:59): [True: 11.1k, False: 0]
  ------------------
   30|  11.1k|         oss << val;
   31|  11.1k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  87.2k|      } else {
   33|  87.2k|         oss << format[i];
   34|  87.2k|      }
   35|       |
   36|  87.2k|      i += 1;
   37|  87.2k|   }
   38|  11.1k|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  18.2k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  18.2k|   oss << format;
   22|  18.2k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  4.85k|std::string fmt(std::string_view format, const T&... args) {
   54|  4.85k|   std::ostringstream oss;
   55|  4.85k|   oss.imbue(std::locale::classic());
   56|  4.85k|   fmt_detail::do_fmt(oss, format, args...);
   57|  4.85k|   return oss.str();
   58|  4.85k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  4.85k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.85k|   size_t i = 0;
   27|       |
   28|  4.85k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.85k, False: 0]
  ------------------
   29|  4.85k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.85k, False: 0]
  |  Branch (29:30): [True: 4.85k, False: 0]
  |  Branch (29:59): [True: 4.85k, False: 0]
  ------------------
   30|  4.85k|         oss << val;
   31|  4.85k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.85k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  4.85k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  4.98k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.98k|   size_t i = 0;
   27|       |
   28|  70.8k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 70.8k, False: 0]
  ------------------
   29|  70.8k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.98k, False: 65.8k]
  |  Branch (29:30): [True: 4.98k, False: 0]
  |  Branch (29:59): [True: 4.98k, False: 0]
  ------------------
   30|  4.98k|         oss << val;
   31|  4.98k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  65.8k|      } else {
   33|  65.8k|         oss << format[i];
   34|  65.8k|      }
   35|       |
   36|  65.8k|      i += 1;
   37|  65.8k|   }
   38|  4.98k|}
_ZN5Botan3fmtIJPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEENS3_12basic_stringIcS6_NS3_9allocatorIcEEEES7_DpRKT_:
   53|      1|std::string fmt(std::string_view format, const T&... args) {
   54|      1|   std::ostringstream oss;
   55|      1|   oss.imbue(std::locale::classic());
   56|      1|   fmt_detail::do_fmt(oss, format, args...);
   57|      1|   return oss.str();
   58|      1|}
_ZN5Botan10fmt_detail6do_fmtIPKcJNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEvRNS4_19basic_ostringstreamIcS7_NS4_9allocatorIcEEEES8_RKT_DpRKT0_:
   25|      1|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      1|   size_t i = 0;
   27|       |
   28|      1|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1, False: 0]
  ------------------
   29|      1|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1, False: 0]
  |  Branch (29:30): [True: 1, False: 0]
  |  Branch (29:59): [True: 1, False: 0]
  ------------------
   30|      1|         oss << val;
   31|      1|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|      1|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|      1|}
_ZN5Botan10fmt_detail6do_fmtImJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     14|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     14|   size_t i = 0;
   27|       |
   28|    746|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 746, False: 0]
  ------------------
   29|    746|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 14, False: 732]
  |  Branch (29:30): [True: 14, False: 0]
  |  Branch (29:59): [True: 14, False: 0]
  ------------------
   30|     14|         oss << val;
   31|     14|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    732|      } else {
   33|    732|         oss << format[i];
   34|    732|      }
   35|       |
   36|    732|      i += 1;
   37|    732|   }
   38|     14|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|    267|std::string fmt(std::string_view format, const T&... args) {
   54|    267|   std::ostringstream oss;
   55|    267|   oss.imbue(std::locale::classic());
   56|    267|   fmt_detail::do_fmt(oss, format, args...);
   57|    267|   return oss.str();
   58|    267|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|    267|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    267|   size_t i = 0;
   27|       |
   28|    267|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 267, False: 0]
  ------------------
   29|    267|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 267, False: 0]
  |  Branch (29:30): [True: 267, False: 0]
  |  Branch (29:59): [True: 267, False: 0]
  ------------------
   30|    267|         oss << val;
   31|    267|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    267|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|    267|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|  1.55k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.55k|   size_t i = 0;
   27|       |
   28|  30.5k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 30.5k, False: 0]
  ------------------
   29|  30.5k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.55k, False: 29.0k]
  |  Branch (29:30): [True: 1.55k, False: 0]
  |  Branch (29:59): [True: 1.55k, False: 0]
  ------------------
   30|  1.55k|         oss << val;
   31|  1.55k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  29.0k|      } else {
   33|  29.0k|         oss << format[i];
   34|  29.0k|      }
   35|       |
   36|  29.0k|      i += 1;
   37|  29.0k|   }
   38|  1.55k|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    500|std::string fmt(std::string_view format, const T&... args) {
   54|    500|   std::ostringstream oss;
   55|    500|   oss.imbue(std::locale::classic());
   56|    500|   fmt_detail::do_fmt(oss, format, args...);
   57|    500|   return oss.str();
   58|    500|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    517|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    517|   size_t i = 0;
   27|       |
   28|  8.85k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 8.85k, False: 0]
  ------------------
   29|  8.85k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 517, False: 8.33k]
  |  Branch (29:30): [True: 517, False: 0]
  |  Branch (29:59): [True: 517, False: 0]
  ------------------
   30|    517|         oss << val;
   31|    517|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  8.33k|      } else {
   33|  8.33k|         oss << format[i];
   34|  8.33k|      }
   35|       |
   36|  8.33k|      i += 1;
   37|  8.33k|   }
   38|    517|}
_ZN5Botan3fmtIJjjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    541|std::string fmt(std::string_view format, const T&... args) {
   54|    541|   std::ostringstream oss;
   55|    541|   oss.imbue(std::locale::classic());
   56|    541|   fmt_detail::do_fmt(oss, format, args...);
   57|    541|   return oss.str();
   58|    541|}
_ZN5Botan10fmt_detail6do_fmtIjJjEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    541|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    541|   size_t i = 0;
   27|       |
   28|  14.4k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 14.4k, False: 0]
  ------------------
   29|  14.4k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 541, False: 13.9k]
  |  Branch (29:30): [True: 541, False: 0]
  |  Branch (29:59): [True: 541, False: 0]
  ------------------
   30|    541|         oss << val;
   31|    541|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  13.9k|      } else {
   33|  13.9k|         oss << format[i];
   34|  13.9k|      }
   35|       |
   36|  13.9k|      i += 1;
   37|  13.9k|   }
   38|    541|}
_ZN5Botan3fmtIJtttEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   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_fmtItJttEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_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|     64|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 64, False: 0]
  ------------------
   29|     64|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4, False: 60]
  |  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|     60|      } else {
   33|     60|         oss << format[i];
   34|     60|      }
   35|       |
   36|     60|      i += 1;
   37|     60|   }
   38|      4|}
_ZN5Botan10fmt_detail6do_fmtItJtEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_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|     76|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 76, False: 0]
  ------------------
   29|     76|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4, False: 72]
  |  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|     72|      } else {
   33|     72|         oss << format[i];
   34|     72|      }
   35|       |
   36|     72|      i += 1;
   37|     72|   }
   38|      4|}
_ZN5Botan10fmt_detail6do_fmtItJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_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|     20|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 20, False: 0]
  ------------------
   29|     20|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4, False: 16]
  |  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|     16|      } else {
   33|     16|         oss << format[i];
   34|     16|      }
   35|       |
   36|     16|      i += 1;
   37|     16|   }
   38|      4|}
_ZN5Botan3fmtIJjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    746|std::string fmt(std::string_view format, const T&... args) {
   54|    746|   std::ostringstream oss;
   55|    746|   oss.imbue(std::locale::classic());
   56|    746|   fmt_detail::do_fmt(oss, format, args...);
   57|    746|   return oss.str();
   58|    746|}
_ZN5Botan3fmtIJPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     96|std::string fmt(std::string_view format, const T&... args) {
   54|     96|   std::ostringstream oss;
   55|     96|   oss.imbue(std::locale::classic());
   56|     96|   fmt_detail::do_fmt(oss, format, args...);
   57|     96|   return oss.str();
   58|     96|}
_ZN5Botan3fmtIJmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     12|std::string fmt(std::string_view format, const T&... args) {
   54|     12|   std::ostringstream oss;
   55|     12|   oss.imbue(std::locale::classic());
   56|     12|   fmt_detail::do_fmt(oss, format, args...);
   57|     12|   return oss.str();
   58|     12|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     17|std::string fmt(std::string_view format, const T&... args) {
   54|     17|   std::ostringstream oss;
   55|     17|   oss.imbue(std::locale::classic());
   56|     17|   fmt_detail::do_fmt(oss, format, args...);
   57|     17|   return oss.str();
   58|     17|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJS8_EEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     17|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     17|   size_t i = 0;
   27|       |
   28|     17|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 17, False: 0]
  ------------------
   29|     17|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 17, False: 0]
  |  Branch (29:30): [True: 17, False: 0]
  |  Branch (29:59): [True: 17, False: 0]
  ------------------
   30|     17|         oss << val;
   31|     17|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     17|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     17|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     32|std::string fmt(std::string_view format, const T&... args) {
   54|     32|   std::ostringstream oss;
   55|     32|   oss.imbue(std::locale::classic());
   56|     32|   fmt_detail::do_fmt(oss, format, args...);
   57|     32|   return oss.str();
   58|     32|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     32|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     32|   size_t i = 0;
   27|       |
   28|     32|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 32, False: 0]
  ------------------
   29|     32|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 32, False: 0]
  |  Branch (29:30): [True: 32, False: 0]
  |  Branch (29:59): [True: 32, False: 0]
  ------------------
   30|     32|         oss << val;
   31|     32|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     32|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     32|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     32|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     32|   size_t i = 0;
   27|       |
   28|    160|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 160, False: 0]
  ------------------
   29|    160|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 32, False: 128]
  |  Branch (29:30): [True: 32, False: 0]
  |  Branch (29:59): [True: 32, False: 0]
  ------------------
   30|     32|         oss << val;
   31|     32|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    128|      } else {
   33|    128|         oss << format[i];
   34|    128|      }
   35|       |
   36|    128|      i += 1;
   37|    128|   }
   38|     32|}
_ZN5Botan3fmtIJmmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|      2|std::string fmt(std::string_view format, const T&... args) {
   54|      2|   std::ostringstream oss;
   55|      2|   oss.imbue(std::locale::classic());
   56|      2|   fmt_detail::do_fmt(oss, format, args...);
   57|      2|   return oss.str();
   58|      2|}
_ZN5Botan10fmt_detail6do_fmtImJmEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      2|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      2|   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: 2, False: 88]
  |  Branch (29:30): [True: 2, False: 0]
  |  Branch (29:59): [True: 2, False: 0]
  ------------------
   30|      2|         oss << val;
   31|      2|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     88|      } else {
   33|     88|         oss << format[i];
   34|     88|      }
   35|       |
   36|     88|      i += 1;
   37|     88|   }
   38|      2|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  58.5k|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|  58.5k|   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|  58.5k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 58.5k, False: 0]
  |  Branch (53:17): [True: 0, False: 58.5k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  58.5k|   return r;
   57|  58.5k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|  16.9k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  16.9k|   const T r = a + b;
   21|  16.9k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 16.9k]
  |  Branch (21:16): [True: 0, False: 16.9k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  16.9k|   return r;
   25|  16.9k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  18.4k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  18.4k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 18.4k, False: 0]
  ------------------
   39|  18.4k|      return checked_add(r.value(), rest...);
   40|  18.4k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  18.4k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   19|  56.8k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  56.8k|   const T r = a + b;
   21|  56.8k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 56.8k]
  |  Branch (21:16): [True: 0, False: 56.8k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  56.8k|   return r;
   25|  56.8k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  18.4k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  18.4k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 18.4k, False: 0]
  ------------------
   39|  18.4k|      return checked_add(r.value(), rest...);
   40|  18.4k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  18.4k|}
_ZN5Botan7swar_ltITkNSt3__117unsigned_integralEtEET_S2_S2_:
  121|  28.1k|constexpr T swar_lt(T a, T b) {
  122|       |   // The constant 0x808080... as a T
  123|  28.1k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  124|       |   // The constant 0x7F7F7F... as a T
  125|  28.1k|   constexpr T lo7 = static_cast<T>(~hi1);
  126|  28.1k|   T r = (lo7 - a + b) & hi1;
  127|       |   // Currently the mask is 80 if lt, otherwise 00. Convert to FF/00
  128|  28.1k|   return (r << 1) - (r >> 7);
  129|  28.1k|}
_ZN5Botan12mul_or_throwITkNSt3__117unsigned_integralEmEET_S2_S2_NS1_17basic_string_viewIcNS1_11char_traitsIcEEEE:
   81|  1.08k|constexpr T mul_or_throw(T a, T b, std::string_view msg) {
   82|  1.08k|   if(auto r = checked_mul(a, b)) {
  ------------------
  |  Branch (82:12): [True: 1.08k, False: 0]
  ------------------
   83|  1.08k|      return r.value();
   84|  1.08k|   } else {
   85|      0|      throw Invalid_Argument(msg);
   86|      0|   }
   87|  1.08k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  144|  84.4k|constexpr T swar_in_range(T v, T lower, T upper) {
  145|       |   // The constant 0x808080... as a T
  146|  84.4k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  147|       |   // The constant 0x7F7F7F... as a T
  148|  84.4k|   constexpr T lo7 = ~hi1;
  149|       |
  150|  84.4k|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  151|  84.4k|   const T a_lo = sub & lo7;
  152|  84.4k|   const T a_hi = sub & hi1;
  153|  84.4k|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  154|  84.4k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    374|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    374|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 374, False: 0]
  ------------------
   39|    374|      return checked_add(r.value(), rest...);
   40|    374|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    374|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    374|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    374|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 374, False: 0]
  ------------------
   39|    374|      return checked_add(r.value(), rest...);
   40|    374|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    374|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    374|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    374|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 374, False: 0]
  ------------------
   39|    374|      return checked_add(r.value(), rest...);
   40|    374|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    374|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    374|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    374|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 374, False: 0]
  ------------------
   39|    374|      return checked_add(r.value(), rest...);
   40|    374|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    374|}
_ZN5Botan15checked_cast_toIjmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|    987|constexpr RT checked_cast_to(AT i) {
  105|    987|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|    987|}
_ZN5Botan24checked_cast_to_or_throwIjNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   91|    987|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|    987|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|    987|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|    987|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 987]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|    987|   return wrap_strong_type<RT>(unwrapped_result);
  100|    987|}
_ZN5Botan15checked_cast_toItmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|      6|constexpr RT checked_cast_to(AT i) {
  105|      6|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|      6|}
_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|      6|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|      6|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|      6|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|      6|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 6]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|      6|   return wrap_strong_type<RT>(unwrapped_result);
  100|      6|}

_ZN5Botan8get_byteILm0EmEEhT0_QltT_stS1_:
   81|    160|{
   82|    160|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|    160|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|    160|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|  36.7k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|  36.7k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|  36.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  28.1k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  28.1k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  28.1k|   using InT = decltype(in);
  528|  28.1k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  28.1k|   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|  28.1k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 28.1k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  28.1k|   } 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|  28.1k|      } else {
  542|  28.1k|         static_assert(opposite(endianness) == std::endian::native);
  543|  28.1k|         typecast_copy(out, reverse_bytes(in));
  544|  28.1k|      }
  545|  28.1k|   }
  546|  28.1k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEjEEDaT_:
  190|  28.1k|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|  28.1k|   } else {
  195|  28.1k|      return Botan::unwrap_strong_type(t);
  196|  28.1k|   }
  197|  28.1k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  15.1k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  15.1k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  15.1k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  15.1k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  15.1k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  15.1k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  15.1k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  15.1k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  15.1k|   using InT = decltype(in);
  528|  15.1k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  15.1k|   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|  15.1k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 15.1k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  15.1k|   } 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|  15.1k|      } else {
  542|  15.1k|         static_assert(opposite(endianness) == std::endian::native);
  543|  15.1k|         typecast_copy(out, reverse_bytes(in));
  544|  15.1k|      }
  545|  15.1k|   }
  546|  15.1k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  15.1k|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|  15.1k|   } else {
  195|  15.1k|      return Botan::unwrap_strong_type(t);
  196|  15.1k|   }
  197|  15.1k|}
_ZN5Botan8get_byteILm1EtEEhT0_QltT_stS1_:
   81|  28.1k|{
   82|  28.1k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  28.1k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  28.1k|}
_ZN5Botan8get_byteILm0EtEEhT0_QltT_stS1_:
   81|  28.1k|{
   82|  28.1k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  28.1k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  28.1k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|    886|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|    886|   } else {
  204|    886|      return Botan::wrap_strong_type<OutT>(t);
  205|    886|   }
  206|    886|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|    830|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|    830|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|    830|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|    830|   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|    830|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|    830|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    830|      } else {
  289|    830|         const std::span in{in_range};
  290|    830|         if constexpr(sizeof(OutT) == 1) {
  291|    830|            return static_cast<OutT>(in[0]);
  292|    830|         } else if constexpr(endianness == std::endian::native) {
  293|    830|            return typecast_copy<OutT>(in);
  294|    830|         } else {
  295|    830|            static_assert(opposite(endianness) == std::endian::native);
  296|    830|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    830|         }
  298|    830|      }
  299|    830|   }());
  300|    830|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|    830|   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|    830|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 830]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    830|      } else {
  289|    830|         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|    830|         } else {
  295|    830|            static_assert(opposite(endianness) == std::endian::native);
  296|    830|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    830|         }
  298|    830|      }
  299|    830|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  15.1k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  15.1k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  15.1k|}
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorIjNS_16secure_allocatorIjEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|  4.32k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|  4.32k|   using T = std::ranges::range_value_t<InR>;
  775|  4.32k|   std::span<const T> in_s{in};
  776|  4.32k|   const auto remaining_bytes = detail::copy_out_any_word_aligned_portion<std::endian::big>(out, in_s);
  777|       |
  778|       |   // copy remaining bytes as a partial word
  779|  4.32k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 4.32k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|  4.32k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|  4.32k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|  4.32k|   const size_t full_words = out.size() / sizeof(T);
  754|  4.32k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|  4.32k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|  4.32k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   84|  4.32k|   do {                                                                     \
  |  |   85|  4.32k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  4.32k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 4.32k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  4.32k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 4.32k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|  4.32k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|  4.32k|   out = out.subspan(full_word_bytes);
  761|  4.32k|   in = in.subspan(full_words);
  762|       |
  763|  4.32k|   return remaining_bytes;
  764|  4.32k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_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|  4.32k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  4.32k|   ranges::assert_equal_byte_lengths(out, in);
  605|  4.32k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  4.32k|   const auto store_elementwise = [&] {
  608|  4.32k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  4.32k|      std::span<uint8_t> out_s(out);
  610|  4.32k|      for(const auto in_elem : in) {
  611|  4.32k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  4.32k|         out_s = out_s.subspan(bytes_per_element);
  613|  4.32k|      }
  614|  4.32k|   };
  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|  4.32k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 4.32k]
  ------------------
  620|      0|      store_elementwise();
  621|  4.32k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  4.32k|      } else {
  625|  4.32k|         store_elementwise();
  626|  4.32k|      }
  627|  4.32k|   }
  628|  4.32k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_ENKUlvE_clEv:
  607|  4.32k|   const auto store_elementwise = [&] {
  608|  4.32k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  4.32k|      std::span<uint8_t> out_s(out);
  610|  28.1k|      for(const auto in_elem : in) {
  ------------------
  |  Branch (610:30): [True: 28.1k, False: 4.32k]
  ------------------
  611|  28.1k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  28.1k|         out_s = out_s.subspan(bytes_per_element);
  613|  28.1k|      }
  614|  4.32k|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  28.1k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  28.1k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  28.1k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  28.1k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  28.1k|      off += sizeof(T);
  587|  28.1k|   };
  588|       |
  589|  28.1k|   (store_one(std::span{out}, ins), ...);
  590|  28.1k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|  28.1k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  28.1k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  28.1k|      off += sizeof(T);
  587|  28.1k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  10.8k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  10.8k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  10.8k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  10.8k|   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|  10.8k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  10.8k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  10.8k|      } else {
  289|  10.8k|         const std::span in{in_range};
  290|  10.8k|         if constexpr(sizeof(OutT) == 1) {
  291|  10.8k|            return static_cast<OutT>(in[0]);
  292|  10.8k|         } else if constexpr(endianness == std::endian::native) {
  293|  10.8k|            return typecast_copy<OutT>(in);
  294|  10.8k|         } else {
  295|  10.8k|            static_assert(opposite(endianness) == std::endian::native);
  296|  10.8k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  10.8k|         }
  298|  10.8k|      }
  299|  10.8k|   }());
  300|  10.8k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|  19.0k|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.0k|   } else {
  204|  19.0k|      return Botan::wrap_strong_type<OutT>(t);
  205|  19.0k|   }
  206|  19.0k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  10.8k|   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|  10.8k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 10.8k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  10.8k|      } else {
  289|  10.8k|         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|  10.8k|         } else {
  295|  10.8k|            static_assert(opposite(endianness) == std::endian::native);
  296|  10.8k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  10.8k|         }
  298|  10.8k|      }
  299|  10.8k|   }());
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|  10.8k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  10.8k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  10.8k|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  8.18k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  8.18k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  8.18k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  8.18k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  8.18k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  8.18k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  8.18k|   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|  8.18k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  8.18k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  8.18k|      } else {
  289|  8.18k|         const std::span in{in_range};
  290|  8.18k|         if constexpr(sizeof(OutT) == 1) {
  291|  8.18k|            return static_cast<OutT>(in[0]);
  292|  8.18k|         } else if constexpr(endianness == std::endian::native) {
  293|  8.18k|            return typecast_copy<OutT>(in);
  294|  8.18k|         } else {
  295|  8.18k|            static_assert(opposite(endianness) == std::endian::native);
  296|  8.18k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  8.18k|         }
  298|  8.18k|      }
  299|  8.18k|   }());
  300|  8.18k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  8.18k|   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|  8.18k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 8.18k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  8.18k|      } else {
  289|  8.18k|         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|  8.18k|         } else {
  295|  8.18k|            static_assert(opposite(endianness) == std::endian::native);
  296|  8.18k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  8.18k|         }
  298|  8.18k|      }
  299|  8.18k|   }());
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmEQ10all_same_vIDpT1_EEEDaS6_:
  696|  49.1k|inline constexpr auto store_any(Ts... ins) {
  697|  49.1k|   return store_any<endianness, OutR>(std::array{ins...});
  698|  49.1k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  49.1k|inline constexpr auto store_any(InR&& in_range) {
  664|  49.1k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  49.1k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  49.1k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  49.1k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  49.1k|            return std::array<uint8_t, bytes>();
  669|  49.1k|         } else {
  670|  49.1k|            static_assert(
  671|  49.1k|               !std::same_as<AutoDetect, OutR>,
  672|  49.1k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  49.1k|         }
  674|  49.1k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  49.1k|         return OutR(std::span{in}.size_bytes());
  676|  49.1k|      } else {
  677|  49.1k|         return OutR{};
  678|  49.1k|      }
  679|  49.1k|   }(in_range);
  680|       |
  681|  49.1k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  49.1k|   return out;
  683|  49.1k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  49.1k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  49.1k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  49.1k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  49.1k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  49.1k|            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|  49.1k|   }(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|  49.1k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  49.1k|   ranges::assert_equal_byte_lengths(out, in);
  605|  49.1k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  49.1k|   const auto store_elementwise = [&] {
  608|  49.1k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  49.1k|      std::span<uint8_t> out_s(out);
  610|  49.1k|      for(const auto in_elem : in) {
  611|  49.1k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  49.1k|         out_s = out_s.subspan(bytes_per_element);
  613|  49.1k|      }
  614|  49.1k|   };
  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|  49.1k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 49.1k]
  ------------------
  620|      0|      store_elementwise();
  621|  49.1k|   } else {
  622|  49.1k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  49.1k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  49.1k|   }
  628|  49.1k|}
_ZN5Botan7load_beItJPKhRmEEEDaDpOT0_:
  504|  3.79k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  3.79k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  3.79k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtEET0_PKhm:
  454|  3.79k|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|  3.79k|   constexpr size_t out_size = sizeof(OutT);
  457|  3.79k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  3.79k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  3.79k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  3.79k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  3.79k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  3.79k|   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|  3.79k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  3.79k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  3.79k|      } else {
  289|  3.79k|         const std::span in{in_range};
  290|  3.79k|         if constexpr(sizeof(OutT) == 1) {
  291|  3.79k|            return static_cast<OutT>(in[0]);
  292|  3.79k|         } else if constexpr(endianness == std::endian::native) {
  293|  3.79k|            return typecast_copy<OutT>(in);
  294|  3.79k|         } else {
  295|  3.79k|            static_assert(opposite(endianness) == std::endian::native);
  296|  3.79k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  3.79k|         }
  298|  3.79k|      }
  299|  3.79k|   }());
  300|  3.79k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|  3.79k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  3.79k|   } else {
  204|  3.79k|      return Botan::wrap_strong_type<OutT>(t);
  205|  3.79k|   }
  206|  3.79k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  3.79k|   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|  3.79k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 3.79k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  3.79k|      } else {
  289|  3.79k|         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|  3.79k|         } else {
  295|  3.79k|            static_assert(opposite(endianness) == std::endian::native);
  296|  3.79k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  3.79k|         }
  298|  3.79k|      }
  299|  3.79k|   }());
_ZN5Botan7load_beIjJPKhRmEEEDaDpOT0_:
  504|    175|inline constexpr auto load_be(ParamTs&&... params) {
  505|    175|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    175|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|    830|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|    830|   constexpr size_t out_size = sizeof(OutT);
  457|    830|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|    830|}
_ZN5Botan7load_beIjJRNSt3__14spanIKhLm4EEEEEEDaDpOT0_:
  504|     56|inline constexpr auto load_be(ParamTs&&... params) {
  505|     56|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|     56|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEERNS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESB_OT1_:
  278|     56|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|     56|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|     56|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|     56|   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|     56|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|     56|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|     56|      } else {
  289|     56|         const std::span in{in_range};
  290|     56|         if constexpr(sizeof(OutT) == 1) {
  291|     56|            return static_cast<OutT>(in[0]);
  292|     56|         } else if constexpr(endianness == std::endian::native) {
  293|     56|            return typecast_copy<OutT>(in);
  294|     56|         } else {
  295|     56|            static_assert(opposite(endianness) == std::endian::native);
  296|     56|            return reverse_bytes(typecast_copy<OutT>(in));
  297|     56|         }
  298|     56|      }
  299|     56|   }());
  300|     56|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEERNS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESB_OT1_ENKUlvE_clEv:
  282|     56|   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|     56|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 56]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|     56|      } else {
  289|     56|         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|     56|         } else {
  295|     56|            static_assert(opposite(endianness) == std::endian::native);
  296|     56|            return reverse_bytes(typecast_copy<OutT>(in));
  297|     56|         }
  298|     56|      }
  299|     56|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKjRNSt3__15arrayIhLm4EEEEEEDaDpOT0_:
  745|     56|inline constexpr auto store_be(ParamTs&&... params) {
  746|     56|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|     56|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm4EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|     56|inline constexpr void store_any(T in, OutR&& out_range) {
  647|     56|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|     56|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvSA_OT1_:
  525|     56|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|     56|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|     56|   using InT = decltype(in);
  528|     56|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|     56|   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|     56|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 56]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|     56|   } 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|     56|      } else {
  542|     56|         static_assert(opposite(endianness) == std::endian::native);
  543|     56|         typecast_copy(out, reverse_bytes(in));
  544|     56|      }
  545|     56|   }
  546|     56|}
_ZN5Botan7load_beIjJPKhiEEEDaDpOT0_:
  504|    655|inline constexpr auto load_be(ParamTs&&... params) {
  505|    655|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    655|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJmEEEDaDpOT0_:
  736|  49.1k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  49.1k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  49.1k|}

_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EEC2Ev:
   42|    541|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5clearEv:
   70|  2.70k|      void clear() {
   71|  2.70k|         MD::init(m_digest);
   72|  2.70k|         m_buffer.clear();
   73|  2.70k|         m_count = 0;
   74|  2.70k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EEC2Ev:
   42|    541|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5clearEv:
   70|  2.70k|      void clear() {
   71|  2.70k|         MD::init(m_digest);
   72|  2.70k|         m_buffer.clear();
   73|  2.70k|         m_count = 0;
   74|  2.70k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  2.16k|      void update(std::span<const uint8_t> input) {
   45|  2.16k|         BufferSlicer in(input);
   46|       |
   47|  5.74k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 3.58k, False: 2.16k]
  ------------------
   48|  3.58k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 3.58k]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|  3.58k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 1.44k, False: 2.14k]
  ------------------
   53|  1.44k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  1.44k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.44k, False: 0]
  ------------------
   55|  1.44k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.44k|               }
   57|  1.44k|            }
   58|  3.58k|         }
   59|       |
   60|  2.16k|         m_count += input.size();
   61|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  2.16k|      void final(std::span<uint8_t> output) {
   64|  2.16k|         append_padding_bit();
   65|  2.16k|         append_counter_and_finalize();
   66|  2.16k|         copy_output(output);
   67|  2.16k|         clear();
   68|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE18append_padding_bitEv:
   77|  2.16k|      void append_padding_bit() {
   78|  2.16k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
   79|  2.16k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  2.16k|            const uint8_t final_byte = 0x80;
   81|  2.16k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE27append_counter_and_finalizeEv:
   88|  2.16k|      void append_counter_and_finalize() {
   89|       |         // Compress the remaining data if the final data block does not provide
   90|       |         // enough space for the counter bytes.
   91|  2.16k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 498, False: 1.66k]
  ------------------
   92|    498|            m_buffer.fill_up_with_zeros();
   93|    498|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    498|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  2.16k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
   98|  2.16k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  2.16k|         const uint64_t bit_count = m_count * 8;
  102|  2.16k|         const auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  2.16k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  2.16k|            store_be(bit_count, last_bytes.data());
  105|       |         } else {
  106|       |            store_le(bit_count, last_bytes.data());
  107|       |         }
  108|       |
  109|       |         // Compress the very last block.
  110|  2.16k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  2.16k|      void copy_output(std::span<uint8_t> output) {
  114|  2.16k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
  115|       |
  116|  2.16k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  2.16k|            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|       |         } else {
  119|       |            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|       |         }
  121|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  2.16k|      void update(std::span<const uint8_t> input) {
   45|  2.16k|         BufferSlicer in(input);
   46|       |
   47|  5.74k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 3.58k, False: 2.16k]
  ------------------
   48|  3.58k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 3.58k]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|  3.58k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 1.44k, False: 2.14k]
  ------------------
   53|  1.44k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  1.44k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.44k, False: 0]
  ------------------
   55|  1.44k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.44k|               }
   57|  1.44k|            }
   58|  3.58k|         }
   59|       |
   60|  2.16k|         m_count += input.size();
   61|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  2.16k|      void final(std::span<uint8_t> output) {
   64|  2.16k|         append_padding_bit();
   65|  2.16k|         append_counter_and_finalize();
   66|  2.16k|         copy_output(output);
   67|  2.16k|         clear();
   68|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE18append_padding_bitEv:
   77|  2.16k|      void append_padding_bit() {
   78|  2.16k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
   79|  2.16k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  2.16k|            const uint8_t final_byte = 0x80;
   81|  2.16k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE27append_counter_and_finalizeEv:
   88|  2.16k|      void append_counter_and_finalize() {
   89|       |         // Compress the remaining data if the final data block does not provide
   90|       |         // enough space for the counter bytes.
   91|  2.16k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 498, False: 1.66k]
  ------------------
   92|    498|            m_buffer.fill_up_with_zeros();
   93|    498|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    498|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  2.16k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
   98|  2.16k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  2.16k|         const uint64_t bit_count = m_count * 8;
  102|  2.16k|         const auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  2.16k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  2.16k|            store_be(bit_count, last_bytes.data());
  105|       |         } else {
  106|       |            store_le(bit_count, last_bytes.data());
  107|       |         }
  108|       |
  109|       |         // Compress the very last block.
  110|  2.16k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  2.16k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  2.16k|      void copy_output(std::span<uint8_t> output) {
  114|  2.16k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   84|  2.16k|   do {                                                                     \
  |  |   85|  2.16k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  2.16k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 2.16k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  2.16k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
  115|       |
  116|  2.16k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  2.16k|            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|       |         } else {
  119|       |            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|       |         }
  121|  2.16k|      }

_ZN5Botan15bytes_to_stringENSt3__14spanIKhLm18446744073709551615EEE:
   76|  41.3k|inline std::string bytes_to_string(std::span<const uint8_t> bytes) {
   77|  41.3k|   return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size());
   78|  41.3k|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEhEEvPT_m:
   37|  10.7k|inline void zeroize_buffer(T buf[], size_t n) {
   38|  10.7k|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 10.7k, False: 0]
  ------------------
   39|  10.7k|      std::memset(buf, 0, sizeof(T) * n);
   40|  10.7k|   }
   41|  10.7k|}

_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  462|  1.38k|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  463|  1.38k|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  464|       |
  465|  1.38k|   const W LT = static_cast<W>(-1);
  466|  1.38k|   const W EQ = 0;
  467|  1.38k|   const W GT = 1;
  468|       |
  469|  1.38k|   const size_t common_elems = std::min(x_size, y_size);
  470|       |
  471|  1.38k|   W result = EQ;  // until found otherwise
  472|       |
  473|  2.66k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (473:22): [True: 1.28k, False: 1.38k]
  ------------------
  474|  1.28k|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  475|  1.28k|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  476|       |
  477|  1.28k|      result = is_eq.select(result, is_lt.select(LT, GT));
  478|  1.28k|   }
  479|       |
  480|  1.38k|   if(x_size < y_size) {
  ------------------
  |  Branch (480:7): [True: 100, False: 1.28k]
  ------------------
  481|    100|      W mask = 0;
  482|    200|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (482:30): [True: 100, False: 100]
  ------------------
  483|    100|         mask |= y[i];
  484|    100|      }
  485|       |
  486|       |      // If any bits were set in high part of y, then x < y
  487|    100|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  488|  1.28k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (488:14): [True: 0, False: 1.28k]
  ------------------
  489|      0|      W mask = 0;
  490|      0|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (490:30): [True: 0, False: 0]
  ------------------
  491|      0|         mask |= x[i];
  492|      0|      }
  493|       |
  494|       |      // If any bits were set in high part of x, then x > y
  495|      0|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  496|      0|   }
  497|       |
  498|  1.38k|   CT::unpoison(result);
  499|  1.38k|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  137|  1.38k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  1.38k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1.38k]
  |  |  ------------------
  ------------------
  500|  1.38k|   return static_cast<int32_t>(result);
  501|  1.38k|}

_ZNK5Botan5SHA_113output_lengthEv:
   34|  3.78k|      size_t output_length() const override { return 20; }

_ZNK5Botan7SHA_25613output_lengthEv:
   75|  3.24k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan9SIMD_4x32C2EDv2_x:
  966|  3.85M|      explicit BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(native_simd_type x) noexcept : m_simd(x) {}
_ZN5Botan9SIMD_4x327load_beEPKv:
  194|   155k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_be(const void* in) noexcept {
  195|       |         if constexpr(std::endian::native == std::endian::big) {
  196|       |            return SIMD_4x32::load_native(in);
  197|   155k|         } else {
  198|   155k|            return SIMD_4x32::load_native(in).bswap();
  199|   155k|         }
  200|   155k|      }
_ZN5Botan9SIMD_4x3211load_nativeEPKv:
  166|   477k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_native(const void* in) noexcept {
  167|   477k|#if defined(BOTAN_SIMD_USE_SSSE3)
  168|   477k|         return SIMD_4x32(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in)));
  169|       |#elif defined(BOTAN_SIMD_USE_VSX)
  170|       |         return SIMD_4x32(reinterpret_cast<native_simd_type>(vec_xl(0, static_cast<const unsigned char*>(in))));
  171|       |#elif defined(BOTAN_SIMD_USE_NEON)
  172|       |         return SIMD_4x32(vld1q_u32(static_cast<const uint32_t*>(in)));
  173|       |#elif defined(BOTAN_SIMD_USE_LSX)
  174|       |         return SIMD_4x32(__lsx_vld(in, 0));
  175|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  176|       |         return SIMD_4x32(wasm_v128_load(in));
  177|       |#endif
  178|   477k|      }
_ZNK5Botan9SIMD_4x325bswapEv:
  544|   155k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32 bswap() const noexcept {
  545|   155k|#if defined(BOTAN_SIMD_USE_SSSE3)
  546|   155k|         const auto idx = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);
  547|       |
  548|   155k|         return SIMD_4x32(_mm_shuffle_epi8(raw(), idx));
  549|       |#elif defined(BOTAN_SIMD_USE_VSX)
  550|       |         return SIMD_4x32(vec_revb(m_simd));
  551|       |
  552|       |#elif defined(BOTAN_SIMD_USE_NEON)
  553|       |         return SIMD_4x32(vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(m_simd))));
  554|       |#elif defined(BOTAN_SIMD_USE_LSX)
  555|       |         return SIMD_4x32(__lsx_vshuf4i_b(m_simd, 0b00011011));
  556|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  557|       |         return SIMD_4x32(wasm_i8x16_shuffle(m_simd, m_simd, 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12));
  558|       |#endif
  559|   155k|      }
_ZNK5Botan9SIMD_4x323rawEv:
  964|  6.82M|      native_simd_type BOTAN_FN_ISA_SIMD_4X32 raw() const noexcept { return m_simd; }
_ZNK5Botan9SIMD_4x32plERKS0_:
  352|   329k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 operator+(const SIMD_4x32& other) const noexcept {
  353|   329k|         SIMD_4x32 retval(*this);
  354|   329k|         retval += other;
  355|   329k|         return retval;
  356|   329k|      }
_ZN5Botan9SIMD_4x32pLERKS0_:
  394|   620k|      void BOTAN_FN_ISA_SIMD_4X32 operator+=(const SIMD_4x32& other) noexcept {
  395|   620k|#if defined(BOTAN_SIMD_USE_SSSE3)
  396|   620k|         m_simd = _mm_add_epi32(m_simd, other.m_simd);
  397|       |#elif defined(BOTAN_SIMD_USE_VSX)
  398|       |         m_simd = vec_add(m_simd, other.m_simd);
  399|       |#elif defined(BOTAN_SIMD_USE_NEON)
  400|       |         m_simd = vaddq_u32(m_simd, other.m_simd);
  401|       |#elif defined(BOTAN_SIMD_USE_LSX)
  402|       |         m_simd = __lsx_vadd_w(m_simd, other.m_simd);
  403|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  404|       |         m_simd = wasm_i32x4_add(m_simd, other.m_simd);
  405|       |#endif
  406|   620k|      }
_ZNK5Botan9SIMD_4x328store_leEPj:
  210|  12.3k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint32_t out[4]) const noexcept {
  211|  12.3k|         this->store_le(reinterpret_cast<uint8_t*>(out));
  212|  12.3k|      }
_ZNK5Botan9SIMD_4x328store_leEPh:
  242|  12.3k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint8_t out[]) const noexcept {
  243|  12.3k|         if constexpr(std::endian::native == std::endian::little) {
  244|  12.3k|            this->store_native(out);
  245|       |         } else {
  246|       |            this->bswap().store_native(out);
  247|       |         }
  248|  12.3k|      }
_ZNK5Botan9SIMD_4x3212store_nativeEPv:
  225|  12.3k|      void BOTAN_FN_ISA_SIMD_4X32 store_native(void* out) const noexcept {
  226|  12.3k|#if defined(BOTAN_SIMD_USE_SSSE3)
  227|  12.3k|         _mm_storeu_si128(static_cast<__m128i*>(out), raw());
  228|       |#elif defined(BOTAN_SIMD_USE_VSX)
  229|       |         vec_xst(reinterpret_cast<__vector unsigned char>(m_simd), 0, static_cast<unsigned char*>(out));
  230|       |#elif defined(BOTAN_SIMD_USE_NEON)
  231|       |         vst1q_u32(static_cast<uint32_t*>(out), m_simd);
  232|       |#elif defined(BOTAN_SIMD_USE_LSX)
  233|       |         __lsx_vst(raw(), out, 0);
  234|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  235|       |         wasm_v128_store(out, m_simd);
  236|       |#endif
  237|  12.3k|      }
_ZN5Botan9SIMD_4x327alignr8ERKS0_S2_:
  882|  8.20k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr8(const SIMD_4x32& a, const SIMD_4x32& b) {
  883|  8.20k|#if defined(BOTAN_SIMD_USE_SSSE3)
  884|  8.20k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 8));
  885|       |#elif defined(BOTAN_SIMD_USE_NEON)
  886|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 2));
  887|       |#elif defined(BOTAN_SIMD_USE_VSX)
  888|       |         const __vector unsigned char mask = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23};
  889|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  890|       |#elif defined(BOTAN_SIMD_USE_LSX)
  891|       |         return SIMD_4x32(__lsx_vshuf4i_d(a.raw(), b.raw(), 0b0011));
  892|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  893|       |         return SIMD_4x32(
  894|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23));
  895|       |#endif
  896|  8.20k|      }
_ZN5Botan9SIMD_4x32eOERKS0_:
  422|   329k|      void BOTAN_FN_ISA_SIMD_4X32 operator^=(const SIMD_4x32& other) noexcept {
  423|   329k|#if defined(BOTAN_SIMD_USE_SSSE3)
  424|   329k|         m_simd = _mm_xor_si128(m_simd, other.m_simd);
  425|       |#elif defined(BOTAN_SIMD_USE_VSX)
  426|       |         m_simd = vec_xor(m_simd, other.m_simd);
  427|       |#elif defined(BOTAN_SIMD_USE_NEON)
  428|       |         m_simd = veorq_u32(m_simd, other.m_simd);
  429|       |#elif defined(BOTAN_SIMD_USE_LSX)
  430|       |         m_simd = __lsx_vxor_v(m_simd, other.m_simd);
  431|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  432|       |         m_simd = wasm_v128_xor(m_simd, other.m_simd);
  433|       |#endif
  434|   329k|      }
_ZN5Botan9SIMD_4x32C2Ejjjj:
   99|  4.10k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
  100|  4.10k|#if defined(BOTAN_SIMD_USE_SSSE3)
  101|  4.10k|         m_simd = _mm_set_epi32(B3, B2, B1, B0);
  102|       |#elif defined(BOTAN_SIMD_USE_VSX)
  103|       |         __vector unsigned int val = {B0, B1, B2, B3};
  104|       |         m_simd = val;
  105|       |#elif defined(BOTAN_SIMD_USE_NEON)
  106|       |         // Better way to do this?
  107|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  108|       |         m_simd = vld1q_u32(B);
  109|       |#elif defined(BOTAN_SIMD_USE_LSX)
  110|       |         // Better way to do this?
  111|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  112|       |         m_simd = __lsx_vld(B, 0);
  113|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  114|       |         m_simd = wasm_u32x4_make(B0, B1, B2, B3);
  115|       |#endif
  116|  4.10k|      }
_ZN5Botan9SIMD_4x327load_leEPKv:
  183|   322k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_le(const void* in) noexcept {
  184|   322k|         if constexpr(std::endian::native == std::endian::little) {
  185|   322k|            return SIMD_4x32::load_native(in);
  186|       |         } else {
  187|       |            return SIMD_4x32::load_native(in).bswap();
  188|       |         }
  189|   322k|      }
_ZN5Botan9SIMD_4x327alignr4ERKS0_S2_:
  865|   232k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr4(const SIMD_4x32& a, const SIMD_4x32& b) {
  866|   232k|#if defined(BOTAN_SIMD_USE_SSSE3)
  867|   232k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 4));
  868|       |#elif defined(BOTAN_SIMD_USE_NEON)
  869|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 1));
  870|       |#elif defined(BOTAN_SIMD_USE_VSX)
  871|       |         const __vector unsigned char mask = {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  872|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  873|       |#elif defined(BOTAN_SIMD_USE_LSX)
  874|       |         const auto mask = SIMD_4x32(0x07060504, 0x0B0A0908, 0x0F0E0D0C, 0x13121110);
  875|       |         return SIMD_4x32(__lsx_vshuf_b(a.raw(), b.raw(), mask.raw()));
  876|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  877|       |         return SIMD_4x32(
  878|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19));
  879|       |#endif
  880|   232k|      }
_ZNK5Botan9SIMD_4x3212extract_wordILm3EEEjv:
  942|  4.10k|      inline uint32_t BOTAN_FN_ISA_SIMD_4X32 extract_word() const noexcept {
  943|  4.10k|         static_assert(W <= 3);
  944|       |
  945|       |#if defined(BOTAN_SIMD_USE_NEON)
  946|       |         return vgetq_lane_u32(raw(), W);
  947|       |#elif defined(BOTAN_SIMD_USE_VSX)
  948|       |         return vec_extract(raw(), W);
  949|       |#elif defined(BOTAN_SIMD_USE_LSX)
  950|       |         return __lsx_vpickve2gr_wu(raw(), W);
  951|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  952|       |         return wasm_u32x4_extract_lane(raw(), W);
  953|       |#elif defined(BOTAN_SIMD_USE_SSSE3)
  954|       |         if constexpr(W == 0) {
  955|       |            return static_cast<uint32_t>(_mm_cvtsi128_si32(raw()));
  956|  4.10k|         } else {
  957|       |            // Broadcast the word then extract the low
  958|       |            // TODO(SSE4.1) could use _mm_extract_epi32 here
  959|       |            return static_cast<uint32_t>(_mm_cvtsi128_si32(_mm_shuffle_epi32(raw(), _MM_SHUFFLE(W, W, W, W))));
  960|  4.10k|         }
  961|  4.10k|#endif
  962|  4.10k|      }
_ZNK5Botan9SIMD_4x3217shift_elems_rightILm2EEES0_vQleT_Li3E:
  601|   310k|      {
  602|   310k|#if defined(BOTAN_SIMD_USE_SSSE3)
  603|   310k|         return SIMD_4x32(_mm_srli_si128(raw(), 4 * I));
  604|       |#elif defined(BOTAN_SIMD_USE_NEON)
  605|       |         return SIMD_4x32(vextq_u32(raw(), vdupq_n_u32(0), I));
  606|       |#elif defined(BOTAN_SIMD_USE_VSX)
  607|       |         const __vector unsigned int zero = vec_splat_u32(0);
  608|       |
  609|       |         const __vector unsigned char shuf[3] = {
  610|       |            {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19},
  611|       |            {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
  612|       |            {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27},
  613|       |         };
  614|       |
  615|       |         return SIMD_4x32(vec_perm(raw(), zero, shuf[I - 1]));
  616|       |#elif defined(BOTAN_SIMD_USE_LSX)
  617|       |         return SIMD_4x32(__lsx_vbsrl_v(raw(), 4 * I));
  618|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  619|       |         if constexpr(I == 0) {
  620|       |            return SIMD_4x32(m_simd);
  621|       |         }
  622|       |
  623|       |         const auto zero = wasm_u32x4_const_splat(0);
  624|       |         if constexpr(I == 1) {
  625|       |            return SIMD_4x32(
  626|       |               wasm_i8x16_shuffle(m_simd, zero, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16));
  627|       |         }
  628|       |         if constexpr(I == 2) {
  629|       |            return SIMD_4x32(
  630|       |               wasm_i8x16_shuffle(m_simd, zero, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16));
  631|       |         }
  632|       |
  633|       |         return SIMD_4x32(
  634|       |            wasm_i8x16_shuffle(m_simd, zero, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16));
  635|       |#endif
  636|   310k|      }

_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEjQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  30.6k|constexpr inline T value_barrier(T x) {
   44|  30.6k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 30.6k]
  ------------------
   45|      0|      return x;
   46|  30.6k|   } else {
   47|  30.6k|#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|  30.6k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  30.6k|      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|  30.6k|   }
   64|  30.6k|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEmQntsr3stdE7same_asIbT_EEES3_S3_:
   43|   212k|constexpr inline T value_barrier(T x) {
   44|   212k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 212k]
  ------------------
   45|      0|      return x;
   46|   212k|   } else {
   47|   212k|#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|   212k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|   212k|      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|   212k|   }
   64|   212k|}

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

_ZNK5Botan14ASN1_BitString5bytesEv:
  206|  19.6k|      std::span<const uint8_t> bytes() const { return std::span{m_bytes}; }
_ZNK5Botan14ASN1_BitString11unused_bitsEv:
  211|  8.85k|      size_t unused_bits() const { return m_unused_bits; }
_ZNK5Botan10BER_Object6is_setEv:
  267|   690k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  272|   299k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  277|   306k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  282|   335k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  287|  48.5k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  292|  25.5k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  298|   794k|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  303|  2.03M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  308|   110k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  344|   249k|      uint8_t* mutable_bits(size_t length) {
  345|   249k|         m_value.resize(length);
  346|   249k|         return m_value.data();
  347|   249k|      }
_ZNK5Botan3OID5emptyEv:
  468|  1.99k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|  1.99k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  510|  10.3k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan3OID14get_componentsEv:
  530|   181k|      const std::vector<uint32_t>& get_components() const {
  531|   181k|         return m_id;
  532|   181k|      }
_ZNK5Botan11ASN1_String7taggingEv:
  585|    197|      ASN1_Type tagging() const { return m_tag; }
_ZNK5Botan11ASN1_String5valueEv:
  590|  16.7k|      const std::string& value() const { return m_utf8_str; }
_ZN5BotanltERKNS_11ASN1_StringES2_:
  612|    102|      friend bool operator<(const ASN1_String& a, const ASN1_String& b) { return a.value() < b.value(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  688|  6.85k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  693|  6.79k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  715|  11.5k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  720|  11.5k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (720:58): [True: 2.82k, False: 8.67k]
  |  Branch (720:84): [True: 8.04k, False: 631]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   91|   148k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   92|   148k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   93|   148k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   98|   299k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   99|   299k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  100|   299k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
  105|  49.7k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
  106|  49.7k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  107|  49.7k|}
_ZN5BotanneERKNS_3OIDES2_:
  561|    472|inline bool operator!=(const OID& a, const OID& b) {
  562|    472|   return !(a == b);
  563|    472|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|      4|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectD2Ev:
  168|   304k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  146|   164k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  655|  13.6k|      AlgorithmIdentifier() = default;
_ZN5Botan3OIDC2Ev:
  423|  53.1k|      explicit OID() = default;
_ZN5Botan10BER_ObjectC2Ev:
  239|   435k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  259|   108k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan14ASN1_BitStringC2Ev:
  179|  9.56k|      ASN1_BitString() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  52.3k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  156|    177|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  89.4k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan11ASN1_ObjectaSEOS0_:
  166|  10.8k|      ASN1_Object& operator=(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  249|   132k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2ERKS0_:
  244|  2.33k|      BER_Object(const BER_Object& other) = default;

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

_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  149|  46.6k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJjEEEvDpRKT_:
  149|  65.6k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan11BER_Decoder6Limits3DEREv:
   44|  25.2k|            static Limits DER() { return Limits(false, 0, false, DefaultMaxObjectSize, false); }
_ZN5Botan11BER_Decoder6LimitsC2EbmbNSt3__18optionalImEEb:
  135|  25.2k|                  m_allow_ber(allow_ber),
  136|  25.2k|                  m_max_nested_indef(max_nested_indef),
  137|  25.2k|                  m_allow_standalone_eoc(allow_standalone_eoc),
  138|  25.2k|                  m_max_object_size(max_object_size),
  139|  25.2k|                  m_reject_default_value_encoding(reject_default_value_encoding) {}
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  548|  5.44k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  549|  5.44k|         std::optional<T> optval;
  550|  5.44k|         this->decode_optional(optval, type_tag, class_tag);
  551|  5.44k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (551:16): [True: 3.78k, False: 1.65k]
  ------------------
  552|  5.44k|         return (*this);
  553|  5.44k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  840|  7.15k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  841|  7.15k|   BER_Object obj = get_next_object();
  842|       |
  843|  7.15k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (843:7): [True: 4.18k, False: 2.96k]
  ------------------
  844|  4.18k|      T out{};
  845|  4.18k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (845:10): [True: 3.78k, False: 404]
  ------------------
  846|  3.78k|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  847|  3.78k|      } else {
  848|    404|         this->push_back(std::move(obj));
  849|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  850|       |            // Object types check the tag in decode_from; a re-tagging
  851|       |            // implicit override of an object is not supported here
  852|       |            this->decode(out);
  853|    404|         } else {
  854|    404|            this->decode(out, type_tag, class_tag);
  855|    404|         }
  856|    404|      }
  857|  4.18k|      optval = std::move(out);
  858|  4.18k|   } else {
  859|  2.96k|      this->push_back(std::move(obj));
  860|  2.96k|      optval = std::nullopt;
  861|  2.96k|   }
  862|       |
  863|  7.15k|   return (*this);
  864|  7.15k|}
_ZN5Botan11BER_Decoder6decodeERm:
  364|  4.80k|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder14start_sequenceEv:
  277|  80.9k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder8get_nextERNS_10BER_ObjectE:
  212|  6.38k|      BER_Decoder& get_next(BER_Object& ber) {
  213|  6.38k|         ber = get_next_object();
  214|  6.38k|         return (*this);
  215|  6.38k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__16vectorIhNS2_9allocatorIhEEEEQsr8conceptsE20ordinary_byte_vectorINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEEERS0_RS9_NS_9ASN1_TypeEjNS_10ASN1_ClassE:
  720|  6.38k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  721|  6.38k|         BER_Object obj = get_next_object();
  722|  6.38k|         auto& out = unwrap_strong_type(out_wrapped);
  723|       |
  724|  6.38k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  725|       |
  726|  6.38k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (726:13): [True: 29, False: 6.35k]
  ------------------
  727|     29|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (727:16): [True: 0, False: 29]
  ------------------
  728|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  729|     29|            } else {
  730|     29|               push_back(std::move(obj));
  731|     29|               decode(out, real_type, type_tag, class_tag);
  732|     29|            }
  733|  6.35k|         } else {
  734|  6.35k|            out.clear();
  735|  6.35k|            push_back(std::move(obj));
  736|  6.35k|         }
  737|       |
  738|  6.38k|         return (*this);
  739|  6.38k|      }
_ZN5Botan11BER_Decoder6decodeINSt3__16vectorIhNS2_9allocatorIhEEEEQsr8conceptsE20ordinary_byte_vectorINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEEERS0_RS9_NS_9ASN1_TypeE:
  388|  16.2k|      BER_Decoder& decode(T& out, ASN1_Type real_type) {
  389|  16.2k|         return decode(unwrap_strong_type(out), real_type, real_type, ASN1_Class::Universal);
  390|  16.2k|      }
_ZN5Botan11BER_Decoder6decodeINSt3__16vectorIhNS2_9allocatorIhEEEEQsr8conceptsE20ordinary_byte_vectorINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEEERS0_RS9_NS_9ASN1_TypeESF_NS_10ASN1_ClassE:
  405|  16.4k|                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  406|  16.4k|         return decode_into_byte_vector(unwrap_strong_type(v), real_type, type_tag, class_tag);
  407|  16.4k|      }
_ZN5Botan11BER_Decoder30decode_octet_aligned_bitstringINSt3__16vectorIhNS2_9allocatorIhEEEEQsr8conceptsE20ordinary_byte_vectorINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEEERS0_RS9_NS_9ASN1_TypeENS_10ASN1_ClassE:
  458|  7.43k|                                                  ASN1_Class class_tag = ASN1_Class::Universal) {
  459|  7.43k|         auto& out = unwrap_strong_type(out_wrapped);
  460|  7.43k|         ASN1_BitString bits;
  461|  7.43k|         decode_bitstring(bits, type_tag, class_tag);
  462|       |
  463|  7.43k|         if(bits.unused_bits() != 0) {
  ------------------
  |  Branch (463:13): [True: 3, False: 7.43k]
  ------------------
  464|      3|            throw Decoding_Error("Expected octet-aligned BIT STRING");
  465|      3|         }
  466|       |
  467|  7.43k|         out.assign(bits.bytes().begin(), bits.bytes().end());
  468|  7.43k|         return (*this);
  469|  7.43k|      }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
  169|  8.65k|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   58|   625k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   63|   374k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6Limits15max_object_sizeEv:
   82|   250k|            std::optional<size_t> max_object_size() const { return m_max_object_size; }
_ZNK5Botan11BER_Decoder6limitsEv:
  199|   108k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder9start_setEv:
  283|  17.1k|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder22start_context_specificEj:
  292|    788|      BER_Decoder start_context_specific(uint32_t tag) {
  293|    788|         return start_cons(ASN1_Type(tag), ASN1_Class::ContextSpecific);
  294|    788|      }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  369|  4.38k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__16vectorIhNS2_9allocatorIhEEEEQsr8conceptsE20ordinary_byte_vectorINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEEERS0_RS9_:
  341|  23.5k|      BER_Decoder& raw_bytes(T& out_wrapped) {
  342|  23.5k|         auto& out = unwrap_strong_type(out_wrapped);
  343|  23.5k|         out.clear();
  344|  23.5k|         uint8_t buf[64];
  345|   106k|         while(const size_t got = this->read_bytes(std::span{buf})) {
  ------------------
  |  Branch (345:29): [True: 83.0k, False: 23.5k]
  ------------------
  346|  83.0k|            out.insert(out.end(), buf, buf + got);
  347|  83.0k|         }
  348|  23.5k|         return (*this);
  349|  23.5k|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_3OIDEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  635|  2.33k|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  636|  2.33k|         obj.set_tagging(real_type, real_class);
  637|  2.33k|         push_back(std::move(obj));
  638|  2.33k|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  639|       |            // The object was re-tagged above; decode_from checks the real tag itself
  640|  2.33k|            return decode(out);
  641|       |         } else {
  642|       |            return decode(out, real_type, real_class);
  643|       |         }
  644|  2.33k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  548|  15.6k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  549|  15.6k|         std::optional<T> optval;
  550|  15.6k|         this->decode_optional(optval, type_tag, class_tag);
  551|  15.6k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (551:16): [True: 2.57k, False: 13.0k]
  ------------------
  552|  15.6k|         return (*this);
  553|  15.6k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  840|  15.6k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  841|  15.6k|   BER_Object obj = get_next_object();
  842|       |
  843|  15.6k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (843:7): [True: 2.60k, False: 13.0k]
  ------------------
  844|  2.60k|      T out{};
  845|  2.60k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (845:10): [True: 0, False: 2.60k]
  ------------------
  846|      0|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  847|  2.60k|      } else {
  848|  2.60k|         this->push_back(std::move(obj));
  849|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  850|       |            // Object types check the tag in decode_from; a re-tagging
  851|       |            // implicit override of an object is not supported here
  852|       |            this->decode(out);
  853|  2.60k|         } else {
  854|  2.60k|            this->decode(out, type_tag, class_tag);
  855|  2.60k|         }
  856|  2.60k|      }
  857|  2.60k|      optval = std::move(out);
  858|  13.0k|   } else {
  859|  13.0k|      this->push_back(std::move(obj));
  860|  13.0k|      optval = std::nullopt;
  861|  13.0k|   }
  862|       |
  863|  15.6k|   return (*this);
  864|  15.6k|}
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_0EERS0_jNS_10ASN1_ClassEOT_:
  621|    548|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    548|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 163, False: 385]
  ------------------
  623|    163|            std::forward<F>(fn)(*this);
  624|    163|         }
  625|    548|         return (*this);
  626|    548|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  658|    826|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  659|    826|         BER_Object obj = get_next_object();
  660|    826|         obj.assert_is_a(type_tag, class_tag);
  661|    826|         return decode_implicit(std::move(obj), out, real_type, real_class);
  662|    826|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  635|    826|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  636|    826|         obj.set_tagging(real_type, real_class);
  637|    826|         push_back(std::move(obj));
  638|    826|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  639|       |            // The object was re-tagged above; decode_from checks the real tag itself
  640|    826|            return decode(out);
  641|       |         } else {
  642|       |            return decode(out, real_type, real_class);
  643|       |         }
  644|    826|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_1EERS0_jNS_10ASN1_ClassEOT_:
  621|    504|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    504|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 92, False: 412]
  ------------------
  623|     92|            std::forward<F>(fn)(*this);
  624|     92|         }
  625|    504|         return (*this);
  626|    504|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_2EERS0_jNS_10ASN1_ClassEOT_:
  621|    437|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    437|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 72, False: 365]
  ------------------
  623|     72|            std::forward<F>(fn)(*this);
  624|     72|         }
  625|    437|         return (*this);
  626|    437|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  658|     72|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  659|     72|         BER_Object obj = get_next_object();
  660|     72|         obj.assert_is_a(type_tag, class_tag);
  661|     72|         return decode_implicit(std::move(obj), out, real_type, real_class);
  662|     72|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  635|     72|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  636|     72|         obj.set_tagging(real_type, real_class);
  637|     72|         push_back(std::move(obj));
  638|     72|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  639|       |            // The object was re-tagged above; decode_from checks the real tag itself
  640|     72|            return decode(out);
  641|       |         } else {
  642|       |            return decode(out, real_type, real_class);
  643|       |         }
  644|     72|      }
_ZN5Botan11BER_Decoder11decode_listINS_3OIDEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    270|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    270|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  1.66k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 1.39k, False: 270]
  ------------------
  897|  1.39k|      T value;
  898|  1.39k|      list.decode(value);
  899|  1.39k|      vec.push_back(std::move(value));
  900|  1.39k|   }
  901|       |
  902|    270|   list.end_cons();
  903|       |
  904|    270|   return (*this);
  905|    270|}
_ZN5Botan11BER_Decoder20decode_optional_listINS_14GeneralSubtreeEEEbRNSt3__16vectorIT_NS3_9allocatorIS5_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  911|    605|bool BER_Decoder::decode_optional_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  912|    605|   if(peek_next_object().is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (912:7): [True: 403, False: 202]
  ------------------
  913|    403|      decode_list(vec, type_tag, class_tag);
  914|    403|      return true;
  915|    403|   }
  916|       |
  917|    202|   return false;
  918|    605|}
_ZN5Botan11BER_Decoder11decode_listINS_14GeneralSubtreeEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    403|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    403|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  1.78k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 1.37k, False: 403]
  ------------------
  897|  1.37k|      T value;
  898|  1.37k|      list.decode(value);
  899|  1.37k|      vec.push_back(std::move(value));
  900|  1.37k|   }
  901|       |
  902|    403|   list.end_cons();
  903|       |
  904|    403|   return (*this);
  905|    403|}
x509_ext.cpp:_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension12_GLOBAL__N_118Policy_InformationEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    674|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    674|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  2.15k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 1.48k, False: 674]
  ------------------
  897|  1.48k|      T value;
  898|  1.48k|      list.decode(value);
  899|  1.48k|      vec.push_back(std::move(value));
  900|  1.48k|   }
  901|       |
  902|    674|   list.end_cons();
  903|       |
  904|    674|   return (*this);
  905|    674|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension23CRL_Distribution_Points18Distribution_PointEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    931|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    931|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  1.81k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 888, False: 931]
  ------------------
  897|    888|      T value;
  898|    888|      list.decode(value);
  899|    888|      vec.push_back(std::move(value));
  900|    888|   }
  901|       |
  902|    931|   list.end_cons();
  903|       |
  904|    931|   return (*this);
  905|    931|}
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_0EES5_jNS_10ASN1_ClassEOT_:
  621|    849|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    849|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 788, False: 61]
  ------------------
  623|    788|            std::forward<F>(fn)(*this);
  624|    788|         }
  625|    849|         return (*this);
  626|    849|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_1EES5_jNS_10ASN1_ClassEOT_:
  621|    226|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    226|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 14, False: 212]
  ------------------
  623|     14|            std::forward<F>(fn)(*this);
  624|     14|         }
  625|    226|         return (*this);
  626|    226|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_2EES5_jNS_10ASN1_ClassEOT_:
  621|    211|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  622|    211|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (622:13): [True: 12, False: 199]
  ------------------
  623|     12|            std::forward<F>(fn)(*this);
  624|     12|         }
  625|    211|         return (*this);
  626|    211|      }
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension10TNAuthList5EntryEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    214|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    214|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|    515|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 301, False: 214]
  ------------------
  897|    301|      T value;
  898|    301|      list.decode(value);
  899|    301|      vec.push_back(std::move(value));
  900|    301|   }
  901|       |
  902|    214|   list.end_cons();
  903|       |
  904|    214|   return (*this);
  905|    214|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks15IPAddressFamilyEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    718|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    718|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  1.58k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 866, False: 718]
  ------------------
  897|    866|      T value;
  898|    866|      list.decode(value);
  899|    866|      vec.push_back(std::move(value));
  900|    866|   }
  901|       |
  902|    718|   list.end_cons();
  903|       |
  904|    718|   return (*this);
  905|    718|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    252|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    252|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|    754|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 502, False: 252]
  ------------------
  897|    502|      T value;
  898|    502|      list.decode(value);
  899|    502|      vec.push_back(std::move(value));
  900|    502|   }
  901|       |
  902|    252|   list.end_cons();
  903|       |
  904|    252|   return (*this);
  905|    252|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    245|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    245|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|    716|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 471, False: 245]
  ------------------
  897|    471|      T value;
  898|    471|      list.decode(value);
  899|    471|      vec.push_back(std::move(value));
  900|    471|   }
  901|       |
  902|    245|   list.end_cons();
  903|       |
  904|    245|   return (*this);
  905|    245|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension8ASBlocks11ASIdOrRangeEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  893|    315|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  894|    315|   BER_Decoder list = start_cons(type_tag, class_tag);
  895|       |
  896|  1.28k|   while(list.more_items()) {
  ------------------
  |  Branch (896:10): [True: 970, False: 315]
  ------------------
  897|    970|      T value;
  898|    970|      list.decode(value);
  899|    970|      vec.push_back(std::move(value));
  900|    970|   }
  901|       |
  902|    315|   list.end_cons();
  903|       |
  904|    315|   return (*this);
  905|    315|}

_ZN5Botan6BigInt4zeroEv:
   50|      1|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigIntD2Ev:
  185|  20.0k|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  9.46k|      BigInt& operator=(BigInt&& other) noexcept {
  191|  9.46k|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 9.46k, False: 0]
  ------------------
  192|  9.46k|            this->swap(other);
  193|  9.46k|         }
  194|       |
  195|  9.46k|         return (*this);
  196|  9.46k|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  9.46k|      void swap(BigInt& other) noexcept {
  208|  9.46k|         m_data.swap(other.m_data);
  209|  9.46k|         std::swap(m_signedness, other.m_signedness);
  210|  9.46k|      }
_ZN5Botan6BigInt5clearEv:
  441|  10.4k|      void clear() {
  442|  10.4k|         m_data.set_to_zero();
  443|  10.4k|         m_signedness = Positive;
  444|  10.4k|      }
_ZNK5Botan6BigInt6signumEv:
  493|  13.5k|      int signum() const {
  494|  13.5k|         if(sig_words() == 0) {
  ------------------
  |  Branch (494:13): [True: 608, False: 12.9k]
  ------------------
  495|    608|            return 0;
  496|    608|         }
  497|  12.9k|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (497:17): [True: 2.31k, False: 10.6k]
  ------------------
  498|  13.5k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  510|  2.12k|      bool is_zero() const { return sig_words() == 0; }
_ZNK5Botan6BigInt7word_atEm:
  601|  50.9k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt11is_negativeEv:
  623|     81|      BOTAN_DEPRECATED("Use signum() < 0") bool is_negative() const { return signum() < 0; }
_ZNK5Botan6BigInt4signEv:
  641|  12.9k|      Sign sign() const { return (m_signedness); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  663|  2.12k|      void set_sign(Sign sign) {
  664|  2.12k|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (664:13): [True: 2.12k, False: 0]
  |  Branch (664:33): [True: 0, False: 2.12k]
  ------------------
  665|      0|            sign = Positive;
  666|      0|         }
  667|       |
  668|  2.12k|         m_signedness = sign;
  669|  2.12k|      }
_ZNK5Botan6BigInt9sig_wordsEv:
  687|  48.9k|      size_t sig_words() const { return m_data.sig_words(); }
_ZNK5Botan6BigInt5_dataEv:
 1033|  1.38k|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 1044|  10.4k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1088|  21.4k|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1099|  50.9k|            word get_word_at(size_t n) const {
 1100|  50.9k|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1100:19): [True: 50.9k, False: 3]
  ------------------
 1101|  50.9k|                  return m_reg[n];
 1102|  50.9k|               }
 1103|      3|               return 0;
 1104|  50.9k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1136|  20.0k|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1151|  9.46k|            void swap(Data& other) noexcept {
 1152|  9.46k|               m_reg.swap(other.m_reg);
 1153|  9.46k|               std::swap(m_sig_words, other.m_sig_words);
 1154|  9.46k|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1156|  10.4k|            void swap(secure_vector<word>& reg) noexcept {
 1157|  10.4k|               m_reg.swap(reg);
 1158|  10.4k|               invalidate_sig_words();
 1159|  10.4k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1161|  10.4k|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1163|  48.9k|            size_t sig_words() const {
 1164|  48.9k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1164:19): [True: 10.4k, False: 38.5k]
  ------------------
 1165|  10.4k|                  m_sig_words = calc_sig_words();
 1166|  10.4k|               }
 1167|  48.9k|               return m_sig_words;
 1168|  48.9k|            }
_ZN5BotaneqERKNS_6BigIntEm:
 1373|  4.20k|inline bool operator==(const BigInt& a, word b) {
 1374|  4.20k|   return (a.cmp_word(b) == 0);
 1375|  4.20k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  790|  5.05k|      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|  5.05k|         T out(len);
  795|  5.05k|         this->serialize_to(out);
  796|  5.05k|         return out;
  797|  5.05k|      }
_ZN5Botan6BigIntC2Ev:
   45|  20.0k|      BigInt() = default;
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_v:
  803|    955|      T serialize() const {
  804|    955|         return serialize<T>(this->bytes());
  805|    955|      }

_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   41|  4.32k|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation12final_stdvecEv:
  114|  1.62k|      std::vector<uint8_t> final_stdvec() { return final<std::vector<uint8_t>>(); }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS3_9allocatorIhEEEEEET_v:
  104|  1.62k|      T final() {
  105|  1.62k|         T output(output_length());
  106|  1.62k|         final_result(output);
  107|  1.62k|         return output;
  108|  1.62k|      }
_ZN5Botan20Buffered_ComputationD2Ev:
  169|  1.08k|      virtual ~Buffered_Computation() = default;

_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  181|  38.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|  38.5k|         if(!in.empty()) {
  ------------------
  |  Branch (183:13): [True: 38.3k, False: 240]
  ------------------
  184|  38.3k|            m_source.assign(in.begin(), in.end());
  185|  38.3k|         }
  186|  38.5k|      }
_ZN5Botan10DataSourceC2Ev:
  107|   156k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  109|   138k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  175|     85|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZN5Botan11DER_Encoder14start_sequenceEv:
   86|  2.19k|      DER_Encoder& start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11DER_Encoder9raw_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  154|  1.08k|      DER_Encoder& raw_bytes(std::span<const uint8_t> val) { return raw_bytes(val.data(), val.size()); }
_ZN5Botan11DER_Encoder30encode_octet_aligned_bitstringENSt3__14spanIKhLm18446744073709551615EEENS_9ASN1_TypeENS_10ASN1_ClassE:
  212|    541|                                                  ASN1_Class class_tag = ASN1_Class::Universal) {
  213|    541|         return encode_bitstring(bytes, 0, type_tag, class_tag);
  214|    541|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  410|  18.4k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  411|  18.4k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  412|  18.4k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  421|  16.9k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  422|  16.9k|         return add_object(type_tag, class_tag, std::span{rep});
  423|  16.9k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  432|    541|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const secure_vector<uint8_t>& rep) {
  433|    541|         return add_object(type_tag, class_tag, std::span{rep});
  434|    541|      }
_ZN5Botan11DER_Encoder12DER_SequenceC2EOS1_:
  487|  4.92k|                  m_type_tag(seq.m_type_tag),
  488|  4.92k|                  m_class_tag(seq.m_class_tag),
  489|  4.92k|                  m_sort_contents(seq.m_sort_contents),
  490|  4.92k|                  m_contents(std::move(seq.m_contents)),
  491|  4.92k|                  m_set_contents(std::move(seq.m_set_contents)) {}
_ZN5Botan11DER_Encoder12DER_SequenceD2Ev:
  504|  7.12k|            ~DER_Sequence() = default;

_ZNK5Botan7DNSName9to_stringEv:
   51|    444|      const std::string& to_string() const { return m_name; }
_ZN5Botan7DNSNameC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  101|  17.0k|      explicit DNSName(std::string canonical) : m_name(std::move(canonical)) {}
_ZNK5Botan7DNSNamessERKS0_:
   84|   157k|      auto operator<=>(const DNSName&) const = default;

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

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

_ZN5Botan10hex_encodeENSt3__14spanIKhLm18446744073709551615EEEb:
   43|  1.08k|inline std::string hex_encode(std::span<const uint8_t> input, bool uppercase = true) {
   44|  1.08k|   return hex_encode(input.data(), input.size(), uppercase);
   45|  1.08k|}

_ZNK5Botan11IPv4AddressssERKS0_:
   73|  1.40k|      auto operator<=>(const IPv4Address&) const = default;
_ZN5Botan11IPv4AddressC2Ej:
   29|    724|      explicit IPv4Address(uint32_t ip) : m_ip(ip) {}
_ZN5Botan11IPv4AddressC2ENSt3__15arrayIhLm4EEE:
   41|     56|      explicit IPv4Address(std::array<uint8_t, 4> ip) : IPv4Address(std::span<const uint8_t, 4>(ip)) {}
_ZNK5Botan11IPv4AddressanERKS0_:
   67|     30|      IPv4Address operator&(const IPv4Address& other) const { return IPv4Address(m_ip & other.m_ip); }

_ZNK5Botan11IPv6AddressssERKS0_:
   73|  3.77k|      auto operator<=>(const IPv6Address&) const = default;
_ZN5Botan11IPv6AddressC2ENSt3__15arrayIhLm16EEE:
   37|    128|      explicit IPv6Address(std::array<uint8_t, 16> ip) : m_ip(ip) {}
_ZNK5Botan11IPv6Address8to_bytesEv:
   82|     69|      std::array<uint8_t, 16> to_bytes() const { return m_ip; }

_ZN5Botan11clear_bytesEPvm:
  101|  10.5k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  10.5k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 140, False: 10.4k]
  ------------------
  103|    140|      std::memset(ptr, 0, bytes);
  104|    140|   }
  105|  10.5k|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  1.10M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  1.10M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  110|  1.10M|   do {                                                                                          \
  |  |  111|  1.10M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  112|  2.14M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (112:10): [True: 1.07M, False: 32.5k]
  |  |  |  Branch (112:23): [True: 1.07M, False: 0]
  |  |  |  Branch (112:23): [True: 1.07M, False: 0]
  |  |  ------------------
  |  |  113|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  114|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  115|      0|      }                                                                                          \
  |  |  116|  1.10M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (116:12): [Folded, False: 1.10M]
  |  |  ------------------
  ------------------
  146|       |
  147|  1.10M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 1.10M, False: 1.59k]
  |  Branch (147:24): [True: 1.09M, False: 3.29k]
  |  Branch (147:42): [True: 1.07M, False: 27.6k]
  ------------------
  148|  1.07M|      std::memmove(out, in, sizeof(T) * n);
  149|  1.07M|   }
  150|  1.10M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   570k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   570k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   570k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEEjQaaaasr3stdE23is_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|  28.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  28.1k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  28.1k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEETkNS1_16contiguous_rangeENS3_IKjLm1EEEQaasr3stdE23is_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|  28.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  28.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  28.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  28.1k|}
_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|  15.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  15.1k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  15.1k|}
_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|  15.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  15.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  15.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  15.1k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|    161|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|    161|   clear_bytes(ptr, sizeof(T) * n);
  120|    161|}
_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|    886|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    886|   ranges::assert_equal_byte_lengths(out, in);
  178|    886|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    886|}
_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|    886|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    886|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    886|}
_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|    886|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    886|   ToT dst;  // NOLINT(*-member-init)
  212|    886|   typecast_copy(dst, src);
  213|    886|   return dst;
  214|    886|}
_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|  10.8k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  10.8k|   ToT dst;  // NOLINT(*-member-init)
  212|  10.8k|   typecast_copy(dst, src);
  213|  10.8k|   return dst;
  214|  10.8k|}
_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|  10.8k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  10.8k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  10.8k|}
_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|  10.8k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  10.8k|   ranges::assert_equal_byte_lengths(out, in);
  178|  10.8k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  10.8k|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  10.4k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  10.4k|   clear_bytes(ptr, sizeof(T) * n);
  120|  10.4k|}
_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|  8.18k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  8.18k|   ranges::assert_equal_byte_lengths(out, in);
  162|  8.18k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 8.18k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  8.18k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 8.18k, False: 0]
  ------------------
  165|  8.18k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  8.18k|   }
  167|  8.18k|}
_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|  8.18k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  8.18k|   ToT dst;  // NOLINT(*-member-init)
  212|  8.18k|   typecast_copy(dst, src);
  213|  8.18k|   return dst;
  214|  8.18k|}
_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|  8.18k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  8.18k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  8.18k|}
_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|  8.18k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  8.18k|   ranges::assert_equal_byte_lengths(out, in);
  178|  8.18k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  8.18k|}
_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|  49.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  49.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  49.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  49.1k|}
_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|  3.79k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  3.79k|   ToT dst;  // NOLINT(*-member-init)
  212|  3.79k|   typecast_copy(dst, src);
  213|  3.79k|   return dst;
  214|  3.79k|}
_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|  3.79k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  3.79k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  3.79k|}
_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|  3.79k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  3.79k|   ranges::assert_equal_byte_lengths(out, in);
  178|  3.79k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  3.79k|}
_ZN5Botan9clear_memIjEEvPT_m:
  118|      6|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|      6|   clear_bytes(ptr, sizeof(T) * n);
  120|      6|}

_ZN5Botan15Key_ConstraintsC2ENS0_4BitsE:
  163|  1.05k|      Key_Constraints(Key_Constraints::Bits bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ej:
  165|    777|      explicit Key_Constraints(uint32_t bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ev:
  167|  4.24k|      Key_Constraints() : m_value(0) {}
_ZNK5Botan15Key_Constraints8includesENS0_4BitsE:
  187|     38|      bool includes(Key_Constraints::Bits other) const { return (m_value & other) == other; }
_ZNK5Botan15Key_Constraints5emptyEv:
  194|    259|      bool empty() const { return m_value == 0; }
_ZN5Botan11ReasonFlagsC2Et:
  248|      6|      explicit ReasonFlags(uint16_t bits) : m_value(bits) {
  249|      6|         if((m_value & static_cast<uint16_t>(~DefinedReasonBits)) != 0) {
  ------------------
  |  Branch (249:13): [True: 1, False: 5]
  ------------------
  250|      1|            throw Decoding_Error("ReasonFlags contains undefined reason bits");
  251|      1|         }
  252|      5|         if(m_value == 0) {
  ------------------
  |  Branch (252:13): [True: 1, False: 4]
  ------------------
  253|      1|            throw Decoding_Error("ReasonFlags must have at least one defined reason");
  254|      1|         }
  255|      5|      }

_ZN5Botan18X509_Serial_NumberC2Ev:
   70|  4.31k|      X509_Serial_Number() : m_contents{0x00} {}
_ZN5Botan7X509_DNC2Ev:
  159|  8.70k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
 1027|  4.24k|      Extensions() = default;
_ZN5Botan15AlternativeNameC2Ev:
  336|  11.6k|      AlternativeName() = default;
_ZN5Botan15NameConstraintsC2Ev:
  753|  4.67k|      NameConstraints() = default;
_ZN5Botan10ExtensionsD2Ev:
 1035|  4.24k|      ~Extensions() override = default;
_ZNK5Botan7X509_DN8get_bitsEv:
  198|  6.20k|      const std::vector<uint8_t>& get_bits() const { return m_dn_bits; }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension9Key_UsageEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 284, False: 257]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    284|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 56, False: 228]
  ------------------
  886|     56|               return nullptr;
  887|    228|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 228, False: 0]
  ------------------
  888|    228|               return extn_as_T;
  889|    228|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    284|         }
  893|       |
  894|    257|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14Subject_Key_IDEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 181, False: 360]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    181|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 39, False: 142]
  ------------------
  886|     39|               return nullptr;
  887|    142|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 142, False: 0]
  ------------------
  888|    142|               return extn_as_T;
  889|    142|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    181|         }
  893|       |
  894|    360|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 145, False: 396]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    145|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 97, False: 48]
  ------------------
  886|     97|               return nullptr;
  887|     97|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 48, False: 0]
  ------------------
  888|     48|               return extn_as_T;
  889|     48|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    145|         }
  893|       |
  894|    396|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Name_ConstraintsEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 62, False: 479]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|     62|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 41, False: 21]
  ------------------
  886|     41|               return nullptr;
  887|     41|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 21, False: 0]
  ------------------
  888|     21|               return extn_as_T;
  889|     21|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|     62|         }
  893|       |
  894|    479|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension18Extended_Key_UsageEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 129, False: 412]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    129|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 55, False: 74]
  ------------------
  886|     55|               return nullptr;
  887|     74|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 74, False: 0]
  ------------------
  888|     74|               return extn_as_T;
  889|     74|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    129|         }
  893|       |
  894|    412|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension17Basic_ConstraintsEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 199, False: 342]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    199|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 133, False: 66]
  ------------------
  886|    133|               return nullptr;
  887|    133|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 66, False: 0]
  ------------------
  888|     66|               return extn_as_T;
  889|     66|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    199|         }
  893|       |
  894|    342|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23Issuer_Alternative_NameEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 75, False: 466]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|     75|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 51, False: 24]
  ------------------
  886|     51|               return nullptr;
  887|     51|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 24, False: 0]
  ------------------
  888|     24|               return extn_as_T;
  889|     24|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|     75|         }
  893|       |
  894|    466|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension24Subject_Alternative_NameEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 170, False: 371]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    170|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 104, False: 66]
  ------------------
  886|    104|               return nullptr;
  887|    104|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 66, False: 0]
  ------------------
  888|     66|               return extn_as_T;
  889|     66|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    170|         }
  893|       |
  894|    371|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension20Certificate_PoliciesEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 35, False: 506]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|     35|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 15, False: 20]
  ------------------
  886|     15|               return nullptr;
  887|     20|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 20, False: 0]
  ------------------
  888|     20|               return extn_as_T;
  889|     20|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|     35|         }
  893|       |
  894|    506|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension28Authority_Information_AccessEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 218, False: 323]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    218|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 137, False: 81]
  ------------------
  886|    137|               return nullptr;
  887|    137|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 81, False: 0]
  ------------------
  888|     81|               return extn_as_T;
  889|     81|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    218|         }
  893|       |
  894|    323|         return nullptr;
  895|    541|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23CRL_Distribution_PointsEEEPKT_RKNS_3OIDE:
  882|    541|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  883|    541|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (883:42): [True: 182, False: 359]
  ------------------
  884|       |            // Unknown_Extension oid_name is empty
  885|    182|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (885:16): [True: 160, False: 22]
  ------------------
  886|    160|               return nullptr;
  887|    160|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (887:32): [True: 22, False: 0]
  ------------------
  888|     22|               return extn_as_T;
  889|     22|            } else {
  890|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  891|      0|            }
  892|    182|         }
  893|       |
  894|    359|         return nullptr;
  895|    541|      }
_ZNK5Botan15AlternativeName9uri_namesEv:
  389|     80|      const std::set<URI>& uri_names() const { return m_uri; }
_ZNK5Botan15AlternativeName15directory_namesEv:
  441|    192|      const std::set<X509_DN>& directory_names() const { return m_dn_names; }
_ZNK5Botan15AlternativeName14OtherNameValue3oidEv:
  309|  1.70k|            const OID& oid() const { return m_oid; }
_ZNK5Botan14GeneralSubtree4baseEv:
  735|    542|      const GeneralName& base() const { return m_base; }
_ZNK5Botan7X509_DN5emptyEv:
  202|      7|      bool empty() const { return m_rdn.empty(); }
_ZNK5Botan7X509_DN16_canonical_bytesEv:
  274|  1.12k|      const std::vector<uint8_t>& _canonical_bytes() const { return m_canonical_dn_bits; }
_ZNK5Botan15AlternativeName14OtherNameValueltERKS1_:
  313|    472|            bool operator<(const OtherNameValue& other) const {
  314|    472|               if(oid() != other.oid()) {
  ------------------
  |  Branch (314:19): [True: 381, False: 91]
  ------------------
  315|    381|                  return oid() < other.oid();
  316|    381|               }
  317|     91|               return m_value < other.m_value;
  318|    472|            }
_ZN5Botan15AlternativeName14OtherNameValueC2ERKNS_3OIDENSt3__16vectorIhNS5_9allocatorIhEEEE:
  323|    441|            OtherNameValue(const OID& oid, std::vector<uint8_t> value) : m_oid(oid), m_value(std::move(value)) {}
_ZN5Botan15AlternativeName16add_ipv4_addressEj:
  372|    505|      BOTAN_DEPRECATED("Use variant taking IPv4Address") void add_ipv4_address(uint32_t ipv4) {
  373|    505|         this->add_ipv4_address(IPv4Address(ipv4));
  374|    505|      }
_ZNK5Botan11GeneralName9type_codeEv:
  594|    542|      NameType type_code() const { return m_type; }
_ZN5Botan11GeneralName15EmailConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  645|    145|            explicit EmailConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan11GeneralName13DNSConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  663|     97|            explicit DNSConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan11GeneralName13URIConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  681|     99|            explicit URIConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan10Extensions15Extensions_InfoC2EbNSt3__16vectorIhNS2_9allocatorIhEEEENS2_10unique_ptrINS_21Certificate_ExtensionENS2_14default_deleteIS8_EEEE:
 1049|  14.9k|                  m_obj(std::move(ext)), m_bits(std::move(encoding)), m_critical(critical) {}
_ZN5Botan11GeneralNameC2Ev:
  562|  1.37k|      BOTAN_DEPRECATED("Deprecated use NameConstraints") GeneralName() = default;
_ZN5Botan11GeneralName15EmailConstraintC2Ev:
  636|  1.37k|            EmailConstraint() = default;
_ZN5Botan21Certificate_ExtensionD2Ev:
  856|  21.9k|      virtual ~Certificate_Extension() = default;

_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  8.18k|{
  101|  8.18k|   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|  8.18k|   } else {
  107|  8.18k|      const size_t expected_size = s0.size_bytes();
  108|  8.18k|      const bool correct_size =
  109|  8.18k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  8.18k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 8.18k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  8.18k|   }
  115|  8.18k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   570k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   570k|   return std::span{r}.size_bytes();
   61|   570k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  56.2k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  56.2k|   const std::span s{r};
   79|  56.2k|   if constexpr(statically_spanable_range<R>) {
   80|  56.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|  56.2k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm4EEETpTkNS0_14spanable_rangeEJNS3_IKjLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  28.1k|{
  101|  28.1k|   const std::span s0{r0};
  102|       |
  103|  28.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  28.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  28.1k|      (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|  28.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKjLm1EEEEEvRKT0_:
   77|  28.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  28.1k|   const std::span s{r};
   79|  28.1k|   if constexpr(statically_spanable_range<R>) {
   80|  28.1k|      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|  28.1k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEmRKT_:
   59|  28.1k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  28.1k|   return std::span{r}.size_bytes();
   61|  28.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  23.3k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  23.3k|   const std::span s{r};
   79|  23.3k|   if constexpr(statically_spanable_range<R>) {
   80|  23.3k|      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|  23.3k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  15.1k|{
  101|  15.1k|   const std::span s0{r0};
  102|       |
  103|  15.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  15.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  15.1k|      (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|  15.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  15.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  15.1k|   const std::span s{r};
   79|  15.1k|   if constexpr(statically_spanable_range<R>) {
   80|  15.1k|      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|  15.1k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  15.1k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  15.1k|   return std::span{r}.size_bytes();
   61|  15.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKjLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.32k|{
  101|  4.32k|   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|  4.32k|   } else {
  107|  4.32k|      const size_t expected_size = s0.size_bytes();
  108|  4.32k|      const bool correct_size =
  109|  4.32k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  4.32k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 4.32k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  4.32k|   }
  115|  4.32k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  16.3k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  16.3k|   return std::span{r}.size_bytes();
   61|  16.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  1.77k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.77k|   const std::span s{r};
   79|  1.77k|   if constexpr(statically_spanable_range<R>) {
   80|  1.77k|      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.77k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    886|{
  101|    886|   const std::span s0{r0};
  102|       |
  103|    886|   if constexpr(statically_spanable_range<R0>) {
  104|    886|      constexpr size_t expected_size = s0.size_bytes();
  105|    886|      (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|    886|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|    886|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    886|   return std::span{r}.size_bytes();
   61|    886|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|  21.7k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  21.7k|   const std::span s{r};
   79|  21.7k|   if constexpr(statically_spanable_range<R>) {
   80|  21.7k|      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|  21.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  10.8k|{
  101|  10.8k|   const std::span s0{r0};
  102|       |
  103|  10.8k|   if constexpr(statically_spanable_range<R0>) {
  104|  10.8k|      constexpr size_t expected_size = s0.size_bytes();
  105|  10.8k|      (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|  10.8k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  19.0k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  19.0k|   return std::span{r}.size_bytes();
   61|  19.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  8.18k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  8.18k|   const std::span s{r};
   79|  8.18k|   if constexpr(statically_spanable_range<R>) {
   80|  8.18k|      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|  8.18k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  8.18k|{
  101|  8.18k|   const std::span s0{r0};
  102|       |
  103|  8.18k|   if constexpr(statically_spanable_range<R0>) {
  104|  8.18k|      constexpr size_t expected_size = s0.size_bytes();
  105|  8.18k|      (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|  8.18k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  98.3k|{
  101|  98.3k|   const std::span s0{r0};
  102|       |
  103|  98.3k|   if constexpr(statically_spanable_range<R0>) {
  104|  98.3k|      constexpr size_t expected_size = s0.size_bytes();
  105|  98.3k|      (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|  98.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|  98.3k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  98.3k|   const std::span s{r};
   79|  98.3k|   if constexpr(statically_spanable_range<R>) {
   80|  98.3k|      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|  98.3k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  49.1k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  49.1k|   return std::span{r}.size_bytes();
   61|  49.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|  7.59k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  7.59k|   const std::span s{r};
   79|  7.59k|   if constexpr(statically_spanable_range<R>) {
   80|  7.59k|      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|  7.59k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  3.79k|{
  101|  3.79k|   const std::span s0{r0};
  102|       |
  103|  3.79k|   if constexpr(statically_spanable_range<R0>) {
  104|  3.79k|      constexpr size_t expected_size = s0.size_bytes();
  105|  3.79k|      (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|  3.79k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  3.79k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.79k|   return std::span{r}.size_bytes();
   61|  3.79k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__15arrayIhLm4EEEEEvRKT0_:
   77|     56|inline constexpr void assert_exact_byte_length(const R& r) {
   78|     56|   const std::span s{r};
   79|     56|   if constexpr(statically_spanable_range<R>) {
   80|     56|      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|     56|}

_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
  102|  45.9k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIhE8allocateEm:
   95|  45.9k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
  102|  10.4k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   95|  10.4k|      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|  6.55k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<const T*, L>& in) {
  205|  6.55k|   if(in.second > 0) {
  ------------------
  |  Branch (205:7): [True: 6.45k, False: 92]
  ------------------
  206|  6.45k|      out.insert(out.end(), in.first, in.first + in.second);
  207|  6.45k|   }
  208|  6.55k|   return out;
  209|  6.55k|}
_ZN5Botan16secure_allocatorIjE10deallocateEPjm:
  102|  1.08k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIjE8allocateEm:
   95|  1.08k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }

_ZN5Botan18unwrap_strong_typeIRNSt3__16vectorIhNS1_9allocatorIhEEEEEEDcOT_:
  119|  70.0k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  120|  70.0k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  121|       |      // If the parameter type isn't a strong type, return it as is.
  122|  70.0k|      return std::forward<T>(t);
  123|       |   } else {
  124|       |      // Unwrap the strong type and return the underlying value.
  125|       |      return std::forward<T>(t).get();
  126|       |   }
  127|  70.0k|}
_ZN5Botan18unwrap_strong_typeIRjEEDcOT_:
  119|  28.1k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  120|  28.1k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  121|       |      // If the parameter type isn't a strong type, return it as is.
  122|  28.1k|      return std::forward<T>(t);
  123|       |   } else {
  124|       |      // Unwrap the strong type and return the underlying value.
  125|       |      return std::forward<T>(t).get();
  126|       |   }
  127|  28.1k|}
_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  119|  16.1k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  120|  16.1k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  121|       |      // If the parameter type isn't a strong type, return it as is.
  122|  16.1k|      return std::forward<T>(t);
  123|       |   } else {
  124|       |      // Unwrap the strong type and return the underlying value.
  125|       |      return std::forward<T>(t).get();
  126|       |   }
  127|  16.1k|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  144|    886|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  145|    886|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  146|       |      // Noop, if the parameter type already is the desired return type.
  147|    886|      return std::forward<ParamT>(t);
  148|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  149|       |      // Implicit conversion from the parameter type to the return type.
  150|       |      return T{std::forward<ParamT>(t)};
  151|       |   } else {
  152|       |      // Explicitly calling the wrapped type's constructor to support
  153|       |      // implicit conversions on types that mark their constructors as explicit.
  154|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  155|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  156|       |   }
  157|    886|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  144|  19.0k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  145|  19.0k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  146|       |      // Noop, if the parameter type already is the desired return type.
  147|  19.0k|      return std::forward<ParamT>(t);
  148|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  149|       |      // Implicit conversion from the parameter type to the return type.
  150|       |      return T{std::forward<ParamT>(t)};
  151|       |   } else {
  152|       |      // Explicitly calling the wrapped type's constructor to support
  153|       |      // implicit conversions on types that mark their constructors as explicit.
  154|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  155|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  156|       |   }
  157|  19.0k|}
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  144|  3.79k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  145|  3.79k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  146|       |      // Noop, if the parameter type already is the desired return type.
  147|  3.79k|      return std::forward<ParamT>(t);
  148|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  149|       |      // Implicit conversion from the parameter type to the return type.
  150|       |      return T{std::forward<ParamT>(t)};
  151|       |   } else {
  152|       |      // Explicitly calling the wrapped type's constructor to support
  153|       |      // implicit conversions on types that mark their constructors as explicit.
  154|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  155|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  156|       |   }
  157|  3.79k|}
_ZN5Botan16wrap_strong_typeIjRKjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS3_Esr3stdE18constructible_fromINS3_12wrapped_typeES4_EEEDcOS4_:
  144|    987|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  145|    987|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  146|       |      // Noop, if the parameter type already is the desired return type.
  147|    987|      return std::forward<ParamT>(t);
  148|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  149|       |      // Implicit conversion from the parameter type to the return type.
  150|       |      return T{std::forward<ParamT>(t)};
  151|       |   } else {
  152|       |      // Explicitly calling the wrapped type's constructor to support
  153|       |      // implicit conversions on types that mark their constructors as explicit.
  154|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  155|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  156|       |   }
  157|    987|}
_ZN5Botan16wrap_strong_typeItRKtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS3_Esr3stdE18constructible_fromINS3_12wrapped_typeES4_EEEDcOS4_:
  144|      6|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  145|      6|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  146|       |      // Noop, if the parameter type already is the desired return type.
  147|      6|      return std::forward<ParamT>(t);
  148|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  149|       |      // Implicit conversion from the parameter type to the return type.
  150|       |      return T{std::forward<ParamT>(t)};
  151|       |   } else {
  152|       |      // Explicitly calling the wrapped type's constructor to support
  153|       |      // implicit conversions on types that mark their constructors as explicit.
  154|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  155|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  156|       |   }
  157|      6|}

_ZNK5Botan20TelephoneNumberRange5startEv:
   81|     16|      const TelephoneNumber& start() const { return m_start; }
_ZNK5Botan15TelephoneNumber9to_stringEv:
   36|     16|      const std::string& to_string() const { return m_number; }
_ZNK5Botan20TelephoneNumberRange5countEv:
   86|     32|      uint64_t count() const { return m_count; }
_ZNK5Botan15TelephoneNumber6lengthEv:
   46|     63|      size_t length() const { return m_number.size(); }
_ZN5Botan15TelephoneNumberC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   59|     99|      explicit TelephoneNumber(std::string number) : m_number(std::move(number)) {}
_ZN5Botan20TelephoneNumberRangeC2ENS_15TelephoneNumberEm:
  109|     25|      TelephoneNumberRange(TelephoneNumber start, uint64_t count) : m_start(std::move(start)), m_count(count) {}

_ZN5Botan3URI9AuthorityC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_8optionalIS8_EENS2_7variantIJNS_7DNSNameENS_11IPv4AddressENS_11IPv6AddressEEEENS9_ItEE:
  105|  4.33k|                  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|  6.26k|            m_raw(std::move(raw)),
  203|  6.26k|            m_scheme(std::move(scheme)),
  204|  6.26k|            m_authority(std::move(authority)),
  205|  6.26k|            m_path(std::move(path)),
  206|  6.26k|            m_query(std::move(query)),
  207|  6.26k|            m_fragment(std::move(fragment)) {}

_ZN5Botan14Cert_Extension9Key_Usage10static_oidEv:
   93|    541|      static OID static_oid() { return OID({2, 5, 29, 15}); }
_ZNK5Botan14Cert_Extension9Key_Usage15get_constraintsEv:
   91|    228|      Key_Constraints get_constraints() const { return m_constraints; }
_ZN5Botan14Cert_Extension14Subject_Key_ID10static_oidEv:
  138|    541|      static OID static_oid() { return OID({2, 5, 29, 14}); }
_ZNK5Botan14Cert_Extension14Subject_Key_ID10get_key_idEv:
  136|    142|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  185|    541|      static OID static_oid() { return OID({2, 5, 29, 35}); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID10get_key_idEv:
  178|     48|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Name_Constraints10static_oidEv:
  316|    541|      static OID static_oid() { return OID({2, 5, 29, 30}); }
_ZNK5Botan14Cert_Extension16Name_Constraints20get_name_constraintsEv:
  314|     21|      const NameConstraints& get_name_constraints() const { return m_name_constraints; }
_ZN5Botan14Cert_Extension18Extended_Key_Usage10static_oidEv:
  278|    541|      static OID static_oid() { return OID({2, 5, 29, 37}); }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage18object_identifiersEv:
  276|     74|      const std::vector<OID>& object_identifiers() const { return m_oids; }
_ZN5Botan14Cert_Extension17Basic_Constraints10static_oidEv:
   62|    541|      static OID static_oid() { return OID({2, 5, 29, 19}); }
_ZNK5Botan14Cert_Extension17Basic_Constraints5is_caEv:
   58|     66|      bool is_ca() const { return m_is_ca; }
_ZNK5Botan14Cert_Extension17Basic_Constraints22path_length_constraintEv:
   60|     18|      std::optional<size_t> path_length_constraint() const { return m_path_length_constraint; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name10static_oidEv:
  240|    541|      static OID static_oid() { return OID({2, 5, 29, 18}); }
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name12get_alt_nameEv:
  238|     24|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension24Subject_Alternative_Name10static_oidEv:
  210|    541|      static OID static_oid() { return OID({2, 5, 29, 17}); }
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name12get_alt_nameEv:
  208|     66|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension21NoRevocationAvailable10static_oidEv:
  839|    541|      static OID static_oid() { return OID({2, 5, 29, 56}); }
_ZN5Botan14Cert_Extension12OCSP_NoCheck10static_oidEv:
  796|  6.29k|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 5}); }
_ZN5Botan14Cert_Extension20Certificate_Policies10static_oidEv:
  348|    541|      static OID static_oid() { return OID({2, 5, 29, 32}); }
_ZNK5Botan14Cert_Extension20Certificate_Policies15get_policy_oidsEv:
  346|     20|      const std::vector<OID>& get_policy_oids() const { return m_oids; }
_ZN5Botan14Cert_Extension28Authority_Information_Access10static_oidEv:
  473|    541|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 1, 1}); }
_ZNK5Botan14Cert_Extension28Authority_Information_Access19ocsp_responder_urisEv:
  465|     81|      const std::vector<URI>& ocsp_responder_uris() const { return m_ocsp_responders; }
_ZNK5Botan14Cert_Extension28Authority_Information_Access14ca_issuer_urisEv:
  479|     81|      const std::vector<URI>& ca_issuer_uris() const { return m_ca_issuers; }
_ZN5Botan14Cert_Extension23CRL_Distribution_Points10static_oidEv:
  667|    541|      static OID static_oid() { return OID({2, 5, 29, 31}); }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points27crl_distribution_point_urisEv:
  665|     22|      const std::vector<URI>& crl_distribution_point_uris() const { return m_crl_distribution_urls; }
_ZNK5Botan14Cert_Extension17Basic_Constraints8oid_nameEv:
   67|    472|      std::string oid_name() const override { return "X509v3.BasicConstraints"; }
_ZN5Botan14Cert_Extension9Key_UsageC2Ev:
   89|  1.05k|      explicit Key_Usage() : m_constraints(Key_Constraints::None) {}
_ZNK5Botan14Cert_Extension9Key_Usage8oid_nameEv:
   98|    462|      std::string oid_name() const override { return "X509v3.KeyUsage"; }
_ZNK5Botan14Cert_Extension14Subject_Key_ID8oid_nameEv:
  143|    143|      std::string oid_name() const override { return "X509v3.SubjectKeyIdentifier"; }
_ZNK5Botan14Cert_Extension16Authority_Key_ID8oid_nameEv:
  190|     49|      std::string oid_name() const override { return "X509v3.AuthorityKeyIdentifier"; }
_ZN5Botan14Cert_Extension24Subject_Alternative_NameC2ERKNS_15AlternativeNameE:
  218|  1.01k|      explicit Subject_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name8oid_nameEv:
  221|     66|      std::string oid_name() const override { return "X509v3.SubjectAlternativeName"; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_NameC2ERKNS_15AlternativeNameE:
  248|    720|      explicit Issuer_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name8oid_nameEv:
  251|     24|      std::string oid_name() const override { return "X509v3.IssuerAlternativeName"; }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage8oid_nameEv:
  283|     93|      std::string oid_name() const override { return "X509v3.ExtendedKeyUsage"; }
_ZNK5Botan14Cert_Extension16Name_Constraints8oid_nameEv:
  321|     24|      std::string oid_name() const override { return "X509v3.NameConstraints"; }
_ZNK5Botan14Cert_Extension20Certificate_Policies8oid_nameEv:
  359|     20|      std::string oid_name() const override { return "X509v3.CertificatePolicies"; }
_ZN5Botan14Cert_Extension28Authority_Information_Access17AccessDescriptionC2ENS_3OIDENS_9ASN1_TypeENS_10ASN1_ClassENSt3__16vectorIhNS6_9allocatorIhEEEE:
  391|    308|                  m_method(std::move(method)),
  392|    308|                  m_location_tag(location_tag),
  393|    308|                  m_location_class(location_class),
  394|    308|                  m_location_value(std::move(location_value)) {}
_ZNK5Botan14Cert_Extension28Authority_Information_Access8oid_nameEv:
  482|     81|      std::string oid_name() const override { return "PKIX.AuthorityInformationAccess"; }
_ZN5Botan14Cert_Extension10CRL_NumberC2Ev:
  506|      1|      CRL_Number() : m_has_value(false), m_crl_number(BigInt::zero()) {}
_ZNK5Botan14Cert_Extension10CRL_Number8oid_nameEv:
  521|      1|      std::string oid_name() const override { return "X509v3.CRLNumber"; }
_ZN5Botan14Cert_Extension14CRL_ReasonCodeC2ENS_8CRL_CodeE:
  543|      1|      explicit CRL_ReasonCode(CRL_Code r = CRL_Code::Unspecified) : m_reason(r) {}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode8oid_nameEv:
  552|      1|      std::string oid_name() const override { return "X509v3.ReasonCode"; }
_ZNK5Botan14Cert_Extension21DistributionPointName9full_nameEv:
  592|    160|      const std::optional<AlternativeName>& full_name() const { return m_full_name; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point23distribution_point_nameEv:
  626|     80|            const std::optional<DistributionPointName>& distribution_point_name() const { return m_dp_name; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points8oid_nameEv:
  672|     22|      std::string oid_name() const override { return "X509v3.CRLDistributionPoints"; }
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point8oid_nameEv:
  754|      1|      std::string oid_name() const override { return "X509v3.CRLIssuingDistributionPoint"; }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3minEv:
 1333|    706|            asnum_t min() const { return m_min; }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3maxEv:
 1335|    706|            asnum_t max() const { return m_max; }
_ZN5Botan14Cert_Extension17Unknown_ExtensionC2ERKNS_3OIDEbb:
 1466|  12.7k|            m_oid(oid), m_critical(critical), m_failed_to_decode(failed_to_decode) {}
_ZNK5Botan14Cert_Extension17Unknown_Extension8oid_nameEv:
 1508|  2.32k|      std::string oid_name() const override { return ""; }
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEERKS4_:
 1086|    187|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
 1087|    316|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (1087:34): [True: 310, False: 6]
  ------------------
 1088|    310|                  if(lhs.m_value[i] < rhs.m_value[i]) {
  ------------------
  |  Branch (1088:22): [True: 151, False: 159]
  ------------------
 1089|    151|                     return std::strong_ordering::less;
 1090|    159|                  } else if(lhs.m_value[i] > rhs.m_value[i]) {
  ------------------
  |  Branch (1090:29): [True: 30, False: 129]
  ------------------
 1091|     30|                     return std::strong_ordering::greater;
 1092|     30|                  }
 1093|    310|               }
 1094|      6|               return std::strong_ordering::equal;
 1095|    187|            }
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEERKS4_:
 1086|    186|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
 1087|    350|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (1087:34): [True: 349, False: 1]
  ------------------
 1088|    349|                  if(lhs.m_value[i] < rhs.m_value[i]) {
  ------------------
  |  Branch (1088:22): [True: 153, False: 196]
  ------------------
 1089|    153|                     return std::strong_ordering::less;
 1090|    196|                  } else if(lhs.m_value[i] > rhs.m_value[i]) {
  ------------------
  |  Branch (1090:29): [True: 32, False: 164]
  ------------------
 1091|     32|                     return std::strong_ordering::greater;
 1092|     32|                  }
 1093|    349|               }
 1094|      1|               return std::strong_ordering::equal;
 1095|    186|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EEC2ERKNS_11IPv4AddressE:
 1050|     56|            explicit IPAddress(const Address& addr) : m_value(addr.to_bytes()) {}
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE8to_bytesEv:
 1060|    252|            std::array<uint8_t, Length> to_bytes() const { return m_value; }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EEC2ERKNS_11IPv6AddressE:
 1050|     69|            explicit IPAddress(const Address& addr) : m_value(addr.to_bytes()) {}
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE8to_bytesEv:
 1060|    237|            std::array<uint8_t, Length> to_bytes() const { return m_value; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3minEv:
 1143|    134|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3maxEv:
 1145|    134|            IPAddress<V> max() const { return m_max; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3minEv:
 1143|    162|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3maxEv:
 1145|    162|            IPAddress<V> max() const { return m_max; }
_ZN5Botan14Cert_Extension14Subject_Key_IDC2Ev:
  115|    446|      Subject_Key_ID() = default;
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_PointC2Ev:
  698|      1|      CRL_Issuing_Distribution_Point() = default;
_ZN5Botan14Cert_Extension16Name_ConstraintsC2Ev:
  304|    434|      Name_Constraints() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_PointsC2Ev:
  657|    931|      CRL_Distribution_Points() = default;
_ZN5Botan14Cert_Extension20Certificate_PoliciesC2Ev:
  342|    674|      Certificate_Policies() = default;
_ZN5Botan14Cert_Extension16Authority_Key_IDC2Ev:
  162|    735|      Authority_Key_ID() = default;
_ZN5Botan14Cert_Extension18Extended_Key_UsageC2Ev:
  272|    270|      Extended_Key_Usage() = default;
_ZN5Botan14Cert_Extension21NoRevocationAvailableC2Ev:
  835|     21|      NoRevocationAvailable() = default;
_ZN5Botan14Cert_Extension28Authority_Information_AccessC2Ev:
  427|    486|      Authority_Information_Access() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocksC2Ev:
 1206|    718|      IPAddressBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocksC2Ev:
 1392|    587|      ASBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiersC2Ev:
 1386|    587|            ASIdentifiers() = default;
_ZN5Botan14Cert_Extension10TNAuthList5EntryC2Ev:
  914|    301|            Entry() = default;
_ZN5Botan14Cert_Extension10TNAuthListC2Ev:
  958|    214|      TNAuthList() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EEC2Ev:
 1168|  1.23k|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EEC2Ev:
 1168|    356|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoiceC2Ev:
 1357|    424|            ASIdentifierChoice() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_PointC2Ev:
  614|    888|            Distribution_Point() = default;
_ZN5Botan14Cert_Extension21DistributionPointNameC2Ev:
  577|    788|      DistributionPointName() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamilyC2Ev:
 1183|    866|            IPAddressFamily() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EEC2Ev:
 1116|    502|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEES6_:
 1097|     56|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
 1098|     56|               return lhs.m_value == rhs.m_value;
 1099|     56|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EEC2Ev:
 1116|    471|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEES6_:
 1097|     69|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
 1098|     69|               return lhs.m_value == rhs.m_value;
 1099|     69|            }
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRangeC2Ev:
 1337|    970|            ASIdOrRange() = default;

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

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   12|  5.47k|void fuzz(std::span<const uint8_t> in) {
   13|  5.47k|   if(in.size() > max_fuzzer_input_size) {
  ------------------
  |  Branch (13:7): [True: 0, False: 5.47k]
  ------------------
   14|      0|      return;
   15|      0|   }
   16|       |
   17|  5.47k|   try {
   18|  5.47k|      Botan::DataSource_Memory input(in);
   19|  5.47k|      const Botan::X509_Certificate cert(input);
   20|  5.47k|   } catch(const Botan::Exception& e) {}
   21|  5.47k|}

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|  5.47k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t in[], size_t len) {
   40|  5.47k|   if(len <= max_fuzzer_input_size) {
  ------------------
  |  Branch (40:7): [True: 5.47k, False: 1]
  ------------------
   41|  5.47k|      try {
   42|  5.47k|         fuzz(std::span<const uint8_t>(in, len));
   43|  5.47k|      } 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|  5.47k|   }
   51|  5.47k|   return 0;
   52|  5.47k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   50|  8.67k|bool AlgorithmIdentifier::parameters_are_null() const {
   51|  8.67k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (51:12): [True: 8.23k, False: 438]
  |  Branch (51:40): [True: 8.05k, False: 187]
  |  Branch (51:69): [True: 8.04k, False: 6]
  ------------------
   52|  8.67k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   54|  3.15k|bool operator==(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   55|  3.15k|   return (x.oid() == y.oid() && x.parameters() == y.parameters());
  ------------------
  |  Branch (55:12): [True: 3.12k, False: 28]
  |  Branch (55:34): [True: 3.10k, False: 20]
  ------------------
   56|  3.15k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   58|  3.15k|bool operator!=(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   59|  3.15k|   return !(x == y);
   60|  3.15k|}
_ZNK5Botan19AlgorithmIdentifier11encode_intoERNS_11DER_EncoderE:
   65|    541|void AlgorithmIdentifier::encode_into(DER_Encoder& codec) const {
   66|    541|   codec.start_sequence().encode(oid()).raw_bytes(parameters()).end_cons();
   67|    541|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   72|  11.9k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   73|  11.9k|   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|  11.9k|   const bool acceptable_parameters = [&]() {
   89|  11.9k|      if(this->parameters_are_null_or_empty()) {
   90|  11.9k|         return true;
   91|  11.9k|      }
   92|  11.9k|      if(ASN1::is_der_sequence_header(m_parameters)) {
   93|  11.9k|         return true;
   94|  11.9k|      }
   95|  11.9k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
   96|  11.9k|         return true;
   97|  11.9k|      }
   98|  11.9k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
   99|  11.9k|         return true;
  100|  11.9k|      }
  101|  11.9k|      return false;
  102|  11.9k|   }();
  103|       |
  104|  11.9k|   if(!acceptable_parameters) {
  ------------------
  |  Branch (104:7): [True: 157, False: 11.7k]
  ------------------
  105|    157|      throw Decoding_Error("AlgorithmIdentifier parameters were not NULL, a SEQUENCE, an OID, or an OCTET STRING");
  106|    157|   }
  107|  11.9k|}
alg_id.cpp:_ZZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderEENK3$_0clEv:
   88|  11.5k|   const bool acceptable_parameters = [&]() {
   89|  11.5k|      if(this->parameters_are_null_or_empty()) {
  ------------------
  |  Branch (89:10): [True: 10.8k, False: 631]
  ------------------
   90|  10.8k|         return true;
   91|  10.8k|      }
   92|    631|      if(ASN1::is_der_sequence_header(m_parameters)) {
  ------------------
  |  Branch (92:10): [True: 398, False: 233]
  ------------------
   93|    398|         return true;
   94|    398|      }
   95|    233|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
  ------------------
  |  Branch (95:10): [True: 31, False: 202]
  ------------------
   96|     31|         return true;
   97|     31|      }
   98|    202|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
  ------------------
  |  Branch (98:10): [True: 45, False: 157]
  ------------------
   99|     45|         return true;
  100|     45|      }
  101|    157|      return false;
  102|    202|   }();

_ZNK5Botan11ASN1_Object10BER_encodeEv:
   21|  16.9k|std::vector<uint8_t> ASN1_Object::BER_encode() const {
   22|  16.9k|   std::vector<uint8_t> output;
   23|  16.9k|   DER_Encoder der(output);
   24|  16.9k|   this->encode_into(der);
   25|  16.9k|   return output;
   26|  16.9k|}
_ZN5Botan14ASN1_BitStringC2ENSt3__16vectorIhNS1_9allocatorIhEEEEm:
   29|  9.15k|      m_bytes(std::move(bytes)), m_unused_bits(unused_bits) {
   30|  9.15k|   if(m_unused_bits >= 8) {
  ------------------
  |  Branch (30:7): [True: 0, False: 9.15k]
  ------------------
   31|      0|      throw Invalid_Argument("ASN1_BitString: Invalid unused bit count");
   32|      0|   }
   33|       |
   34|  9.15k|   if(m_bytes.empty() && m_unused_bits != 0) {
  ------------------
  |  Branch (34:7): [True: 571, False: 8.58k]
  |  Branch (34:26): [True: 0, False: 571]
  ------------------
   35|      0|      throw Invalid_Argument("ASN1_BitString: Empty BIT STRING cannot have unused bits");
   36|      0|   }
   37|       |
   38|  9.15k|   if(m_unused_bits > 0 && (m_bytes.back() & ((1U << m_unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (38:7): [True: 1.27k, False: 7.88k]
  |  Branch (38:28): [True: 0, False: 1.27k]
  ------------------
   39|      0|      throw Invalid_Argument("ASN1_BitString: Unused bits must be zero");
   40|      0|   }
   41|  9.15k|}
_ZNK5Botan14ASN1_BitString10bit_lengthEv:
   46|  13.9k|size_t ASN1_BitString::bit_length() const {
   47|  13.9k|   return 8 * m_bytes.size() - m_unused_bits;
   48|  13.9k|}
_ZNK5Botan14ASN1_BitString6bit_atEm:
   50|  5.72k|bool ASN1_BitString::bit_at(size_t bit) const {
   51|  5.72k|   if(bit >= bit_length()) {
  ------------------
  |  Branch (51:7): [True: 0, False: 5.72k]
  ------------------
   52|      0|      throw Invalid_Argument("ASN1_BitString: Bit index out of range");
   53|      0|   }
   54|       |
   55|  5.72k|   return (m_bytes[bit / 8] & (0x80 >> (bit % 8))) != 0;
   56|  5.72k|}
_ZN5Botan10BER_ObjectD2Ev:
   58|   570k|BER_Object::~BER_Object() {
   59|   570k|   secure_scrub_memory(m_value);
   60|   570k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   65|   143k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   66|   143k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (66:7): [True: 2.14k, False: 141k]
  ------------------
   67|  2.14k|      std::stringstream msg;
   68|       |
   69|  2.14k|      msg << "Tag mismatch when decoding " << descr << " got ";
   70|       |
   71|  2.14k|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (71:10): [True: 119, False: 2.02k]
  |  Branch (71:49): [True: 119, False: 0]
  ------------------
   72|    119|         msg << "EOF";
   73|  2.02k|      } else {
   74|  2.02k|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (74:13): [True: 477, False: 1.54k]
  |  Branch (74:53): [True: 1.00k, False: 547]
  ------------------
   75|  1.47k|            msg << asn1_tag_to_string(m_type_tag);
   76|  1.47k|         } else {
   77|    547|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   78|    547|         }
   79|       |
   80|  2.02k|         msg << "/" << asn1_class_to_string(m_class_tag);
   81|  2.02k|      }
   82|       |
   83|  2.14k|      msg << " expected ";
   84|       |
   85|  2.14k|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (85:10): [True: 331, False: 1.81k]
  |  Branch (85:57): [True: 1.81k, False: 0]
  ------------------
   86|  2.14k|         msg << asn1_tag_to_string(expected_type_tag);
   87|  2.14k|      } else {
   88|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   89|      0|      }
   90|       |
   91|  2.14k|      msg << "/" << asn1_class_to_string(expected_class_tag);
   92|       |
   93|  2.14k|      throw BER_Decoding_Error(msg.str());
   94|  2.14k|   }
   95|   143k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   97|   308k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   98|   308k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (98:12): [True: 179k, False: 128k]
  |  Branch (98:47): [True: 178k, False: 444]
  ------------------
   99|   308k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
  101|   135k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
  102|   135k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
  103|   135k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
  105|   259k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
  106|   259k|   m_type_tag = type_tag;
  107|   259k|   m_class_tag = class_tag;
  108|   259k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
  110|  4.16k|std::string asn1_class_to_string(ASN1_Class type) {
  111|  4.16k|   switch(type) {
  112|    808|      case ASN1_Class::Universal:
  ------------------
  |  Branch (112:7): [True: 808, False: 3.35k]
  ------------------
  113|    808|         return "UNIVERSAL";
  114|  2.81k|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (114:7): [True: 2.81k, False: 1.35k]
  ------------------
  115|  2.81k|         return "CONSTRUCTED";
  116|    164|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (116:7): [True: 164, False: 4.00k]
  ------------------
  117|    164|         return "CONTEXT_SPECIFIC";
  118|     51|      case ASN1_Class::Application:
  ------------------
  |  Branch (118:7): [True: 51, False: 4.11k]
  ------------------
  119|     51|         return "APPLICATION";
  120|     50|      case ASN1_Class::Private:
  ------------------
  |  Branch (120:7): [True: 50, False: 4.11k]
  ------------------
  121|     50|         return "PRIVATE";
  122|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (122:7): [True: 0, False: 4.16k]
  ------------------
  123|      0|         return "NO_OBJECT";
  124|    282|      default:
  ------------------
  |  Branch (124:7): [True: 282, False: 3.88k]
  ------------------
  125|    282|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
  126|  4.16k|   }
  127|  4.16k|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
  129|  3.83k|std::string asn1_tag_to_string(ASN1_Type type) {
  130|  3.83k|   switch(type) {
  131|  1.75k|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (131:7): [True: 1.75k, False: 2.07k]
  ------------------
  132|  1.75k|         return "SEQUENCE";
  133|       |
  134|    322|      case ASN1_Type::Set:
  ------------------
  |  Branch (134:7): [True: 322, False: 3.50k]
  ------------------
  135|    322|         return "SET";
  136|       |
  137|     71|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (137:7): [True: 71, False: 3.75k]
  ------------------
  138|     71|         return "PRINTABLE STRING";
  139|       |
  140|     90|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (140:7): [True: 90, False: 3.74k]
  ------------------
  141|     90|         return "NUMERIC STRING";
  142|       |
  143|     38|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (143:7): [True: 38, False: 3.79k]
  ------------------
  144|     38|         return "IA5 STRING";
  145|       |
  146|     13|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (146:7): [True: 13, False: 3.81k]
  ------------------
  147|     13|         return "T61 STRING";
  148|       |
  149|    198|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (149:7): [True: 198, False: 3.63k]
  ------------------
  150|    198|         return "UTF8 STRING";
  151|       |
  152|     26|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (152:7): [True: 26, False: 3.80k]
  ------------------
  153|     26|         return "VISIBLE STRING";
  154|       |
  155|     18|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (155:7): [True: 18, False: 3.81k]
  ------------------
  156|     18|         return "BMP STRING";
  157|       |
  158|      9|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (158:7): [True: 9, False: 3.82k]
  ------------------
  159|      9|         return "UNIVERSAL STRING";
  160|       |
  161|     13|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (161:7): [True: 13, False: 3.81k]
  ------------------
  162|     13|         return "UTC TIME";
  163|       |
  164|     15|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (164:7): [True: 15, False: 3.81k]
  ------------------
  165|     15|         return "GENERALIZED TIME";
  166|       |
  167|    188|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (167:7): [True: 188, False: 3.64k]
  ------------------
  168|    188|         return "OCTET STRING";
  169|       |
  170|    211|      case ASN1_Type::BitString:
  ------------------
  |  Branch (170:7): [True: 211, False: 3.61k]
  ------------------
  171|    211|         return "BIT STRING";
  172|       |
  173|     10|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (173:7): [True: 10, False: 3.82k]
  ------------------
  174|     10|         return "ENUMERATED";
  175|       |
  176|    168|      case ASN1_Type::Integer:
  ------------------
  |  Branch (176:7): [True: 168, False: 3.66k]
  ------------------
  177|    168|         return "INTEGER";
  178|       |
  179|     58|      case ASN1_Type::Null:
  ------------------
  |  Branch (179:7): [True: 58, False: 3.77k]
  ------------------
  180|     58|         return "NULL";
  181|       |
  182|     78|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (182:7): [True: 78, False: 3.75k]
  ------------------
  183|     78|         return "OBJECT";
  184|       |
  185|     54|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (185:7): [True: 54, False: 3.77k]
  ------------------
  186|     54|         return "BOOLEAN";
  187|       |
  188|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (188:7): [True: 0, False: 3.83k]
  ------------------
  189|      0|         return "NO_OBJECT";
  190|       |
  191|    495|      default:
  ------------------
  |  Branch (191:7): [True: 495, False: 3.33k]
  ------------------
  192|    495|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  193|  3.83k|   }
  194|  3.83k|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  199|  5.92k|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  201|    267|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN115put_in_sequenceERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  208|  9.31k|std::vector<uint8_t> put_in_sequence(const std::vector<uint8_t>& contents) {
  209|  9.31k|   return ASN1::put_in_sequence(contents.data(), contents.size());
  210|  9.31k|}
_ZN5Botan4ASN115put_in_sequenceEPKhm:
  212|  9.31k|std::vector<uint8_t> put_in_sequence(const uint8_t bits[], size_t len) {
  213|  9.31k|   std::vector<uint8_t> output = der_sequence_header(len);
  214|  9.31k|   output.reserve(output.size() + len);
  215|  9.31k|   if(len > 0) {
  ------------------
  |  Branch (215:7): [True: 9.24k, False: 67]
  ------------------
  216|  9.24k|      output.insert(output.end(), bits, bits + len);
  217|  9.24k|   }
  218|  9.31k|   return output;
  219|  9.31k|}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  224|  41.3k|std::string to_string(const BER_Object& obj) {
  225|  41.3k|   return bytes_to_string(obj.data());
  226|  41.3k|}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  231|  5.47k|bool maybe_BER(DataSource& source) {
  232|  5.47k|   uint8_t first_u8 = 0;
  233|  5.47k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (233:7): [True: 0, False: 5.47k]
  ------------------
  234|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   97|      0|   do {                                                                                                \
  |  |   98|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   99|      0|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (99:10): [True: 0, False: 0]
  |  |  ------------------
  |  |  100|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |  101|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |  102|      0|      }                                                                                                \
  |  |  103|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (103:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  235|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  236|      0|   }
  237|       |
  238|  5.47k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  239|  5.47k|   return first_u8 == cons_seq;
  240|  5.47k|}

_ZN5Botan3OID9from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   66|     76|std::optional<OID> OID::from_name(std::string_view name) {
   67|     76|   if(name.empty()) {
  ------------------
  |  Branch (67:7): [True: 0, False: 76]
  ------------------
   68|      0|      throw Invalid_Argument("OID::from_name argument must be non-empty");
   69|      0|   }
   70|       |
   71|     76|   OID o = OID_Map::global_registry().str2oid(name);
   72|     76|   if(o.has_value()) {
  ------------------
  |  Branch (72:7): [True: 76, False: 0]
  ------------------
   73|     76|      return std::optional(o);
   74|     76|   }
   75|       |
   76|      0|   return std::nullopt;
   77|     76|}
_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   80|  1.91k|OID OID::from_string(std::string_view str) {
   81|  1.91k|   if(str.empty()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 1.91k]
  ------------------
   82|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   83|      0|   }
   84|       |
   85|  1.91k|   OID o = OID_Map::global_registry().str2oid(str);
   86|  1.91k|   if(o.has_value()) {
  ------------------
  |  Branch (86:7): [True: 1.91k, False: 0]
  ------------------
   87|  1.91k|      return o;
   88|  1.91k|   }
   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|  14.7k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
   99|  14.7k|   oid_valid_check(m_id);
  100|  14.7k|}
_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(const auto id : m_id) {
  ------------------
  |  Branch (165:22): [True: 32, False: 4]
  ------------------
  166|     32|      hash *= 193;
  167|     32|      hash += id;
  168|     32|   }
  169|      4|   return hash;
  170|      4|}
_ZN5BotanltERKNS_3OIDES2_:
  175|  79.5k|bool operator<(const OID& a, const OID& b) {
  176|  79.5k|   const std::vector<uint32_t>& oid1 = a.get_components();
  177|  79.5k|   const std::vector<uint32_t>& oid2 = b.get_components();
  178|       |
  179|  79.5k|   return std::lexicographical_compare(oid1.begin(), oid1.end(), oid2.begin(), oid2.end());
  180|  79.5k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  185|  16.9k|void OID::encode_into(DER_Encoder& der) const {
  186|  16.9k|   if(m_id.size() < 2) {
  ------------------
  |  Branch (186:7): [True: 0, False: 16.9k]
  ------------------
  187|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  188|      0|   }
  189|       |
  190|  16.9k|   const auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  16.9k|      if(z <= 0x7F) {
  192|  16.9k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  16.9k|      } else {
  194|  16.9k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  16.9k|         for(size_t j = 0; j != z7; ++j) {
  197|  16.9k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  16.9k|            if(j != z7 - 1) {
  200|  16.9k|               zp |= 0x80;
  201|  16.9k|            }
  202|       |
  203|  16.9k|            encoding.push_back(zp);
  204|  16.9k|         }
  205|  16.9k|      }
  206|  16.9k|   };
  207|       |
  208|  16.9k|   std::vector<uint8_t> encoding;
  209|       |
  210|       |   // We know 40 * root can't overflow because root is between 0 and 2
  211|  16.9k|   auto first = checked_add(40 * m_id[0], m_id[1]);
  212|  16.9k|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   84|  16.9k|   do {                                                                     \
  |  |   85|  16.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  16.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 16.9k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  16.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 16.9k]
  |  |  ------------------
  ------------------
  213|       |
  214|  16.9k|   append(encoding, *first);
  215|       |
  216|  57.9k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (216:22): [True: 41.0k, False: 16.9k]
  ------------------
  217|  41.0k|      append(encoding, m_id[i]);
  218|  41.0k|   }
  219|  16.9k|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  220|  16.9k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  225|  49.8k|void OID::decode_from(BER_Decoder& decoder) {
  226|  49.8k|   const BER_Object obj = decoder.get_next_object();
  227|  49.8k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (227:7): [True: 236, False: 49.5k]
  ------------------
  228|    236|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  229|    236|   }
  230|       |
  231|  49.5k|   if(obj.length() == 0) {
  ------------------
  |  Branch (231:7): [True: 13, False: 49.5k]
  ------------------
  232|     13|      throw BER_Decoding_Error("OID encoding is too short");
  233|     13|   }
  234|       |
  235|  49.5k|   const auto consume = [](BufferSlicer& data) -> uint32_t {
  236|  49.5k|      BOTAN_ASSERT_NOMSG(!data.empty());
  237|  49.5k|      uint32_t b = data.take_byte();
  238|       |
  239|  49.5k|      if(b > 0x7F) {
  240|  49.5k|         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|  49.5k|         if(b == 0) {
  246|  49.5k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|  49.5k|         }
  248|       |
  249|  49.5k|         while(true) {
  250|  49.5k|            if(data.empty()) {
  251|  49.5k|               throw Decoding_Error("Truncated OID value");
  252|  49.5k|            }
  253|       |
  254|  49.5k|            const uint8_t next = data.take_byte();
  255|  49.5k|            const bool more = (next & 0x80) == 0x80;
  256|  49.5k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  49.5k|            if((b >> (32 - 7)) != 0) {
  259|  49.5k|               throw Decoding_Error("OID component overflow");
  260|  49.5k|            }
  261|       |
  262|  49.5k|            b = (b << 7) | value;
  263|       |
  264|  49.5k|            if(!more) {
  265|  49.5k|               break;
  266|  49.5k|            }
  267|  49.5k|         }
  268|  49.5k|      }
  269|       |
  270|  49.5k|      return b;
  271|  49.5k|   };
  272|       |
  273|  49.5k|   BufferSlicer data(obj.data());
  274|  49.5k|   std::vector<uint32_t> parts;
  275|       |
  276|       |   // Each byte of the DER encoding can result in at most one additional arc,
  277|       |   // except the first byte which always encodes two. Don't reserve for more than
  278|       |   // 16 arcs though; the longest OID in our current table has just 13 arcs.
  279|  49.5k|   parts.reserve(std::min<size_t>(16, obj.length() + 1));
  280|       |
  281|   327k|   while(!data.empty()) {
  ------------------
  |  Branch (281:10): [True: 277k, False: 49.5k]
  ------------------
  282|   277k|      const uint32_t comp = consume(data);
  283|       |
  284|   277k|      if(parts.empty()) {
  ------------------
  |  Branch (284:10): [True: 49.4k, False: 228k]
  ------------------
  285|       |         // divide into root and second arc
  286|       |
  287|  49.4k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  288|  49.4k|            if(b0 < 40) {
  289|  49.4k|               return 0;
  290|  49.4k|            } else if(b0 < 80) {
  291|  49.4k|               return 1;
  292|  49.4k|            } else {
  293|  49.4k|               return 2;
  294|  49.4k|            }
  295|  49.4k|         }(comp);
  296|       |
  297|  49.4k|         parts.push_back(root_arc);
  298|  49.4k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   84|  49.4k|   do {                                                                     \
  |  |   85|  49.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  49.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 49.4k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  49.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 49.4k]
  |  |  ------------------
  ------------------
  299|  49.4k|         parts.push_back(comp - 40 * root_arc);
  300|   228k|      } else {
  301|   228k|         parts.push_back(comp);
  302|   228k|      }
  303|   277k|   }
  304|       |
  305|  49.5k|   m_id = std::move(parts);
  306|  49.5k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  14.7k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  14.7k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  14.7k|   do {                                                          \
  |  |   36|  14.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
   28|  14.7k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  14.7k|   do {                                                          \
  |  |   36|  14.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
   29|  14.7k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  14.7k|   do {                                                          \
  |  |   36|  14.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 14.7k, 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|  14.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
   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|  14.7k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  14.7k|   do {                                                          \
  |  |   36|  14.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
   33|  14.7k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  190|  57.9k|   const auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  57.9k|      if(z <= 0x7F) {
  ------------------
  |  Branch (191:10): [True: 51.9k, False: 6.06k]
  ------------------
  192|  51.9k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  51.9k|      } else {
  194|  6.06k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  22.4k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (196:28): [True: 16.3k, False: 6.06k]
  ------------------
  197|  16.3k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  16.3k|            if(j != z7 - 1) {
  ------------------
  |  Branch (199:16): [True: 10.3k, False: 6.06k]
  ------------------
  200|  10.3k|               zp |= 0x80;
  201|  10.3k|            }
  202|       |
  203|  16.3k|            encoding.push_back(zp);
  204|  16.3k|         }
  205|  6.06k|      }
  206|  57.9k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  235|   277k|   const auto consume = [](BufferSlicer& data) -> uint32_t {
  236|   277k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   84|   277k|   do {                                                                     \
  |  |   85|   277k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|   277k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 277k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|   277k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 277k]
  |  |  ------------------
  ------------------
  237|   277k|      uint32_t b = data.take_byte();
  238|       |
  239|   277k|      if(b > 0x7F) {
  ------------------
  |  Branch (239:10): [True: 35.3k, False: 242k]
  ------------------
  240|  35.3k|         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|  35.3k|         if(b == 0) {
  ------------------
  |  Branch (245:13): [True: 12, False: 35.3k]
  ------------------
  246|     12|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|     12|         }
  248|       |
  249|  51.4k|         while(true) {
  ------------------
  |  Branch (249:16): [True: 51.4k, Folded]
  ------------------
  250|  51.4k|            if(data.empty()) {
  ------------------
  |  Branch (250:16): [True: 148, False: 51.2k]
  ------------------
  251|    148|               throw Decoding_Error("Truncated OID value");
  252|    148|            }
  253|       |
  254|  51.2k|            const uint8_t next = data.take_byte();
  255|  51.2k|            const bool more = (next & 0x80) == 0x80;
  256|  51.2k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  51.2k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (258:16): [True: 54, False: 51.2k]
  ------------------
  259|     54|               throw Decoding_Error("OID component overflow");
  260|     54|            }
  261|       |
  262|  51.2k|            b = (b << 7) | value;
  263|       |
  264|  51.2k|            if(!more) {
  ------------------
  |  Branch (264:16): [True: 35.1k, False: 16.0k]
  ------------------
  265|  35.1k|               break;
  266|  35.1k|            }
  267|  51.2k|         }
  268|  35.3k|      }
  269|       |
  270|   277k|      return b;
  271|   277k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  287|  49.4k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  288|  49.4k|            if(b0 < 40) {
  ------------------
  |  Branch (288:16): [True: 4.47k, False: 44.9k]
  ------------------
  289|  4.47k|               return 0;
  290|  44.9k|            } else if(b0 < 80) {
  ------------------
  |  Branch (290:23): [True: 16.1k, False: 28.8k]
  ------------------
  291|  16.1k|               return 1;
  292|  28.8k|            } else {
  293|  28.8k|               return 2;
  294|  28.8k|            }
  295|  49.4k|         }(comp);

_ZN5Botan11ASN1_String14is_string_typeENS_9ASN1_TypeE:
  131|    441|bool ASN1_String::is_string_type(ASN1_Type tag) {
  132|    441|   return is_asn1_string_type(tag);
  133|    441|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  135|  17.5k|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
  136|  17.5k|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (136:7): [True: 19, False: 17.5k]
  ------------------
  137|     19|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
  138|     19|   }
  139|       |
  140|  17.5k|   if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (140:7): [True: 128, False: 17.3k]
  ------------------
  141|    128|      throw Invalid_Argument(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  142|    128|   }
  143|  17.5k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  145|  17.1k|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
  162|  17.0k|void ASN1_String::decode_from(BER_Decoder& source) {
  163|  17.0k|   const BER_Object obj = source.get_next_object();
  164|       |
  165|  17.0k|   if(obj.get_class() != ASN1_Class::Universal || !is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (165:7): [True: 30, False: 17.0k]
  |  Branch (165:51): [True: 81, False: 16.9k]
  ------------------
  166|     97|      auto typ = static_cast<uint32_t>(obj.type());
  167|     97|      auto cls = static_cast<uint32_t>(obj.get_class());
  168|     97|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}/{}", typ, cls));
  169|     97|   }
  170|       |
  171|  17.0k|   m_tag = obj.type();
  172|  17.0k|   m_data.assign(obj.bits(), obj.bits() + obj.length());
  173|       |
  174|  17.0k|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (174:7): [True: 2.16k, False: 14.8k]
  ------------------
  175|  2.16k|      m_utf8_str = ucs2_to_utf8(m_data);
  176|  14.8k|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (176:14): [True: 65, False: 14.7k]
  ------------------
  177|     65|      m_utf8_str = ucs4_to_utf8(m_data);
  178|  14.7k|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (178:14): [True: 445, False: 14.3k]
  ------------------
  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|    445|      m_utf8_str = latin1_to_utf8(m_data);
  184|  14.3k|   } else {
  185|       |      // All other supported string types are UTF-8 or some subset thereof
  186|  14.3k|      m_utf8_str = ASN1::to_string(obj);
  187|       |
  188|  14.3k|      if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (188:10): [True: 82, False: 14.2k]
  ------------------
  189|     82|         throw Decoding_Error(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  190|     82|      }
  191|  14.3k|   }
  192|  17.0k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   99|  17.5k|bool is_asn1_string_type(ASN1_Type tag) {
  100|  17.5k|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (100:12): [True: 14.6k, False: 2.82k]
  |  Branch (100:47): [True: 457, False: 2.36k]
  |  Branch (100:82): [True: 2.17k, False: 193]
  ------------------
  101|    193|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (101:12): [True: 75, False: 118]
  ------------------
  102|  17.5k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   94|  66.8k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   95|  66.8k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (95:12): [True: 507, False: 66.3k]
  |  Branch (95:47): [True: 50.9k, False: 15.4k]
  |  Branch (95:84): [True: 80, False: 15.3k]
  ------------------
   96|  15.3k|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (96:12): [True: 3.90k, False: 11.4k]
  |  Branch (96:43): [True: 8.58k, False: 2.84k]
  ------------------
   97|  66.8k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_128is_valid_asn1_string_contentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_9ASN1_TypeE:
  104|  31.8k|bool is_valid_asn1_string_content(const std::string& str, ASN1_Type tag) {
  105|  31.8k|   BOTAN_ASSERT_NOMSG(is_utf8_subset_string_type(tag));
  ------------------
  |  |   84|  31.8k|   do {                                                                     \
  |  |   85|  31.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  31.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  31.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
  106|       |
  107|  31.8k|   switch(tag) {
  108|  4.13k|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (108:7): [True: 4.13k, False: 27.6k]
  ------------------
  109|  4.13k|         return is_valid_utf8(str);
  110|    247|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (110:7): [True: 247, False: 31.5k]
  ------------------
  111|  25.7k|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (111:7): [True: 25.4k, False: 6.36k]
  ------------------
  112|  27.6k|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 1.94k, False: 29.8k]
  ------------------
  113|  27.6k|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (113:7): [True: 33, False: 31.7k]
  ------------------
  114|  27.6k|         return g_char_validator.valid_encoding(str, tag);
  115|      0|      default:
  ------------------
  |  Branch (115:7): [True: 0, False: 31.8k]
  ------------------
  116|      0|         return false;
  117|  31.8k|   }
  118|  31.8k|}
asn1_str.cpp:_ZNK5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator14valid_encodingENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_9ASN1_TypeE:
   25|  44.8k|      constexpr bool valid_encoding(std::string_view str, ASN1_Type tag) const {
   26|  44.8k|         const uint8_t mask = mask_for(tag);
   27|   118k|         for(const char c : str) {
  ------------------
  |  Branch (27:27): [True: 118k, False: 44.7k]
  ------------------
   28|   118k|            const uint8_t codepoint = static_cast<uint8_t>(c);
   29|   118k|            const bool is_valid = (m_table[codepoint] & mask) != 0;
   30|       |
   31|   118k|            if(!is_valid) {
  ------------------
  |  Branch (31:16): [True: 45, False: 118k]
  ------------------
   32|     45|               return false;
   33|     45|            }
   34|   118k|         }
   35|       |
   36|  44.7k|         return true;
   37|  44.8k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator8mask_forENS_9ASN1_TypeE:
   45|  44.8k|      static constexpr uint8_t mask_for(ASN1_Type tag) {
   46|  44.8k|         switch(tag) {
   47|    247|            case ASN1_Type::NumericString:
  ------------------
  |  Branch (47:13): [True: 247, False: 44.5k]
  ------------------
   48|    247|               return Numeric_String;
   49|  42.5k|            case ASN1_Type::PrintableString:
  ------------------
  |  Branch (49:13): [True: 42.5k, False: 2.22k]
  ------------------
   50|  42.5k|               return Printable_String;
   51|  1.94k|            case ASN1_Type::Ia5String:
  ------------------
  |  Branch (51:13): [True: 1.94k, False: 42.8k]
  ------------------
   52|  1.94k|               return IA5_String;
   53|     33|            case ASN1_Type::VisibleString:
  ------------------
  |  Branch (53:13): [True: 33, False: 44.7k]
  ------------------
   54|     33|               return Visible_String;
   55|      0|            default:
  ------------------
  |  Branch (55:13): [True: 0, False: 44.8k]
  ------------------
   56|      0|               return 0;
   57|  44.8k|         }
   58|  44.8k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  120|  17.1k|ASN1_Type choose_encoding(std::string_view str) {
  121|  17.1k|   if(g_char_validator.valid_encoding(str, ASN1_Type::PrintableString)) {
  ------------------
  |  Branch (121:7): [True: 17.1k, False: 0]
  ------------------
  122|  17.1k|      return ASN1_Type::PrintableString;
  123|  17.1k|   } else {
  124|      0|      return ASN1_Type::Utf8String;
  125|      0|   }
  126|  17.1k|}

_ZN5Botan9ASN1_TimeC2EthhhhhNS_9ASN1_TypeE:
   43|  6.62k|      m_year(year), m_month(month), m_day(day), m_hour(hour), m_minute(minute), m_second(second), m_tag(tag) {
   44|  6.62k|   if(tag != ASN1_Type::UtcTime && tag != ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (44:7): [True: 77, False: 6.54k]
  |  Branch (44:36): [True: 0, False: 77]
  ------------------
   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|  6.62k|   const uint16_t min_year = 1950;
   55|  6.62k|   const uint16_t max_year = (tag == ASN1_Type::UtcTime) ? 2049 : 9999;
  ------------------
  |  Branch (55:30): [True: 6.54k, False: 77]
  ------------------
   56|       |
   57|  6.62k|   if(m_year < min_year || m_year > max_year) {
  ------------------
  |  Branch (57:7): [True: 4, False: 6.62k]
  |  Branch (57:28): [True: 0, False: 6.62k]
  ------------------
   58|      4|      throw Invalid_Argument(fmt("ASN1_Time year {} is out of range ({} to {})", m_year, min_year, max_year));
   59|      4|   }
   60|       |
   61|  6.62k|   if(m_month < 1 || m_month > 12) {
  ------------------
  |  Branch (61:7): [True: 2, False: 6.62k]
  |  Branch (61:22): [True: 7, False: 6.61k]
  ------------------
   62|      9|      throw Invalid_Argument(fmt("ASN1_Time month {} is out of range", static_cast<uint32_t>(m_month)));
   63|      9|   }
   64|       |
   65|  6.61k|   constexpr uint8_t days_in_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
   66|       |
   67|  6.61k|   const bool is_leap_year = (m_year % 4 == 0) && (m_year % 100 != 0 || m_year % 400 == 0);
  ------------------
  |  Branch (67:30): [True: 1.50k, False: 5.10k]
  |  Branch (67:52): [True: 1.49k, False: 8]
  |  Branch (67:73): [True: 7, False: 1]
  ------------------
   68|  6.61k|   const uint8_t max_day = (m_month == 2 && is_leap_year) ? 29 : days_in_month[m_month - 1];
  ------------------
  |  Branch (68:29): [True: 894, False: 5.71k]
  |  Branch (68:45): [True: 114, False: 780]
  ------------------
   69|       |
   70|  6.61k|   if(m_day < 1 || m_day > max_day) {
  ------------------
  |  Branch (70:7): [True: 1, False: 6.61k]
  |  Branch (70:20): [True: 4, False: 6.60k]
  ------------------
   71|      5|      throw Invalid_Argument(fmt("ASN1_Time day {} is out of range for month {}",
   72|      5|                                 static_cast<uint32_t>(m_day),
   73|      5|                                 static_cast<uint32_t>(m_month)));
   74|      5|   }
   75|       |
   76|  6.60k|   if(m_hour > 23) {
  ------------------
  |  Branch (76:7): [True: 2, False: 6.60k]
  ------------------
   77|      2|      throw Invalid_Argument(fmt("ASN1_Time hour {} is out of range", static_cast<uint32_t>(m_hour)));
   78|      2|   }
   79|       |
   80|  6.60k|   if(m_minute > 59) {
  ------------------
  |  Branch (80:7): [True: 6, False: 6.60k]
  ------------------
   81|      6|      throw Invalid_Argument(fmt("ASN1_Time minute {} is out of range", static_cast<uint32_t>(m_minute)));
   82|      6|   }
   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|  6.60k|   if(m_second > 59) {
  ------------------
  |  Branch (88:7): [True: 1, False: 6.59k]
  ------------------
   89|      1|      throw Invalid_Argument(fmt("ASN1_Time second {} is out of range", static_cast<uint32_t>(m_second)));
   90|      1|   }
   91|  6.60k|}
_ZN5Botan9ASN1_Time11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  109|  6.69k|ASN1_Time ASN1_Time::from_string(std::string_view t_spec, ASN1_Type tag) {
  110|  6.69k|   BOTAN_ARG_CHECK(tag == ASN1_Type::UtcTime || tag == ASN1_Type::GeneralizedTime, "Invalid tag for ASN1_Time");
  ------------------
  |  |   35|  6.69k|   do {                                                          \
  |  |   36|  6.69k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.77k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 6.61k, False: 83]
  |  |  |  Branch (37:12): [True: 83, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  6.69k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.69k]
  |  |  ------------------
  ------------------
  111|       |
  112|  6.69k|   if(tag == ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (112:7): [True: 83, False: 6.61k]
  ------------------
  113|     83|      BOTAN_ARG_CHECK(t_spec.size() == 15, "Invalid GeneralizedTime input string");
  ------------------
  |  |   35|     83|   do {                                                          \
  |  |   36|     83|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     83|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 3, False: 80]
  |  |  ------------------
  |  |   38|      3|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      3|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      3|      }                                                          \
  |  |   41|     83|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 83]
  |  |  ------------------
  ------------------
  114|  6.61k|   } else {
  115|  6.61k|      BOTAN_ARG_CHECK(t_spec.size() == 13, "Invalid UTCTime input string");
  ------------------
  |  |   35|  6.61k|   do {                                                          \
  |  |   36|  6.61k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.61k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 18, False: 6.59k]
  |  |  ------------------
  |  |   38|     18|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     18|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     18|      }                                                          \
  |  |   41|  6.61k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.61k]
  |  |  ------------------
  ------------------
  116|  6.61k|   }
  117|       |
  118|  6.69k|   BOTAN_ARG_CHECK(t_spec.back() == 'Z', "Botan does not support ASN1 times with timezones other than Z");
  ------------------
  |  |   35|  6.69k|   do {                                                          \
  |  |   36|  6.69k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.69k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 11, False: 6.68k]
  |  |  ------------------
  |  |   38|     11|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     11|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     11|      }                                                          \
  |  |   41|  6.69k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.69k]
  |  |  ------------------
  ------------------
  119|       |
  120|  6.69k|   const size_t field_len = 2;
  121|  6.69k|   const size_t year_len = (tag == ASN1_Type::UtcTime) ? 2 : 4;
  ------------------
  |  Branch (121:28): [True: 6.58k, False: 112]
  ------------------
  122|       |
  123|  6.69k|   const size_t year_start = 0;
  124|  6.69k|   const size_t month_start = year_start + year_len;
  125|  6.69k|   const size_t day_start = month_start + field_len;
  126|  6.69k|   const size_t hour_start = day_start + field_len;
  127|  6.69k|   const size_t min_start = hour_start + field_len;
  128|  6.69k|   const size_t sec_start = min_start + field_len;
  129|       |
  130|  6.69k|   uint32_t year = to_u32bit(t_spec.substr(year_start, year_len));
  131|  6.69k|   const uint32_t month = to_u32bit(t_spec.substr(month_start, field_len));
  132|  6.69k|   const uint32_t day = to_u32bit(t_spec.substr(day_start, field_len));
  133|  6.69k|   const uint32_t hour = to_u32bit(t_spec.substr(hour_start, field_len));
  134|  6.69k|   const uint32_t minute = to_u32bit(t_spec.substr(min_start, field_len));
  135|  6.69k|   const uint32_t second = to_u32bit(t_spec.substr(sec_start, field_len));
  136|       |
  137|  6.69k|   if(tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (137:7): [True: 6.54k, False: 146]
  ------------------
  138|       |      // Interpret the two digit year by the 1950/2050 split (RFC 5280 Section 4.1.2.5.1)
  139|  6.54k|      year += (year >= 50) ? 1900 : 2000;
  ------------------
  |  Branch (139:15): [True: 817, False: 5.73k]
  ------------------
  140|  6.54k|   }
  141|       |
  142|  6.69k|   return ASN1_Time(static_cast<uint16_t>(year),
  143|  6.69k|                    static_cast<uint8_t>(month),
  144|  6.69k|                    static_cast<uint8_t>(day),
  145|  6.69k|                    static_cast<uint8_t>(hour),
  146|  6.69k|                    static_cast<uint8_t>(minute),
  147|  6.69k|                    static_cast<uint8_t>(second),
  148|  6.69k|                    tag);
  149|  6.69k|}
_ZN5Botan9ASN1_Time11decode_fromERNS_11BER_DecoderE:
  168|  6.74k|void ASN1_Time::decode_from(BER_Decoder& source) {
  169|  6.74k|   const BER_Object ber_time = source.get_next_object();
  170|       |
  171|  6.74k|   if(ber_time.get_class() != ASN1_Class::Universal ||
  ------------------
  |  Branch (171:7): [True: 9, False: 6.74k]
  ------------------
  172|  6.74k|      (ber_time.type() != ASN1_Type::UtcTime && ber_time.type() != ASN1_Type::GeneralizedTime)) {
  ------------------
  |  Branch (172:8): [True: 128, False: 6.61k]
  |  Branch (172:49): [True: 45, False: 83]
  ------------------
  173|     52|      throw Decoding_Error(fmt("ASN1_Time: Unexpected tag {}/{}",
  174|     52|                               static_cast<uint32_t>(ber_time.type()),
  175|     52|                               static_cast<uint32_t>(ber_time.get_class())));
  176|     52|   }
  177|       |
  178|  6.69k|   try {
  179|       |      // Assigning only after a successful parse means that a decoding error
  180|       |      // cannot leave this object in a partially written state
  181|  6.69k|      *this = ASN1_Time::from_string(ASN1::to_string(ber_time), ber_time.type());
  182|  6.69k|   } catch(Invalid_Argument& e) {
  183|     96|      throw Decoding_Error(fmt("Invalid ASN1_Time encoding: {}", e.what()));
  184|     96|   }
  185|  6.69k|}

_ZN5Botan11BER_DecoderD2Ev:
  456|   137k|BER_Decoder::~BER_Decoder() = default;
_ZNK5Botan11BER_Decoder10more_itemsEv:
  461|   109k|bool BER_Decoder::more_items() const {
  462|   109k|   if(m_source->end_of_data() && !m_pushed.is_set()) {
  ------------------
  |  Branch (462:7): [True: 25.9k, False: 83.9k]
  |  Branch (462:34): [True: 25.9k, False: 0]
  ------------------
  463|  25.9k|      return false;
  464|  25.9k|   }
  465|  83.9k|   return true;
  466|   109k|}
_ZN5Botan11BER_Decoder10verify_endEv:
  471|  12.4k|BER_Decoder& BER_Decoder::verify_end() {
  472|  12.4k|   return verify_end("BER_Decoder::verify_end called, but data remains");
  473|  12.4k|}
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  478|  15.6k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  479|  15.6k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (479:7): [True: 740, False: 14.9k]
  |  Branch (479:35): [True: 0, False: 14.9k]
  ------------------
  480|    740|      throw Decoding_Error(err);
  481|    740|   }
  482|  14.9k|   return (*this);
  483|  15.6k|}
_ZN5Botan11BER_Decoder17discard_remainingEv:
  488|  1.14k|BER_Decoder& BER_Decoder::discard_remaining() {
  489|  1.14k|   m_pushed = BER_Object();
  490|  1.14k|   uint8_t buf[64];
  491|  2.57k|   while(m_source->read(buf, sizeof(buf)) != 0) {}
  ------------------
  |  Branch (491:10): [True: 1.42k, False: 1.14k]
  ------------------
  492|  1.14k|   return (*this);
  493|  1.14k|}
_ZN5Botan11BER_Decoder10read_bytesENSt3__14spanIhLm18446744073709551615EEE:
  505|   106k|size_t BER_Decoder::read_bytes(std::span<uint8_t> out) {
  506|   106k|   BOTAN_ASSERT_NOMSG(m_source != nullptr);
  ------------------
  |  |   84|   106k|   do {                                                                     \
  |  |   85|   106k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|   106k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 106k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|   106k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 106k]
  |  |  ------------------
  ------------------
  507|   106k|   return m_source->read(out.data(), out.size());
  508|   106k|}
_ZN5Botan11BER_Decoder16peek_next_objectEv:
  510|  8.71k|const BER_Object& BER_Decoder::peek_next_object() {
  511|  8.71k|   if(!m_pushed.is_set()) {
  ------------------
  |  Branch (511:7): [True: 8.36k, False: 345]
  ------------------
  512|  8.36k|      m_pushed = get_next_object();
  513|  8.36k|   }
  514|       |
  515|  8.71k|   return m_pushed;
  516|  8.71k|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  521|   288k|BER_Object BER_Decoder::get_next_object() {
  522|   288k|   BER_Object next;
  523|       |
  524|   288k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (524:7): [True: 32.0k, False: 256k]
  ------------------
  525|  32.0k|      std::swap(next, m_pushed);
  526|  32.0k|      return next;
  527|  32.0k|   }
  528|       |
  529|   256k|   for(;;) {
  530|   256k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  531|   256k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  532|   256k|      decode_tag(m_source, type_tag, class_tag);
  533|   256k|      next.set_tagging(type_tag, class_tag);
  534|   256k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (534:10): [True: 4.11k, False: 252k]
  ------------------
  535|  4.11k|         return next;
  536|  4.11k|      }
  537|       |
  538|   252k|      const size_t allow_indef = m_limits.allow_ber_encoding() ? m_limits.max_nested_indefinite_length() : 0;
  ------------------
  |  Branch (538:34): [True: 0, False: 252k]
  ------------------
  539|   252k|      const bool der_mode = m_limits.require_der_encoding();
  540|   252k|      const auto dl = decode_length(m_source, allow_indef, der_mode, is_constructed(class_tag));
  541|       |
  542|       |      // Per X.690 8.1.5 the only valid EOC encoding is the two-octet
  543|       |      // sequence 0x00 0x00. Reject any other length encoding on a tag of
  544|       |      // (Eoc, Universal) before we consume the "content" bytes.
  545|   252k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal &&
  ------------------
  |  Branch (545:10): [True: 7.73k, False: 244k]
  |  Branch (545:40): [True: 503, False: 7.23k]
  ------------------
  546|    503|         (dl.content_length() != 0 || dl.indefinite_length())) {
  ------------------
  |  Branch (546:11): [True: 282, False: 221]
  |  Branch (546:39): [True: 0, False: 221]
  ------------------
  547|    282|         throw BER_Decoding_Error("EOC marker with non-zero length");
  548|    282|      }
  549|       |
  550|   251k|      if(const auto max_size = m_limits.max_object_size(); max_size && dl.content_length() > *max_size) {
  ------------------
  |  Branch (550:60): [True: 250k, False: 888]
  |  Branch (550:72): [True: 49, False: 250k]
  ------------------
  551|     49|         throw BER_Decoding_Error("Encoded object exceeds maximum size");
  552|     49|      }
  553|       |
  554|   251k|      if(!m_source->check_available(dl.total_length())) {
  ------------------
  |  Branch (554:10): [True: 1.40k, False: 250k]
  ------------------
  555|  1.40k|         throw BER_Decoding_Error("Value truncated");
  556|  1.40k|      }
  557|       |
  558|   250k|      uint8_t* out = next.mutable_bits(dl.content_length());
  559|   250k|      if(m_source->read(out, dl.content_length()) != dl.content_length()) {
  ------------------
  |  Branch (559:10): [True: 0, False: 250k]
  ------------------
  560|      0|         throw BER_Decoding_Error("Value truncated");
  561|      0|      }
  562|       |
  563|   250k|      if(dl.indefinite_length()) {
  ------------------
  |  Branch (563:10): [True: 0, False: 250k]
  ------------------
  564|       |         // After reading the data consume the 2-byte EOC
  565|      0|         uint8_t eoc[2] = {0xFF, 0xFF};
  566|      0|         if(m_source->read(eoc, 2) != 2 || eoc[0] != 0x00 || eoc[1] != 0x00) {
  ------------------
  |  Branch (566:13): [True: 0, False: 0]
  |  Branch (566:44): [True: 0, False: 0]
  |  Branch (566:62): [True: 0, False: 0]
  ------------------
  567|      0|            throw BER_Decoding_Error("Missing or malformed EOC marker");
  568|      0|         }
  569|      0|      }
  570|       |
  571|   250k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (571:10): [True: 221, False: 250k]
  ------------------
  572|    221|         if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (572:13): [True: 221, False: 0]
  ------------------
  573|    221|            throw BER_Decoding_Error("Detected EOC marker in DER structure");
  574|    221|         }
  575|       |         // An EOC marker is only valid as an indefinite-length terminator, which
  576|       |         // is consumed above when reading the indefinite-length object. A
  577|       |         // standalone EOC is rejected unless the caller opted to tolerate it.
  578|      0|         if(m_limits.allow_standalone_eoc()) {
  ------------------
  |  Branch (578:13): [True: 0, False: 0]
  ------------------
  579|      0|            continue;
  580|      0|         }
  581|      0|         throw BER_Decoding_Error("Encountered EOC marker outside of indefinite-length encoding");
  582|      0|      }
  583|       |
  584|   250k|      break;
  585|   250k|   }
  586|       |
  587|   250k|   return next;
  588|   256k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  612|  28.4k|void BER_Decoder::push_back(BER_Object&& obj) {
  613|  28.4k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (613:7): [True: 0, False: 28.4k]
  ------------------
  614|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  615|      0|   }
  616|  28.4k|   m_pushed = std::move(obj);
  617|  28.4k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  619|   102k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  620|   102k|   BER_Object obj = get_next_object();
  621|   102k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  622|       |
  623|       |   // In DER mode the elements of a universal SET must appear in sorted order
  624|   102k|   if(m_limits.require_der_encoding() && type_tag == ASN1_Type::Set && class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (624:7): [True: 99.6k, False: 3.35k]
  |  Branch (624:42): [True: 17.1k, False: 82.4k]
  |  Branch (624:72): [True: 17.1k, False: 0]
  ------------------
  625|  17.1k|      verify_set_is_sorted(std::span<const uint8_t>{obj.bits(), obj.length()});
  626|  17.1k|   }
  627|       |
  628|   102k|   BER_Decoder child(std::move(obj), this);
  629|   102k|   return child;
  630|   102k|}
_ZN5Botan11BER_Decoder8end_consEv:
  635|  68.1k|BER_Decoder& BER_Decoder::end_cons() {
  636|  68.1k|   if(m_parent == nullptr) {
  ------------------
  |  Branch (636:7): [True: 0, False: 68.1k]
  ------------------
  637|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  638|      0|   }
  639|  68.1k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (639:7): [True: 205, False: 67.9k]
  |  Branch (639:35): [True: 105, False: 67.8k]
  ------------------
  640|    310|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  641|    310|   }
  642|  67.8k|   return (*m_parent);
  643|  68.1k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  646|  99.3k|      m_limits(parent != nullptr ? parent->limits() : BER_Decoder::Limits::BER()), m_parent(parent) {
  ------------------
  |  Branch (646:16): [True: 99.3k, False: 0]
  ------------------
  647|  99.3k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  648|  99.3k|   m_source = m_data_src.get();
  649|  99.3k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceENS0_6LimitsE:
  659|  5.15k|BER_Decoder::BER_Decoder(DataSource& src, Limits limits) : m_limits(limits), m_source(&src) {}
_ZN5Botan11BER_DecoderC2ENSt3__14spanIKhLm18446744073709551615EEENS0_6LimitsE:
  664|  33.1k|BER_Decoder::BER_Decoder(std::span<const uint8_t> buf, Limits limits) : m_limits(limits) {
  665|  33.1k|   m_data_src = std::make_unique<DataSource_Memory>(buf);
  666|  33.1k|   m_source = m_data_src.get();
  667|  33.1k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  676|   111k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag) {
  677|       |   // TODO support this case properly
  678|   111k|   if(type_tag != ASN1_Type::NoObject || class_tag != ASN1_Class::NoObject) {
  ------------------
  |  Branch (678:7): [True: 0, False: 111k]
  |  Branch (678:42): [True: 0, False: 111k]
  ------------------
  679|      0|      throw Not_Implemented("BER_Decoder::decode(ASN1_Object) does not support implicit tagged decoding");
  680|      0|   }
  681|   111k|   obj.decode_from(*this);
  682|   111k|   return (*this);
  683|   111k|}
_ZN5Botan11BER_Decoder11decode_nullEv:
  688|    119|BER_Decoder& BER_Decoder::decode_null() {
  689|    119|   const BER_Object obj = get_next_object();
  690|    119|   obj.assert_is_a(ASN1_Type::Null, ASN1_Class::Universal);
  691|    119|   if(obj.length() > 0) {
  ------------------
  |  Branch (691:7): [True: 3, False: 116]
  ------------------
  692|      3|      throw BER_Decoding_Error("NULL object had nonzero size");
  693|      3|   }
  694|    116|   return (*this);
  695|    119|}
_ZN5Botan11BER_Decoder6decodeERbNS_9ASN1_TypeENS_10ASN1_ClassE:
  707|  2.60k|BER_Decoder& BER_Decoder::decode(bool& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  708|  2.60k|   const BER_Object obj = get_next_object();
  709|  2.60k|   obj.assert_is_a(type_tag, class_tag);
  710|       |
  711|  2.60k|   if(obj.length() != 1) {
  ------------------
  |  Branch (711:7): [True: 13, False: 2.58k]
  ------------------
  712|     13|      throw BER_Decoding_Error("BER boolean value had invalid size");
  713|     13|   }
  714|       |
  715|  2.58k|   const uint8_t val = obj.bits()[0];
  716|       |
  717|       |   // DER requires boolean values to be exactly 0x00 or 0xFF
  718|  2.58k|   if(m_limits.require_der_encoding() && val != 0x00 && val != 0xFF) {
  ------------------
  |  Branch (718:7): [True: 2.58k, False: 0]
  |  Branch (718:42): [True: 2.56k, False: 21]
  |  Branch (718:57): [True: 18, False: 2.54k]
  ------------------
  719|     18|      throw BER_Decoding_Error("Detected non-canonical boolean encoding in DER structure");
  720|     18|   }
  721|       |
  722|  2.57k|   out = (val != 0) ? true : false;
  ------------------
  |  Branch (722:10): [True: 2.54k, False: 21]
  ------------------
  723|       |
  724|  2.57k|   return (*this);
  725|  2.58k|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  730|  5.21k|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  731|  5.21k|   BigInt integer;
  732|  5.21k|   decode(integer, type_tag, class_tag);
  733|       |
  734|  5.21k|   if(integer.signum() < 0) {
  ------------------
  |  Branch (734:7): [True: 27, False: 5.18k]
  ------------------
  735|     27|      throw BER_Decoding_Error("Decoded small integer value was negative");
  736|     27|   }
  737|       |
  738|  5.18k|   if(integer.bits() > 32) {
  ------------------
  |  Branch (738:7): [True: 9, False: 5.17k]
  ------------------
  739|      9|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  740|      9|   }
  741|       |
  742|  5.17k|   out = 0;
  743|  25.7k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (743:22): [True: 20.5k, False: 5.17k]
  ------------------
  744|  20.5k|      out = (out << 8) | integer.byte_at(3 - i);
  745|  20.5k|   }
  746|       |
  747|  5.17k|   return (*this);
  748|  5.18k|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  780|  9.59k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  781|  9.59k|   const BER_Object obj = get_next_object();
  782|  9.59k|   obj.assert_is_a(type_tag, class_tag);
  783|       |
  784|       |   // An INTEGER must have at least one content octet (X.690 section 8.3.1)
  785|  9.59k|   if(obj.length() == 0) {
  ------------------
  |  Branch (785:7): [True: 20, False: 9.57k]
  ------------------
  786|     20|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  787|     20|   }
  788|       |
  789|       |   // DER requires minimal INTEGER encoding (X.690 section 8.3.2)
  790|  9.57k|   if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (790:7): [True: 9.48k, False: 90]
  ------------------
  791|  9.48k|      if(obj.length() > 1) {
  ------------------
  |  Branch (791:10): [True: 4.29k, False: 5.18k]
  ------------------
  792|  4.29k|         if(obj.bits()[0] == 0x00 && (obj.bits()[1] & 0x80) == 0) {
  ------------------
  |  Branch (792:13): [True: 445, False: 3.85k]
  |  Branch (792:38): [True: 6, False: 439]
  ------------------
  793|      6|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  794|      6|         }
  795|  4.29k|         if(obj.bits()[0] == 0xFF && (obj.bits()[1] & 0x80) != 0) {
  ------------------
  |  Branch (795:13): [True: 81, False: 4.21k]
  |  Branch (795:38): [True: 13, False: 68]
  ------------------
  796|     13|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  797|     13|         }
  798|  4.29k|      }
  799|  9.48k|   }
  800|       |
  801|  9.55k|   out = ASN1::integer_from_contents(obj.data());
  802|       |
  803|  9.55k|   return (*this);
  804|  9.57k|}
_ZN5Botan4ASN121integer_from_contentsENSt3__14spanIKhLm18446744073709551615EEE:
  806|  10.4k|BigInt ASN1::integer_from_contents(std::span<const uint8_t> contents) {
  807|  10.4k|   if(contents.empty()) {
  ------------------
  |  Branch (807:7): [True: 0, False: 10.4k]
  ------------------
  808|      0|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  809|      0|   }
  810|       |
  811|  10.4k|   BigInt out;
  812|       |
  813|  10.4k|   const bool negative = (contents[0] & 0x80) == 0x80;
  814|       |
  815|  10.4k|   if(negative) {
  ------------------
  |  Branch (815:7): [True: 2.12k, False: 8.29k]
  ------------------
  816|  2.12k|      secure_vector<uint8_t> vec(contents.begin(), contents.end());
  817|  3.37k|      for(size_t i = vec.size(); i > 0; --i) {
  ------------------
  |  Branch (817:34): [True: 3.37k, False: 0]
  ------------------
  818|  3.37k|         const bool gt0 = (vec[i - 1] > 0);
  819|  3.37k|         vec[i - 1] -= 1;
  820|  3.37k|         if(gt0) {
  ------------------
  |  Branch (820:13): [True: 2.12k, False: 1.25k]
  ------------------
  821|  2.12k|            break;
  822|  2.12k|         }
  823|  3.37k|      }
  824|  47.9k|      for(auto& byte : vec) {
  ------------------
  |  Branch (824:22): [True: 47.9k, False: 2.12k]
  ------------------
  825|  47.9k|         byte = ~byte;
  826|  47.9k|      }
  827|  2.12k|      out._assign_from_bytes(vec);
  828|  2.12k|      out.set_sign(BigInt::Negative);
  829|  8.29k|   } else {
  830|  8.29k|      out._assign_from_bytes(contents);
  831|  8.29k|   }
  832|       |
  833|  10.4k|   return out;
  834|  10.4k|}
_ZN5Botan11BER_Decoder23decode_into_byte_vectorERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
 1038|  16.4k|                                                  ASN1_Class class_tag) {
 1039|  16.4k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (1039:7): [True: 29, False: 16.3k]
  |  Branch (1039:46): [True: 0, False: 29]
  ------------------
 1040|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
 1041|      0|   }
 1042|       |
 1043|  16.4k|   asn1_decode_binary_string(buffer, get_next_object(), real_type, type_tag, class_tag, m_limits);
 1044|  16.4k|   return (*this);
 1045|  16.4k|}
_ZN5Botan11BER_Decoder16decode_bitstringERNS_14ASN1_BitStringENS_9ASN1_TypeENS_10ASN1_ClassE:
 1047|  9.52k|BER_Decoder& BER_Decoder::decode_bitstring(ASN1_BitString& out, ASN1_Type type_tag, ASN1_Class class_tag) {
 1048|  9.52k|   const BER_Object obj = get_next_object();
 1049|       |
 1050|  9.52k|   std::vector<uint8_t> bits;
 1051|  9.52k|   uint8_t unused_bits = 0;
 1052|       |
 1053|  9.52k|   if(is_constructed(obj.class_tag())) {
  ------------------
  |  Branch (1053:7): [True: 49, False: 9.47k]
  ------------------
 1054|     49|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
 1055|     49|      if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (1055:10): [True: 7, False: 42]
  ------------------
 1056|      7|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
 1057|      7|      }
 1058|     42|      bits.reserve(obj.length());  // upper possible bound on the output size
 1059|     42|      unused_bits = asn1_concat_constructed_bit_string(bits, obj, m_limits, 0);
 1060|  9.47k|   } else {
 1061|  9.47k|      unused_bits = asn1_bitstring_unused_bits(obj, type_tag, class_tag, m_limits.require_der_encoding());
 1062|  9.47k|      bits.assign(obj.bits() + 1, obj.bits() + obj.length());
 1063|  9.47k|   }
 1064|       |
 1065|  9.51k|   if(unused_bits > 0 && !bits.empty()) {
  ------------------
  |  Branch (1065:7): [True: 1.27k, False: 8.24k]
  |  Branch (1065:26): [True: 1.27k, False: 0]
  ------------------
 1066|  1.27k|      bits.back() &= static_cast<uint8_t>(0xFF << unused_bits);
 1067|  1.27k|   }
 1068|       |
 1069|  9.51k|   out = ASN1_BitString(std::move(bits), unused_bits);
 1070|  9.51k|   return (*this);
 1071|  9.52k|}
_ZN5Botan11BER_Decoder22decode_named_bitstringERmmNS_9ASN1_TypeENS_10ASN1_ClassE:
 1076|  1.07k|                                                 ASN1_Class class_tag) {
 1077|  1.07k|   if(width > 64) {
  ------------------
  |  Branch (1077:7): [True: 0, False: 1.07k]
  ------------------
 1078|      0|      throw Invalid_Argument("BER_Decoder: Named BIT STRING width is too large");
 1079|      0|   }
 1080|       |
 1081|  1.07k|   ASN1_BitString bits;
 1082|  1.07k|   decode_bitstring(bits, type_tag, class_tag);
 1083|       |
 1084|  1.07k|   if(bits.bit_length() > width) {
  ------------------
  |  Branch (1084:7): [True: 15, False: 1.05k]
  ------------------
 1085|     15|      throw BER_Decoding_Error("Named BIT STRING exceeds declared width");
 1086|     15|   }
 1087|       |
 1088|  1.05k|   if(m_limits.require_der_encoding() && bits.bit_length() > 0 && !bits.bit_at(bits.bit_length() - 1)) {
  ------------------
  |  Branch (1088:7): [True: 861, False: 197]
  |  Branch (1088:42): [True: 856, False: 5]
  |  Branch (1088:67): [True: 65, False: 791]
  ------------------
 1089|     65|      throw BER_Decoding_Error("Named BIT STRING is not minimally encoded");
 1090|     65|   }
 1091|       |
 1092|    993|   uint64_t decoded = 0;
 1093|  5.85k|   for(size_t bit = 0; bit != bits.bit_length(); ++bit) {
  ------------------
  |  Branch (1093:24): [True: 4.86k, False: 993]
  ------------------
 1094|  4.86k|      if(bits.bit_at(bit)) {
  ------------------
  |  Branch (1094:10): [True: 2.39k, False: 2.46k]
  ------------------
 1095|  2.39k|         decoded |= uint64_t(1) << (width - 1 - bit);
 1096|  2.39k|      }
 1097|  4.86k|   }
 1098|       |
 1099|    993|   out = decoded;
 1100|    993|   return (*this);
 1101|  1.05k|}
_ZN5Botan4ASN120is_single_der_objectENSt3__14spanIKhLm18446744073709551615EEENS_9ASN1_TypeENS_10ASN1_ClassE:
 1105|  1.06k|bool is_single_der_object(std::span<const uint8_t> bytes, ASN1_Type expected_type, ASN1_Class expected_class) {
 1106|  1.06k|   if(bytes.empty()) {
  ------------------
  |  Branch (1106:7): [True: 0, False: 1.06k]
  ------------------
 1107|      0|      return false;
 1108|      0|   }
 1109|       |
 1110|  1.06k|   try {
 1111|  1.06k|      DataSource_Span src(bytes);
 1112|       |
 1113|  1.06k|      ASN1_Type type_tag = ASN1_Type::NoObject;
 1114|  1.06k|      ASN1_Class class_tag = ASN1_Class::NoObject;
 1115|  1.06k|      const size_t tag_bytes = decode_tag(&src, type_tag, class_tag);
 1116|       |
 1117|  1.06k|      if(type_tag != expected_type || class_tag != expected_class) {
  ------------------
  |  Branch (1117:10): [True: 518, False: 548]
  |  Branch (1117:39): [True: 8, False: 540]
  ------------------
 1118|    490|         return false;
 1119|    490|      }
 1120|       |
 1121|    576|      const auto dl = decode_length(&src, /*allow_indef=*/0, /*der_mode=*/true, is_constructed(expected_class));
 1122|       |
 1123|    576|      const size_t header_bytes = tag_bytes + dl.field_length();
 1124|    576|      if(header_bytes > bytes.size()) {
  ------------------
  |  Branch (1124:10): [True: 0, False: 576]
  ------------------
 1125|      0|         return false;
 1126|      0|      }
 1127|    576|      return dl.content_length() == bytes.size() - header_bytes;
 1128|    576|   } catch(Decoding_Error&) {
 1129|     44|      return false;
 1130|     44|   }
 1131|  1.06k|}
_ZN5Botan4ASN122is_der_sequence_headerENSt3__14spanIKhLm18446744073709551615EEE:
 1133|    631|bool is_der_sequence_header(std::span<const uint8_t> bytes) {
 1134|    631|   return is_single_der_object(bytes, ASN1_Type::Sequence, ASN1_Class::Universal | ASN1_Class::Constructed);
 1135|    631|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   29|   257k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   30|   257k|   auto b = ber->read_byte();
   31|       |
   32|   257k|   if(!b) {
  ------------------
  |  Branch (32:7): [True: 4.11k, False: 253k]
  ------------------
   33|  4.11k|      type_tag = ASN1_Type::NoObject;
   34|  4.11k|      class_tag = ASN1_Class::NoObject;
   35|  4.11k|      return 0;
   36|  4.11k|   }
   37|       |
   38|   253k|   if((*b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (38:7): [True: 251k, False: 1.53k]
  ------------------
   39|   251k|      type_tag = ASN1_Type(*b & 0x1F);
   40|   251k|      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|   251k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (44:10): [True: 7.87k, False: 243k]
  |  Branch (44:40): [True: 43, False: 7.83k]
  ------------------
   45|     43|         throw BER_Decoding_Error("EOC tag with constructed encoding");
   46|     43|      }
   47|   251k|      return 1;
   48|   251k|   }
   49|       |
   50|  1.53k|   size_t tag_bytes = 1;
   51|  1.53k|   class_tag = ASN1_Class(*b & 0xE0);
   52|       |
   53|  1.53k|   uint32_t tag_buf = 0;
   54|  5.66k|   while(true) {
  ------------------
  |  Branch (54:10): [True: 5.66k, Folded]
  ------------------
   55|  5.66k|      b = ber->read_byte();
   56|  5.66k|      if(!b) {
  ------------------
  |  Branch (56:10): [True: 45, False: 5.62k]
  ------------------
   57|     45|         throw BER_Decoding_Error("Long-form tag truncated");
   58|     45|      }
   59|       |      // Reject if shifting in another 7 bits would overflow the uint32_t tag
   60|  5.62k|      if((tag_buf >> 25) != 0) {
  ------------------
  |  Branch (60:10): [True: 70, False: 5.55k]
  ------------------
   61|     70|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   62|     70|      }
   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|  5.55k|      if(tag_bytes == 1 && (*b & 0x7F) == 0) {
  ------------------
  |  Branch (67:10): [True: 1.51k, False: 4.03k]
  |  Branch (67:28): [True: 27, False: 1.48k]
  ------------------
   68|     27|         throw BER_Decoding_Error("Long form tag with leading zero");
   69|     27|      }
   70|  5.52k|      ++tag_bytes;
   71|  5.52k|      tag_buf = (tag_buf << 7) | (*b & 0x7F);
   72|  5.52k|      if((*b & 0x80) == 0) {
  ------------------
  |  Branch (72:10): [True: 1.39k, False: 4.13k]
  ------------------
   73|  1.39k|         break;
   74|  1.39k|      }
   75|  5.52k|   }
   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|  1.39k|   if(tag_buf <= 30) {
  ------------------
  |  Branch (79:7): [True: 42, False: 1.34k]
  ------------------
   80|     42|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
   81|     42|   }
   82|       |
   83|  1.34k|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (83:7): [True: 4, False: 1.34k]
  ------------------
   84|      4|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
   85|      4|   }
   86|       |
   87|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
   88|  1.34k|   type_tag = ASN1_Type(tag_buf);
   89|  1.34k|   return tag_bytes;
   90|  1.34k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceEmbb:
  135|   252k|BerDecodedLength decode_length(DataSource* ber, size_t allow_indef, bool der_mode, bool constructed) {
  136|   252k|   uint8_t b = 0;
  137|   252k|   if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (137:7): [True: 198, False: 252k]
  ------------------
  138|    198|      throw BER_Decoding_Error("Length field not found");
  139|    198|   }
  140|   252k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (140:7): [True: 225k, False: 26.9k]
  ------------------
  141|   225k|      return BerDecodedLength(b, 1);
  142|   225k|   }
  143|       |
  144|  26.9k|   const size_t num_length_bytes = (b & 0x7F);
  145|  26.9k|   if(num_length_bytes > 4) {
  ------------------
  |  Branch (145:7): [True: 436, False: 26.5k]
  ------------------
  146|    436|      throw BER_Decoding_Error("Length field is too large");
  147|    436|   }
  148|       |
  149|  26.5k|   const size_t field_size = 1 + num_length_bytes;
  150|       |
  151|  26.5k|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (151:7): [True: 15, False: 26.5k]
  ------------------
  152|     15|      if(der_mode) {
  ------------------
  |  Branch (152:10): [True: 15, False: 0]
  ------------------
  153|     15|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  154|     15|      } 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|     15|   }
  169|       |
  170|  26.5k|   size_t length = 0;
  171|       |
  172|  74.2k|   for(size_t i = 0; i != num_length_bytes; ++i) {
  ------------------
  |  Branch (172:22): [True: 47.6k, False: 26.5k]
  ------------------
  173|  47.6k|      if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (173:10): [True: 11, False: 47.6k]
  ------------------
  174|     11|         throw BER_Decoding_Error("Corrupted length field");
  175|     11|      }
  176|       |      // Can't overflow since we already checked that num_length_bytes <= 4
  177|  47.6k|      length = (length << 8) | b;
  178|  47.6k|   }
  179|       |
  180|       |   // DER requires shortest possible length encoding
  181|  26.5k|   if(der_mode) {
  ------------------
  |  Branch (181:7): [True: 26.5k, False: 0]
  ------------------
  182|  26.5k|      if(length < 128) {
  ------------------
  |  Branch (182:10): [True: 32, False: 26.4k]
  ------------------
  183|     32|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  184|     32|      }
  185|  26.4k|      if(num_length_bytes > 1 && length < (size_t(1) << ((num_length_bytes - 1) * 8))) {
  ------------------
  |  Branch (185:10): [True: 20.9k, False: 5.59k]
  |  Branch (185:34): [True: 9, False: 20.8k]
  ------------------
  186|      9|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  187|      9|      }
  188|  26.4k|   }
  189|       |
  190|  26.4k|   return BerDecodedLength(length, field_size);
  191|  26.5k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emm:
  108|   251k|            BerDecodedLength(content_length, field_length, false) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emmb:
  125|   251k|            m_content_length(content_length), m_field_length(field_length), m_indefinite(indefinite) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_18peek_tagEPKNS_10DataSourceEmRNS_9ASN1_TypeERNS_10ASN1_ClassE:
  197|  18.1k|size_t peek_tag(const DataSource* src, size_t offset, ASN1_Type& type_tag, ASN1_Class& class_tag) {
  198|  18.1k|   uint8_t b = 0;
  199|  18.1k|   if(src->peek(&b, 1, offset) == 0) {
  ------------------
  |  Branch (199:7): [True: 0, False: 18.1k]
  ------------------
  200|      0|      type_tag = ASN1_Type::NoObject;
  201|      0|      class_tag = ASN1_Class::NoObject;
  202|      0|      return 0;
  203|      0|   }
  204|       |
  205|  18.1k|   if((b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (205:7): [True: 17.9k, False: 191]
  ------------------
  206|  17.9k|      type_tag = ASN1_Type(b & 0x1F);
  207|  17.9k|      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|  17.9k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (211:10): [True: 637, False: 17.3k]
  |  Branch (211:40): [True: 3, False: 634]
  ------------------
  212|      3|         throw BER_Decoding_Error("EOC tag with constructed encoding");
  213|      3|      }
  214|  17.9k|      return 1;
  215|  17.9k|   }
  216|       |
  217|    191|   class_tag = ASN1_Class(b & 0xE0);
  218|    191|   size_t tag_bytes = 1;
  219|    191|   uint32_t tag_buf = 0;
  220|       |
  221|    648|   while(true) {
  ------------------
  |  Branch (221:10): [True: 648, Folded]
  ------------------
  222|    648|      if(src->peek(&b, 1, offset + tag_bytes) == 0) {
  ------------------
  |  Branch (222:10): [True: 3, False: 645]
  ------------------
  223|      3|         throw BER_Decoding_Error("Long-form tag truncated");
  224|      3|      }
  225|       |      // Reject if shifting in another 7 bits would overflow the uint32_t tag
  226|    645|      if((tag_buf >> 25) != 0) {
  ------------------
  |  Branch (226:10): [True: 11, False: 634]
  ------------------
  227|     11|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
  228|     11|      }
  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|    634|      if(tag_bytes == 1 && (b & 0x7F) == 0) {
  ------------------
  |  Branch (233:10): [True: 190, False: 444]
  |  Branch (233:28): [True: 1, False: 189]
  ------------------
  234|      1|         throw BER_Decoding_Error("Long form tag with leading zero");
  235|      1|      }
  236|    633|      ++tag_bytes;
  237|    633|      tag_buf = (tag_buf << 7) | (b & 0x7F);
  238|    633|      if((b & 0x80) == 0) {
  ------------------
  |  Branch (238:10): [True: 176, False: 457]
  ------------------
  239|    176|         break;
  240|    176|      }
  241|    633|   }
  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|    176|   if(tag_buf <= 30) {
  ------------------
  |  Branch (246:7): [True: 4, False: 172]
  ------------------
  247|      4|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
  248|      4|   }
  249|       |
  250|    172|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (250:7): [True: 1, False: 171]
  ------------------
  251|      1|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
  252|      1|   }
  253|       |
  254|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
  255|    171|   type_tag = ASN1_Type(tag_buf);
  256|    171|   return tag_bytes;
  257|    172|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_111peek_lengthEPNS_10DataSourceEmRmmbb:
  265|  18.1k|   DataSource* src, size_t offset, size_t& field_size, size_t allow_indef, bool constructed, bool der_mode) {
  266|  18.1k|   uint8_t b = 0;
  267|  18.1k|   if(src->peek(&b, 1, offset) == 0) {
  ------------------
  |  Branch (267:7): [True: 39, False: 18.1k]
  ------------------
  268|     39|      throw BER_Decoding_Error("Length field not found");
  269|     39|   }
  270|       |
  271|  18.1k|   field_size = 1;
  272|  18.1k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (272:7): [True: 18.0k, False: 79]
  ------------------
  273|  18.0k|      return b;
  274|  18.0k|   }
  275|       |
  276|     79|   const size_t num_length_bytes = (b & 0x7F);
  277|     79|   field_size += num_length_bytes;
  278|     79|   if(field_size > 5) {
  ------------------
  |  Branch (278:7): [True: 22, False: 57]
  ------------------
  279|     22|      throw BER_Decoding_Error("Length field is too large");
  280|     22|   }
  281|       |
  282|     57|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (282:7): [True: 1, False: 56]
  ------------------
  283|       |      // Indefinite length is not allowed in DER
  284|      1|      if(der_mode) {
  ------------------
  |  Branch (284:10): [True: 1, False: 0]
  ------------------
  285|      1|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  286|      1|      }
  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|     56|   size_t length = 0;
  298|    216|   for(size_t i = 0; i < num_length_bytes; ++i) {
  ------------------
  |  Branch (298:22): [True: 162, False: 54]
  ------------------
  299|    162|      if(src->peek(&b, 1, offset + 1 + i) == 0) {
  ------------------
  |  Branch (299:10): [True: 2, False: 160]
  ------------------
  300|      2|         throw BER_Decoding_Error("Corrupted length field");
  301|      2|      }
  302|    160|      if(get_byte<0>(length) != 0) {
  ------------------
  |  Branch (302:10): [True: 0, False: 160]
  ------------------
  303|      0|         throw BER_Decoding_Error("Field length overflow");
  304|      0|      }
  305|    160|      length = (length << 8) | b;
  306|    160|   }
  307|     54|   return length;
  308|     56|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedENS_10ASN1_ClassE:
   22|   305k|bool is_constructed(ASN1_Class class_tag) {
   23|   305k|   return (static_cast<uint32_t>(class_tag) & static_cast<uint32_t>(ASN1_Class::Constructed)) != 0;
   24|   305k|}
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength14content_lengthEv:
  114|  1.00M|      size_t content_length() const { return m_content_length; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength17indefinite_lengthEv:
  121|   249k|      bool indefinite_length() const { return m_indefinite; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12total_lengthEv:
  117|   250k|      size_t total_length() const { return m_indefinite ? m_content_length + 2 : m_content_length; }
  ------------------
  |  Branch (117:44): [True: 0, False: 250k]
  ------------------
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120verify_set_is_sortedENSt3__14spanIKhLm18446744073709551615EEE:
  426|  17.1k|void verify_set_is_sorted(std::span<const uint8_t> content) {
  427|  17.1k|   DataSource_Span src(content);
  428|  17.1k|   size_t offset = 0;
  429|  17.1k|   std::optional<std::span<const uint8_t>> prev;
  430|       |
  431|  35.1k|   while(offset < content.size()) {
  ------------------
  |  Branch (431:10): [True: 18.1k, False: 16.9k]
  ------------------
  432|  18.1k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  433|  18.1k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  434|  18.1k|      const size_t tag_size = peek_tag(&src, offset, type_tag, class_tag);
  435|       |
  436|  18.1k|      size_t length_size = 0;
  437|  18.1k|      const size_t item_size =
  438|  18.1k|         peek_length(&src, offset + tag_size, length_size, /*allow_indef=*/0, is_constructed(class_tag), true);
  439|       |
  440|  18.1k|      const auto end = checked_add(offset, tag_size, length_size, item_size);
  441|  18.1k|      if(!end || *end > content.size()) {
  ------------------
  |  Branch (441:10): [True: 87, False: 18.0k]
  |  Branch (441:18): [True: 69, False: 18.0k]
  ------------------
  442|     69|         throw BER_Decoding_Error("SET element exceeds available data");
  443|     69|      }
  444|       |
  445|  18.1k|      const auto elem = content.subspan(offset, *end - offset);
  446|  18.1k|      if(prev && std::lexicographical_compare(elem.begin(), elem.end(), prev->begin(), prev->end())) {
  ------------------
  |  Branch (446:10): [True: 960, False: 17.1k]
  |  Branch (446:18): [True: 91, False: 869]
  ------------------
  447|     91|         throw BER_Decoding_Error("Detected unsorted SET in DER structure");
  448|     91|      }
  449|  18.0k|      prev = elem;
  450|  18.0k|      offset = *end;
  451|  18.0k|   }
  452|  17.1k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_126asn1_bitstring_unused_bitsERKNS_10BER_ObjectENS_9ASN1_TypeENS_10ASN1_ClassEb:
  990|  9.42k|uint8_t asn1_bitstring_unused_bits(const BER_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag, bool require_der) {
  991|  9.42k|   obj.assert_is_a(type_tag, class_tag);
  992|  9.42k|   BOTAN_ASSERT_NOMSG(!is_constructed(obj));
  ------------------
  |  |   84|  9.42k|   do {                                                                     \
  |  |   85|  9.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  9.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 9.42k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  9.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 9.42k]
  |  |  ------------------
  ------------------
  993|       |
  994|  9.42k|   if(obj.length() == 0) {
  ------------------
  |  Branch (994:7): [True: 15, False: 9.40k]
  ------------------
  995|     15|      throw BER_Decoding_Error("Invalid BIT STRING");
  996|     15|   }
  997|       |
  998|  9.40k|   const uint8_t unused_bits = obj.bits()[0];
  999|       |
 1000|  9.40k|   if(unused_bits >= 8) {
  ------------------
  |  Branch (1000:7): [True: 48, False: 9.36k]
  ------------------
 1001|     48|      throw BER_Decoding_Error("Invalid number of unused bits in BIT STRING");
 1002|     48|   }
 1003|       |
 1004|  9.36k|   if(obj.length() == 1 && unused_bits != 0) {
  ------------------
  |  Branch (1004:7): [True: 577, False: 8.78k]
  |  Branch (1004:28): [True: 6, False: 571]
  ------------------
 1005|      6|      throw BER_Decoding_Error("Invalid BIT STRING");
 1006|      6|   }
 1007|       |
 1008|  9.35k|   if(require_der && unused_bits > 0) {
  ------------------
  |  Branch (1008:7): [True: 9.25k, False: 102]
  |  Branch (1008:22): [True: 1.36k, False: 7.88k]
  ------------------
 1009|  1.36k|      const uint8_t last_byte = obj.bits()[obj.length() - 1];
 1010|  1.36k|      if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (1010:10): [True: 93, False: 1.27k]
  ------------------
 1011|     93|         throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
 1012|     93|      }
 1013|  1.36k|   }
 1014|       |
 1015|  9.26k|   return unused_bits;
 1016|  9.35k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedERKNS_10BER_ObjectE:
  838|  25.5k|bool is_constructed(const BER_Object& obj) {
  839|  25.5k|   return is_constructed(obj.class_tag());
  840|  25.5k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_SpanC2ENSt3__14spanIKhLm18446744073709551615EEE:
  414|  18.2k|      explicit DataSource_Span(std::span<const uint8_t> buf) : m_buf(buf) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_Span4readEPhm:
  392|  2.42k|      size_t read(uint8_t out[], size_t length) override {
  393|  2.42k|         const size_t got = std::min(m_buf.size() - m_offset, length);
  394|  2.42k|         copy_mem(out, m_buf.data() + m_offset, got);
  395|  2.42k|         m_offset += got;
  396|  2.42k|         return got;
  397|  2.42k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_115DataSource_Span4peekEPhmm:
  399|  37.1k|      size_t peek(uint8_t out[], size_t length, size_t peek_offset) const override {
  400|  37.1k|         if(peek_offset >= m_buf.size() - m_offset) {
  ------------------
  |  Branch (400:13): [True: 44, False: 37.0k]
  ------------------
  401|     44|            return 0;
  402|     44|         }
  403|  37.0k|         const size_t got = std::min(m_buf.size() - m_offset - peek_offset, length);
  404|  37.0k|         copy_mem(out, m_buf.data() + m_offset + peek_offset, got);
  405|  37.0k|         return got;
  406|  37.1k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12field_lengthEv:
  119|    532|      size_t field_length() const { return m_field_length; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  379|  99.3k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  349|   663k|      size_t read(uint8_t out[], size_t length) override {
  350|   663k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   84|   663k|   do {                                                                     \
  |  |   85|   663k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|   663k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 663k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|   663k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 663k]
  |  |  ------------------
  ------------------
  351|   663k|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  352|   663k|         copy_mem(out, m_obj.bits() + m_offset, got);
  353|   663k|         m_offset += got;
  354|   663k|         return got;
  355|   663k|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  370|   174k|      bool check_available(size_t n) override {
  371|   174k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   84|   174k|   do {                                                                     \
  |  |   85|   174k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|   174k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 174k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|   174k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 174k]
  |  |  ------------------
  ------------------
  372|   174k|         return (n <= (m_obj.length() - m_offset));
  373|   174k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  375|   154k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  377|   154k|      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:
  932|  16.2k|                               const BER_Decoder::Limits& limits) {
  933|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding;
  934|       |   // in BER the constructed (fragmented) form is decoded by concatenation
  935|  16.2k|   if(is_constructed(obj)) {
  ------------------
  |  Branch (935:7): [True: 46, False: 16.2k]
  ------------------
  936|     46|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  937|       |
  938|     46|      if(limits.require_der_encoding()) {
  ------------------
  |  Branch (938:10): [True: 3, False: 43]
  ------------------
  939|      3|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  940|      3|      }
  941|       |
  942|       |      // Concatenate into a temporary so a failed decode leaves buffer unmodified
  943|     43|      std::vector<uint8_t, Alloc> concat;
  944|     43|      concat.reserve(obj.length());  // upper possible bound on the output size
  945|     43|      if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (945:10): [True: 0, False: 43]
  ------------------
  946|      0|         asn1_concat_constructed_octet_string(concat, obj, limits, 0);
  947|     43|      } else {
  948|     43|         asn1_concat_constructed_bit_string(concat, obj, limits, 0);
  949|     43|      }
  950|     43|      buffer = std::move(concat);
  951|     43|      return;
  952|     46|   }
  953|       |
  954|  16.2k|   obj.assert_is_a(type_tag, class_tag);
  955|       |
  956|  16.2k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (956:7): [True: 16.0k, False: 145]
  ------------------
  957|  16.0k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  958|  16.0k|   } else {
  959|    145|      if(obj.length() == 0) {
  ------------------
  |  Branch (959:10): [True: 1, False: 144]
  ------------------
  960|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  961|      1|      }
  962|       |
  963|    144|      const uint8_t unused_bits = obj.bits()[0];
  964|       |
  965|    144|      if(unused_bits >= 8) {
  ------------------
  |  Branch (965:10): [True: 3, False: 141]
  ------------------
  966|      3|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  967|      3|      }
  968|       |
  969|       |      // Empty BIT STRING with unused bits > 0 ...
  970|    141|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (970:10): [True: 12, False: 129]
  |  Branch (970:29): [True: 1, False: 11]
  ------------------
  971|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  972|      1|      }
  973|       |
  974|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  975|    140|      if(limits.require_der_encoding() && unused_bits > 0) {
  ------------------
  |  Branch (975:10): [True: 24, False: 116]
  |  Branch (975:43): [True: 11, False: 13]
  ------------------
  976|     11|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  977|     11|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (977:13): [True: 5, False: 6]
  ------------------
  978|      5|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  979|      5|         }
  980|     11|      }
  981|       |
  982|    135|      buffer.resize(obj.length() - 1);
  983|       |
  984|    135|      if(obj.length() > 1) {
  ------------------
  |  Branch (984:10): [True: 15, False: 120]
  ------------------
  985|     15|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  986|     15|      }
  987|    135|   }
  988|  16.2k|}

_ZN5Botan4ASN119der_sequence_headerEm:
   71|  9.31k|std::vector<uint8_t> der_sequence_header(size_t contents_len) {
   72|  9.31k|   std::vector<uint8_t> header;
   73|  9.31k|   header.reserve(2 + sizeof(contents_len));
   74|  9.31k|   encode_tag(header, ASN1_Type::Sequence, ASN1_Class::Constructed);
   75|  9.31k|   encode_length(header, contents_len);
   76|  9.31k|   return header;
   77|  9.31k|}
_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   89|  17.9k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   90|  17.9k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  17.9k|      if(l > 0) {
   92|  17.9k|         vec.insert(vec.end(), b, b + l);
   93|  17.9k|      }
   94|  17.9k|   };
   95|  17.9k|}
_ZN5Botan11DER_Encoder12DER_Sequence13push_contentsERS0_:
  100|  2.19k|void DER_Encoder::DER_Sequence::push_contents(DER_Encoder& der) {
  101|  2.19k|   const auto real_class_tag = m_class_tag | ASN1_Class::Constructed;
  102|       |
  103|  2.19k|   if(m_sort_contents) {
  ------------------
  |  Branch (103:7): [True: 0, False: 2.19k]
  ------------------
  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|  2.19k|   der.add_object(m_type_tag, real_class_tag, m_contents.data(), m_contents.size());
  112|  2.19k|   m_contents.clear();
  113|  2.19k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhm:
  118|  1.08k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t data[], size_t length) {
  119|  1.08k|   if(m_sort_contents) {
  ------------------
  |  Branch (119:7): [True: 0, False: 1.08k]
  ------------------
  120|      0|      if(length > 0) {
  ------------------
  |  Branch (120:10): [True: 0, False: 0]
  ------------------
  121|      0|         m_set_contents.emplace_back(data, data + length);
  122|      0|      } else {
  123|      0|         m_set_contents.emplace_back();
  124|      0|      }
  125|  1.08k|   } else {
  126|  1.08k|      m_contents += std::make_pair(data, length);
  127|  1.08k|   }
  128|  1.08k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhmS3_m:
  130|  2.73k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t hdr[], size_t hdr_len, const uint8_t val[], size_t val_len) {
  131|  2.73k|   if(m_sort_contents) {
  ------------------
  |  Branch (131:7): [True: 0, False: 2.73k]
  ------------------
  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|  2.73k|   } else {
  138|  2.73k|      m_contents += std::make_pair(hdr, hdr_len);
  139|  2.73k|      m_contents += std::make_pair(val, val_len);
  140|  2.73k|   }
  141|  2.73k|}
_ZN5Botan11DER_Encoder12DER_SequenceC2ENS_9ASN1_TypeENS_10ASN1_ClassEb:
  154|  2.19k|      m_type_tag(type_tag),
  155|  2.19k|      m_class_tag(class_tag),
  156|  2.19k|      m_sort_contents(sort_contents || (type_tag == ASN1_Type::Set && class_tag == ASN1_Class::Universal)) {}
  ------------------
  |  Branch (156:23): [True: 0, False: 2.19k]
  |  Branch (156:41): [True: 0, False: 2.19k]
  |  Branch (156:71): [True: 0, False: 0]
  ------------------
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  192|  2.19k|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  193|  2.19k|   return start_cons(type_tag, class_tag, false);
  194|  2.19k|}
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassEb:
  200|  2.19k|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag, bool sort_contents) {
  201|  2.19k|   m_subsequences.push_back(DER_Sequence(type_tag, class_tag, sort_contents));
  202|  2.19k|   return (*this);
  203|  2.19k|}
_ZN5Botan11DER_Encoder8end_consEv:
  208|  2.19k|DER_Encoder& DER_Encoder::end_cons() {
  209|  2.19k|   if(m_subsequences.empty()) {
  ------------------
  |  Branch (209:7): [True: 0, False: 2.19k]
  ------------------
  210|      0|      throw Invalid_State("DER_Encoder::end_cons: No such sequence");
  211|      0|   }
  212|       |
  213|  2.19k|   DER_Sequence last_seq = std::move(m_subsequences[m_subsequences.size() - 1]);
  214|  2.19k|   m_subsequences.pop_back();
  215|  2.19k|   last_seq.push_contents(*this);
  216|       |
  217|  2.19k|   return (*this);
  218|  2.19k|}
_ZN5Botan11DER_Encoder9raw_bytesEPKhm:
  237|  1.08k|DER_Encoder& DER_Encoder::raw_bytes(const uint8_t bytes[], size_t length) {
  238|  1.08k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (238:7): [True: 1.08k, False: 0]
  ------------------
  239|  1.08k|      m_subsequences[m_subsequences.size() - 1].add_bytes(bytes, length);
  240|  1.08k|   } else if(m_append_output) {
  ------------------
  |  Branch (240:14): [True: 0, False: 0]
  ------------------
  241|      0|      m_append_output(bytes, length);
  242|      0|   } else {
  243|      0|      m_default_outbuf += std::make_pair(bytes, length);
  244|      0|   }
  245|       |
  246|  1.08k|   return (*this);
  247|  1.08k|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  285|  20.6k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  286|  20.6k|   std::vector<uint8_t> hdr;
  287|  20.6k|   encode_tag(hdr, type_tag, class_tag);
  288|  20.6k|   encode_length(hdr, length);
  289|       |
  290|  20.6k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (290:7): [True: 2.73k, False: 17.9k]
  ------------------
  291|  2.73k|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  292|  17.9k|   } else if(m_append_output) {
  ------------------
  |  Branch (292:14): [True: 17.9k, False: 1]
  ------------------
  293|  17.9k|      m_append_output(hdr.data(), hdr.size());
  294|  17.9k|      m_append_output(rep, length);
  295|  17.9k|   } else {
  296|      1|      m_default_outbuf += hdr;
  297|      1|      m_default_outbuf += std::make_pair(rep, length);
  298|      1|   }
  299|       |
  300|  20.6k|   return (*this);
  301|  20.6k|}
_ZN5Botan4ASN116integer_contentsERKNS_6BigIntE:
  356|  4.20k|std::vector<uint8_t> ASN1::integer_contents(const BigInt& n) {
  357|  4.20k|   if(n == 0) {
  ------------------
  |  Branch (357:7): [True: 100, False: 4.10k]
  ------------------
  358|    100|      return {0x00};
  359|    100|   }
  360|       |
  361|       |   // Serialize magnitude with one extra leading byte
  362|  4.10k|   auto contents = n.serialize(n.bytes() + 1);
  363|       |
  364|  4.10k|   if(n.signum() < 0) {
  ------------------
  |  Branch (364:7): [True: 1.14k, False: 2.96k]
  ------------------
  365|       |      // Two's complement: bitwise NOT then increment
  366|  34.6k|      for(auto& byte : contents) {
  ------------------
  |  Branch (366:22): [True: 34.6k, False: 1.14k]
  ------------------
  367|  34.6k|         byte = ~byte;
  368|  34.6k|      }
  369|  1.98k|      for(size_t i = contents.size(); i > 0; --i) {
  ------------------
  |  Branch (369:39): [True: 1.98k, False: 0]
  ------------------
  370|  1.98k|         if(++contents[i - 1] != 0) {
  ------------------
  |  Branch (370:13): [True: 1.14k, False: 843]
  ------------------
  371|  1.14k|            break;
  372|  1.14k|         }
  373|  1.98k|      }
  374|  1.14k|   }
  375|       |
  376|       |   /*
  377|       |   * DER requires the leading byte be emitted only if it required
  378|       |   */
  379|  4.10k|   BOTAN_ASSERT_NOMSG(contents.size() >= 2);
  ------------------
  |  |   84|  4.10k|   do {                                                                     \
  |  |   85|  4.10k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  4.10k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 4.10k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  4.10k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 4.10k]
  |  |  ------------------
  ------------------
  380|  4.10k|   const bool leading_byte_redundant =
  381|  4.10k|      (contents[0] == 0x00 && (contents[1] & 0x80) == 0) || (contents[0] == 0xFF && (contents[1] & 0x80) != 0);
  ------------------
  |  Branch (381:8): [True: 2.96k, False: 1.14k]
  |  Branch (381:31): [True: 2.57k, False: 389]
  |  Branch (381:62): [True: 1.14k, False: 389]
  |  Branch (381:85): [True: 1.08k, False: 62]
  ------------------
  382|       |
  383|  4.10k|   if(leading_byte_redundant) {
  ------------------
  |  Branch (383:7): [True: 3.65k, False: 451]
  ------------------
  384|  3.65k|      contents.erase(contents.begin());
  385|  3.65k|   }
  386|  4.10k|   return contents;
  387|  4.20k|}
_ZN5Botan11DER_Encoder16encode_bitstringENSt3__14spanIKhLm18446744073709551615EEEmNS_9ASN1_TypeENS_10ASN1_ClassE:
  414|    541|                                           ASN1_Class class_tag) {
  415|    541|   if(unused_bits >= 8) {
  ------------------
  |  Branch (415:7): [True: 0, False: 541]
  ------------------
  416|      0|      throw Invalid_Argument("DER_Encoder: Invalid unused bit count for BIT STRING");
  417|      0|   }
  418|       |
  419|    541|   if(bits.empty() && unused_bits != 0) {
  ------------------
  |  Branch (419:7): [True: 3, False: 538]
  |  Branch (419:23): [True: 0, False: 3]
  ------------------
  420|      0|      throw Invalid_Argument("DER_Encoder: Empty BIT STRING cannot have unused bits");
  421|      0|   }
  422|       |
  423|    541|   if(unused_bits > 0 && (bits.back() & ((1U << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (423:7): [True: 0, False: 541]
  |  Branch (423:26): [True: 0, False: 0]
  ------------------
  424|      0|      throw Invalid_Argument("DER_Encoder: BIT STRING unused bits must be zero");
  425|      0|   }
  426|       |
  427|    541|   secure_vector<uint8_t> encoded;
  428|    541|   encoded.reserve(1 + bits.size());
  429|    541|   encoded.push_back(static_cast<uint8_t>(unused_bits));
  430|    541|   encoded.insert(encoded.end(), bits.begin(), bits.end());
  431|    541|   return add_object(type_tag, class_tag, encoded);
  432|    541|}
_ZN5Botan11DER_Encoder6encodeERKNS_11ASN1_ObjectE:
  467|  1.08k|DER_Encoder& DER_Encoder::encode(const ASN1_Object& obj) {
  468|  1.08k|   obj.encode_into(*this);
  469|  1.08k|   return (*this);
  470|  1.08k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   26|  29.9k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   27|  29.9k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   28|  29.9k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   29|       |
   30|  29.9k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (30:7): [True: 1, False: 29.9k]
  ------------------
   31|      1|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   32|      1|   }
   33|       |
   34|  29.9k|   if(type_tag <= 30) {
  ------------------
  |  Branch (34:7): [True: 29.9k, False: 59]
  ------------------
   35|  29.9k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   36|  29.9k|   } else {
   37|     59|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   38|     59|      blocks = (blocks - (blocks % 7)) / 7;
   39|       |
   40|     59|      BOTAN_ASSERT_NOMSG(blocks > 0);
  ------------------
  |  |   84|     59|   do {                                                                     \
  |  |   85|     59|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|     59|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 59]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|     59|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 59]
  |  |  ------------------
  ------------------
   41|       |
   42|     59|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   43|    245|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (43:25): [True: 186, False: 59]
  ------------------
   44|    186|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   45|    186|      }
   46|     59|      encoded_tag.push_back(type_tag & 0x7F);
   47|     59|   }
   48|  29.9k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   53|  29.9k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   54|  29.9k|   if(length <= 127) {
  ------------------
  |  Branch (54:7): [True: 25.9k, False: 4.05k]
  ------------------
   55|  25.9k|      encoded_length.push_back(static_cast<uint8_t>(length));
   56|  25.9k|   } else {
   57|  4.05k|      const size_t bytes_needed = significant_bytes(length);
   58|       |
   59|  4.05k|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   60|       |
   61|  10.8k|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (61:53): [True: 6.79k, False: 4.05k]
  ------------------
   62|  6.79k|         encoded_length.push_back(get_byte_var(i, length));
   63|  6.79k|      }
   64|  4.05k|   }
   65|  29.9k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   90|  35.8k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  35.8k|      if(l > 0) {
  ------------------
  |  Branch (91:10): [True: 35.7k, False: 118]
  ------------------
   92|  35.7k|         vec.insert(vec.end(), b, b + l);
   93|  35.7k|      }
   94|  35.8k|   };

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

_ZN5Botan20Buffered_Computation5finalENSt3__14spanIhLm18446744073709551615EEE:
   54|  2.70k|void Buffered_Computation::final(std::span<uint8_t> out) {
   55|  2.70k|   BOTAN_ARG_CHECK(out.size() >= output_length(), "Output buffer has insufficient capacity");
  ------------------
  |  |   35|  2.70k|   do {                                                          \
  |  |   36|  2.70k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.70k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.70k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.70k]
  |  |  ------------------
  ------------------
   56|       |   // Pass exactly output_length() bytes so that an oversized buffer has the
   57|       |   // result written to its leading bytes with the remainder left untouched.
   58|  2.70k|   final_result(out.first(output_length()));
   59|  2.70k|}

_ZN5Botan13base64_decodeEPhPKcmb:
  208|    161|size_t base64_decode(uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  209|    161|#if defined(BOTAN_HAS_BASE64_AVX512)
  210|    161|   if(input_length >= 128 && CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::POPCNT)) {
  ------------------
  |  Branch (210:7): [True: 47, False: 114]
  |  Branch (210:30): [True: 0, False: 47]
  ------------------
  211|       |      // Decoding directly stops at the first block containing whitespace,
  212|       |      // padding, or an invalid character
  213|      0|      const uint8_t* in8 = as_span_of_bytes(input, input_length).data();
  214|      0|      const size_t bulk = base64_decode_avx512(output, in8, input_length);
  215|      0|      size_t written = bulk / 4 * 3;
  216|       |
  217|      0|      const uint8_t* rest = in8 + bulk;
  218|      0|      size_t rest_len = input_length - bulk;
  219|       |
  220|       |      // If the stop may have been due to whitespace, compact the remainder
  221|       |      // and continue decoding
  222|      0|      secure_vector<uint8_t> compacted;
  223|      0|      if(ignore_ws && rest_len > 128) {
  ------------------
  |  Branch (223:10): [True: 0, False: 0]
  |  Branch (223:23): [True: 0, False: 0]
  ------------------
  224|      0|         compacted.resize(rest_len);
  225|      0|         const size_t clean_len = base64_strip_ws_avx512(compacted.data(), rest, rest_len);
  226|      0|         rest = compacted.data();
  227|      0|         rest_len = clean_len;
  228|       |
  229|      0|         const size_t bulk2 = base64_decode_avx512(output + written, rest, rest_len);
  230|      0|         written += bulk2 / 4 * 3;
  231|      0|         rest += bulk2;
  232|      0|         rest_len -= bulk2;
  233|      0|      }
  234|       |
  235|       |      // The scalar decoder handles the final blocks, and with them all of
  236|       |      // the padding logic and error reporting
  237|      0|      const size_t tail_written =
  238|      0|         base_decode_full(Base64(), output + written, cast_uint8_ptr_to_char(rest), rest_len, ignore_ws);
  239|       |
  240|      0|      return written + tail_written;
  241|      0|   }
  242|    161|#endif
  243|       |
  244|    161|   return base_decode_full(Base64(), output, input, input_length, ignore_ws);
  245|    161|}
_ZN5Botan13base64_decodeEPKcmb:
  258|    161|secure_vector<uint8_t> base64_decode(const char input[], size_t input_length, bool ignore_ws) {
  259|    161|   secure_vector<uint8_t> bin(Base64::decode_max_output(input_length));
  260|    161|   const size_t written = base64_decode(bin.data(), input, input_length, ignore_ws);
  261|    161|   bin.resize(written);
  262|    161|   return bin;
  263|    161|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decode_max_outputEm:
   49|    322|      static constexpr size_t decode_max_output(size_t input_length) {
   50|       |         // Cannot overflow since each block shrinks when decoded
   51|    322|         return ceil_division(input_length, m_encoding_bytes_out) * m_encoding_bytes_in;
   52|    322|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6413bits_consumedEv:
   40|     37|      static constexpr size_t bits_consumed() noexcept { return m_encoding_bits; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEc:
  118|  84.4k|uint8_t Base64::lookup_binary_value(char input) noexcept {
  119|  84.4k|   const auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
  120|       |
  121|       |   // Assumes each byte is either 0x00 or 0x80
  122|  84.4k|   const auto index_of_first_set_byte = [](uint64_t v) {
  123|  84.4k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  124|  84.4k|   };
  125|       |
  126|  84.4k|   constexpr uint64_t lo = 0x0101010101010101;
  127|       |
  128|  84.4k|   const uint8_t x = static_cast<uint8_t>(input);
  129|       |
  130|  84.4k|   const uint64_t x8 = x * lo;
  131|       |
  132|       |   // Defines the valid ASCII ranges of base64, except the special chars (below)
  133|  84.4k|   constexpr uint64_t val_l = make_uint64(0, 0, 0, 0, 0, 'A', 'a', '0');
  134|  84.4k|   constexpr uint64_t val_u = make_uint64(0, 0, 0, 0, 0, 26, 26, 10);
  135|       |
  136|       |   // If x is in one of the ranges return a mask. Otherwise we xor in at the
  137|       |   // high word which will be our invalid marker
  138|  84.4k|   const auto v_mask = swar_in_range<uint64_t>(x8, val_l, val_u) ^ 0x80000000;
  139|       |
  140|       |   // This is the offset added to x to get the value
  141|  84.4k|   const uint64_t val_v = 0xbfb904 ^ (0xFF000000 - (x << 24));
  142|       |
  143|  84.4k|   const uint8_t z = x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
  144|       |
  145|       |   // Valid base64 special characters, and some whitespace chars
  146|  84.4k|   constexpr uint64_t specials_i = make_uint64(0, '+', '/', '=', ' ', '\n', '\t', '\r');
  147|       |
  148|  84.4k|   const uint64_t specials_v = 0x3e3f8180808080 ^ (static_cast<uint64_t>(z) << 56);
  149|       |
  150|  84.4k|   const uint64_t smask = has_zero_byte(x8 ^ specials_i) ^ 0x8000000000000000;
  151|       |
  152|  84.4k|   return static_cast<uint8_t>(specials_v >> (8 * index_of_first_set_byte(smask)));
  153|  84.4k|}
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_0clEm:
  122|   168k|   const auto index_of_first_set_byte = [](uint64_t v) {
  123|   168k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  124|   168k|   };
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_1clEm:
  119|  84.4k|   const auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6414check_bad_charEhcb:
  156|  53.8k|bool Base64::check_bad_char(uint8_t bin, char input, bool ignore_ws) {
  157|  53.8k|   if(bin <= 0x3F) {
  ------------------
  |  Branch (157:7): [True: 6.86k, False: 47.0k]
  ------------------
  158|  6.86k|      return true;
  159|  47.0k|   } else if(!(bin == 0x81 || (bin == 0x80 && ignore_ws))) {
  ------------------
  |  Branch (159:16): [True: 333, False: 46.6k]
  |  Branch (159:32): [True: 46.6k, False: 51]
  |  Branch (159:47): [True: 46.6k, False: 0]
  ------------------
  160|     51|      throw Invalid_Argument(fmt("base64_decode: invalid character '{}'", format_char_for_display(input)));
  161|     51|   }
  162|  46.9k|   return false;
  163|  53.8k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base644nameEv:
   30|     25|      static std::string name() { return "base64"; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base646decodeEPhPKh:
   60|  1.71k|      static void decode(uint8_t* out_ptr, const uint8_t decode_buf[4]) {
   61|  1.71k|         out_ptr[0] = (decode_buf[0] << 2) | (decode_buf[1] >> 4);
   62|  1.71k|         out_ptr[1] = (decode_buf[1] << 4) | (decode_buf[2] >> 2);
   63|  1.71k|         out_ptr[2] = (decode_buf[2] << 6) | decode_buf[3];
   64|  1.71k|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6415bytes_to_removeEm:
   66|    101|      static size_t bytes_to_remove(size_t final_truncate) { return final_truncate; }

_ZN5Botan10hex_encodeEPcPKhmb:
   34|  1.08k|void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase) {
   35|  29.2k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (35:22): [True: 28.1k, False: 1.08k]
  ------------------
   36|  28.1k|      const uint16_t h = hex_encode_2nibble(input[i], uppercase);
   37|  28.1k|      output[2 * i] = get_byte<0>(h);
   38|  28.1k|      output[2 * i + 1] = get_byte<1>(h);
   39|  28.1k|   }
   40|  1.08k|}
_ZN5Botan10hex_encodeEPKhmb:
   42|  1.08k|std::string hex_encode(const uint8_t input[], size_t input_length, bool uppercase) {
   43|  1.08k|   const size_t output_length = mul_or_throw<size_t>(2, input_length, "Input too large to hex encode");
   44|  1.08k|   std::string output(output_length, 0);
   45|       |
   46|  1.08k|   if(input_length > 0) {
  ------------------
  |  Branch (46:7): [True: 1.08k, False: 0]
  ------------------
   47|  1.08k|      hex_encode(&output.front(), input, input_length, uppercase);
   48|  1.08k|   }
   49|       |
   50|  1.08k|   return output;
   51|  1.08k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_118hex_encode_2nibbleEhb:
   21|  28.1k|uint16_t hex_encode_2nibble(uint8_t n8, bool uppercase) {
   22|       |   // Offset for upper or lower case 'a' resp
   23|  28.1k|   const uint16_t a_mask = uppercase ? 0x0707 : 0x2727;
  ------------------
  |  Branch (23:28): [True: 28.1k, False: 0]
  ------------------
   24|       |
   25|  28.1k|   const uint16_t n = (static_cast<uint16_t>(n8 & 0xF0) << 4) | (n8 & 0x0F);
   26|       |   // n >= 10? If so add offset
   27|  28.1k|   const uint16_t diff = swar_lt<uint16_t>(0x0909, n) & a_mask;
   28|       |   // Can't overflow between bytes, so don't need explicit SWAR addition:
   29|  28.1k|   return n + 0x3030 + diff;
   30|  28.1k|}

_ZN5Botan12HashFunction6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  112|  1.08k|std::unique_ptr<HashFunction> HashFunction::create(std::string_view algo_spec, std::string_view provider) {
  113|       |#if defined(BOTAN_HAS_COMMONCRYPTO)
  114|       |   if(provider.empty() || provider == "commoncrypto") {
  115|       |      if(auto hash = make_commoncrypto_hash(algo_spec))
  116|       |         return hash;
  117|       |
  118|       |      if(!provider.empty())
  119|       |         return nullptr;
  120|       |   }
  121|       |#endif
  122|       |
  123|  1.08k|   if(provider.empty() == false && provider != "base") {
  ------------------
  |  Branch (123:7): [True: 0, False: 1.08k]
  |  Branch (123:36): [True: 0, False: 0]
  ------------------
  124|      0|      return nullptr;  // unknown provider
  125|      0|   }
  126|       |
  127|  1.08k|#if defined(BOTAN_HAS_SHA1)
  128|  1.08k|   if(algo_spec == "SHA-1") {
  ------------------
  |  Branch (128:7): [True: 541, False: 541]
  ------------------
  129|    541|      return std::make_unique<SHA_1>();
  130|    541|   }
  131|    541|#endif
  132|       |
  133|    541|#if defined(BOTAN_HAS_SHA2_32)
  134|    541|   if(algo_spec == "SHA-224") {
  ------------------
  |  Branch (134:7): [True: 0, False: 541]
  ------------------
  135|      0|      return std::make_unique<SHA_224>();
  136|      0|   }
  137|       |
  138|    541|   if(algo_spec == "SHA-256") {
  ------------------
  |  Branch (138:7): [True: 541, False: 0]
  ------------------
  139|    541|      return std::make_unique<SHA_256>();
  140|    541|   }
  141|      0|#endif
  142|       |
  143|      0|#if defined(BOTAN_HAS_SHA2_64)
  144|      0|   if(algo_spec == "SHA-384") {
  ------------------
  |  Branch (144:7): [True: 0, False: 0]
  ------------------
  145|      0|      return std::make_unique<SHA_384>();
  146|      0|   }
  147|       |
  148|      0|   if(algo_spec == "SHA-512") {
  ------------------
  |  Branch (148:7): [True: 0, False: 0]
  ------------------
  149|      0|      return std::make_unique<SHA_512>();
  150|      0|   }
  151|       |
  152|      0|   if(algo_spec == "SHA-512-256") {
  ------------------
  |  Branch (152:7): [True: 0, False: 0]
  ------------------
  153|      0|      return std::make_unique<SHA_512_256>();
  154|      0|   }
  155|      0|#endif
  156|       |
  157|      0|#if defined(BOTAN_HAS_RIPEMD_160)
  158|      0|   if(algo_spec == "RIPEMD-160") {
  ------------------
  |  Branch (158:7): [True: 0, False: 0]
  ------------------
  159|      0|      return std::make_unique<RIPEMD_160>();
  160|      0|   }
  161|      0|#endif
  162|       |
  163|      0|#if defined(BOTAN_HAS_WHIRLPOOL)
  164|      0|   if(algo_spec == "Whirlpool") {
  ------------------
  |  Branch (164:7): [True: 0, False: 0]
  ------------------
  165|      0|      return std::make_unique<Whirlpool>();
  166|      0|   }
  167|      0|#endif
  168|       |
  169|      0|#if defined(BOTAN_HAS_MD5)
  170|      0|   if(algo_spec == "MD5") {
  ------------------
  |  Branch (170:7): [True: 0, False: 0]
  ------------------
  171|      0|      return std::make_unique<MD5>();
  172|      0|   }
  173|      0|#endif
  174|       |
  175|      0|#if defined(BOTAN_HAS_MD4)
  176|      0|   if(algo_spec == "MD4") {
  ------------------
  |  Branch (176:7): [True: 0, False: 0]
  ------------------
  177|      0|      return std::make_unique<MD4>();
  178|      0|   }
  179|      0|#endif
  180|       |
  181|      0|#if defined(BOTAN_HAS_GOST_34_11)
  182|      0|   if(algo_spec == "GOST-R-34.11-94" || algo_spec == "GOST-34.11") {
  ------------------
  |  Branch (182:7): [True: 0, False: 0]
  |  Branch (182:41): [True: 0, False: 0]
  ------------------
  183|      0|      return std::make_unique<GOST_34_11>();
  184|      0|   }
  185|      0|#endif
  186|       |
  187|      0|#if defined(BOTAN_HAS_ADLER32)
  188|      0|   if(algo_spec == "Adler32") {
  ------------------
  |  Branch (188:7): [True: 0, False: 0]
  ------------------
  189|      0|      return std::make_unique<Adler32>();
  190|      0|   }
  191|      0|#endif
  192|       |
  193|      0|#if defined(BOTAN_HAS_ASCON_HASH256)
  194|      0|   if(algo_spec == "Ascon-Hash256") {
  ------------------
  |  Branch (194:7): [True: 0, False: 0]
  ------------------
  195|      0|      return std::make_unique<Ascon_Hash256>();
  196|      0|   }
  197|      0|#endif
  198|       |
  199|      0|#if defined(BOTAN_HAS_CRC24)
  200|      0|   if(algo_spec == "CRC24") {
  ------------------
  |  Branch (200:7): [True: 0, False: 0]
  ------------------
  201|      0|      return std::make_unique<CRC24>();
  202|      0|   }
  203|      0|#endif
  204|       |
  205|      0|#if defined(BOTAN_HAS_CRC32)
  206|      0|   if(algo_spec == "CRC32") {
  ------------------
  |  Branch (206:7): [True: 0, False: 0]
  ------------------
  207|      0|      return std::make_unique<CRC32>();
  208|      0|   }
  209|      0|#endif
  210|       |
  211|      0|#if defined(BOTAN_HAS_STREEBOG)
  212|      0|   if(algo_spec == "Streebog-256") {
  ------------------
  |  Branch (212:7): [True: 0, False: 0]
  ------------------
  213|      0|      return std::make_unique<Streebog>(256);
  214|      0|   }
  215|      0|   if(algo_spec == "Streebog-512") {
  ------------------
  |  Branch (215:7): [True: 0, False: 0]
  ------------------
  216|      0|      return std::make_unique<Streebog>(512);
  217|      0|   }
  218|      0|#endif
  219|       |
  220|      0|#if defined(BOTAN_HAS_SM3)
  221|      0|   if(algo_spec == "SM3") {
  ------------------
  |  Branch (221:7): [True: 0, False: 0]
  ------------------
  222|      0|      return std::make_unique<SM3>();
  223|      0|   }
  224|      0|#endif
  225|       |
  226|      0|   const AlgorithmSpec req(algo_spec);
  227|       |
  228|      0|#if defined(BOTAN_HAS_SKEIN_512)
  229|      0|   if(auto m = req.match("Skein-512({bits:int=512},{personalization:str=})")) {
  ------------------
  |  Branch (229:12): [True: 0, False: 0]
  ------------------
  230|      0|      return std::make_unique<Skein_512>(m->integer("bits"), m->str("personalization"));
  231|      0|   }
  232|      0|#endif
  233|       |
  234|      0|#if defined(BOTAN_HAS_BLAKE2B)
  235|      0|   if(auto m = req.match("BLAKE2b|Blake2b({bits:int=512})")) {
  ------------------
  |  Branch (235:12): [True: 0, False: 0]
  ------------------
  236|      0|      return std::make_unique<BLAKE2b>(m->integer("bits"));
  237|      0|   }
  238|      0|#endif
  239|       |
  240|      0|#if defined(BOTAN_HAS_BLAKE2S)
  241|      0|   if(auto m = req.match("BLAKE2s|Blake2s({bits:int=256})")) {
  ------------------
  |  Branch (241:12): [True: 0, False: 0]
  ------------------
  242|      0|      return std::make_unique<BLAKE2s>(m->integer("bits"));
  243|      0|   }
  244|      0|#endif
  245|       |
  246|      0|#if defined(BOTAN_HAS_KECCAK)
  247|      0|   if(auto m = req.match("Keccak-1600({bits:int=512})")) {
  ------------------
  |  Branch (247:12): [True: 0, False: 0]
  ------------------
  248|      0|      return std::make_unique<Keccak_1600>(m->integer("bits"));
  249|      0|   }
  250|      0|#endif
  251|       |
  252|      0|#if defined(BOTAN_HAS_SHA3)
  253|      0|   if(auto m = req.match("SHA-3({bits:int=512})")) {
  ------------------
  |  Branch (253:12): [True: 0, False: 0]
  ------------------
  254|      0|      return std::make_unique<SHA_3>(m->integer("bits"));
  255|      0|   }
  256|      0|#endif
  257|       |
  258|      0|#if defined(BOTAN_HAS_SHAKE)
  259|      0|   if(auto m = req.match("SHAKE-128({bits:int})")) {
  ------------------
  |  Branch (259:12): [True: 0, False: 0]
  ------------------
  260|      0|      return std::make_unique<SHAKE_128>(m->integer("bits"));
  261|      0|   }
  262|      0|   if(auto m = req.match("SHAKE-256({bits:int})")) {
  ------------------
  |  Branch (262:12): [True: 0, False: 0]
  ------------------
  263|      0|      return std::make_unique<SHAKE_256>(m->integer("bits"));
  264|      0|   }
  265|      0|#endif
  266|       |
  267|      0|#if defined(BOTAN_HAS_PARALLEL_HASH)
  268|      0|   if(auto m = req.match("Parallel({hash}...)")) {
  ------------------
  |  Branch (268:12): [True: 0, False: 0]
  ------------------
  269|      0|      std::vector<std::unique_ptr<HashFunction>> hashes;
  270|       |
  271|      0|      for(const auto& hash_spec : m->rest("hash")) {
  ------------------
  |  Branch (271:33): [True: 0, False: 0]
  ------------------
  272|      0|         auto h = HashFunction::create(hash_spec.to_string());
  273|      0|         if(!h) {
  ------------------
  |  Branch (273:13): [True: 0, False: 0]
  ------------------
  274|      0|            return nullptr;
  275|      0|         }
  276|      0|         hashes.push_back(std::move(h));
  277|      0|      }
  278|       |
  279|      0|      return std::make_unique<Parallel>(hashes);
  280|      0|   }
  281|      0|#endif
  282|       |
  283|      0|#if defined(BOTAN_HAS_TRUNCATED_HASH)
  284|      0|   if(auto m = req.match("Truncated({hash},{bits:int})")) {
  ------------------
  |  Branch (284:12): [True: 0, False: 0]
  ------------------
  285|      0|      auto hash = HashFunction::create(m->str("hash"));
  286|      0|      if(!hash) {
  ------------------
  |  Branch (286:10): [True: 0, False: 0]
  ------------------
  287|      0|         return nullptr;
  288|      0|      }
  289|       |
  290|      0|      return std::make_unique<Truncated_Hash>(std::move(hash), m->integer("bits"));
  291|      0|   }
  292|      0|#endif
  293|       |
  294|      0|#if defined(BOTAN_HAS_COMB4P)
  295|      0|   if(auto m = req.match("Comb4P({hash1},{hash2})")) {
  ------------------
  |  Branch (295:12): [True: 0, False: 0]
  ------------------
  296|      0|      auto h1 = HashFunction::create(m->str("hash1"));
  297|      0|      auto h2 = HashFunction::create(m->str("hash2"));
  298|       |
  299|      0|      if(h1 && h2) {
  ------------------
  |  Branch (299:10): [True: 0, False: 0]
  |  Branch (299:16): [True: 0, False: 0]
  ------------------
  300|      0|         return std::make_unique<Comb4P>(std::move(h1), std::move(h2));
  301|      0|      }
  302|      0|   }
  303|      0|#endif
  304|       |
  305|      0|   BOTAN_UNUSED(req);
  ------------------
  |  |  151|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  306|       |
  307|      0|   return nullptr;
  308|      0|}
_ZN5Botan12HashFunction15create_or_throwENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  311|    541|std::unique_ptr<HashFunction> HashFunction::create_or_throw(std::string_view algo, std::string_view provider) {
  312|    541|   if(auto hash = HashFunction::create(algo, provider)) {
  ------------------
  |  Branch (312:12): [True: 541, False: 0]
  ------------------
  313|    541|      return hash;
  314|    541|   }
  315|      0|   throw Lookup_Error("Hash", algo, provider);
  316|    541|}

_ZN5Botan5SHA_110compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   24|  4.10k|void SHA_1::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   25|  4.10k|   using namespace SHA1_F;
   26|       |
   27|  4.10k|#if defined(BOTAN_HAS_SHA1_X86_SHA_NI)
   28|  4.10k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (28:7): [True: 4.10k, False: 0]
  ------------------
   29|  4.10k|      return sha1_compress_x86(digest, input, blocks);
   30|  4.10k|   }
   31|      0|#endif
   32|       |
   33|       |#if defined(BOTAN_HAS_SHA1_ARMV8)
   34|       |   if(CPUID::has(CPUID::Feature::SHA1)) {
   35|       |      return sha1_armv8_compress_n(digest, input, blocks);
   36|       |   }
   37|       |#endif
   38|       |
   39|      0|#if defined(BOTAN_HAS_SHA1_AVX2)
   40|      0|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (40:7): [True: 0, False: 0]
  ------------------
   41|      0|      return avx2_compress_n(digest, input, blocks);
   42|      0|   }
   43|      0|#endif
   44|       |
   45|      0|#if defined(BOTAN_HAS_SHA1_SIMD_4X32)
   46|      0|   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  ------------------
  |  Branch (46:7): [True: 0, False: 0]
  ------------------
   47|      0|      return simd_compress_n(digest, input, blocks);
   48|      0|   }
   49|      0|#endif
   50|       |
   51|      0|   uint32_t A = digest[0];
   52|      0|   uint32_t B = digest[1];
   53|      0|   uint32_t C = digest[2];
   54|      0|   uint32_t D = digest[3];
   55|      0|   uint32_t E = digest[4];
   56|      0|   std::array<uint32_t, 80> W{};
   57|      0|   auto W_in = std::span{W}.first<block_bytes / sizeof(uint32_t)>();
   58|       |
   59|      0|   BufferSlicer in(input);
   60|       |
   61|      0|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (61:22): [True: 0, False: 0]
  ------------------
   62|      0|      load_be(W_in, in.take<block_bytes>());
   63|       |
   64|       |      // clang-format off
   65|       |
   66|      0|      for(size_t j = 16; j != 80; j += 8) {
  ------------------
  |  Branch (66:26): [True: 0, False: 0]
  ------------------
   67|      0|         W[j + 0] = rotl<1>(W[j - 3] ^ W[j - 8] ^ W[j - 14] ^ W[j - 16]);
   68|      0|         W[j + 1] = rotl<1>(W[j - 2] ^ W[j - 7] ^ W[j - 13] ^ W[j - 15]);
   69|      0|         W[j + 2] = rotl<1>(W[j - 1] ^ W[j - 6] ^ W[j - 12] ^ W[j - 14]);
   70|      0|         W[j + 3] = rotl<1>(W[j    ] ^ W[j - 5] ^ W[j - 11] ^ W[j - 13]);
   71|      0|         W[j + 4] = rotl<1>(W[j + 1] ^ W[j - 4] ^ W[j - 10] ^ W[j - 12]);
   72|      0|         W[j + 5] = rotl<1>(W[j + 2] ^ W[j - 3] ^ W[j -  9] ^ W[j - 11]);
   73|      0|         W[j + 6] = rotl<1>(W[j + 3] ^ W[j - 2] ^ W[j -  8] ^ W[j - 10]);
   74|      0|         W[j + 7] = rotl<1>(W[j + 4] ^ W[j - 1] ^ W[j -  7] ^ W[j -  9]);
   75|      0|      }
   76|       |
   77|       |      // clang-format on
   78|       |
   79|      0|      F1(A, B, C, D, E, W[0] + K1);
   80|      0|      F1(E, A, B, C, D, W[1] + K1);
   81|      0|      F1(D, E, A, B, C, W[2] + K1);
   82|      0|      F1(C, D, E, A, B, W[3] + K1);
   83|      0|      F1(B, C, D, E, A, W[4] + K1);
   84|      0|      F1(A, B, C, D, E, W[5] + K1);
   85|      0|      F1(E, A, B, C, D, W[6] + K1);
   86|      0|      F1(D, E, A, B, C, W[7] + K1);
   87|      0|      F1(C, D, E, A, B, W[8] + K1);
   88|      0|      F1(B, C, D, E, A, W[9] + K1);
   89|      0|      F1(A, B, C, D, E, W[10] + K1);
   90|      0|      F1(E, A, B, C, D, W[11] + K1);
   91|      0|      F1(D, E, A, B, C, W[12] + K1);
   92|      0|      F1(C, D, E, A, B, W[13] + K1);
   93|      0|      F1(B, C, D, E, A, W[14] + K1);
   94|      0|      F1(A, B, C, D, E, W[15] + K1);
   95|      0|      F1(E, A, B, C, D, W[16] + K1);
   96|      0|      F1(D, E, A, B, C, W[17] + K1);
   97|      0|      F1(C, D, E, A, B, W[18] + K1);
   98|      0|      F1(B, C, D, E, A, W[19] + K1);
   99|       |
  100|      0|      F2(A, B, C, D, E, W[20] + K2);
  101|      0|      F2(E, A, B, C, D, W[21] + K2);
  102|      0|      F2(D, E, A, B, C, W[22] + K2);
  103|      0|      F2(C, D, E, A, B, W[23] + K2);
  104|      0|      F2(B, C, D, E, A, W[24] + K2);
  105|      0|      F2(A, B, C, D, E, W[25] + K2);
  106|      0|      F2(E, A, B, C, D, W[26] + K2);
  107|      0|      F2(D, E, A, B, C, W[27] + K2);
  108|      0|      F2(C, D, E, A, B, W[28] + K2);
  109|      0|      F2(B, C, D, E, A, W[29] + K2);
  110|      0|      F2(A, B, C, D, E, W[30] + K2);
  111|      0|      F2(E, A, B, C, D, W[31] + K2);
  112|      0|      F2(D, E, A, B, C, W[32] + K2);
  113|      0|      F2(C, D, E, A, B, W[33] + K2);
  114|      0|      F2(B, C, D, E, A, W[34] + K2);
  115|      0|      F2(A, B, C, D, E, W[35] + K2);
  116|      0|      F2(E, A, B, C, D, W[36] + K2);
  117|      0|      F2(D, E, A, B, C, W[37] + K2);
  118|      0|      F2(C, D, E, A, B, W[38] + K2);
  119|      0|      F2(B, C, D, E, A, W[39] + K2);
  120|       |
  121|      0|      F3(A, B, C, D, E, W[40] + K3);
  122|      0|      F3(E, A, B, C, D, W[41] + K3);
  123|      0|      F3(D, E, A, B, C, W[42] + K3);
  124|      0|      F3(C, D, E, A, B, W[43] + K3);
  125|      0|      F3(B, C, D, E, A, W[44] + K3);
  126|      0|      F3(A, B, C, D, E, W[45] + K3);
  127|      0|      F3(E, A, B, C, D, W[46] + K3);
  128|      0|      F3(D, E, A, B, C, W[47] + K3);
  129|      0|      F3(C, D, E, A, B, W[48] + K3);
  130|      0|      F3(B, C, D, E, A, W[49] + K3);
  131|      0|      F3(A, B, C, D, E, W[50] + K3);
  132|      0|      F3(E, A, B, C, D, W[51] + K3);
  133|      0|      F3(D, E, A, B, C, W[52] + K3);
  134|      0|      F3(C, D, E, A, B, W[53] + K3);
  135|      0|      F3(B, C, D, E, A, W[54] + K3);
  136|      0|      F3(A, B, C, D, E, W[55] + K3);
  137|      0|      F3(E, A, B, C, D, W[56] + K3);
  138|      0|      F3(D, E, A, B, C, W[57] + K3);
  139|      0|      F3(C, D, E, A, B, W[58] + K3);
  140|      0|      F3(B, C, D, E, A, W[59] + K3);
  141|       |
  142|      0|      F4(A, B, C, D, E, W[60] + K4);
  143|      0|      F4(E, A, B, C, D, W[61] + K4);
  144|      0|      F4(D, E, A, B, C, W[62] + K4);
  145|      0|      F4(C, D, E, A, B, W[63] + K4);
  146|      0|      F4(B, C, D, E, A, W[64] + K4);
  147|      0|      F4(A, B, C, D, E, W[65] + K4);
  148|      0|      F4(E, A, B, C, D, W[66] + K4);
  149|      0|      F4(D, E, A, B, C, W[67] + K4);
  150|      0|      F4(C, D, E, A, B, W[68] + K4);
  151|      0|      F4(B, C, D, E, A, W[69] + K4);
  152|      0|      F4(A, B, C, D, E, W[70] + K4);
  153|      0|      F4(E, A, B, C, D, W[71] + K4);
  154|      0|      F4(D, E, A, B, C, W[72] + K4);
  155|      0|      F4(C, D, E, A, B, W[73] + K4);
  156|      0|      F4(B, C, D, E, A, W[74] + K4);
  157|      0|      F4(A, B, C, D, E, W[75] + K4);
  158|      0|      F4(E, A, B, C, D, W[76] + K4);
  159|      0|      F4(D, E, A, B, C, W[77] + K4);
  160|      0|      F4(C, D, E, A, B, W[78] + K4);
  161|      0|      F4(B, C, D, E, A, W[79] + K4);
  162|       |
  163|      0|      A = (digest[0] += A);
  164|      0|      B = (digest[1] += B);
  165|      0|      C = (digest[2] += C);
  166|      0|      D = (digest[3] += D);
  167|      0|      E = (digest[4] += E);
  168|      0|   }
  169|      0|}
_ZN5Botan5SHA_14initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  174|  2.70k|void SHA_1::init(digest_type& digest) {
  175|  2.70k|   digest.assign({0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0});
  176|  2.70k|}
_ZN5Botan5SHA_18add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  214|  2.16k|void SHA_1::add_data(std::span<const uint8_t> input) {
  215|  2.16k|   m_md.update(input);
  216|  2.16k|}
_ZN5Botan5SHA_112final_resultENSt3__14spanIhLm18446744073709551615EEE:
  218|  2.16k|void SHA_1::final_result(std::span<uint8_t> output) {
  219|  2.16k|   m_md.final(output);
  220|  2.16k|}

_ZN5Botan5SHA_117sha1_compress_x86ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   76|  4.10k|                                                 size_t blocks) {
   77|  4.10k|   const uint8_t* input = input_span.data();
   78|       |
   79|  4.10k|   SIMD_4x32 ABCD = rev_words(SIMD_4x32::load_le(&digest[0]));  // NOLINT(*-container-data-pointer)
   80|  4.10k|   SIMD_4x32 E0 = SIMD_4x32(0, 0, 0, digest[4]);
   81|       |
   82|  23.4k|   while(blocks > 0) {
  ------------------
  |  Branch (82:10): [True: 19.3k, False: 4.10k]
  ------------------
   83|       |      // Save current hash
   84|  19.3k|      const auto ABCD_SAVE = ABCD;
   85|  19.3k|      const auto E0_SAVE = E0;
   86|       |
   87|  19.3k|      auto W0 = rev_words(SIMD_4x32::load_be(input));
   88|  19.3k|      auto W1 = rev_words(SIMD_4x32::load_be(input + 16));
   89|  19.3k|      auto W2 = rev_words(SIMD_4x32::load_be(input + 32));
   90|  19.3k|      auto W3 = rev_words(SIMD_4x32::load_be(input + 48));
   91|       |
   92|  19.3k|      sha1_x86_first8<0>(ABCD, E0, W0, W1);
   93|  19.3k|      sha1_x86_rnds8<0>(ABCD, E0, W2, W3);
   94|       |
   95|  19.3k|      W0 = sha1_x86_msg1(W0, W1);
   96|  19.3k|      W1 = sha1_x86_msg1(W1, W2);
   97|  19.3k|      W0 ^= W2;
   98|       |
   99|  19.3k|      sha1_x86_next_msg(W3, W0, W1, W2);
  100|  19.3k|      sha1_x86_next_msg(W0, W1, W2, W3);
  101|  19.3k|      sha1_x86_rnds8<0, 1>(ABCD, E0, W0, W1);
  102|       |
  103|  19.3k|      sha1_x86_next_msg(W1, W2, W3, W0);
  104|  19.3k|      sha1_x86_next_msg(W2, W3, W0, W1);
  105|  19.3k|      sha1_x86_rnds8<1>(ABCD, E0, W2, W3);
  106|       |
  107|  19.3k|      sha1_x86_next_msg(W3, W0, W1, W2);
  108|  19.3k|      sha1_x86_next_msg(W0, W1, W2, W3);
  109|  19.3k|      sha1_x86_rnds8<1>(ABCD, E0, W0, W1);
  110|       |
  111|  19.3k|      sha1_x86_next_msg(W1, W2, W3, W0);
  112|  19.3k|      sha1_x86_next_msg(W2, W3, W0, W1);
  113|  19.3k|      sha1_x86_rnds8<2>(ABCD, E0, W2, W3);
  114|       |
  115|  19.3k|      sha1_x86_next_msg(W3, W0, W1, W2);
  116|  19.3k|      sha1_x86_next_msg(W0, W1, W2, W3);
  117|  19.3k|      sha1_x86_rnds8<2>(ABCD, E0, W0, W1);
  118|       |
  119|  19.3k|      sha1_x86_next_msg(W1, W2, W3, W0);
  120|  19.3k|      sha1_x86_next_msg(W2, W3, W0, W1);
  121|  19.3k|      sha1_x86_rnds8<2, 3>(ABCD, E0, W2, W3);
  122|       |
  123|  19.3k|      sha1_x86_next_msg(W3, W0, W1, W2);
  124|  19.3k|      sha1_x86_next_msg(W0, W1, W2, W3);
  125|  19.3k|      sha1_x86_rnds8<3>(ABCD, E0, W0, W1);
  126|       |
  127|  19.3k|      sha1_x86_next_msg(W1, W2, W3, W0);
  128|  19.3k|      sha1_x86_next_msg(W2, W3, W0, W1);
  129|  19.3k|      sha1_x86_rnds8<3>(ABCD, E0, W2, W3);
  130|       |
  131|  19.3k|      ABCD += ABCD_SAVE;
  132|  19.3k|      E0 = sha1_x86_nexte(E0, E0_SAVE);
  133|       |
  134|  19.3k|      input += 64;
  135|  19.3k|      blocks--;
  136|  19.3k|   }
  137|       |
  138|  4.10k|   rev_words(ABCD).store_le(&digest[0]);  // NOLINT(*-container-data-pointer)
  139|  4.10k|   digest[4] = E0.extract_word<3>();
  140|  4.10k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_19rev_wordsERKNS_9SIMD_4x32E:
   66|  85.7k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 rev_words(const SIMD_4x32& v) {
   67|       |   return SIMD_4x32(_mm_shuffle_epi32(v.raw(), 0b00011011));
   68|  85.7k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_113sha1_x86_msg1ERKNS_9SIMD_4x32ES3_:
   29|  38.7k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 sha1_x86_msg1(const SIMD_4x32& W0, const SIMD_4x32& W1) {
   30|  38.7k|   return SIMD_4x32(_mm_sha1msg1_epu32(W0.raw(), W1.raw()));
   31|  38.7k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_117sha1_x86_next_msgERKNS_9SIMD_4x32ERS1_S4_S4_:
   36|   310k|                                                             SIMD_4x32& W3) {
   37|   310k|   W3 = SIMD_4x32(_mm_sha1msg1_epu32(W3.raw(), W0.raw()));
   38|   310k|   W1 = SIMD_4x32(_mm_sha1msg2_epu32(W1.raw(), W0.raw()));
   39|   310k|   W2 ^= W0;
   40|   310k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_nexteERKNS_9SIMD_4x32ES3_:
   25|   387k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 sha1_x86_nexte(const SIMD_4x32& x, const SIMD_4x32& y) {
   26|   387k|   return SIMD_4x32(_mm_sha1nexte_epu32(x.raw(), y.raw()));
   27|   387k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_115sha1_x86_first8ILh0ELh0EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   46|  19.3k|                                                           const SIMD_4x32& W1) {
   47|  19.3k|   const auto TE = ABCD;
   48|  19.3k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), (E + W0).raw(), R1));
   49|       |
   50|  19.3k|   E = ABCD;
   51|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   52|  19.3k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh0ELh0EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  19.3k|                                                          const SIMD_4x32& W1) {
   59|  19.3k|   const auto TE = ABCD;
   60|  19.3k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  19.3k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  19.3k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh0ELh1EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  19.3k|                                                          const SIMD_4x32& W1) {
   59|  19.3k|   const auto TE = ABCD;
   60|  19.3k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  19.3k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  19.3k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh1ELh1EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  38.7k|                                                          const SIMD_4x32& W1) {
   59|  38.7k|   const auto TE = ABCD;
   60|  38.7k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  38.7k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  38.7k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh2ELh2EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  38.7k|                                                          const SIMD_4x32& W1) {
   59|  38.7k|   const auto TE = ABCD;
   60|  38.7k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  38.7k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  38.7k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh2ELh3EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  19.3k|                                                          const SIMD_4x32& W1) {
   59|  19.3k|   const auto TE = ABCD;
   60|  19.3k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  19.3k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  19.3k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh3ELh3EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  38.7k|                                                          const SIMD_4x32& W1) {
   59|  38.7k|   const auto TE = ABCD;
   60|  38.7k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  38.7k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  38.7k|}

_ZN5Botan7SHA_25615compress_digestERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   59|  4.10k|                                                             size_t blocks) {
   60|  4.10k|#if defined(BOTAN_HAS_SHA2_32_X86)
   61|  4.10k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (61:7): [True: 4.10k, False: 0]
  ------------------
   62|  4.10k|      return SHA_256::compress_digest_x86(digest, input, blocks);
   63|  4.10k|   }
   64|      0|#endif
   65|       |
   66|       |#if defined(BOTAN_HAS_SHA2_32_ARMV8)
   67|       |   if(CPUID::has(CPUID::Feature::SHA2)) {
   68|       |      return SHA_256::compress_digest_armv8(digest, input, blocks);
   69|       |   }
   70|       |#endif
   71|       |
   72|      0|#if defined(BOTAN_HAS_SHA2_32_X86_AVX2)
   73|      0|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (73:7): [True: 0, False: 0]
  ------------------
   74|      0|      return SHA_256::compress_digest_x86_avx2(digest, input, blocks);
   75|      0|   }
   76|      0|#endif
   77|       |
   78|      0|#if defined(BOTAN_HAS_SHA2_32_SIMD)
   79|      0|   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  ------------------
  |  Branch (79:7): [True: 0, False: 0]
  ------------------
   80|      0|      return SHA_256::compress_digest_x86_simd(digest, input, blocks);
   81|      0|   }
   82|      0|#endif
   83|       |
   84|      0|   uint32_t A = digest[0];
   85|      0|   uint32_t B = digest[1];
   86|      0|   uint32_t C = digest[2];
   87|      0|   uint32_t D = digest[3];
   88|      0|   uint32_t E = digest[4];
   89|      0|   uint32_t F = digest[5];
   90|      0|   uint32_t G = digest[6];
   91|      0|   uint32_t H = digest[7];
   92|       |
   93|      0|   std::array<uint32_t, 16> W{};
   94|       |
   95|      0|   BufferSlicer in(input);
   96|       |
   97|      0|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (97:22): [True: 0, False: 0]
  ------------------
   98|      0|      load_be(W, in.take<block_bytes>());
   99|       |
  100|       |      // clang-format off
  101|       |
  102|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA256_K[ 0]);
  103|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA256_K[ 1]);
  104|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA256_K[ 2]);
  105|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA256_K[ 3]);
  106|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA256_K[ 4]);
  107|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA256_K[ 5]);
  108|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA256_K[ 6]);
  109|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA256_K[ 7]);
  110|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA256_K[ 8]);
  111|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA256_K[ 9]);
  112|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA256_K[10]);
  113|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA256_K[11]);
  114|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA256_K[12]);
  115|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA256_K[13]);
  116|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA256_K[14]);
  117|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA256_K[15]);
  118|       |
  119|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA256_K[16]);
  120|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA256_K[17]);
  121|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA256_K[18]);
  122|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA256_K[19]);
  123|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA256_K[20]);
  124|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA256_K[21]);
  125|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA256_K[22]);
  126|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA256_K[23]);
  127|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA256_K[24]);
  128|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA256_K[25]);
  129|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA256_K[26]);
  130|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA256_K[27]);
  131|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA256_K[28]);
  132|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA256_K[29]);
  133|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA256_K[30]);
  134|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA256_K[31]);
  135|       |
  136|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA256_K[32]);
  137|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA256_K[33]);
  138|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA256_K[34]);
  139|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA256_K[35]);
  140|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA256_K[36]);
  141|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA256_K[37]);
  142|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA256_K[38]);
  143|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA256_K[39]);
  144|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA256_K[40]);
  145|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA256_K[41]);
  146|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA256_K[42]);
  147|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA256_K[43]);
  148|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA256_K[44]);
  149|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA256_K[45]);
  150|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA256_K[46]);
  151|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA256_K[47]);
  152|       |
  153|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], SHA256_K[48]);
  154|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], SHA256_K[49]);
  155|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], SHA256_K[50]);
  156|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], SHA256_K[51]);
  157|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], SHA256_K[52]);
  158|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], SHA256_K[53]);
  159|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], SHA256_K[54]);
  160|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], SHA256_K[55]);
  161|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], SHA256_K[56]);
  162|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], SHA256_K[57]);
  163|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], SHA256_K[58]);
  164|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], SHA256_K[59]);
  165|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], SHA256_K[60]);
  166|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], SHA256_K[61]);
  167|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], SHA256_K[62]);
  168|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], SHA256_K[63]);
  169|       |
  170|       |      // clang-format on
  171|       |
  172|      0|      A = (digest[0] += A);
  173|      0|      B = (digest[1] += B);
  174|      0|      C = (digest[2] += C);
  175|      0|      D = (digest[3] += D);
  176|      0|      E = (digest[4] += E);
  177|      0|      F = (digest[5] += F);
  178|      0|      G = (digest[6] += G);
  179|      0|      H = (digest[7] += H);
  180|      0|   }
  181|      0|}
_ZN5Botan7SHA_25610compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
  215|  4.10k|void SHA_256::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  216|  4.10k|   SHA_256::compress_digest(digest, input, blocks);
  217|  4.10k|}
_ZN5Botan7SHA_2564initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  219|  2.70k|void SHA_256::init(digest_type& digest) {
  220|  2.70k|   digest.assign({0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19});
  221|  2.70k|}
_ZN5Botan7SHA_2568add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  231|  2.16k|void SHA_256::add_data(std::span<const uint8_t> input) {
  232|  2.16k|   m_md.update(input);
  233|  2.16k|}
_ZN5Botan7SHA_25612final_resultENSt3__14spanIhLm18446744073709551615EEE:
  235|  2.16k|void SHA_256::final_result(std::span<uint8_t> output) {
  236|  2.16k|   m_md.final(output);
  237|  2.16k|}

_ZN5Botan7SHA_25619compress_digest_x86ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   59|  4.10k|                                                                                    size_t blocks) {
   60|  4.10k|   const uint8_t* input = input_span.data();
   61|       |
   62|  4.10k|   SIMD_4x32 S0 = SIMD_4x32::load_le(&digest[0]);  // NOLINT(*container-data-pointer)
   63|  4.10k|   SIMD_4x32 S1 = SIMD_4x32::load_le(&digest[4]);
   64|       |
   65|  4.10k|   sha256_permute_state(S0, S1);
   66|       |
   67|  23.4k|   while(blocks > 0) {
  ------------------
  |  Branch (67:10): [True: 19.3k, False: 4.10k]
  ------------------
   68|  19.3k|      const auto S0_SAVE = S0;
   69|  19.3k|      const auto S1_SAVE = S1;
   70|       |
   71|  19.3k|      auto W0 = SIMD_4x32::load_be(input);
   72|  19.3k|      auto W1 = SIMD_4x32::load_be(input + 16);
   73|  19.3k|      auto W2 = SIMD_4x32::load_be(input + 32);
   74|  19.3k|      auto W3 = SIMD_4x32::load_be(input + 48);
   75|       |
   76|  19.3k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&SHA256_K[0]));
   77|  19.3k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&SHA256_K[4]));
   78|  19.3k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&SHA256_K[8]));
   79|  19.3k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&SHA256_K[12]));
   80|       |
   81|  19.3k|      W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   82|  19.3k|      W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   83|       |
   84|  19.3k|      sha256_msg_exp(W2, W3, W0, W1);
   85|       |
   86|  19.3k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&SHA256_K[4 * 4]));
   87|  19.3k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&SHA256_K[4 * 5]));
   88|       |
   89|  19.3k|      sha256_msg_exp(W0, W1, W2, W3);
   90|       |
   91|  19.3k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&SHA256_K[4 * 6]));
   92|  19.3k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&SHA256_K[4 * 7]));
   93|       |
   94|  19.3k|      sha256_msg_exp(W2, W3, W0, W1);
   95|       |
   96|  19.3k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&SHA256_K[4 * 8]));
   97|  19.3k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&SHA256_K[4 * 9]));
   98|       |
   99|  19.3k|      sha256_msg_exp(W0, W1, W2, W3);
  100|       |
  101|  19.3k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&SHA256_K[4 * 10]));
  102|  19.3k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&SHA256_K[4 * 11]));
  103|       |
  104|  19.3k|      sha256_msg_exp(W2, W3, W0, W1);
  105|       |
  106|  19.3k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&SHA256_K[4 * 12]));
  107|  19.3k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&SHA256_K[4 * 13]));
  108|       |
  109|  19.3k|      sha256_msg_exp(W0, W1, W2, W3);
  110|       |
  111|  19.3k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&SHA256_K[4 * 14]));
  112|  19.3k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&SHA256_K[4 * 15]));
  113|       |
  114|       |      // Add values back to state
  115|  19.3k|      S0 += S0_SAVE;
  116|  19.3k|      S1 += S1_SAVE;
  117|       |
  118|  19.3k|      input += 64;
  119|  19.3k|      blocks--;
  120|  19.3k|   }
  121|       |
  122|  4.10k|   sha256_permute_state(S1, S0);
  123|       |
  124|  4.10k|   S0.store_le(&digest[0]);  // NOLINT(*container-data-pointer)
  125|  4.10k|   S1.store_le(&digest[4]);
  126|  4.10k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_120sha256_permute_stateERNS_9SIMD_4x32ES2_:
   44|  8.20k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_permute_state(SIMD_4x32& S0, SIMD_4x32& S1) {
   45|  8.20k|   S0 = SIMD_4x32(_mm_shuffle_epi32(S0.raw(), 0b10110001));  // CDAB
   46|  8.20k|   S1 = SIMD_4x32(_mm_shuffle_epi32(S1.raw(), 0b00011011));  // EFGH
   47|       |
   48|  8.20k|   const auto T = SIMD_4x32::alignr8(S0, S1);                  // ABEF
   49|       |   S1 = SIMD_4x32(_mm_blend_epi16(S1.raw(), S0.raw(), 0xF0));  // CDGH
   50|  8.20k|   S0 = T;
   51|  8.20k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_112sha256_rnds4ERNS_9SIMD_4x32ES2_RKS1_S4_:
   28|   310k|                                                        const SIMD_4x32& k) {
   29|   310k|   const auto mk = msg + k;
   30|   310k|   S1 = SIMD_4x32(_mm_sha256rnds2_epu32(S1.raw(), S0.raw(), mk.raw()));
   31|   310k|   S0 = SIMD_4x32(_mm_sha256rnds2_epu32(S0.raw(), S1.raw(), mk.shift_elems_right<2>().raw()));
   32|   310k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha256_msg_expERNS_9SIMD_4x32ES2_S2_S2_:
   34|   116k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_msg_exp(SIMD_4x32& W0, SIMD_4x32& W1, SIMD_4x32& W2, SIMD_4x32& W3) {
   35|   116k|   W2 += SIMD_4x32::alignr4(W1, W0);
   36|   116k|   W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   37|   116k|   W2 = SIMD_4x32(_mm_sha256msg2_epu32(W2.raw(), W1.raw()));
   38|       |
   39|   116k|   W3 += SIMD_4x32::alignr4(W2, W1);
   40|   116k|   W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   41|   116k|   W3 = SIMD_4x32(_mm_sha256msg2_epu32(W3.raw(), W2.raw()));
   42|   116k|}

_ZNK5Botan6BigInt7byte_atEm:
  116|  21.1k|uint8_t BigInt::byte_at(size_t n) const {
  117|  21.1k|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  118|  21.1k|}
_ZNK5Botan6BigInt8cmp_wordEm:
  120|  4.20k|int32_t BigInt::cmp_word(word other) const {
  121|  4.20k|   if(signum() < 0) {
  ------------------
  |  Branch (121:7): [True: 1.14k, False: 3.06k]
  ------------------
  122|  1.14k|      return -1;  // other is positive ...
  123|  1.14k|   }
  124|       |
  125|  3.06k|   const size_t sw = this->sig_words();
  126|  3.06k|   if(sw > 1) {
  ------------------
  |  Branch (126:7): [True: 1.67k, False: 1.38k]
  ------------------
  127|  1.67k|      return 1;  // must be larger since other is just one word ...
  128|  1.67k|   }
  129|       |
  130|  1.38k|   return bigint_cmp(this->_data(), sw, &other, 1);
  131|  3.06k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  189|  10.4k|void BigInt::Data::set_to_zero() {
  190|  10.4k|   m_reg.resize(m_reg.capacity());
  191|  10.4k|   clear_mem(m_reg.data(), m_reg.size());
  192|  10.4k|   m_sig_words = 0;
  193|  10.4k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  213|  10.4k|size_t BigInt::Data::calc_sig_words() const {
  214|  10.4k|   const size_t sz = m_reg.size();
  215|  10.4k|   size_t sig = sz;
  216|       |
  217|  10.4k|   word sub = 1;
  218|       |
  219|  97.9k|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (219:22): [True: 87.5k, False: 10.4k]
  ------------------
  220|  87.5k|      const word w = m_reg[sz - i - 1];
  221|  87.5k|      sub &= ct_is_zero(w);
  222|  87.5k|      sig -= sub;
  223|  87.5k|   }
  224|       |
  225|       |   /*
  226|       |   * This depends on the data so is poisoned, but unpoison it here as
  227|       |   * later conditionals are made on the size.
  228|       |   */
  229|  10.4k|   CT::unpoison(sig);
  230|       |
  231|  10.4k|   return sig;
  232|  10.4k|}
_ZNK5Botan6BigInt5bytesEv:
  292|  10.1k|size_t BigInt::bytes() const {
  293|  10.1k|   return ceil_tobytes(bits());
  294|  10.1k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  296|  14.8k|size_t BigInt::top_bits_free() const {
  297|  14.8k|   const size_t words = sig_words();
  298|       |
  299|  14.8k|   const word top_word = word_at(words - 1);
  300|  14.8k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  301|  14.8k|   CT::unpoison(bits_used);
  302|  14.8k|   return WordInfo<word>::bits - bits_used;
  303|  14.8k|}
_ZNK5Botan6BigInt4bitsEv:
  305|  15.3k|size_t BigInt::bits() const {
  306|  15.3k|   const size_t words = sig_words();
  307|       |
  308|  15.3k|   if(words == 0) {
  ------------------
  |  Branch (308:7): [True: 508, False: 14.8k]
  ------------------
  309|    508|      return 0;
  310|    508|   }
  311|       |
  312|  14.8k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  313|  14.8k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  314|       |
  315|  14.8k|   return full_words + top_bits;
  316|  15.3k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  393|  5.05k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  394|  5.05k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  5.05k|   do {                                                          \
  |  |   36|  5.05k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.05k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.05k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.05k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.05k]
  |  |  ------------------
  ------------------
  395|       |
  396|  5.05k|   this->binary_encode(output.data(), output.size());
  397|  5.05k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  402|  5.05k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  403|  5.05k|   const size_t full_words = len / sizeof(word);
  404|  5.05k|   const size_t extra_bytes = len % sizeof(word);
  405|       |
  406|  15.8k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (406:22): [True: 10.7k, False: 5.05k]
  ------------------
  407|  10.7k|      const word w = word_at(i);
  408|  10.7k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  409|  10.7k|   }
  410|       |
  411|  5.05k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (411:7): [True: 4.18k, False: 873]
  ------------------
  412|  4.18k|      const word w = word_at(full_words);
  413|       |
  414|  13.0k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (414:25): [True: 8.81k, False: 4.18k]
  ------------------
  415|  8.81k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  416|  8.81k|      }
  417|  4.18k|   }
  418|  5.05k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  423|  10.4k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  424|  10.4k|   clear();
  425|       |
  426|  10.4k|   const size_t length = bytes.size();
  427|  10.4k|   const size_t full_words = length / sizeof(word);
  428|  10.4k|   const size_t extra_bytes = length % sizeof(word);
  429|       |
  430|  10.4k|   const size_t total_words = full_words + (extra_bytes > 0 ? 1 : 0);
  ------------------
  |  Branch (430:45): [True: 8.18k, False: 2.24k]
  ------------------
  431|       |
  432|  10.4k|   secure_vector<word> reg(8 * ceil_division<size_t>(total_words, 8));
  433|       |
  434|  21.2k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 10.8k, False: 10.4k]
  ------------------
  435|  10.8k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|  10.8k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|  10.8k|   }
  438|       |
  439|  10.4k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 8.18k, False: 2.24k]
  ------------------
  440|  8.18k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   84|  8.18k|   do {                                                                     \
  |  |   85|  8.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|  8.18k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 8.18k]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|  8.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 8.18k]
  |  |  ------------------
  ------------------
  441|  8.18k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  8.18k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  8.18k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  8.18k|   }
  445|       |
  446|  10.4k|   m_data.swap(reg);
  447|  10.4k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  20.0k|void BigInt::_const_time_unpoison() const {
  560|  20.0k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  20.0k|}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   64|    324|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   65|    324|   const size_t RANDOM_CHAR_LIMIT = 8;
   66|       |
   67|    324|   label.clear();
   68|       |
   69|    324|   const std::string PEM_HEADER1 = "-----BEGIN ";
   70|    324|   const std::string PEM_HEADER2 = "-----";
   71|    324|   size_t position = 0;
   72|       |
   73|  33.2k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (73:10): [True: 32.9k, False: 276]
  ------------------
   74|  32.9k|      auto b = source.read_byte();
   75|       |
   76|  32.9k|      if(!b) {
  ------------------
  |  Branch (76:10): [True: 47, False: 32.8k]
  ------------------
   77|     47|         throw Decoding_Error("PEM: No PEM header found");
   78|     47|      }
   79|  32.8k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (79:10): [True: 3.32k, False: 29.5k]
  ------------------
   80|  3.32k|         ++position;
   81|  29.5k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (81:17): [True: 1, False: 29.5k]
  ------------------
   82|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   83|  29.5k|      } else {
   84|  29.5k|         position = 0;
   85|  29.5k|      }
   86|  32.8k|   }
   87|    276|   position = 0;
   88|  4.11k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (88:10): [True: 3.87k, False: 235]
  ------------------
   89|  3.87k|      auto b = source.read_byte();
   90|       |
   91|  3.87k|      if(!b) {
  ------------------
  |  Branch (91:10): [True: 38, False: 3.84k]
  ------------------
   92|     38|         throw Decoding_Error("PEM: No PEM header found");
   93|     38|      }
   94|  3.84k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (94:10): [True: 1.18k, False: 2.65k]
  ------------------
   95|  1.18k|         ++position;
   96|  2.65k|      } else if(position > 0) {
  ------------------
  |  Branch (96:17): [True: 2, False: 2.64k]
  ------------------
   97|      2|         throw Decoding_Error("PEM: Malformed PEM header");
   98|      2|      }
   99|       |
  100|  3.83k|      if(position == 0) {
  ------------------
  |  Branch (100:10): [True: 2.64k, False: 1.18k]
  ------------------
  101|  2.64k|         if(label.size() >= 128) {
  ------------------
  |  Branch (101:13): [True: 1, False: 2.64k]
  ------------------
  102|      1|            throw Decoding_Error("PEM: Label too long");
  103|      1|         }
  104|  2.64k|         label += static_cast<char>(*b);
  105|  2.64k|      }
  106|  3.83k|   }
  107|       |
  108|    235|   std::vector<char> b64;
  109|       |
  110|    235|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  111|    235|   position = 0;
  112|  98.8k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (112:10): [True: 98.6k, False: 161]
  ------------------
  113|  98.6k|      auto b = source.read_byte();
  114|       |
  115|  98.6k|      if(!b) {
  ------------------
  |  Branch (115:10): [True: 67, False: 98.6k]
  ------------------
  116|     67|         throw Decoding_Error("PEM: No PEM trailer found");
  117|     67|      }
  118|  98.6k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (118:10): [True: 3.11k, False: 95.5k]
  ------------------
  119|  3.11k|         ++position;
  120|  95.5k|      } else if(position > 0) {
  ------------------
  |  Branch (120:17): [True: 7, False: 95.5k]
  ------------------
  121|      7|         throw Decoding_Error("PEM: Malformed PEM trailer");
  122|      7|      }
  123|       |
  124|  98.6k|      if(position == 0) {
  ------------------
  |  Branch (124:10): [True: 95.5k, False: 3.11k]
  ------------------
  125|  95.5k|         b64.push_back(*b);
  126|  95.5k|      }
  127|  98.6k|   }
  128|       |
  129|    161|   return base64_decode(b64.data(), b64.size());
  130|    235|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  146|  5.15k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  147|  5.15k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  148|       |
  149|  5.15k|   std::array<uint8_t, 4096> stack_buf{};
  150|  5.15k|   std::vector<uint8_t> heap_buf;
  151|  5.15k|   uint8_t* search_buf = stack_buf.data();
  152|  5.15k|   if(search_range > stack_buf.size()) {
  ------------------
  |  Branch (152:7): [True: 0, False: 5.15k]
  ------------------
  153|      0|      heap_buf.resize(search_range);
  154|      0|      search_buf = heap_buf.data();
  155|      0|   }
  156|       |
  157|  5.15k|   const size_t got = source.peek(search_buf, search_range, 0);
  158|       |
  159|  5.15k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (159:7): [True: 453, False: 4.69k]
  ------------------
  160|    453|      return false;
  161|    453|   }
  162|       |
  163|  4.69k|   return std::search(search_buf, search_buf + got, PEM_HEADER.begin(), PEM_HEADER.end()) != search_buf + got;
  164|  5.15k|}

_ZN5Botan22format_hex_fingerprintENSt3__14spanIKhLm18446744073709551615EEE:
   47|  1.08k|std::string format_hex_fingerprint(std::span<const uint8_t> bits) {
   48|  1.08k|   const std::string hex = hex_encode(bits);
   49|       |
   50|  1.08k|   std::string fprint;
   51|  1.08k|   fprint.reserve(3 * bits.size());
   52|       |
   53|  29.2k|   for(size_t i = 0; i != hex.size(); i += 2) {
  ------------------
  |  Branch (53:22): [True: 28.1k, False: 1.08k]
  ------------------
   54|  28.1k|      if(i != 0) {
  ------------------
  |  Branch (54:10): [True: 27.0k, False: 1.08k]
  ------------------
   55|  27.0k|         fprint.push_back(':');
   56|  27.0k|      }
   57|       |
   58|  28.1k|      fprint.push_back(hex[i]);
   59|  28.1k|      fprint.push_back(hex[i + 1]);
   60|  28.1k|   }
   61|       |
   62|  1.08k|   return fprint;
   63|  1.08k|}

_ZN5Botan15allocate_memoryEmm:
   21|  57.5k|BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size) {
   22|  57.5k|   if(elems == 0 || elem_size == 0) {
  ------------------
  |  Branch (22:7): [True: 0, False: 57.5k]
  |  Branch (22:21): [True: 0, False: 57.5k]
  ------------------
   23|      0|      return nullptr;
   24|      0|   }
   25|       |
   26|       |   // Some calloc implementations do not check for overflow (?!?)
   27|  57.5k|   if(!checked_mul(elems, elem_size).has_value()) {
  ------------------
  |  Branch (27:7): [True: 0, False: 57.5k]
  ------------------
   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|  57.5k|   void* ptr = std::calloc(elems, elem_size);  // NOLINT(*-no-malloc,*-owning-memory)
   43|  57.5k|#endif
   44|  57.5k|   if(ptr == nullptr) {
  ------------------
  |  Branch (44:7): [True: 0, False: 57.5k]
  ------------------
   45|      0|      [[unlikely]] throw std::bad_alloc();
   46|      0|   }
   47|  57.5k|   return ptr;
   48|  57.5k|}
_ZN5Botan17deallocate_memoryEPvmm:
   50|  57.5k|void deallocate_memory(void* p, size_t elems, size_t elem_size) {
   51|  57.5k|   if(p == nullptr) {
  ------------------
  |  Branch (51:7): [True: 0, False: 57.5k]
  ------------------
   52|      0|      [[unlikely]] return;
   53|      0|   }
   54|       |
   55|  57.5k|   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|  57.5k|   std::free(p);  // NOLINT(*-no-malloc,*-owning-memory)
   64|  57.5k|}

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

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

_ZN5Botan5CPUID10CPUID_DataC2Ev:
   80|      1|CPUID::CPUID_Data::CPUID_Data() {
   81|       |   // NOLINTBEGIN(*-prefer-member-initializer)
   82|      1|#if defined(BOTAN_HAS_CPUID_DETECTION)
   83|      1|   m_processor_features = detect_cpu_features(~cleared_cpuid_bits());
   84|       |#else
   85|       |   m_processor_features = 0;
   86|       |#endif
   87|       |   // NOLINTEND(*-prefer-member-initializer)
   88|      1|}
cpuid.cpp:_ZN5Botan12_GLOBAL__N_118cleared_cpuid_bitsEv:
   59|      1|uint32_t cleared_cpuid_bits() {
   60|      1|   uint32_t cleared = 0;
   61|       |
   62|      1|   #if defined(BOTAN_HAS_OS_UTILS)
   63|      1|   std::string clear_cpuid_env;
   64|      1|   if(OS::read_env_variable(clear_cpuid_env, "BOTAN_CLEAR_CPUID")) {
  ------------------
  |  Branch (64:7): [True: 0, False: 1]
  ------------------
   65|      0|      for(const auto& cpuid : split_on(clear_cpuid_env, ',')) {
  ------------------
  |  Branch (65:29): [True: 0, False: 0]
  ------------------
   66|      0|         if(auto bit = CPUID::bit_from_string(cpuid)) {
  ------------------
  |  Branch (66:18): [True: 0, False: 0]
  ------------------
   67|      0|            cleared |= bit->as_u32();
   68|      0|         }
   69|      0|      }
   70|      0|   }
   71|      1|   #endif
   72|       |
   73|      1|   return cleared;
   74|      1|}

_ZN5Botan5CPUID10CPUID_Data19detect_cpu_featuresEj:
   62|      1|uint32_t CPUID::CPUID_Data::detect_cpu_features(uint32_t allowed) {
   63|      1|   enum class x86_CPUID_1_bits : uint64_t {
   64|      1|      RDTSC = (1ULL << 4),
   65|      1|      SSE2 = (1ULL << 26),
   66|      1|      CLMUL = (1ULL << 33),
   67|      1|      SSSE3 = (1ULL << 41),
   68|      1|      SSE41 = (1ULL << 51),
   69|      1|      POPCNT = (1ULL << 55),
   70|      1|      AESNI = (1ULL << 57),
   71|       |      // AVX + OSXSAVE
   72|      1|      OSXSAVE = (1ULL << 59) | (1ULL << 60),
   73|      1|      RDRAND = (1ULL << 62)
   74|      1|   };
   75|       |
   76|      1|   enum class x86_CPUID_7_bits : uint64_t {
   77|      1|      BMI1 = (1ULL << 3),
   78|      1|      AVX2 = (1ULL << 5),
   79|      1|      BMI2 = (1ULL << 8),
   80|      1|      BMI_1_AND_2 = BMI1 | BMI2,
   81|      1|      AVX512_F = (1ULL << 16),
   82|      1|      AVX512_DQ = (1ULL << 17),
   83|      1|      RDSEED = (1ULL << 18),
   84|      1|      ADX = (1ULL << 19),
   85|      1|      AVX512_IFMA = (1ULL << 21),
   86|      1|      SHA = (1ULL << 29),
   87|      1|      AVX512_BW = (1ULL << 30),
   88|      1|      AVX512_VL = (1ULL << 31),
   89|      1|      AVX512_VBMI = (1ULL << 33),
   90|      1|      AVX512_VBMI2 = (1ULL << 38),
   91|      1|      GFNI = (1ULL << 40),
   92|      1|      AVX512_VAES = (1ULL << 41),
   93|      1|      AVX512_VCLMUL = (1ULL << 42),
   94|      1|      AVX512_VBITALG = (1ULL << 44),
   95|       |
   96|       |      /*
   97|       |      We only enable AVX512 support if all of the below flags are available
   98|       |
   99|       |      This is more than we strictly need for most uses, however it also has
  100|       |      the effect of preventing execution of AVX512 codepaths on cores that
  101|       |      have serious downclocking problems when AVX512 code executes,
  102|       |      especially Intel Skylake.
  103|       |
  104|       |      VBMI2/VBITALG are the key flags here as they restrict us to Intel Ice
  105|       |      Lake/Rocket Lake, or AMD Zen4, all of which do not have penalties for
  106|       |      executing AVX512.
  107|       |
  108|       |      There is nothing stopping some future processor from supporting the
  109|       |      above flags and having AVX512 penalties, but maybe you should not have
  110|       |      bought such a processor.
  111|       |      */
  112|      1|      AVX512_PROFILE =
  113|      1|         AVX512_F | AVX512_DQ | AVX512_IFMA | AVX512_BW | AVX512_VL | AVX512_VBMI | AVX512_VBMI2 | AVX512_VBITALG,
  114|      1|   };
  115|       |
  116|       |   // NOLINTNEXTLINE(performance-enum-size)
  117|      1|   enum class x86_CPUID_7_1_bits : uint64_t {
  118|      1|      SHA512 = (1 << 0),
  119|      1|      SM3 = (1 << 1),
  120|      1|      SM4 = (1 << 2),
  121|      1|   };
  122|       |
  123|      1|   uint32_t feat = 0;
  124|      1|   uint32_t cpuid[4] = {0};
  125|      1|   bool has_sse41 = false;
  126|      1|   bool has_os_ymm_support = false;
  127|      1|   bool has_os_zmm_support = false;
  128|       |
  129|       |   // CPUID 0: vendor identification, max sublevel
  130|      1|   invoke_cpuid(0, cpuid);
  131|       |
  132|      1|   const uint32_t max_supported_sublevel = cpuid[0];
  133|       |
  134|      1|   if(max_supported_sublevel >= 1) {
  ------------------
  |  Branch (134:7): [True: 1, False: 0]
  ------------------
  135|       |      // CPUID 1: feature bits
  136|      1|      invoke_cpuid(1, cpuid);
  137|      1|      const uint64_t flags0 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[3];
  138|       |
  139|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDTSC, CPUFeature::Bit::RDTSC, allowed);
  140|       |
  141|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDRAND, CPUFeature::Bit::RDRAND, allowed);
  142|       |
  143|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::POPCNT, CPUFeature::Bit::POPCNT, allowed);
  144|       |
  145|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::SSE2, CPUFeature::Bit::SSE2, allowed);
  146|       |
  147|      1|      if(is_set(feat, CPUFeature::Bit::SSE2)) {
  ------------------
  |  Branch (147:10): [True: 1, False: 0]
  ------------------
  148|      1|         feat |= if_set(flags0, x86_CPUID_1_bits::SSSE3, CPUFeature::Bit::SSSE3, allowed);
  149|       |
  150|      1|         if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (150:13): [True: 1, False: 0]
  ------------------
  151|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::CLMUL, CPUFeature::Bit::CLMUL, allowed);
  152|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::AESNI, CPUFeature::Bit::AESNI, allowed);
  153|       |
  154|       |            // SSE4.1 is not tracked as a feature, but is required by the SHA-NI code
  155|      1|            const uint64_t sse41 = static_cast<uint64_t>(x86_CPUID_1_bits::SSE41);
  156|      1|            has_sse41 = (flags0 & sse41) == sse41;
  157|      1|         }
  158|       |
  159|      1|         const uint64_t osxsave64 = static_cast<uint64_t>(x86_CPUID_1_bits::OSXSAVE);
  160|      1|         if((flags0 & osxsave64) == osxsave64) {
  ------------------
  |  Branch (160:13): [True: 1, False: 0]
  ------------------
  161|      1|            const uint64_t xcr_flags = xgetbv();
  162|      1|            if((xcr_flags & 0x6) == 0x6) {
  ------------------
  |  Branch (162:16): [True: 1, False: 0]
  ------------------
  163|      1|               has_os_ymm_support = true;
  164|      1|               has_os_zmm_support = (xcr_flags & 0xE0) == 0xE0;
  165|      1|            }
  166|      1|         }
  167|      1|      }
  168|      1|   }
  169|       |
  170|      1|   if(max_supported_sublevel >= 7) {
  ------------------
  |  Branch (170:7): [True: 1, False: 0]
  ------------------
  171|      1|      clear_mem(cpuid, 4);
  172|      1|      invoke_cpuid_sublevel(7, 0, cpuid);
  173|       |
  174|      1|      const uint64_t flags7 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[1];
  175|       |
  176|      1|      clear_mem(cpuid, 4);
  177|      1|      invoke_cpuid_sublevel(7, 1, cpuid);
  178|      1|      const uint32_t flags7_1 = cpuid[0];
  179|       |
  180|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::RDSEED, CPUFeature::Bit::RDSEED, allowed);
  181|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::ADX, CPUFeature::Bit::ADX, allowed);
  182|       |
  183|       |      /*
  184|       |      We only set the BMI bit if both BMI1 and BMI2 are supported, since
  185|       |      typically we want to use both extensions in the same code.
  186|       |      */
  187|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::BMI_1_AND_2, CPUFeature::Bit::BMI, allowed);
  188|       |
  189|      1|      if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (189:10): [True: 1, False: 0]
  ------------------
  190|       |         // The SHA-NI code uses SSE4.1 instructions in addition to SSSE3
  191|      1|         if(has_sse41) {
  ------------------
  |  Branch (191:13): [True: 1, False: 0]
  ------------------
  192|      1|            feat |= if_set(flags7, x86_CPUID_7_bits::SHA, CPUFeature::Bit::SHA, allowed);
  193|      1|         }
  194|       |
  195|       |         // We only consider AVX2 if SSSE3 is supported
  196|      1|         if(has_os_ymm_support) {
  ------------------
  |  Branch (196:13): [True: 1, False: 0]
  ------------------
  197|      1|            feat |= if_set(flags7, x86_CPUID_7_bits::AVX2, CPUFeature::Bit::AVX2, allowed);
  198|       |
  199|      1|            if(is_set(feat, CPUFeature::Bit::AVX2)) {
  ------------------
  |  Branch (199:16): [True: 1, False: 0]
  ------------------
  200|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::GFNI, CPUFeature::Bit::GFNI, allowed);
  201|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX2_AES, allowed);
  202|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SHA512, CPUFeature::Bit::SHA512, allowed);
  203|       |               // The SM3/SM4 instructions are VEX encoded and the code using them also uses AVX2
  204|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM3, CPUFeature::Bit::SM3, allowed);
  205|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM4, CPUFeature::Bit::SM4, allowed);
  206|       |
  207|       |               // The VPCLMULQDQ code also uses the legacy 128-bit PCLMULQDQ instruction
  208|      1|               if(is_set(feat, CPUFeature::Bit::CLMUL)) {
  ------------------
  |  Branch (208:19): [True: 1, False: 0]
  ------------------
  209|      1|                  feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX2_CLMUL, allowed);
  210|      1|               }
  211|       |
  212|       |               // Likewise we only consider AVX-512 if AVX2 is supported
  213|      1|               if(has_os_zmm_support) {
  ------------------
  |  Branch (213:19): [True: 0, False: 1]
  ------------------
  214|      0|                  feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_PROFILE, CPUFeature::Bit::AVX512, allowed);
  215|       |
  216|      0|                  if(is_set(feat, CPUFeature::Bit::AVX512)) {
  ------------------
  |  Branch (216:22): [True: 0, False: 0]
  ------------------
  217|      0|                     feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX512_AES, allowed);
  218|      0|                     if(is_set(feat, CPUFeature::Bit::CLMUL)) {
  ------------------
  |  Branch (218:25): [True: 0, False: 0]
  ------------------
  219|      0|                        feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX512_CLMUL, allowed);
  220|      0|                     }
  221|      0|                  }
  222|      0|               }
  223|      1|            }
  224|      1|         }
  225|      1|      }
  226|      1|   }
  227|       |
  228|       |/*
  229|       |   * If we don't have access to CPUID, we can still safely assume that
  230|       |   * any x86-64 processor has SSE2 and RDTSC
  231|       |   */
  232|      1|#if defined(BOTAN_TARGET_ARCH_IS_X86_64)
  233|      1|   if(feat == 0) {
  ------------------
  |  Branch (233:7): [True: 0, False: 1]
  ------------------
  234|      0|      feat |= CPUFeature::Bit::SSE2 & allowed;
  235|      0|      feat |= CPUFeature::Bit::RDTSC & allowed;
  236|      0|   }
  237|      1|#endif
  238|       |
  239|      1|   return feat;
  240|      1|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_112invoke_cpuidEjPj:
   24|      2|void invoke_cpuid(uint32_t type, uint32_t out[4]) {
   25|      2|   clear_mem(out, 4);
   26|       |
   27|      2|#if defined(BOTAN_USE_GCC_INLINE_ASM)
   28|       |   // NOLINTNEXTLINE(*-no-assembler)
   29|      2|   asm volatile("cpuid\n\t" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "0"(type));
   30|       |
   31|       |#elif defined(BOTAN_BUILD_COMPILER_IS_MSVC)
   32|       |   __cpuid((int*)out, type);
   33|       |
   34|       |#else
   35|       |   BOTAN_UNUSED(type);
   36|       |   #warning "No way of calling x86 cpuid instruction for this compiler"
   37|       |#endif
   38|      2|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_16xgetbvEv:
   56|      1|BOTAN_FUNC_ISA("xsave") uint64_t xgetbv() {
   57|       |   return _xgetbv(0);
   58|      1|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_121invoke_cpuid_sublevelEjjPj:
   40|      2|void invoke_cpuid_sublevel(uint32_t type, uint32_t level, uint32_t out[4]) {
   41|      2|   clear_mem(out, 4);
   42|       |
   43|      2|#if defined(BOTAN_USE_GCC_INLINE_ASM)
   44|       |   // NOLINTNEXTLINE(*-no-assembler)
   45|      2|   asm volatile("cpuid\n\t" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "0"(type), "2"(level));
   46|       |
   47|       |#elif defined(BOTAN_BUILD_COMPILER_IS_MSVC)
   48|       |   __cpuidex((int*)out, type, level);
   49|       |
   50|       |#else
   51|       |   BOTAN_UNUSED(type, level);
   52|       |   #warning "No way of calling x86 cpuid instruction for this compiler"
   53|       |#endif
   54|      2|}

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

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

_ZNK5Botan12EmailAddress9to_stringEv:
   73|     17|std::string EmailAddress::to_string() const {
   74|     17|   return fmt("{}@{}", m_local_part, m_domain.to_string());
   75|     17|}
_ZN5Botan12EmailAddress11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   78|    869|std::optional<EmailAddress> EmailAddress::from_string(std::string_view addr) {
   79|    869|   auto parsed = parse_email_address(addr);
   80|       |
   81|    869|   if(parsed) {
  ------------------
  |  Branch (81:7): [True: 633, False: 236]
  ------------------
   82|       |      // Verify the local-part is all ASCII
   83|  5.32k|      for(const char c : parsed->first) {
  ------------------
  |  Branch (83:24): [True: 5.32k, False: 621]
  ------------------
   84|  5.32k|         if(static_cast<uint8_t>(c) >= 0x80) {
  ------------------
  |  Branch (84:13): [True: 12, False: 5.31k]
  ------------------
   85|     12|            return {};
   86|     12|         }
   87|  5.32k|      }
   88|    621|      return EmailAddress(std::move(parsed->first), std::move(parsed->second));
   89|    633|   } else {
   90|    236|      return {};
   91|    236|   }
   92|    869|}
email.cpp:_ZN5Botan12_GLOBAL__N_119parse_email_addressENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   16|    869|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|    869|   constexpr auto is_atext_or_dot = CharacterValidityTable::alpha_numeric_plus(".!#$%&'*+-/=?^_`{|}~");
   24|       |
   25|    869|   if(addr.empty() || !is_valid_utf8(addr)) {
  ------------------
  |  Branch (25:7): [True: 0, False: 869]
  |  Branch (25:23): [True: 75, False: 794]
  ------------------
   26|     75|      return {};
   27|     75|   }
   28|       |
   29|    794|   const auto at = addr.find('@');
   30|       |
   31|       |   // Must be one (and only one) @ sign
   32|    794|   if(at == std::string_view::npos || addr.find('@', at + 1) != std::string_view::npos) {
  ------------------
  |  Branch (32:7): [True: 20, False: 774]
  |  Branch (32:39): [True: 13, False: 761]
  ------------------
   33|     33|      return {};
   34|     33|   }
   35|       |
   36|       |   // Split at the @ sign and verify both halves are non-empty
   37|    761|   const std::string_view local = addr.substr(0, at);
   38|    761|   const std::string_view domain = addr.substr(at + 1);
   39|       |
   40|    761|   if(local.empty() || domain.empty()) {
  ------------------
  |  Branch (40:7): [True: 3, False: 758]
  |  Branch (40:24): [True: 11, False: 747]
  ------------------
   41|     14|      return {};
   42|     14|   }
   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|    747|   if(local.starts_with('.') || local.ends_with('.') || local.find("..") != std::string_view::npos) {
  ------------------
  |  Branch (51:7): [True: 7, False: 740]
  |  Branch (51:33): [True: 6, False: 734]
  |  Branch (51:57): [True: 7, False: 727]
  ------------------
   52|     20|      return {};
   53|     20|   }
   54|       |
   55|       |   // RFC 5322 dot-atom. This intentionally omits support for quoting
   56|  6.03k|   for(const char c : local) {
  ------------------
  |  Branch (56:21): [True: 6.03k, False: 692]
  ------------------
   57|       |      // Here we accept high bit for UTF-8 for SmtpUtf8Mailbox
   58|  6.03k|      if(!is_atext_or_dot(c) && static_cast<uint8_t>(c) < 0x80) {
  ------------------
  |  Branch (58:10): [True: 92, False: 5.94k]
  |  Branch (58:33): [True: 35, False: 57]
  ------------------
   59|     35|         return {};
   60|     35|      }
   61|  6.03k|   }
   62|       |
   63|    692|   auto parsed_domain = DNSName::from_string(domain);
   64|    692|   if(!parsed_domain.has_value()) {
  ------------------
  |  Branch (64:7): [True: 59, False: 633]
  ------------------
   65|     59|      return {};
   66|     59|   }
   67|       |
   68|    633|   return std::make_pair(std::string(local), parsed_domain.value());
   69|    692|}

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  12.4k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  4.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|      1|Exception::Exception(const char* prefix, std::string_view msg) : m_msg(fmt("{} {}", prefix, msg)) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|    319|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Encoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  123|      1|Encoding_Error::Encoding_Error(std::string_view name) : Exception("Encoding error:", name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  12.1k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  4.85k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan11IPv4AddressC2ENSt3__14spanIKhLm4EEE:
   89|     56|IPv4Address::IPv4Address(std::span<const uint8_t, 4> ip) : m_ip(load_be<uint32_t>(ip)) {}
_ZN5Botan11IPv4Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   92|  4.47k|std::optional<IPv4Address> IPv4Address::from_string(std::string_view str) {
   93|  4.47k|   if(auto ipv4 = string_to_ipv4(str)) {
  ------------------
  |  Branch (93:12): [True: 9, False: 4.46k]
  ------------------
   94|      9|      return IPv4Address(*ipv4);
   95|  4.46k|   } else {
   96|  4.46k|      return {};
   97|  4.46k|   }
   98|  4.47k|}
_ZN5Botan11IPv4Address7netmaskEm:
  101|     30|IPv4Address IPv4Address::netmask(size_t bits) {
  102|     30|   BOTAN_ARG_CHECK(bits <= 32, "IPv4 netmask prefix length must be at most 32");
  ------------------
  |  |   35|     30|   do {                                                          \
  |  |   36|     30|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     30|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 30]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     30|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 30]
  |  |  ------------------
  ------------------
  103|     30|   if(bits == 0) {
  ------------------
  |  Branch (103:7): [True: 5, False: 25]
  ------------------
  104|      5|      return IPv4Address(0);
  105|      5|   }
  106|     25|   return IPv4Address(0xFFFFFFFF << (32 - bits));
  107|     30|}
_ZNK5Botan11IPv4Address8to_bytesEv:
  109|     56|std::array<uint8_t, 4> IPv4Address::to_bytes() const {
  110|     56|   std::array<uint8_t, 4> out{};
  111|     56|   store_be(m_ip, out);
  112|     56|   return out;
  113|     56|}
_ZNK5Botan11IPv4Address13prefix_lengthEv:
  131|     75|std::optional<size_t> IPv4Address::prefix_length() const {
  132|       |   // A 32-bit mask m is a CIDR prefix iff (~m) + 1 is a power of two or zero,
  133|       |   // i.e. (~m) & (~m + 1) == 0. If so, the prefix length is the leading-one count.
  134|     75|   const uint32_t inv = ~m_ip;
  135|     75|   if((inv & (inv + 1)) != 0) {
  ------------------
  |  Branch (135:7): [True: 45, False: 30]
  ------------------
  136|     45|      return std::nullopt;
  137|     45|   }
  138|     30|   return std::countl_one(m_ip);
  139|     75|}
_ZN5Botan10IPv4SubnetC2ENS_11IPv4AddressEm:
  142|     30|      m_address(address & IPv4Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
  143|       |   // IPv4Address::netmask validates prefix_length <= 32, so by this point
  144|       |   // the static_cast is in range.
  145|     30|}
_ZN5Botan10IPv4Subnet21from_address_and_maskENSt3__14spanIKhLm8EEE:
  156|     75|std::optional<IPv4Subnet> IPv4Subnet::from_address_and_mask(std::span<const uint8_t, 8> addr_and_mask) {
  157|     75|   const IPv4Address addr(load_be<uint32_t>(addr_and_mask.data(), 0));
  158|     75|   const IPv4Address mask(load_be<uint32_t>(addr_and_mask.data(), 1));
  159|       |
  160|     75|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (160:18): [True: 30, False: 45]
  ------------------
  161|     30|      return IPv4Subnet(addr, *plen);
  162|     45|   } else {
  163|     45|      return {};
  164|     45|   }
  165|     75|}
ipv4_address.cpp:_ZN5Botan12_GLOBAL__N_114string_to_ipv4ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   21|  4.47k|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|  4.47k|   if(str.size() < 3 + 4 * 1 || str.size() > 3 + 4 * 3) {
  ------------------
  |  Branch (24:7): [True: 1.33k, False: 3.13k]
  |  Branch (24:33): [True: 1.05k, False: 2.08k]
  ------------------
   25|  2.39k|      return {};
   26|  2.39k|   }
   27|       |
   28|       |   // the final result
   29|  2.08k|   uint32_t ip = 0;
   30|       |   // the number of '.' seen so far
   31|  2.08k|   size_t dots = 0;
   32|       |   // accumulates one quad (range 0-255)
   33|  2.08k|   uint32_t accum = 0;
   34|       |   // # of digits pushed to accum since last dot
   35|  2.08k|   size_t cur_digits = 0;
   36|       |
   37|  2.45k|   for(const char c : str) {
  ------------------
  |  Branch (37:21): [True: 2.45k, False: 10]
  ------------------
   38|  2.45k|      if(c == '.') {
  ------------------
  |  Branch (38:10): [True: 129, False: 2.32k]
  ------------------
   39|       |         // . without preceding digit is invalid
   40|    129|         if(cur_digits == 0) {
  ------------------
  |  Branch (40:13): [True: 5, False: 124]
  ------------------
   41|      5|            return {};
   42|      5|         }
   43|    124|         dots += 1;
   44|       |         // too many dots
   45|    124|         if(dots > 3) {
  ------------------
  |  Branch (45:13): [True: 4, False: 120]
  ------------------
   46|      4|            return {};
   47|      4|         }
   48|       |
   49|    120|         cur_digits = 0;
   50|    120|         ip = (ip << 8) | accum;
   51|    120|         accum = 0;
   52|  2.32k|      } else if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (52:17): [True: 2.30k, False: 19]
  |  Branch (52:29): [True: 299, False: 2.01k]
  ------------------
   53|    299|         const auto d = static_cast<uint8_t>(c - '0');
   54|       |
   55|       |         // prohibit leading zero in quad (used for octal)
   56|    299|         if(cur_digits > 0 && accum == 0) {
  ------------------
  |  Branch (56:13): [True: 82, False: 217]
  |  Branch (56:31): [True: 19, False: 63]
  ------------------
   57|     19|            return {};
   58|     19|         }
   59|    280|         accum = (accum * 10) + d;
   60|       |
   61|    280|         if(accum > 255) {
  ------------------
  |  Branch (61:13): [True: 15, False: 265]
  ------------------
   62|     15|            return {};
   63|     15|         }
   64|       |
   65|    265|         cur_digits++;
   66|    265|         BOTAN_ASSERT_NOMSG(cur_digits <= 3);
  ------------------
  |  |   84|    265|   do {                                                                     \
  |  |   85|    265|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|    265|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 265]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|    265|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 265]
  |  |  ------------------
  ------------------
   67|  2.02k|      } else {
   68|  2.02k|         return {};
   69|  2.02k|      }
   70|  2.45k|   }
   71|       |
   72|       |   // no trailing digits?
   73|     10|   if(cur_digits == 0) {
  ------------------
  |  Branch (73:7): [True: 0, False: 10]
  ------------------
   74|      0|      return {};
   75|      0|   }
   76|       |
   77|       |   // insufficient # of dots
   78|     10|   if(dots != 3) {
  ------------------
  |  Branch (78:7): [True: 1, False: 9]
  ------------------
   79|      1|      return {};
   80|      1|   }
   81|       |
   82|      9|   ip = (ip << 8) | accum;
   83|       |
   84|      9|   return ip;
   85|     10|}

_ZN5Botan11IPv6AddressC2ENSt3__14spanIKhLm16EEE:
   17|    694|IPv6Address::IPv6Address(std::span<const uint8_t, 16> ip) : m_ip{} {
   18|  11.7k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (18:22): [True: 11.1k, False: 694]
  ------------------
   19|  11.1k|      m_ip[i] = ip[i];
   20|  11.1k|   }
   21|    694|}
_ZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   24|    101|std::optional<IPv6Address> IPv6Address::from_string(std::string_view str) {
   25|    101|   if(str.empty()) {
  ------------------
  |  Branch (25:7): [True: 0, False: 101]
  ------------------
   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|    101|   std::array<uint16_t, 8> pre{};
   32|    101|   std::array<uint16_t, 8> post{};
   33|    101|   size_t pre_count = 0;
   34|    101|   size_t post_count = 0;
   35|    101|   bool seen_double_colon = false;
   36|       |
   37|    101|   const auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|    101|      if(c >= '0' && c <= '9') {
   39|    101|         return c - '0';
   40|    101|      } else if(c >= 'a' && c <= 'f') {
   41|    101|         return 10 + (c - 'a');
   42|    101|      } else if(c >= 'A' && c <= 'F') {
   43|    101|         return 10 + (c - 'A');
   44|    101|      } else {
   45|    101|         return {};
   46|    101|      }
   47|    101|   };
   48|       |
   49|    101|   size_t idx = 0;
   50|    101|   bool expect_group = true;  // set after any separator, cleared after a group
   51|       |
   52|    437|   while(idx < str.size()) {
  ------------------
  |  Branch (52:10): [True: 411, False: 26]
  ------------------
   53|    411|      if(str[idx] == ':') {
  ------------------
  |  Branch (53:10): [True: 150, False: 261]
  ------------------
   54|    150|         if(idx + 1 < str.size() && str[idx + 1] == ':') {
  ------------------
  |  Branch (54:13): [True: 148, False: 2]
  |  Branch (54:37): [True: 32, False: 116]
  ------------------
   55|     32|            if(seen_double_colon) {
  ------------------
  |  Branch (55:16): [True: 4, False: 28]
  ------------------
   56|      4|               return {};  // at most one "::"
   57|      4|            }
   58|     28|            seen_double_colon = true;
   59|     28|            idx += 2;
   60|     28|            expect_group = (idx < str.size());
   61|     28|            continue;
   62|     32|         }
   63|       |         // single ':' separator between groups, only valid after a group
   64|    118|         if(expect_group) {
  ------------------
  |  Branch (64:13): [True: 3, False: 115]
  ------------------
   65|      3|            return {};
   66|      3|         }
   67|    115|         expect_group = true;
   68|    115|         idx += 1;
   69|    115|         continue;
   70|    118|      }
   71|       |
   72|       |      // Parse a hex group of 1..4 digits
   73|    261|      const size_t group_start = idx;
   74|    261|      uint32_t group = 0;
   75|    261|      size_t hex_chars = 0;
   76|    748|      while(idx < str.size() && hex_chars < 4) {
  ------------------
  |  Branch (76:13): [True: 727, False: 21]
  |  Branch (76:33): [True: 674, False: 53]
  ------------------
   77|    674|         const auto digit = hex_value(str[idx]);
   78|    674|         if(digit.has_value() == false) {
  ------------------
  |  Branch (78:13): [True: 187, False: 487]
  ------------------
   79|    187|            break;
   80|    187|         }
   81|    487|         group = (group << 4) | static_cast<uint32_t>(digit.value());
   82|    487|         idx += 1;
   83|    487|         hex_chars += 1;
   84|    487|      }
   85|    261|      if(hex_chars == 0) {
  ------------------
  |  Branch (85:10): [True: 39, False: 222]
  ------------------
   86|     39|         return {};
   87|     39|      }
   88|       |      // If a 5th hex digit follows, the group is oversized.
   89|    222|      if(hex_chars == 4 && idx < str.size() && hex_value(str[idx]).has_value()) {
  ------------------
  |  Branch (89:10): [True: 57, False: 165]
  |  Branch (89:10): [True: 18, False: 204]
  |  Branch (89:28): [True: 53, False: 4]
  |  Branch (89:48): [True: 18, False: 35]
  ------------------
   90|     18|         return {};
   91|     18|      }
   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|    204|      if(idx < str.size() && str[idx] == '.') {
  ------------------
  |  Branch (98:10): [True: 183, False: 21]
  |  Branch (98:30): [True: 8, False: 175]
  ------------------
   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|    196|      if(seen_double_colon) {
  ------------------
  |  Branch (123:10): [True: 57, False: 139]
  ------------------
  124|     57|         if(post_count >= 8) {
  ------------------
  |  Branch (124:13): [True: 2, False: 55]
  ------------------
  125|      2|            return {};
  126|      2|         }
  127|     55|         post[post_count++] = static_cast<uint16_t>(group);
  128|    139|      } else {
  129|    139|         if(pre_count >= 8) {
  ------------------
  |  Branch (129:13): [True: 1, False: 138]
  ------------------
  130|      1|            return {};
  131|      1|         }
  132|    138|         pre[pre_count++] = static_cast<uint16_t>(group);
  133|    138|      }
  134|    193|      expect_group = false;
  135|    193|   }
  136|       |
  137|       |   // Trailing single ':' is invalid
  138|     26|   if(expect_group) {
  ------------------
  |  Branch (138:7): [True: 2, False: 24]
  ------------------
  139|      2|      return {};
  140|      2|   }
  141|       |
  142|     24|   const size_t total_groups = pre_count + post_count;
  143|     24|   if(seen_double_colon) {
  ------------------
  |  Branch (143:7): [True: 16, False: 8]
  ------------------
  144|       |      // "::" has to cover at least one zero group
  145|     16|      if(total_groups > 7) {
  ------------------
  |  Branch (145:10): [True: 1, False: 15]
  ------------------
  146|      1|         return {};
  147|      1|      }
  148|     16|   } else {
  149|      8|      if(total_groups != 8) {
  ------------------
  |  Branch (149:10): [True: 5, False: 3]
  ------------------
  150|      5|         return {};
  151|      5|      }
  152|      8|   }
  153|       |
  154|     18|   std::array<uint8_t, 16> out{};
  155|     57|   for(size_t i = 0; i != pre_count; ++i) {
  ------------------
  |  Branch (155:22): [True: 39, False: 18]
  ------------------
  156|     39|      out[2 * i] = get_byte<0>(pre[i]);
  157|     39|      out[2 * i + 1] = get_byte<1>(pre[i]);
  158|     39|   }
  159|     18|   const size_t gap = 8 - total_groups;
  160|     40|   for(size_t i = 0; i != post_count; ++i) {
  ------------------
  |  Branch (160:22): [True: 22, False: 18]
  ------------------
  161|     22|      const size_t target = pre_count + gap + i;
  162|     22|      out[2 * target] = get_byte<0>(post[i]);
  163|     22|      out[2 * target + 1] = get_byte<1>(post[i]);
  164|     22|   }
  165|     18|   return IPv6Address(out);
  166|     24|}
_ZN5Botan11IPv6Address7netmaskEm:
  169|     30|IPv6Address IPv6Address::netmask(size_t bits) {
  170|     30|   BOTAN_ARG_CHECK(bits <= 128, "IPv6 netmask prefix length must be at most 128");
  ------------------
  |  |   35|     30|   do {                                                          \
  |  |   36|     30|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     30|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 30]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     30|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 30]
  |  |  ------------------
  ------------------
  171|       |
  172|     30|   const size_t full_bytes = bits / 8;
  173|     30|   const size_t leftover = bits % 8;
  174|       |
  175|     30|   std::array<uint8_t, 16> m{};
  176|    228|   for(size_t i = 0; i != full_bytes; ++i) {
  ------------------
  |  Branch (176:22): [True: 198, False: 30]
  ------------------
  177|    198|      m[i] = 0xFF;
  178|    198|   }
  179|       |
  180|     30|   if(leftover > 0) {
  ------------------
  |  Branch (180:7): [True: 20, False: 10]
  ------------------
  181|     20|      m[full_bytes] = static_cast<uint8_t>(0xFF << (8 - leftover));
  182|     20|   }
  183|       |
  184|     30|   return IPv6Address(m);
  185|     30|}
_ZNK5Botan11IPv6AddressanERKS0_:
  257|     11|IPv6Address IPv6Address::operator&(const IPv6Address& other) const {
  258|     11|   std::array<uint8_t, 16> masked{};
  259|    187|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (259:22): [True: 176, False: 11]
  ------------------
  260|    176|      masked[i] = m_ip[i] & other.m_ip[i];
  261|    176|   }
  262|     11|   return IPv6Address(masked);
  263|     11|}
_ZNK5Botan11IPv6Address13prefix_lengthEv:
  265|     19|std::optional<size_t> IPv6Address::prefix_length() const {
  266|       |   // Count leading one bits, stopping at the first byte that isn't fully set.
  267|     19|   size_t leading = 0;
  268|    135|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (268:22): [True: 134, False: 1]
  ------------------
  269|    134|      const size_t hw = (m_ip[i] == 0xFF) ? 8 : std::countl_one(m_ip[i]);
  ------------------
  |  Branch (269:25): [True: 116, False: 18]
  ------------------
  270|    134|      leading += hw;
  271|    134|      if(hw != 8) {
  ------------------
  |  Branch (271:10): [True: 18, False: 116]
  ------------------
  272|     18|         break;
  273|     18|      }
  274|    134|   }
  275|       |
  276|       |   // Verify this is exactly equal to a netmask of that size
  277|     19|   if(*this != netmask(leading)) {
  ------------------
  |  Branch (277:7): [True: 8, False: 11]
  ------------------
  278|      8|      return std::nullopt;
  279|      8|   }
  280|     11|   return leading;
  281|     19|}
_ZN5Botan10IPv6SubnetC2ENS_11IPv6AddressEm:
  297|     11|      m_address(address & IPv6Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
  298|       |   // IPv6Address::netmask validates prefix_length <= 128, so by this point
  299|       |   // the static_cast is in range.
  300|     11|}
_ZN5Botan10IPv6Subnet21from_address_and_maskENSt3__14spanIKhLm32EEE:
  303|     19|std::optional<IPv6Subnet> IPv6Subnet::from_address_and_mask(std::span<const uint8_t, 32> addr_and_mask) {
  304|     19|   const auto addr = IPv6Address(addr_and_mask.first<16>());
  305|     19|   const auto mask = IPv6Address(addr_and_mask.last<16>());
  306|       |
  307|     19|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (307:18): [True: 11, False: 8]
  ------------------
  308|     11|      return IPv6Subnet(addr, *plen);
  309|     11|   } else {
  310|      8|      return {};
  311|      8|   }
  312|     19|}
ipv6_address.cpp:_ZZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEENK3$_0clEc:
   37|    727|   const auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|    727|      if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (38:10): [True: 674, False: 53]
  |  Branch (38:22): [True: 217, False: 457]
  ------------------
   39|    217|         return c - '0';
   40|    510|      } else if(c >= 'a' && c <= 'f') {
  ------------------
  |  Branch (40:17): [True: 184, False: 326]
  |  Branch (40:29): [True: 162, False: 22]
  ------------------
   41|    162|         return 10 + (c - 'a');
   42|    348|      } else if(c >= 'A' && c <= 'F') {
  ------------------
  |  Branch (42:17): [True: 152, False: 196]
  |  Branch (42:29): [True: 126, False: 26]
  ------------------
   43|    126|         return 10 + (c - 'A');
   44|    222|      } else {
   45|    222|         return {};
   46|    222|      }
   47|    727|   };

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

_ZN5Botan2OS17read_env_variableERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
  471|      1|bool OS::read_env_variable(std::string& value_out, std::string_view name_view) {
  472|      1|   value_out = "";
  473|       |
  474|      1|   if(running_in_privileged_state()) {
  ------------------
  |  Branch (474:7): [True: 0, False: 1]
  ------------------
  475|      0|      return false;
  476|      0|   }
  477|       |
  478|       |#if defined(BOTAN_TARGET_OS_HAS_WIN32) && \
  479|       |   (defined(BOTAN_BUILD_COMPILER_IS_MSVC) || defined(BOTAN_BUILD_COMPILER_IS_CLANGCL))
  480|       |   const std::string name(name_view);
  481|       |
  482|       |   // First query the required buffer size; req_size is 0 if the variable is not set
  483|       |   size_t req_size = 0;
  484|       |   if(getenv_s(&req_size, nullptr, 0, name.c_str()) != 0 || req_size == 0) {
  485|       |      return false;
  486|       |   }
  487|       |
  488|       |   // The reported size includes the terminating \0
  489|       |   std::string val(req_size, '\0');
  490|       |   if(getenv_s(&req_size, val.data(), val.size(), name.c_str()) != 0) {
  491|       |      return false;
  492|       |   }
  493|       |
  494|       |   value_out = std::string(val.c_str());
  495|       |   return true;
  496|       |#else
  497|      1|   const std::string name(name_view);
  498|      1|   if(const char* val = std::getenv(name.c_str())) {
  ------------------
  |  Branch (498:19): [True: 0, False: 1]
  ------------------
  499|      0|      value_out = val;
  500|      0|      return true;
  501|      0|   }
  502|      1|#endif
  503|       |
  504|      1|   return false;
  505|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_110get_auxvalENSt3__18optionalImEE:
  120|      1|std::optional<unsigned long> get_auxval(std::optional<unsigned long> id) {
  121|      1|   if(id) {
  ------------------
  |  Branch (121:7): [True: 1, False: 0]
  ------------------
  122|      1|#if defined(BOTAN_TARGET_OS_HAS_GETAUXVAL)
  123|      1|      return ::getauxval(*id);
  124|       |#elif defined(BOTAN_TARGET_OS_HAS_ELF_AUX_INFO)
  125|       |      unsigned long auxinfo = 0;
  126|       |      if(::elf_aux_info(static_cast<int>(*id), &auxinfo, sizeof(auxinfo)) == 0) {
  127|       |         return auxinfo;
  128|       |      }
  129|       |#endif
  130|      1|   }
  131|       |
  132|      0|   return {};
  133|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_127running_in_privileged_stateEv:
  154|      1|bool running_in_privileged_state() {
  155|      1|#if defined(AT_SECURE)
  156|      1|   if(const auto at_secure = get_auxval(AT_SECURE)) {
  ------------------
  |  Branch (156:18): [True: 1, False: 0]
  ------------------
  157|      1|      return at_secure != 0;
  158|      1|   }
  159|      0|#endif
  160|       |
  161|      0|#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
  162|      0|   return (::getuid() != ::geteuid()) || (::getgid() != ::getegid());
  ------------------
  |  Branch (162:11): [True: 0, False: 0]
  |  Branch (162:42): [True: 0, False: 0]
  ------------------
  163|       |#else
  164|       |   return false;
  165|       |#endif
  166|      1|}

_ZN5Botan9parse_u16ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   59|    139|std::optional<uint16_t> parse_u16(std::string_view input, bool require_canonical) {
   60|    139|   return parse_decimal_integer<uint16_t>(input, require_canonical);
   61|    139|}
_ZN5Botan9parse_u32ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   63|  39.8k|std::optional<uint32_t> parse_u32(std::string_view input, bool require_canonical) {
   64|  39.8k|   return parse_decimal_integer<uint32_t>(input, require_canonical);
   65|  39.8k|}
_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   75|  39.8k|uint32_t to_u32bit(std::string_view input) {
   76|  39.8k|   if(const auto parsed = parse_u32(input)) {
  ------------------
  |  Branch (76:18): [True: 39.7k, False: 37]
  ------------------
   77|  39.7k|      return *parsed;
   78|  39.7k|   } else {
   79|     37|      throw Invalid_Argument(fmt("Failed to parse input '{}' as a 32-bit integer", input));
   80|     37|   }
   81|  39.8k|}
_ZN5Botan14tolower_stringENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  125|  6.77k|std::string tolower_string(std::string_view str) {
  126|       |   // Locale-independent ASCII fold; the only callers (DNS name canonicalization
  127|       |   // for SAN/name-constraints) work on ASCII strings per RFC 1035.
  128|  6.77k|   std::string lower(str);
  129|  29.6k|   for(char& c : lower) {
  ------------------
  |  Branch (129:16): [True: 29.6k, False: 6.77k]
  ------------------
  130|  29.6k|      if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (130:10): [True: 28.5k, False: 1.13k]
  |  Branch (130:22): [True: 524, False: 27.9k]
  ------------------
  131|    524|         c = static_cast<char>(c + ('a' - 'A'));
  132|    524|      }
  133|  29.6k|   }
  134|  6.77k|   return lower;
  135|  6.77k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEtEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   31|    139|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   32|    139|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (32:7): [True: 0, False: 139]
  |  Branch (32:24): [True: 13, False: 126]
  ------------------
   33|     13|      return {};
   34|     13|   }
   35|       |
   36|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   37|    126|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (37:7): [True: 126, False: 0]
  |  Branch (37:28): [True: 109, False: 17]
  |  Branch (37:48): [True: 7, False: 102]
  ------------------
   38|      7|      return {};
   39|      7|   }
   40|       |
   41|    119|   T accum = 0;
   42|       |
   43|    326|   for(const char c : input) {
  ------------------
  |  Branch (43:21): [True: 326, False: 98]
  ------------------
   44|    326|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (44:21): [True: 309, False: 17]
  ------------------
   45|    309|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (45:13): [True: 4, False: 305]
  ------------------
   46|      4|            return {};
   47|      4|         }
   48|    305|         accum = accum * 10 + static_cast<T>(*digit);
   49|    305|      } else {
   50|     17|         return {};
   51|     17|      }
   52|    326|   }
   53|       |
   54|     98|   return accum;
   55|    119|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_116digit_from_asciiEc:
   22|  80.0k|std::optional<size_t> digit_from_ascii(char c) {
   23|  80.0k|   if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (23:7): [True: 80.0k, False: 41]
  |  Branch (23:19): [True: 80.0k, False: 13]
  ------------------
   24|  80.0k|      return c - '0';
   25|  80.0k|   } else {
   26|     54|      return {};
   27|     54|   }
   28|  80.0k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEjEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   31|  39.8k|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   32|  39.8k|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (32:7): [True: 0, False: 39.8k]
  |  Branch (32:24): [True: 0, False: 39.8k]
  ------------------
   33|      0|      return {};
   34|      0|   }
   35|       |
   36|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   37|  39.8k|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (37:7): [True: 0, False: 39.8k]
  |  Branch (37:28): [True: 0, False: 0]
  |  Branch (37:48): [True: 0, False: 0]
  ------------------
   38|      0|      return {};
   39|      0|   }
   40|       |
   41|  39.8k|   T accum = 0;
   42|       |
   43|  79.7k|   for(const char c : input) {
  ------------------
  |  Branch (43:21): [True: 79.7k, False: 39.7k]
  ------------------
   44|  79.7k|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (44:21): [True: 79.7k, False: 37]
  ------------------
   45|  79.7k|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (45:13): [True: 0, False: 79.7k]
  ------------------
   46|      0|            return {};
   47|      0|         }
   48|  79.7k|         accum = accum * 10 + static_cast<T>(*digit);
   49|  79.7k|      } else {
   50|     37|         return {};
   51|     37|      }
   52|  79.7k|   }
   53|       |
   54|  39.7k|   return accum;
   55|  39.8k|}

_ZN5Botan15TelephoneNumber11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   13|    115|std::optional<TelephoneNumber> TelephoneNumber::from_string(std::string_view tn) {
   14|       |   // TelephoneNumber ::= IA5String (SIZE (1..15)) (FROM ("0123456789#*"))
   15|    115|   if(tn.empty() || tn.size() > 15 || tn.find_first_not_of("0123456789#*") != std::string_view::npos) {
  ------------------
  |  Branch (15:7): [True: 4, False: 111]
  |  Branch (15:21): [True: 2, False: 109]
  |  Branch (15:39): [True: 10, False: 99]
  ------------------
   16|     16|      return std::nullopt;
   17|     16|   }
   18|     99|   return TelephoneNumber(std::string(tn));
   19|    115|}
_ZNK5Botan15TelephoneNumber11is_wildcardEv:
   21|     70|bool TelephoneNumber::is_wildcard() const {
   22|     70|   return m_number.find_first_of("*#") != std::string::npos;
   23|     70|}
_ZNK5Botan15TelephoneNumber13numeric_valueEv:
   25|     70|std::optional<uint64_t> TelephoneNumber::numeric_value() const {
   26|     70|   if(is_wildcard()) {
  ------------------
  |  Branch (26:7): [True: 7, False: 63]
  ------------------
   27|      7|      return std::nullopt;
   28|      7|   }
   29|     63|   uint64_t value = 0;
   30|    819|   for(const char c : m_number) {
  ------------------
  |  Branch (30:21): [True: 819, False: 63]
  ------------------
   31|    819|      value = (value * 10) + static_cast<uint64_t>(c - '0');
   32|    819|   }
   33|     63|   return value;
   34|     70|}
_ZN5Botan20TelephoneNumberRange4fromERKNS_15TelephoneNumberEm:
   48|     70|std::optional<TelephoneNumberRange> TelephoneNumberRange::from(const TelephoneNumber& start, uint64_t count) {
   49|     70|   const auto pow10 = [](size_t n) -> uint64_t {
   50|       |      // Always in range since the input length is at most 15
   51|     70|      uint64_t v = 1;
   52|     70|      for(size_t i = 0; i != n; ++i) {
   53|     70|         v *= 10;
   54|     70|      }
   55|     70|      return v;
   56|     70|   };
   57|       |
   58|     70|   const auto first = start.numeric_value();
   59|     70|   if(!first.has_value() || count <= 1) {
  ------------------
  |  Branch (59:7): [True: 7, False: 63]
  |  Branch (59:29): [True: 0, False: 63]
  ------------------
   60|      7|      return std::nullopt;
   61|      7|   }
   62|     63|   if(count > pow10(start.length()) - *first) {
  ------------------
  |  Branch (62:7): [True: 38, False: 25]
  ------------------
   63|     38|      return std::nullopt;
   64|     38|   }
   65|     25|   return TelephoneNumberRange(start, count);
   66|     63|}
telephone_number.cpp:_ZZN5Botan20TelephoneNumberRange4fromERKNS_15TelephoneNumberEmENK3$_0clEm:
   49|     63|   const auto pow10 = [](size_t n) -> uint64_t {
   50|       |      // Always in range since the input length is at most 15
   51|     63|      uint64_t v = 1;
   52|    882|      for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (52:25): [True: 819, False: 63]
  ------------------
   53|    819|         v *= 10;
   54|    819|      }
   55|     63|      return v;
   56|     63|   };

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

_ZN5Botan15AlternativeName7add_uriENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   17|  6.76k|void AlternativeName::add_uri(std::string_view uri) {
   18|  6.76k|   if(uri.empty()) {
  ------------------
  |  Branch (18:7): [True: 38, False: 6.73k]
  ------------------
   19|     38|      return;
   20|     38|   }
   21|  6.73k|   if(auto parsed = URI::from_string(uri)) {
  ------------------
  |  Branch (21:12): [True: 6.12k, False: 603]
  ------------------
   22|  6.12k|      add_uri(std::move(*parsed));
   23|  6.12k|   } else {
   24|    603|      throw Decoding_Error("Invalid URI in SubjectAlternativeName");
   25|    603|   }
   26|  6.73k|}
_ZN5Botan15AlternativeName7add_uriENS_3URIE:
   28|  6.12k|void AlternativeName::add_uri(URI uri) {
   29|  6.12k|   m_uri.insert(std::move(uri));
   30|  6.12k|}
_ZN5Botan15AlternativeName9add_emailENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   40|    858|void AlternativeName::add_email(std::string_view addr) {
   41|    858|   if(addr.empty()) {
  ------------------
  |  Branch (41:7): [True: 12, False: 846]
  ------------------
   42|     12|      return;
   43|     12|   }
   44|    846|   if(auto parsed = EmailAddress::from_string(addr)) {
  ------------------
  |  Branch (44:12): [True: 604, False: 242]
  ------------------
   45|    604|      add_email(std::move(*parsed));
   46|    604|   } else {
   47|    242|      throw Decoding_Error("Invalid email address in SubjectAlternativeName");
   48|    242|   }
   49|    846|}
_ZN5Botan15AlternativeName9add_emailENS_12EmailAddressE:
   51|    604|void AlternativeName::add_email(EmailAddress addr) {
   52|    604|   m_email.insert(std::move(addr));
   53|    604|}
_ZN5Botan15AlternativeName7add_dnsENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   63|  11.8k|void AlternativeName::add_dns(std::string_view dns) {
   64|  11.8k|   if(dns.empty()) {
  ------------------
  |  Branch (64:7): [True: 19, False: 11.8k]
  ------------------
   65|     19|      return;
   66|     19|   }
   67|  11.8k|   if(auto parsed = DNSName::from_san_string(dns)) {
  ------------------
  |  Branch (67:12): [True: 11.6k, False: 122]
  ------------------
   68|  11.6k|      add_dns(std::move(*parsed));
   69|  11.6k|   } else {
   70|    122|      throw Decoding_Error("Invalid DNS name in SubjectAlternativeName");
   71|    122|   }
   72|  11.8k|}
_ZN5Botan15AlternativeName7add_dnsENS_7DNSNameE:
   74|  11.6k|void AlternativeName::add_dns(DNSName dns) {
   75|  11.6k|   m_dns.insert(std::move(dns));
   76|  11.6k|}
_ZN5Botan15AlternativeName17add_registered_idERKNS_3OIDE:
   97|  2.30k|void AlternativeName::add_registered_id(const OID& oid) {
   98|  2.30k|   m_registered_ids.insert(oid);
   99|  2.30k|}
_ZN5Botan15AlternativeName6add_dnERKNS_7X509_DNE:
  101|     62|void AlternativeName::add_dn(const X509_DN& dn) {
  102|     62|   m_dn_names.insert(dn);
  103|     62|}
_ZN5Botan15AlternativeName16add_ipv4_addressERKNS_11IPv4AddressE:
  105|    505|void AlternativeName::add_ipv4_address(const IPv4Address& ip) {
  106|    505|   m_ipv4_addrs.insert(ip);
  107|    505|}
_ZN5Botan15AlternativeName16add_ipv6_addressERKNS_11IPv6AddressE:
  109|    656|void AlternativeName::add_ipv6_address(const IPv6Address& ip) {
  110|    656|   m_ipv6_addrs.insert(ip);
  111|    656|}
_ZNK5Botan15AlternativeName5countEv:
  113|    374|size_t AlternativeName::count() const {
  114|    374|   const auto sum = checked_add(m_dns.size(),
  115|    374|                                m_uri.size(),
  116|    374|                                m_email.size(),
  117|    374|                                m_ipv4_addrs.size(),
  118|    374|                                m_ipv6_addrs.size(),
  119|    374|                                m_dn_names.size(),
  120|    374|                                m_other_name_values.size(),
  121|    374|                                m_registered_ids.size());
  122|       |
  123|    374|   BOTAN_ASSERT_NOMSG(sum.has_value());
  ------------------
  |  |   84|    374|   do {                                                                     \
  |  |   85|    374|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   86|    374|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 374]
  |  |  ------------------
  |  |   87|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   88|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   89|      0|      }                                                                     \
  |  |   90|    374|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded, False: 374]
  |  |  ------------------
  ------------------
  124|    374|   return sum.value();
  125|    374|}
_ZNK5Botan15AlternativeName9has_itemsEv:
  127|    352|bool AlternativeName::has_items() const {
  128|    352|   return this->count() > 0;
  129|    352|}
_ZNK5Botan15AlternativeName8is_emptyEv:
  131|     21|bool AlternativeName::is_empty() const {
  132|     21|   return this->count() == 0;
  133|     21|}
_ZN5Botan15AlternativeName11decode_fromERNS_11BER_DecoderE:
  198|  3.12k|void AlternativeName::decode_from(BER_Decoder& source) {
  199|  3.12k|   BER_Decoder names = source.start_sequence();
  200|       |
  201|  26.9k|   while(names.more_items()) {
  ------------------
  |  Branch (201:10): [True: 24.6k, False: 2.26k]
  ------------------
  202|  24.6k|      const BER_Object obj = names.get_next_object();
  203|       |
  204|  24.6k|      if(obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (204:10): [True: 510, False: 24.1k]
  ------------------
  205|    510|         BER_Decoder othername(obj, names.limits());
  206|       |
  207|    510|         OID oid;
  208|    510|         othername.decode(oid);
  209|    510|         const BER_Object othername_value_outer = othername.get_next_object();
  210|    510|         othername.verify_end();
  211|       |
  212|    510|         if(!othername_value_outer.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (212:13): [True: 6, False: 504]
  ------------------
  213|      6|            throw Decoding_Error("Invalid tags on otherName value");
  214|      6|         }
  215|       |
  216|    504|         BER_Decoder othername_value_inner(othername_value_outer, names.limits());
  217|       |
  218|    504|         const BER_Object value = othername_value_inner.get_next_object();
  219|    504|         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|    504|         std::vector<uint8_t> raw_value;
  224|    504|         DER_Encoder(raw_value).add_object(value.type_tag(), value.class_tag(), value.data());
  225|    504|         m_other_name_values.insert(OtherNameValue{oid, std::move(raw_value)});
  226|       |
  227|       |         // Populate old string view for compatibility
  228|    504|         if(ASN1_String::is_string_type(value.type()) && value.get_class() == ASN1_Class::Universal) {
  ------------------
  |  Branch (228:13): [True: 404, False: 100]
  |  Branch (228:58): [True: 369, False: 35]
  ------------------
  229|    369|            try {
  230|    369|               m_othernames.insert(std::make_pair(oid, ASN1_String(ASN1::to_string(value), value.type())));
  231|    369|            } catch(const Invalid_Argument&) {  // NOLINT(*-empty-catch)
  232|    147|            }
  233|    369|         }
  234|       |
  235|    504|         if(oid == OID::from_string("PKIX.SmtpUTF8Mailbox")) {
  ------------------
  |  Branch (235:13): [True: 0, False: 504]
  ------------------
  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|  24.1k|      } else if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (245:17): [True: 858, False: 23.3k]
  ------------------
  246|    858|         add_email(ASN1::to_string(obj));
  247|  23.3k|      } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (247:17): [True: 11.8k, False: 11.4k]
  ------------------
  248|  11.8k|         add_dns(ASN1::to_string(obj));
  249|  11.8k|      } else if(obj.is_a(3, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (249:17): [True: 58, False: 11.4k]
  ------------------
  250|       |         // x400Address not supported but it is a SEQUENCE so we know it cannot be empty
  251|     58|         if(obj.length() == 0) {
  ------------------
  |  Branch (251:13): [True: 3, False: 55]
  ------------------
  252|      3|            throw Decoding_Error("Invalid x400Address field");
  253|      3|         }
  254|  11.4k|      } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (254:17): [True: 177, False: 11.2k]
  ------------------
  255|    177|         BER_Decoder dec(obj, names.limits());
  256|    177|         X509_DN dn;
  257|    177|         dec.decode(dn).verify_end();
  258|    177|         this->add_dn(dn);
  259|  11.2k|      } else if(obj.is_a(5, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (259:17): [True: 125, False: 11.1k]
  ------------------
  260|       |         // ediPartyName not supported but it is a SEQUENCE so we know it cannot be empty
  261|    125|         if(obj.length() == 0) {
  ------------------
  |  Branch (261:13): [True: 3, False: 122]
  ------------------
  262|      3|            throw Decoding_Error("Invalid ediPartyName field");
  263|      3|         }
  264|  11.1k|      } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (264:17): [True: 6.76k, False: 4.34k]
  ------------------
  265|  6.76k|         this->add_uri(ASN1::to_string(obj));
  266|  6.76k|      } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (266:17): [True: 1.17k, False: 3.16k]
  ------------------
  267|  1.17k|         if(obj.length() == 4) {
  ------------------
  |  Branch (267:13): [True: 505, False: 674]
  ------------------
  268|    505|            const uint32_t ip = load_be<uint32_t>(obj.bits(), 0);
  269|    505|            this->add_ipv4_address(ip);
  270|    674|         } else if(obj.length() == 16) {
  ------------------
  |  Branch (270:20): [True: 656, False: 18]
  ------------------
  271|    656|            const IPv6Address ip(std::span<const uint8_t, 16>{obj.bits(), 16});
  272|    656|            this->add_ipv6_address(ip);
  273|    656|         } else {
  274|     18|            throw Decoding_Error("Invalid IP constraint neither IPv4 or IPv6");
  275|     18|         }
  276|  3.16k|      } else if(obj.is_a(8, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (276:17): [True: 2.33k, False: 835]
  ------------------
  277|       |         // [8] registeredID is IMPLICIT OBJECT IDENTIFIER.
  278|  2.33k|         OID oid;
  279|  2.33k|         names.decode_implicit(obj, oid, ASN1_Type::ObjectId, ASN1_Class::Universal);
  280|  2.33k|         this->add_registered_id(oid);
  281|  2.33k|      } else {
  282|    835|         throw Decoding_Error(fmt("Unknown GeneralName tag {}/class {}",
  283|    835|                                  static_cast<uint32_t>(obj.type_tag()),
  284|    835|                                  static_cast<uint32_t>(obj.class_tag())));
  285|    835|      }
  286|  24.6k|   }
  287|  3.12k|}

_ZN5Botan11GeneralName13DNSConstraint11from_stringENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   58|    109|std::optional<GeneralName::DNSConstraint> GeneralName::DNSConstraint::from_string(std::string_view input) {
   59|       |   // TODO(C++23): validate_subtree_constraint_host(input, RequireFQDN::No)
   60|       |   //                        .transform([](std::string s) { return DNSConstraint(std::move(s)); });
   61|    109|   if(auto canonical = validate_subtree_constraint_host(input, RequireFQDN::No)) {
  ------------------
  |  Branch (61:12): [True: 97, False: 12]
  ------------------
   62|     97|      return DNSConstraint(std::move(*canonical));
   63|     97|   } else {
   64|     12|      return std::nullopt;
   65|     12|   }
   66|    109|}
_ZN5Botan11GeneralName13URIConstraint11from_stringENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   76|    133|std::optional<GeneralName::URIConstraint> GeneralName::URIConstraint::from_string(std::string_view input) {
   77|       |   /*
   78|       |   RFC 5280 4.2.1.10:
   79|       |      The constraint MUST be specified as a fully qualified domain
   80|       |      name and MAY specify a host or a domain.  Examples would be
   81|       |      "host.example.com" and ".example.com".
   82|       |   */
   83|    133|   if(auto canonical = validate_subtree_constraint_host(input, RequireFQDN::Yes)) {
  ------------------
  |  Branch (83:12): [True: 99, False: 34]
  ------------------
   84|     99|      return URIConstraint(std::move(*canonical));
   85|     99|   } else {
   86|     34|      return std::nullopt;
   87|     34|   }
   88|    133|}
_ZN5Botan11GeneralName15EmailConstraint11from_stringENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   98|    166|std::optional<GeneralName::EmailConstraint> GeneralName::EmailConstraint::from_string(std::string_view input) {
   99|    166|   if(input.empty()) {
  ------------------
  |  Branch (99:7): [True: 3, False: 163]
  ------------------
  100|      3|      return std::nullopt;
  101|      3|   }
  102|    163|   if(input.find('@') != std::string_view::npos) {
  ------------------
  |  Branch (102:7): [True: 23, False: 140]
  ------------------
  103|       |      // Mailbox form:
  104|     23|      auto email = EmailAddress::from_string(input);
  105|     23|      if(!email.has_value()) {
  ------------------
  |  Branch (105:10): [True: 6, False: 17]
  ------------------
  106|      6|         return std::nullopt;
  107|      6|      }
  108|     17|      return EmailConstraint(email->to_string());
  109|     23|   }
  110|    140|   if(auto canonical = validate_subtree_constraint_host(input, RequireFQDN::No)) {
  ------------------
  |  Branch (110:12): [True: 128, False: 12]
  ------------------
  111|       |      // Host form
  112|    128|      return EmailConstraint(std::move(*canonical));
  113|    128|   }
  114|     12|   return std::nullopt;
  115|    140|}
_ZN5Botan11GeneralName11decode_fromERNS_11BER_DecoderE:
  467|  1.33k|void GeneralName::decode_from(BER_Decoder& ber) {
  468|  1.33k|   const BER_Object obj = ber.get_next_object();
  469|       |
  470|  1.33k|   if(obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (470:7): [True: 112, False: 1.22k]
  ------------------
  471|    112|      m_type = NameType::Other;
  472|  1.22k|   } else if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (472:14): [True: 166, False: 1.05k]
  ------------------
  473|       |      /*
  474|       |      RFC 5280 4.2.1.10:
  475|       |         A name constraint for Internet mail addresses MAY specify a
  476|       |         particular mailbox, all addresses at a particular host, or all
  477|       |         mailboxes in a domain.
  478|       |      EmailConstraint::from_string validates and canonicalizes per the
  479|       |      Section 7.5 matching rules.
  480|       |      */
  481|    166|      auto constraint = EmailConstraint::from_string(ASN1::to_string(obj));
  482|    166|      if(!constraint.has_value()) {
  ------------------
  |  Branch (482:10): [True: 21, False: 145]
  ------------------
  483|     21|         throw Decoding_Error("Malformed RFC822 name in GeneralName");
  484|     21|      }
  485|    145|      m_type = NameType::RFC822;
  486|    145|      m_name = std::move(*constraint);
  487|  1.05k|   } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (487:14): [True: 109, False: 947]
  ------------------
  488|    109|      auto constraint = DNSConstraint::from_string(ASN1::to_string(obj));
  489|    109|      if(!constraint.has_value()) {
  ------------------
  |  Branch (489:10): [True: 12, False: 97]
  ------------------
  490|     12|         throw Decoding_Error("Malformed DNS name in GeneralName");
  491|     12|      }
  492|     97|      m_type = NameType::DNS;
  493|     97|      m_name = std::move(*constraint);
  494|    947|   } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (494:14): [True: 133, False: 814]
  ------------------
  495|       |      /*
  496|       |      RFC 5280 4.2.1.10:
  497|       |         For URIs, the constraint applies to the host part of the name.
  498|       |         The constraint MUST be specified as a fully qualified domain
  499|       |         name and MAY specify a host or a domain.  Examples would be
  500|       |         "host.example.com" and ".example.com".
  501|       |      */
  502|    133|      auto constraint = URIConstraint::from_string(ASN1::to_string(obj));
  503|    133|      if(!constraint.has_value()) {
  ------------------
  |  Branch (503:10): [True: 34, False: 99]
  ------------------
  504|     34|         throw Decoding_Error("Malformed URI name in GeneralName");
  505|     34|      }
  506|     99|      m_type = NameType::URI;
  507|     99|      m_name = std::move(*constraint);
  508|    814|   } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (508:14): [True: 37, False: 777]
  ------------------
  509|     37|      X509_DN dn;
  510|     37|      BER_Decoder dec(obj, ber.limits());
  511|     37|      dn.decode_from(dec);
  512|     37|      dec.verify_end();
  513|     37|      m_type = NameType::DN;
  514|     37|      m_name.emplace<X509_DN>(dn);
  515|    777|   } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (515:14): [True: 102, False: 675]
  ------------------
  516|    102|      if(obj.length() == 8) {
  ------------------
  |  Branch (516:10): [True: 75, False: 27]
  ------------------
  517|     75|         const auto addr_and_mask = std::span<const uint8_t, 8>{obj.bits(), 8};
  518|     75|         auto subnet = IPv4Subnet::from_address_and_mask(addr_and_mask);
  519|     75|         if(!subnet.has_value()) {
  ------------------
  |  Branch (519:13): [True: 45, False: 30]
  ------------------
  520|     45|            throw Decoding_Error("IPv4 name constraint mask is not a contiguous CIDR prefix");
  521|     45|         }
  522|       |
  523|     30|         m_type = NameType::IPv4;
  524|     30|         m_name.emplace<IPv4Subnet>(*subnet);
  525|     30|      } else if(obj.length() == 32) {
  ------------------
  |  Branch (525:17): [True: 19, False: 8]
  ------------------
  526|     19|         const auto addr_and_mask = std::span<const uint8_t, 32>{obj.bits(), 32};
  527|     19|         auto subnet = IPv6Subnet::from_address_and_mask(addr_and_mask);
  528|     19|         if(!subnet.has_value()) {
  ------------------
  |  Branch (528:13): [True: 8, False: 11]
  ------------------
  529|      8|            throw Decoding_Error("IPv6 name constraint mask is not a contiguous CIDR prefix");
  530|      8|         }
  531|       |
  532|     11|         m_type = NameType::IPv6;
  533|     11|         m_name.emplace<IPv6Subnet>(*subnet);
  534|     11|      } else {
  535|      8|         throw Decoding_Error("Invalid IP name constraint size " + std::to_string(obj.length()));
  536|      8|      }
  537|    675|   } else {
  538|    675|      m_type = NameType::Unknown;
  539|    675|   }
  540|  1.33k|}
_ZN5Botan14GeneralSubtreeC2Ev:
  790|  1.37k|GeneralSubtree::GeneralSubtree() = default;
_ZN5Botan14GeneralSubtree11decode_fromERNS_11BER_DecoderE:
  803|  1.37k|void GeneralSubtree::decode_from(BER_Decoder& ber) {
  804|       |   /*
  805|       |   * RFC 5280 Section 4.2.1.10:
  806|       |   *    Within this profile, the minimum and maximum fields are not used with any
  807|       |   *    name forms, thus, the minimum MUST be zero, and maximum MUST be absent.
  808|       |   */
  809|  1.37k|   size_t minimum = 0;
  810|  1.37k|   std::optional<size_t> maximum;
  811|       |
  812|  1.37k|   ber.start_sequence()
  813|  1.37k|      .decode(m_base)
  814|  1.37k|      .decode_optional(minimum, ASN1_Type(0), ASN1_Class::ContextSpecific, size_t(0))
  815|  1.37k|      .decode_optional(maximum, ASN1_Type(1), ASN1_Class::ContextSpecific)
  816|  1.37k|      .end_cons();
  817|       |
  818|  1.37k|   if(minimum != 0) {
  ------------------
  |  Branch (818:7): [True: 12, False: 1.36k]
  ------------------
  819|     12|      throw Decoding_Error("GeneralSubtree minimum must be 0");
  820|     12|   }
  821|  1.36k|   if(maximum.has_value()) {
  ------------------
  |  Branch (821:7): [True: 1, False: 1.36k]
  ------------------
  822|      1|      throw Decoding_Error("GeneralSubtree maximum must be absent");
  823|      1|   }
  824|  1.36k|}
_ZN5Botan15NameConstraintsC2EONSt3__16vectorINS_14GeneralSubtreeENS1_9allocatorIS3_EEEES7_:
  833|     68|      m_permitted_subtrees(std::move(permitted_subtrees)), m_excluded_subtrees(std::move(excluded_subtrees)) {
  834|    287|   for(const auto& c : m_permitted_subtrees) {
  ------------------
  |  Branch (834:22): [True: 287, False: 68]
  ------------------
  835|    287|      m_permitted_name_types.insert(c.base().type_code());
  836|    287|   }
  837|    255|   for(const auto& c : m_excluded_subtrees) {
  ------------------
  |  Branch (837:22): [True: 255, False: 68]
  ------------------
  838|    255|      m_excluded_name_types.insert(c.base().type_code());
  839|    255|   }
  840|     68|}
name_constraint.cpp:_ZN5Botan12_GLOBAL__N_132validate_subtree_constraint_hostENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS0_11RequireFQDNE:
   35|    382|std::optional<std::string> validate_subtree_constraint_host(std::string_view input, RequireFQDN require_fqdn) {
   36|    382|   if(input.empty()) {
  ------------------
  |  Branch (36:7): [True: 4, False: 378]
  ------------------
   37|      4|      return std::nullopt;
   38|      4|   }
   39|    378|   const bool subtree = input.starts_with('.');
   40|    378|   const std::string_view body = subtree ? input.substr(1) : input;
  ------------------
  |  Branch (40:34): [True: 215, False: 163]
  ------------------
   41|    378|   auto dns = DNSName::from_string(body);
   42|    378|   if(!dns.has_value()) {
  ------------------
  |  Branch (42:7): [True: 50, False: 328]
  ------------------
   43|     50|      return std::nullopt;
   44|     50|   }
   45|    328|   if(require_fqdn == RequireFQDN::Yes && dns->to_string().find('.') == std::string::npos) {
  ------------------
  |  Branch (45:7): [True: 103, False: 225]
  |  Branch (45:43): [True: 4, False: 99]
  ------------------
   46|      4|      return std::nullopt;
   47|      4|   }
   48|       |
   49|    324|   if(subtree) {
  ------------------
  |  Branch (49:7): [True: 207, False: 117]
  ------------------
   50|    207|      return std::string(".") + dns->to_string();
   51|    207|   } else {
   52|    117|      return dns->to_string();
   53|    117|   }
   54|    324|}

_ZN5BotaneqERKNS_7X509_DNES2_:
  340|    541|bool operator==(const X509_DN& dn1, const X509_DN& dn2) {
  341|    541|   return dn1._canonical_bytes() == dn2._canonical_bytes();
  342|    541|}
_ZN5BotanltERKNS_7X509_DNES2_:
  355|     22|bool operator<(const X509_DN& dn1, const X509_DN& dn2) {
  356|     22|   return dn1._canonical_bytes() < dn2._canonical_bytes();
  357|     22|}
_ZN5Botan7X509_DN11decode_fromERNS_11BER_DecoderE:
  405|  7.41k|void X509_DN::decode_from(BER_Decoder& source) {
  406|  7.41k|   std::vector<uint8_t> bits;
  407|       |
  408|  7.41k|   source.start_sequence().raw_bytes(bits).end_cons();
  409|       |
  410|  7.41k|   BER_Decoder sequence(bits, source.limits());
  411|       |
  412|  7.41k|   std::vector<std::vector<std::pair<OID, ASN1_String>>> rdns;
  413|       |
  414|       |   // Cap AVAs per RDN to bound work for downstream set-based matching.
  415|       |   // No legitimate cert has anywhere near this many AVAs in a single RDN.
  416|  7.41k|   constexpr size_t MAX_AVAS_PER_RDN = 32;
  417|       |
  418|  24.6k|   while(sequence.more_items()) {
  ------------------
  |  Branch (418:10): [True: 17.1k, False: 7.41k]
  ------------------
  419|  17.1k|      BER_Decoder rdn_decoder = sequence.start_set();
  420|       |
  421|  17.1k|      std::vector<std::pair<OID, ASN1_String>> rdn;
  422|  34.1k|      while(rdn_decoder.more_items()) {
  ------------------
  |  Branch (422:13): [True: 16.9k, False: 17.1k]
  ------------------
  423|  16.9k|         OID oid;
  424|  16.9k|         ASN1_String str;
  425|       |
  426|  16.9k|         rdn_decoder.start_sequence()
  427|  16.9k|            .decode(oid)
  428|  16.9k|            .decode(str)  // TODO support Any
  429|  16.9k|            .end_cons();
  430|       |
  431|  16.9k|         rdn.emplace_back(std::move(oid), std::move(str));
  432|       |
  433|  16.9k|         if(rdn.size() > MAX_AVAS_PER_RDN) {
  ------------------
  |  Branch (433:13): [True: 0, False: 16.9k]
  ------------------
  434|      0|            throw Decoding_Error("X.500 RDN has too many attribute-value assertions");
  435|      0|         }
  436|  16.9k|      }
  437|       |
  438|       |      /*
  439|       |      RFC 5280 4.1.2.4:
  440|       |         RelativeDistinguishedName ::=
  441|       |           SET SIZE (1..MAX) OF AttributeTypeAndValue
  442|       |      */
  443|  17.1k|      if(rdn.empty()) {
  ------------------
  |  Branch (443:10): [True: 4, False: 17.1k]
  ------------------
  444|      4|         throw Decoding_Error("X.500 RDN must contain at least one attribute-value assertion");
  445|      4|      }
  446|  17.1k|      rdns.push_back(std::move(rdn));
  447|  17.1k|   }
  448|       |
  449|  7.41k|   auto canonical_bits = canonicalize_dn(rdns);
  450|       |
  451|  7.41k|   m_rdn = std::move(rdns);
  452|  7.41k|   m_dn_bits = std::move(bits);
  453|  7.41k|   m_canonical_dn_bits = std::move(canonical_bits);
  454|  7.41k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_120append_canonical_rdnERNSt3__16vectorIhNS1_9allocatorIhEEEERKNS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS3_ISA_EEEE:
  152|  16.3k|void append_canonical_rdn(std::vector<uint8_t>& canonical_bits, const std::vector<std::pair<OID, ASN1_String>>& rdn) {
  153|  16.3k|   const auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  154|  16.3k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  155|  16.3k|      out.insert(out.end(), data_len.begin(), data_len.end());
  156|  16.3k|      out.insert(out.end(), data.begin(), data.end());
  157|  16.3k|   };
  158|       |
  159|  16.3k|   std::vector<uint8_t> rdn_bits;
  160|       |
  161|  16.3k|   for(const auto& [oid, value] : canonicalize_rdn(rdn)) {
  ------------------
  |  Branch (161:33): [True: 16.3k, False: 16.3k]
  ------------------
  162|  16.3k|      append_canonical_data(rdn_bits, oid.BER_encode());
  163|  16.3k|      append_canonical_data(rdn_bits, value);
  164|  16.3k|   }
  165|       |
  166|  16.3k|   append_canonical_data(canonical_bits, rdn_bits);
  167|  16.3k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_116canonicalize_rdnERKNSt3__16vectorINS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEE:
  136|  16.3k|std::vector<std::pair<OID, std::string>> canonicalize_rdn(const std::vector<std::pair<OID, ASN1_String>>& rdn) {
  137|  16.3k|   std::vector<std::pair<OID, std::string>> result;
  138|  16.3k|   result.reserve(rdn.size());
  139|  16.3k|   for(const auto& ava : rdn) {
  ------------------
  |  Branch (139:24): [True: 16.3k, False: 16.3k]
  ------------------
  140|  16.3k|      result.emplace_back(ava.first, X500_Char_Iterator::canonicalize(ava.second.value()));
  141|  16.3k|   }
  142|  16.3k|   if(result.size() != 1) {
  ------------------
  |  Branch (142:7): [True: 5, False: 16.3k]
  ------------------
  143|      5|      std::sort(result.begin(), result.end());
  144|      5|   }
  145|  16.3k|   return result;
  146|  16.3k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator12canonicalizeENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  114|  16.3k|      static std::string canonicalize(std::string_view name) {
  115|  16.3k|         std::string result;
  116|  16.3k|         result.reserve(name.size());
  117|       |
  118|  16.3k|         X500_Char_Iterator it(name);
  119|   188k|         while(auto c = it.next()) {
  ------------------
  |  Branch (119:21): [True: 172k, False: 16.3k]
  ------------------
  120|   172k|            result += *c;
  121|   172k|         }
  122|       |
  123|  16.3k|         return result;
  124|  16.3k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_IteratorC2ENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   81|  16.3k|      explicit X500_Char_Iterator(std::string_view s) : m_str(s), m_pos(0) {
   82|       |         // Skip leading whitespace
   83|  16.8k|         while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (83:16): [True: 16.7k, False: 49]
  |  Branch (83:40): [True: 447, False: 16.3k]
  ------------------
   84|    447|            ++m_pos;
   85|    447|         }
   86|  16.3k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator4nextEv:
   89|   188k|      std::optional<char> next() {
   90|   188k|         if(m_pos >= m_str.size()) {
  ------------------
  |  Branch (90:13): [True: 16.3k, False: 172k]
  ------------------
   91|  16.3k|            return std::nullopt;
   92|  16.3k|         }
   93|       |
   94|   172k|         if(is_space(m_str[m_pos])) {
  ------------------
  |  Branch (94:13): [True: 9.92k, False: 162k]
  ------------------
   95|       |            // Skip the entire whitespace run
   96|  20.4k|            while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (96:19): [True: 20.3k, False: 61]
  |  Branch (96:43): [True: 10.4k, False: 9.86k]
  ------------------
   97|  10.4k|               ++m_pos;
   98|  10.4k|            }
   99|       |            // Emit a single space only if more content follows (strip trailing ws)
  100|  9.92k|            if(m_pos < m_str.size()) {
  ------------------
  |  Branch (100:16): [True: 9.86k, False: 61]
  ------------------
  101|  9.86k|               return ' ';
  102|  9.86k|            }
  103|     61|            return std::nullopt;
  104|  9.92k|         }
  105|       |
  106|   162k|         const char c = m_str[m_pos++];
  107|       |         // Locale-independent ASCII fold; RFC 5280 DN matching does not depend on libc locale
  108|   162k|         if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (108:13): [True: 121k, False: 41.1k]
  |  Branch (108:25): [True: 42.2k, False: 79.2k]
  ------------------
  109|  42.2k|            return static_cast<char>(c + ('a' - 'A'));
  110|  42.2k|         }
  111|   120k|         return c;
  112|   162k|      }
x509_dn.cpp:_ZZN5Botan12_GLOBAL__N_120append_canonical_rdnERNSt3__16vectorIhNS1_9allocatorIhEEEERKNS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS3_ISA_EEEEENK3$_0clIS5_EEDaS6_RKT_:
  153|  32.7k|   const auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  154|  32.7k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  155|  32.7k|      out.insert(out.end(), data_len.begin(), data_len.end());
  156|  32.7k|      out.insert(out.end(), data.begin(), data.end());
  157|  32.7k|   };
x509_dn.cpp:_ZZN5Botan12_GLOBAL__N_120append_canonical_rdnERNSt3__16vectorIhNS1_9allocatorIhEEEERKNS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS3_ISA_EEEEENK3$_0clINS1_12basic_stringIcNS1_11char_traitsIcEENS3_IcEEEEEEDaS6_RKT_:
  153|  16.3k|   const auto append_canonical_data = []<typename T>(std::vector<uint8_t>& out, const T& data) {
  154|  16.3k|      const std::array<uint8_t, 8> data_len = store_le(static_cast<uint64_t>(data.size()));
  155|  16.3k|      out.insert(out.end(), data_len.begin(), data_len.end());
  156|  16.3k|      out.insert(out.end(), data.begin(), data.end());
  157|  16.3k|   };
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_115canonicalize_dnERKNSt3__16vectorINS2_INS1_4pairINS_3OIDENS_11ASN1_StringEEENS1_9allocatorIS6_EEEENS7_IS9_EEEE:
  169|  6.80k|std::vector<uint8_t> canonicalize_dn(const std::vector<std::vector<std::pair<OID, ASN1_String>>>& rdns) {
  170|  6.80k|   std::vector<uint8_t> canonical_bits;
  171|       |
  172|  16.3k|   for(const auto& rdn : rdns) {
  ------------------
  |  Branch (172:24): [True: 16.3k, False: 6.80k]
  ------------------
  173|  16.3k|      append_canonical_rdn(canonical_bits, rdn);
  174|  16.3k|   }
  175|       |
  176|  6.80k|   return canonical_bits;
  177|  6.80k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_18is_spaceEc:
   26|   209k|bool is_space(char c) {
   27|   209k|   return c == ' ' || c == '\t';
  ------------------
  |  Branch (27:11): [True: 20.1k, False: 189k]
  |  Branch (27:23): [True: 655, False: 188k]
  ------------------
   28|   209k|}

_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 2571|    692|IPAddressBlocks::IPAddress<V> IPAddressBlocks::IPAddress<V>::from_bytes(std::span<const uint8_t> v) {
 2572|    692|   if(v.size() != Length) {
  ------------------
  |  Branch (2572:7): [True: 0, False: 692]
  ------------------
 2573|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 2574|      0|   }
 2575|       |
 2576|    692|   IPAddress<V> addr{};
 2577|    692|   std::copy(v.begin(), v.end(), addr.m_value.begin());
 2578|    692|   return addr;
 2579|    692|}
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 2571|    674|IPAddressBlocks::IPAddress<V> IPAddressBlocks::IPAddress<V>::from_bytes(std::span<const uint8_t> v) {
 2572|    674|   if(v.size() != Length) {
  ------------------
  |  Branch (2572:7): [True: 0, False: 674]
  ------------------
 2573|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 2574|      0|   }
 2575|       |
 2576|    674|   IPAddress<V> addr{};
 2577|    674|   std::copy(v.begin(), v.end(), addr.m_value.begin());
 2578|    674|   return addr;
 2579|    674|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 2465|    502|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 2466|    502|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2467|       |
 2468|       |   // this can either be a prefix or a single address
 2469|    502|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (2469:7): [True: 280, False: 222]
  ------------------
 2470|       |      // construct a min and a max address from the prefix
 2471|       |
 2472|    280|      ASN1_BitString prefix;
 2473|    280|      from.decode_bitstring(prefix);
 2474|       |
 2475|       |      // min address gets filled with 0's
 2476|    280|      m_min = decode_single_address(prefix, true);
 2477|       |      // max address with 1's
 2478|    280|      m_max = decode_single_address(prefix, false);
 2479|    280|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2479:14): [True: 137, False: 85]
  ------------------
 2480|       |      // this is a range
 2481|       |
 2482|    137|      ASN1_BitString addr_min;
 2483|    137|      ASN1_BitString addr_max;
 2484|       |
 2485|    137|      from.start_sequence().decode_bitstring(addr_min).decode_bitstring(addr_max).end_cons();
 2486|       |
 2487|       |      /* RFC 3779 Section 2.2.3.9 -
 2488|       |      *
 2489|       |      *    The BIT STRING for the minimum address results from removing all the
 2490|       |      *    least-significant zero-bits from the minimum address.  The BIT STRING
 2491|       |      *    for the maximum address results from removing all the least-significant
 2492|       |      *    one-bits from the maximum address.
 2493|       |      *
 2494|       |      * So a canonically encoded minimum ends in a one bit (or is empty) and
 2495|       |      * a canonically encoded maximum ends in a zero bit (or is empty).
 2496|       |      * Section 2.2.3.9 also requires that a maximum "MUST contain at least
 2497|       |      * one bit whose value is 1", but verified erratum 2537 removes that
 2498|       |      * sentence as it contradicts the removal rule, so it is not checked.
 2499|       |      */
 2500|    137|      if(!addr_min.bytes().empty() && ((addr_min.bytes().back() >> addr_min.unused_bits()) & 1) == 0) {
  ------------------
  |  Branch (2500:10): [True: 120, False: 17]
  |  Branch (2500:10): [True: 3, False: 134]
  |  Branch (2500:39): [True: 3, False: 117]
  ------------------
 2501|      3|         throw Decoding_Error("IPAddressRange minimum must have trailing zero bits removed");
 2502|      3|      }
 2503|    134|      if(!addr_max.bytes().empty() && ((addr_max.bytes().back() >> addr_max.unused_bits()) & 1) == 1) {
  ------------------
  |  Branch (2503:10): [True: 113, False: 21]
  |  Branch (2503:10): [True: 5, False: 129]
  |  Branch (2503:39): [True: 5, False: 108]
  ------------------
 2504|      5|         throw Decoding_Error("IPAddressRange maximum must have trailing one bits removed");
 2505|      5|      }
 2506|       |
 2507|    129|      m_min = decode_single_address(addr_min, true);
 2508|    129|      m_max = decode_single_address(addr_max, false);
 2509|       |
 2510|    129|      if(m_min > m_max) {
  ------------------
  |  Branch (2510:10): [True: 11, False: 118]
  ------------------
 2511|     11|         throw Decoding_Error("IP address ranges must be sorted.");
 2512|     11|      }
 2513|       |
 2514|       |      /* RFC 3779 Section 2.2.3.7 -
 2515|       |      *
 2516|       |      *    This specification requires that any range of addresses that can be
 2517|       |      *    encoded as a prefix MUST be encoded using an IPAddress element (a BIT
 2518|       |      *    STRING), and any range that cannot be encoded as a prefix MUST be
 2519|       |      *    encoded using an IPAddressRange
 2520|       |      */
 2521|    118|      if(range_is_expressible_as_prefix<V>(m_min, m_max)) {
  ------------------
  |  Branch (2521:10): [True: 6, False: 112]
  ------------------
 2522|      6|         throw Decoding_Error("IPAddressRange expressible as a prefix must be encoded as a prefix");
 2523|      6|      }
 2524|    118|   } else {
 2525|     85|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 2526|     85|   }
 2527|    502|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE21decode_single_addressERKNS_14ASN1_BitStringEb:
 2531|    699|                                                                                          bool min) {
 2532|    699|   const size_t version_octets = static_cast<size_t>(V);
 2533|       |
 2534|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 2535|       |
 2536|    699|   if(decoded.bytes().size() > version_octets) {
  ------------------
  |  Branch (2536:7): [True: 7, False: 692]
  ------------------
 2537|      7|      throw Decoding_Error(fmt("IP address range entries must have a length between 0 and {} bytes.", version_octets));
 2538|      7|   }
 2539|       |
 2540|    692|   std::vector<uint8_t> address(decoded.bytes().begin(), decoded.bytes().end());
 2541|       |
 2542|       |   // ASN1_BitString guarantees the unused bits are zero (and absent if empty),
 2543|       |   // which is already correct for a min address; for a max address set them
 2544|    692|   if(!min && decoded.unused_bits() > 0) {
  ------------------
  |  Branch (2544:7): [True: 346, False: 346]
  |  Branch (2544:15): [True: 190, False: 156]
  ------------------
 2545|    190|      address.back() |= static_cast<uint8_t>((1 << decoded.unused_bits()) - 1);
 2546|    190|   }
 2547|       |
 2548|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 2549|    692|   address.resize(version_octets, min ? 0x00 : 0xFF);
  ------------------
  |  Branch (2549:35): [True: 346, False: 346]
  ------------------
 2550|       |
 2551|    692|   return IPAddressBlocks::IPAddress<V>::from_bytes(address);
 2552|    699|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 2465|    471|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 2466|    471|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2467|       |
 2468|       |   // this can either be a prefix or a single address
 2469|    471|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (2469:7): [True: 270, False: 201]
  ------------------
 2470|       |      // construct a min and a max address from the prefix
 2471|       |
 2472|    270|      ASN1_BitString prefix;
 2473|    270|      from.decode_bitstring(prefix);
 2474|       |
 2475|       |      // min address gets filled with 0's
 2476|    270|      m_min = decode_single_address(prefix, true);
 2477|       |      // max address with 1's
 2478|    270|      m_max = decode_single_address(prefix, false);
 2479|    270|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2479:14): [True: 115, False: 86]
  ------------------
 2480|       |      // this is a range
 2481|       |
 2482|    115|      ASN1_BitString addr_min;
 2483|    115|      ASN1_BitString addr_max;
 2484|       |
 2485|    115|      from.start_sequence().decode_bitstring(addr_min).decode_bitstring(addr_max).end_cons();
 2486|       |
 2487|       |      /* RFC 3779 Section 2.2.3.9 -
 2488|       |      *
 2489|       |      *    The BIT STRING for the minimum address results from removing all the
 2490|       |      *    least-significant zero-bits from the minimum address.  The BIT STRING
 2491|       |      *    for the maximum address results from removing all the least-significant
 2492|       |      *    one-bits from the maximum address.
 2493|       |      *
 2494|       |      * So a canonically encoded minimum ends in a one bit (or is empty) and
 2495|       |      * a canonically encoded maximum ends in a zero bit (or is empty).
 2496|       |      * Section 2.2.3.9 also requires that a maximum "MUST contain at least
 2497|       |      * one bit whose value is 1", but verified erratum 2537 removes that
 2498|       |      * sentence as it contradicts the removal rule, so it is not checked.
 2499|       |      */
 2500|    115|      if(!addr_min.bytes().empty() && ((addr_min.bytes().back() >> addr_min.unused_bits()) & 1) == 0) {
  ------------------
  |  Branch (2500:10): [True: 102, False: 13]
  |  Branch (2500:10): [True: 4, False: 111]
  |  Branch (2500:39): [True: 4, False: 98]
  ------------------
 2501|      4|         throw Decoding_Error("IPAddressRange minimum must have trailing zero bits removed");
 2502|      4|      }
 2503|    111|      if(!addr_max.bytes().empty() && ((addr_max.bytes().back() >> addr_max.unused_bits()) & 1) == 1) {
  ------------------
  |  Branch (2503:10): [True: 95, False: 16]
  |  Branch (2503:10): [True: 5, False: 106]
  |  Branch (2503:39): [True: 5, False: 90]
  ------------------
 2504|      5|         throw Decoding_Error("IPAddressRange maximum must have trailing one bits removed");
 2505|      5|      }
 2506|       |
 2507|    106|      m_min = decode_single_address(addr_min, true);
 2508|    106|      m_max = decode_single_address(addr_max, false);
 2509|       |
 2510|    106|      if(m_min > m_max) {
  ------------------
  |  Branch (2510:10): [True: 9, False: 97]
  ------------------
 2511|      9|         throw Decoding_Error("IP address ranges must be sorted.");
 2512|      9|      }
 2513|       |
 2514|       |      /* RFC 3779 Section 2.2.3.7 -
 2515|       |      *
 2516|       |      *    This specification requires that any range of addresses that can be
 2517|       |      *    encoded as a prefix MUST be encoded using an IPAddress element (a BIT
 2518|       |      *    STRING), and any range that cannot be encoded as a prefix MUST be
 2519|       |      *    encoded using an IPAddressRange
 2520|       |      */
 2521|     97|      if(range_is_expressible_as_prefix<V>(m_min, m_max)) {
  ------------------
  |  Branch (2521:10): [True: 3, False: 94]
  ------------------
 2522|      3|         throw Decoding_Error("IPAddressRange expressible as a prefix must be encoded as a prefix");
 2523|      3|      }
 2524|     97|   } else {
 2525|     86|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 2526|     86|   }
 2527|    471|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE21decode_single_addressERKNS_14ASN1_BitStringEb:
 2531|    679|                                                                                          bool min) {
 2532|    679|   const size_t version_octets = static_cast<size_t>(V);
 2533|       |
 2534|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 2535|       |
 2536|    679|   if(decoded.bytes().size() > version_octets) {
  ------------------
  |  Branch (2536:7): [True: 5, False: 674]
  ------------------
 2537|      5|      throw Decoding_Error(fmt("IP address range entries must have a length between 0 and {} bytes.", version_octets));
 2538|      5|   }
 2539|       |
 2540|    674|   std::vector<uint8_t> address(decoded.bytes().begin(), decoded.bytes().end());
 2541|       |
 2542|       |   // ASN1_BitString guarantees the unused bits are zero (and absent if empty),
 2543|       |   // which is already correct for a min address; for a max address set them
 2544|    674|   if(!min && decoded.unused_bits() > 0) {
  ------------------
  |  Branch (2544:7): [True: 337, False: 337]
  |  Branch (2544:15): [True: 210, False: 127]
  ------------------
 2545|    210|      address.back() |= static_cast<uint8_t>((1 << decoded.unused_bits()) - 1);
 2546|    210|   }
 2547|       |
 2548|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 2549|    674|   address.resize(version_octets, min ? 0x00 : 0xFF);
  ------------------
  |  Branch (2549:35): [True: 337, False: 337]
  ------------------
 2550|       |
 2551|    674|   return IPAddressBlocks::IPAddress<V>::from_bytes(address);
 2552|    679|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 2340|    368|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 2341|    368|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2342|       |
 2343|    368|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2343:7): [True: 36, False: 332]
  ------------------
 2344|     36|      from.decode_null();
 2345|     36|      m_ip_addr_ranges = std::nullopt;
 2346|    332|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2346:14): [True: 252, False: 80]
  ------------------
 2347|    252|      std::vector<IPAddressOrRange<V>> ip_ranges;
 2348|    252|      from.decode_list(ip_ranges);
 2349|       |
 2350|       |      /* RFC 3779 Section 2.2.3.6 -
 2351|       |      *
 2352|       |      *    Any pair of IPAddressOrRange choices in an extension MUST NOT overlap
 2353|       |      *    each other. Any contiguous address prefixes or ranges MUST be combined
 2354|       |      *    into a single range or, whenever possible, a single prefix.
 2355|       |      */
 2356|    252|      if(!ranges_are_sorted_and_merged(ip_ranges)) {
  ------------------
  |  Branch (2356:10): [True: 25, False: 227]
  ------------------
 2357|     25|         throw Decoding_Error("IPAddressChoice entries must be sorted, non-overlapping and fully merged");
 2358|     25|      }
 2359|    227|      m_ip_addr_ranges = std::move(ip_ranges);
 2360|    227|   } else {
 2361|     80|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 2362|     80|   }
 2363|    368|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 2340|    356|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 2341|    356|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2342|       |
 2343|    356|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2343:7): [True: 49, False: 307]
  ------------------
 2344|     49|      from.decode_null();
 2345|     49|      m_ip_addr_ranges = std::nullopt;
 2346|    307|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2346:14): [True: 245, False: 62]
  ------------------
 2347|    245|      std::vector<IPAddressOrRange<V>> ip_ranges;
 2348|    245|      from.decode_list(ip_ranges);
 2349|       |
 2350|       |      /* RFC 3779 Section 2.2.3.6 -
 2351|       |      *
 2352|       |      *    Any pair of IPAddressOrRange choices in an extension MUST NOT overlap
 2353|       |      *    each other. Any contiguous address prefixes or ranges MUST be combined
 2354|       |      *    into a single range or, whenever possible, a single prefix.
 2355|       |      */
 2356|    245|      if(!ranges_are_sorted_and_merged(ip_ranges)) {
  ------------------
  |  Branch (2356:10): [True: 28, False: 217]
  ------------------
 2357|     28|         throw Decoding_Error("IPAddressChoice entries must be sorted, non-overlapping and fully merged");
 2358|     28|      }
 2359|    217|      m_ip_addr_ranges = std::move(ip_ranges);
 2360|    217|   } else {
 2361|     62|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 2362|     62|   }
 2363|    356|}
_ZN5Botan10Extensions15create_extn_objERKNS_3OIDEbRKNSt3__16vectorIhNS4_9allocatorIhEEEENS4_8optionalINS_17Extension_ContextEEE:
  138|  14.9k|                                                                   std::optional<Extension_Context> context) {
  139|  14.9k|   auto extn = extension_from_oid(oid);
  140|       |
  141|  14.9k|   if(!extn) {
  ------------------
  |  Branch (141:7): [True: 5.75k, False: 9.16k]
  ------------------
  142|       |      // some other unknown extension type
  143|  5.75k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  144|  9.16k|   } else {
  145|  9.16k|      if(context.has_value() && !extn->is_appropriate_context(*context)) {
  ------------------
  |  Branch (145:10): [True: 9.16k, False: 0]
  |  Branch (145:33): [True: 3, False: 9.16k]
  ------------------
  146|      3|         throw Decoding_Error(fmt("Extension {} is not allowed in this context", extn->oid_name()));
  147|      3|      }
  148|       |
  149|  9.16k|      try {
  150|  9.16k|         extn->decode_inner(body);
  151|  9.16k|         return extn;
  152|  9.16k|      } catch(const Exception&) {
  153|       |         // OID was recognized but contents failed to decode
  154|  7.03k|         extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical, /*failed_to_decode=*/true);
  155|  7.03k|      }
  156|  9.16k|   }
  157|       |
  158|       |   // This is always Unknown_Extension:
  159|  12.7k|   extn->decode_inner(body);
  160|  12.7k|   return extn;
  161|  14.9k|}
_ZNK5Botan10Extensions15Extensions_Info3objEv:
  163|  1.68k|const Certificate_Extension& Extensions::Extensions_Info::obj() const {
  164|  1.68k|   BOTAN_ASSERT_NONNULL(m_obj.get());
  ------------------
  |  |  123|  1.68k|   do {                                                                                   \
  |  |  124|  1.68k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (124:10): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |  125|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  126|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  127|      0|      }                                                                                   \
  |  |  128|  1.68k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (128:12): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  165|  1.68k|   return *m_obj;
  166|  1.68k|}
_ZNK5Botan10Extensions13extension_setERKNS_3OIDE:
  225|  1.61k|bool Extensions::extension_set(const OID& oid) const {
  226|  1.61k|   return m_extension_info.contains(oid);
  227|  1.61k|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  246|  5.95k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  247|  5.95k|   const auto extn = m_extension_info.find(oid);
  248|  5.95k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (248:7): [True: 4.27k, False: 1.68k]
  ------------------
  249|  4.27k|      return nullptr;
  250|  4.27k|   }
  251|       |
  252|  1.68k|   return &extn->second.obj();
  253|  5.95k|}
_ZN5Botan10Extensions11decode_fromERNS_11BER_DecoderENSt3__18optionalINS_17Extension_ContextEEE:
  316|  3.02k|void Extensions::decode_from(BER_Decoder& from_source, std::optional<Extension_Context> context) {
  317|  3.02k|   m_extension_oids.clear();
  318|  3.02k|   m_extension_info.clear();
  319|  3.02k|   m_has_unknown_critical_extension = false;
  320|       |
  321|  3.02k|   BER_Decoder sequence = from_source.start_sequence();
  322|       |
  323|  18.0k|   while(sequence.more_items()) {
  ------------------
  |  Branch (323:10): [True: 16.2k, False: 1.83k]
  ------------------
  324|  16.2k|      OID oid;
  325|  16.2k|      bool critical = false;
  326|  16.2k|      std::vector<uint8_t> bits;
  327|       |
  328|  16.2k|      sequence.start_sequence()
  329|  16.2k|         .decode(oid)
  330|  16.2k|         .decode_optional(critical, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  331|  16.2k|         .decode(bits, ASN1_Type::OctetString)
  332|  16.2k|         .end_cons();
  333|       |
  334|  16.2k|      auto obj = create_extn_obj(oid, critical, bits, context);
  335|       |      // Unknown_Extension is the only Certificate_Extension with an empty oid_name
  336|  16.2k|      if(critical && obj->oid_name().empty()) {
  ------------------
  |  Branch (336:10): [True: 2.10k, False: 14.1k]
  |  Branch (336:10): [True: 1.43k, False: 14.7k]
  |  Branch (336:22): [True: 1.43k, False: 664]
  ------------------
  337|  1.43k|         m_has_unknown_critical_extension = true;
  338|  1.43k|      }
  339|  16.2k|      Extensions_Info info(critical, std::move(bits), std::move(obj));
  340|       |
  341|  16.2k|      m_extension_oids.push_back(oid);
  342|       |
  343|       |      // RFC 5280 4.2: "A certificate MUST NOT include more than one
  344|       |      // instance of a particular extension."
  345|  16.2k|      if(!m_extension_info.emplace(std::move(oid), std::move(info)).second) {
  ------------------
  |  Branch (345:10): [True: 1.18k, False: 15.0k]
  ------------------
  346|  1.18k|         throw Decoding_Error("Duplicate certificate extension encountered");
  347|  1.18k|      }
  348|  16.2k|   }
  349|  1.83k|   sequence.verify_end();
  350|  1.83k|}
_ZNK5Botan14Cert_Extension17Basic_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  354|    857|bool Basic_Constraints::is_appropriate_context(Extension_Context context) const {
  355|    857|   return context == Extension_Context::Certificate;
  356|    857|}
_ZNK5Botan14Cert_Extension9Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  358|  1.05k|bool Key_Usage::is_appropriate_context(Extension_Context context) const {
  359|  1.05k|   return context == Extension_Context::Certificate;
  360|  1.05k|}
_ZNK5Botan14Cert_Extension14Subject_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  362|    446|bool Subject_Key_ID::is_appropriate_context(Extension_Context context) const {
  363|    446|   return context == Extension_Context::Certificate;
  364|    446|}
_ZNK5Botan14Cert_Extension16Authority_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  366|    735|bool Authority_Key_ID::is_appropriate_context(Extension_Context context) const {
  367|    735|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (367:11): [True: 735, False: 0]
  |  Branch (367:56): [True: 0, False: 0]
  ------------------
  368|    735|}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  370|  1.01k|bool Subject_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  371|  1.01k|   return context == Extension_Context::Certificate;
  372|  1.01k|}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  374|    720|bool Issuer_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  375|    720|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (375:11): [True: 720, False: 0]
  |  Branch (375:56): [True: 0, False: 0]
  ------------------
  376|    720|}
_ZNK5Botan14Cert_Extension18Extended_Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  378|    270|bool Extended_Key_Usage::is_appropriate_context(Extension_Context context) const {
  379|    270|   return context == Extension_Context::Certificate;
  380|    270|}
_ZNK5Botan14Cert_Extension16Name_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  382|    434|bool Name_Constraints::is_appropriate_context(Extension_Context context) const {
  383|    434|   return context == Extension_Context::Certificate;
  384|    434|}
_ZNK5Botan14Cert_Extension20Certificate_Policies22is_appropriate_contextENS_17Extension_ContextE:
  386|    674|bool Certificate_Policies::is_appropriate_context(Extension_Context context) const {
  387|    674|   return context == Extension_Context::Certificate;
  388|    674|}
_ZNK5Botan14Cert_Extension28Authority_Information_Access22is_appropriate_contextENS_17Extension_ContextE:
  390|    486|bool Authority_Information_Access::is_appropriate_context(Extension_Context context) const {
  391|    486|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (391:11): [True: 486, False: 0]
  |  Branch (391:56): [True: 0, False: 0]
  ------------------
  392|    486|}
_ZNK5Botan14Cert_Extension10CRL_Number22is_appropriate_contextENS_17Extension_ContextE:
  394|      1|bool CRL_Number::is_appropriate_context(Extension_Context context) const {
  395|      1|   return context == Extension_Context::CRL;
  396|      1|}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode22is_appropriate_contextENS_17Extension_ContextE:
  398|      1|bool CRL_ReasonCode::is_appropriate_context(Extension_Context context) const {
  399|       |   // RFC 6960 4.4.5: "All the extensions specified as CRL entry extensions
  400|       |   // -- in Section 5.3 of [RFC5280] -- are also supported as singleExtensions."
  401|      1|   return context == Extension_Context::CRL_Entry || context == Extension_Context::OCSP_Response;
  ------------------
  |  Branch (401:11): [True: 0, False: 1]
  |  Branch (401:54): [True: 0, False: 1]
  ------------------
  402|      1|}
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points22is_appropriate_contextENS_17Extension_ContextE:
  404|    931|bool CRL_Distribution_Points::is_appropriate_context(Extension_Context context) const {
  405|    931|   return context == Extension_Context::Certificate;
  406|    931|}
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point22is_appropriate_contextENS_17Extension_ContextE:
  408|      1|bool CRL_Issuing_Distribution_Point::is_appropriate_context(Extension_Context context) const {
  409|      1|   return context == Extension_Context::CRL;
  410|      1|}
_ZNK5Botan14Cert_Extension21NoRevocationAvailable22is_appropriate_contextENS_17Extension_ContextE:
  416|     21|bool NoRevocationAvailable::is_appropriate_context(Extension_Context context) const {
  417|     21|   return context == Extension_Context::Certificate;
  418|     21|}
_ZNK5Botan14Cert_Extension10TNAuthList22is_appropriate_contextENS_17Extension_ContextE:
  420|    214|bool TNAuthList::is_appropriate_context(Extension_Context context) const {
  421|    214|   return context == Extension_Context::Certificate;
  422|    214|}
_ZNK5Botan14Cert_Extension15IPAddressBlocks22is_appropriate_contextENS_17Extension_ContextE:
  424|    718|bool IPAddressBlocks::is_appropriate_context(Extension_Context context) const {
  425|    718|   return context == Extension_Context::Certificate;
  426|    718|}
_ZNK5Botan14Cert_Extension8ASBlocks22is_appropriate_contextENS_17Extension_ContextE:
  428|    587|bool ASBlocks::is_appropriate_context(Extension_Context context) const {
  429|    587|   return context == Extension_Context::Certificate;
  430|    587|}
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2Ebm:
  437|    857|      Basic_Constraints(is_ca, is_ca ? std::optional<size_t>(path_length_constraint) : std::nullopt) {}
  ------------------
  |  Branch (437:32): [True: 0, False: 857]
  ------------------
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2EbNSt3__18optionalImEE:
  440|    857|      m_is_ca(is_ca), m_path_length_constraint(path_length_constraint) {
  441|    857|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (441:7): [True: 857, False: 0]
  |  Branch (441:19): [True: 0, False: 857]
  ------------------
  442|       |      // RFC 5280 Sec 4.2.1.9 "CAs MUST NOT include the pathLenConstraint field unless the cA boolean is asserted"
  443|      0|      throw Invalid_Argument(
  444|      0|         "Basic_Constraints nonsensical to set a path length constraint for a non-CA basicConstraints");
  445|      0|   }
  446|    857|}
_ZN5Botan14Cert_Extension17Basic_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  477|    857|void Basic_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  478|       |   /*
  479|       |   * RFC 5280 Section 4.2.1.9
  480|       |   *
  481|       |   * BasicConstraints ::= SEQUENCE {
  482|       |   *    cA                      BOOLEAN DEFAULT FALSE,
  483|       |   *    pathLenConstraint       INTEGER (0..MAX) OPTIONAL }
  484|       |   */
  485|    857|   BER_Decoder(in, BER_Decoder::Limits::DER())
  486|    857|      .start_sequence()
  487|    857|      .decode_optional(m_is_ca, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  488|    857|      .decode_optional(m_path_length_constraint, ASN1_Type::Integer, ASN1_Class::Universal)
  489|    857|      .end_cons()
  490|    857|      .verify_end();
  491|       |
  492|       |   /* RFC 5280 Section 4.2.1.9:
  493|       |   *  "CAs MUST NOT include the pathLenConstraint field unless the cA boolean
  494|       |   *  is asserted and the key usage extension asserts the keyCertSign bit" */
  495|    857|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (495:7): [True: 53, False: 804]
  |  Branch (495:19): [True: 6, False: 47]
  ------------------
  496|      6|      throw Decoding_Error("BasicConstraints pathLenConstraint must not be present when cA is FALSE");
  497|      6|   }
  498|    857|}
_ZN5Botan14Cert_Extension9Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  516|  1.05k|void Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  517|       |   /* RFC 5280 Section 4.2.1.3 - KeyUsage ::= BIT STRING */
  518|  1.05k|   uint64_t usage = 0;
  519|  1.05k|   BER_Decoder(in, BER_Decoder::Limits::DER())
  520|  1.05k|      .decode_named_bitstring(usage, 16, ASN1_Type::BitString, ASN1_Class::Universal)
  521|  1.05k|      .verify_end();
  522|       |
  523|       |   /* RFC 5280 Section 4.2.1.3:
  524|       |   *  "When the keyUsage extension appears in a certificate, at least one of
  525|       |   *  the bits MUST be set to 1." */
  526|  1.05k|   if(usage == 0) {
  ------------------
  |  Branch (526:7): [True: 0, False: 1.05k]
  ------------------
  527|      0|      throw Decoding_Error("KeyUsage extension must have at least one bit set");
  528|      0|   }
  529|       |
  530|  1.05k|   m_constraints = Key_Constraints(static_cast<uint32_t>(usage));
  531|  1.05k|}
_ZN5Botan14Cert_Extension14Subject_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  545|    446|void Subject_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  546|       |   /* RFC 5280 Section 4.2.1.2 - SubjectKeyIdentifier ::= KeyIdentifier */
  547|    446|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_key_id, ASN1_Type::OctetString).verify_end();
  548|       |
  549|    446|   if(m_key_id.empty()) {
  ------------------
  |  Branch (549:7): [True: 0, False: 446]
  ------------------
  550|      0|      throw Decoding_Error("SubjectKeyIdentifier must not be empty");
  551|      0|   }
  552|    446|   if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (552:7): [True: 0, False: 446]
  ------------------
  553|      0|      throw Decoding_Error(
  554|      0|         fmt("SubjectKeyIdentifier length {} exceeds limit of {} bytes", m_key_id.size(), MaximumKeyIdentifierLength));
  555|      0|   }
  556|    446|}
_ZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  615|    735|void Authority_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  616|       |   /*
  617|       |   * RFC 5280 Section 4.2.1.1
  618|       |   *
  619|       |   * AuthorityKeyIdentifier ::= SEQUENCE {
  620|       |   *    keyIdentifier             [0] KeyIdentifier           OPTIONAL,
  621|       |   *    authorityCertIssuer       [1] GeneralNames            OPTIONAL,
  622|       |   *    authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
  623|       |   */
  624|    735|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  625|    735|   BER_Decoder seq = ber.start_sequence();
  626|       |
  627|    735|   m_key_id.clear();
  628|    735|   m_authority_cert.reset();
  629|       |
  630|    735|   bool key_id_present = false;
  631|    735|   std::optional<AlternativeName> authority_cert_issuer;
  632|    735|   std::optional<X509_Serial_Number> authority_cert_serial;
  633|       |
  634|    735|   seq.decode_optional_field(0,
  635|    735|                             ASN1_Class::ContextSpecific,
  636|    735|                             [&](BER_Decoder& d) {
  637|    735|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  638|    735|                                key_id_present = true;
  639|    735|                             })
  640|    735|      .decode_optional_field(1,
  641|    735|                             ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  642|    735|                             [&](BER_Decoder& d) {
  643|    735|                                AlternativeName names;
  644|    735|                                d.decode_implicit(names,
  645|    735|                                                  ASN1_Type(1),
  646|    735|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  647|    735|                                                  ASN1_Type::Sequence,
  648|    735|                                                  ASN1_Class::Constructed);
  649|    735|                                authority_cert_issuer = std::move(names);
  650|    735|                             })
  651|    735|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  652|    735|         X509_Serial_Number serial;
  653|    735|         d.decode_implicit(
  654|    735|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  655|    735|         authority_cert_serial = std::move(serial);
  656|    735|      });
  657|       |
  658|    735|   seq.end_cons();
  659|    735|   ber.verify_end();
  660|       |
  661|    735|   if(key_id_present) {
  ------------------
  |  Branch (661:7): [True: 76, False: 659]
  ------------------
  662|     76|      if(m_key_id.empty()) {
  ------------------
  |  Branch (662:10): [True: 0, False: 76]
  ------------------
  663|      0|         throw Decoding_Error("AuthorityKeyIdentifier keyIdentifier must not be empty");
  664|      0|      }
  665|     76|      if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (665:10): [True: 2, False: 74]
  ------------------
  666|      2|         throw Decoding_Error(fmt("AuthorityKeyIdentifier keyIdentifier length {} exceeds limit of {} bytes",
  667|      2|                                  m_key_id.size(),
  668|      2|                                  MaximumKeyIdentifierLength));
  669|      2|      }
  670|     76|   }
  671|       |
  672|       |   // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
  673|    733|   if(authority_cert_issuer.has_value() && authority_cert_issuer->is_empty()) {
  ------------------
  |  Branch (673:7): [True: 19, False: 714]
  |  Branch (673:44): [True: 2, False: 17]
  ------------------
  674|      2|      throw Decoding_Error("AuthorityKeyIdentifier authorityCertIssuer must contain at least one GeneralName");
  675|      2|   }
  676|       |
  677|       |   /*
  678|       |   * RFC 5280 Appendix A.2:
  679|       |   *
  680|       |   *    authorityCertIssuer and authorityCertSerialNumber MUST both be
  681|       |   *    present or both be absent
  682|       |   */
  683|    731|   if(authority_cert_issuer.has_value() != authority_cert_serial.has_value()) {
  ------------------
  |  Branch (683:7): [True: 11, False: 720]
  ------------------
  684|     11|      throw Decoding_Error(
  685|     11|         "AuthorityKeyIdentifier authorityCertIssuer and authorityCertSerialNumber must both be present or absent");
  686|     11|   }
  687|       |
  688|    720|   if(authority_cert_issuer.has_value()) {
  ------------------
  |  Branch (688:7): [True: 17, False: 703]
  ------------------
  689|     17|      m_authority_cert =
  690|     17|         Authority_Cert_Identifier{std::move(*authority_cert_issuer), std::move(*authority_cert_serial)};
  691|     17|   }
  692|    720|}
_ZN5Botan14Cert_Extension24Subject_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  715|  1.01k|void Subject_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  716|       |   /* RFC 5280 Section 4.2.1.6 - SubjectAltName ::= GeneralNames
  717|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  718|  1.01k|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  719|  1.01k|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (719:7): [True: 7, False: 1.00k]
  ------------------
  720|      7|      throw Decoding_Error("SubjectAlternativeName extension must contain at least one GeneralName");
  721|      7|   }
  722|  1.01k|}
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  727|    720|void Issuer_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  728|       |   /* RFC 5280 Section 4.2.1.7 - IssuerAltName ::= GeneralNames
  729|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  730|    720|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  731|    720|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (731:7): [True: 5, False: 715]
  ------------------
  732|      5|      throw Decoding_Error("IssuerAlternativeName extension must contain at least one GeneralName");
  733|      5|   }
  734|    720|}
_ZN5Botan14Cert_Extension18Extended_Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  748|    270|void Extended_Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  749|       |   /* RFC 5280 Section 4.2.1.12 - ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId */
  750|    270|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_oids).verify_end();
  751|    270|   if(m_oids.empty()) {
  ------------------
  |  Branch (751:7): [True: 3, False: 267]
  ------------------
  752|      3|      throw Decoding_Error("ExtendedKeyUsage extension must contain at least one KeyPurposeId");
  753|      3|   }
  754|    270|}
_ZN5Botan14Cert_Extension16Name_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  783|    434|void Name_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  784|       |   /*
  785|       |   * RFC 5280 Section 4.2.1.10
  786|       |   *
  787|       |   * NameConstraints ::= SEQUENCE {
  788|       |   *    permittedSubtrees       [0] GeneralSubtrees OPTIONAL,
  789|       |   *    excludedSubtrees        [1] GeneralSubtrees OPTIONAL }
  790|       |   */
  791|    434|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  792|    434|   BER_Decoder inner = ber.start_sequence();
  793|       |
  794|    434|   std::vector<GeneralSubtree> permitted;
  795|    434|   if(inner.decode_optional_list(permitted, ASN1_Type(0), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (795:7): [True: 107, False: 327]
  ------------------
  796|    107|      if(permitted.empty()) {
  ------------------
  |  Branch (796:10): [True: 5, False: 102]
  ------------------
  797|      5|         throw Decoding_Error("Empty NameConstraint permitted list");
  798|      5|      }
  799|    107|   }
  800|       |
  801|    429|   std::vector<GeneralSubtree> excluded;
  802|    429|   if(inner.decode_optional_list(excluded, ASN1_Type(1), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (802:7): [True: 57, False: 372]
  ------------------
  803|     57|      if(excluded.empty()) {
  ------------------
  |  Branch (803:10): [True: 6, False: 51]
  ------------------
  804|      6|         throw Decoding_Error("Empty NameConstraint excluded list");
  805|      6|      }
  806|     57|   }
  807|       |
  808|    423|   inner.end_cons();
  809|    423|   ber.verify_end();
  810|       |
  811|    423|   if(permitted.empty() && excluded.empty()) {
  ------------------
  |  Branch (811:7): [True: 18, False: 405]
  |  Branch (811:28): [True: 3, False: 15]
  ------------------
  812|      3|      throw Decoding_Error("Empty NameConstraint extension");
  813|      3|   }
  814|       |
  815|    420|   m_name_constraints = NameConstraints(std::move(permitted), std::move(excluded));
  816|    420|}
_ZN5Botan14Cert_Extension20Certificate_Policies12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  911|    674|void Certificate_Policies::decode_inner(const std::vector<uint8_t>& in) {
  912|       |   /* RFC 5280 Section 4.2.1.4 - CertificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation */
  913|    674|   std::vector<Policy_Information> policies;
  914|       |
  915|    674|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(policies).verify_end();
  916|    674|   if(policies.empty()) {
  ------------------
  |  Branch (916:7): [True: 3, False: 671]
  ------------------
  917|      3|      throw Decoding_Error("CertificatePolicies extension must contain at least one PolicyInformation");
  918|      3|   }
  919|    671|   m_oids.clear();
  920|    822|   for(const auto& policy : policies) {
  ------------------
  |  Branch (920:27): [True: 822, False: 671]
  ------------------
  921|    822|      m_oids.push_back(policy.oid());
  922|    822|   }
  923|    671|   m_has_duplicate = policy_oids_have_duplicate(m_oids);
  924|    671|}
_ZN5Botan14Cert_Extension28Authority_Information_Access12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1125|    486|void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) {
 1126|       |   /*
 1127|       |   * RFC 5280 Section 4.2.2.1
 1128|       |   *
 1129|       |   * AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription
 1130|       |   * AccessDescription ::= SEQUENCE {
 1131|       |   *    accessMethod          OBJECT IDENTIFIER,
 1132|       |   *    accessLocation        GeneralName }
 1133|       |   */
 1134|    486|   BER_Decoder outer(in, BER_Decoder::Limits::DER());
 1135|    486|   BER_Decoder ber = outer.start_sequence();
 1136|       |
 1137|    486|   const OID ocsp_responder = OID::from_string("PKIX.OCSP");
 1138|    486|   const OID ca_issuer = OID::from_string("PKIX.CertificateAuthorityIssuers");
 1139|       |
 1140|    486|   m_access_descriptions.clear();
 1141|    486|   m_ocsp_responders.clear();
 1142|    486|   m_ca_issuers.clear();
 1143|       |
 1144|  1.13k|   while(ber.more_items()) {
  ------------------
  |  Branch (1144:10): [True: 653, False: 485]
  ------------------
 1145|    653|      OID oid;
 1146|       |
 1147|    653|      BER_Decoder info = ber.start_sequence();
 1148|       |
 1149|    653|      info.decode(oid);
 1150|    653|      const BER_Object name = info.get_next_object();
 1151|       |
 1152|       |      /* RFC 5280 4.2.2.1:
 1153|       |      *    AccessDescription  ::=  SEQUENCE {
 1154|       |      *         accessMethod          OBJECT IDENTIFIER,
 1155|       |      *         accessLocation        GeneralName  }
 1156|       |      */
 1157|    653|      if(!name.is_set()) {
  ------------------
  |  Branch (1157:10): [True: 1, False: 652]
  ------------------
 1158|      1|         throw Decoding_Error("AuthorityInformationAccess AccessDescription missing accessLocation");
 1159|      1|      }
 1160|    652|      validate_general_name_encoding(name.type_tag(), name.get_class(), name.data());
 1161|    652|      info.end_cons();
 1162|       |
 1163|    652|      m_access_descriptions.emplace_back(
 1164|    652|         oid, name.type_tag(), name.get_class(), std::vector<uint8_t>(name.data().begin(), name.data().end()));
 1165|       |
 1166|    652|      if(name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (1166:10): [True: 242, False: 410]
  ------------------
 1167|    242|         if(oid == ocsp_responder) {
  ------------------
  |  Branch (1167:13): [True: 69, False: 173]
  ------------------
 1168|     69|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1168:21): [True: 69, False: 0]
  ------------------
 1169|     69|               m_ocsp_responders.push_back(std::move(*parsed));
 1170|     69|            } else {
 1171|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess OCSP responder");
 1172|      0|            }
 1173|    173|         } else if(oid == ca_issuer) {
  ------------------
  |  Branch (1173:20): [True: 64, False: 109]
  ------------------
 1174|     64|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1174:21): [True: 64, False: 0]
  ------------------
 1175|     64|               m_ca_issuers.push_back(std::move(*parsed));
 1176|     64|            } else {
 1177|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess CA issuers");
 1178|      0|            }
 1179|     64|         }
 1180|    242|      }
 1181|    652|   }
 1182|       |
 1183|    485|   ber.end_cons();
 1184|    485|   outer.verify_end();
 1185|       |
 1186|    485|   if(m_access_descriptions.empty()) {
  ------------------
  |  Branch (1186:7): [True: 0, False: 485]
  ------------------
 1187|      0|      throw Decoding_Error("AuthorityInformationAccess extension must contain at least one AccessDescription");
 1188|      0|   }
 1189|    485|}
_ZN5Botan14Cert_Extension21DistributionPointName11decode_fromERNS_11BER_DecoderE:
 1346|    788|void DistributionPointName::decode_from(BER_Decoder& ber) {
 1347|    788|   const BER_Object& obj = ber.peek_next_object();
 1348|    788|   if(obj.is_a(0, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1348:7): [True: 722, False: 66]
  ------------------
 1349|    722|      AlternativeName full_name;
 1350|    722|      ber.decode_implicit(full_name,
 1351|    722|                          ASN1_Type(0),
 1352|    722|                          ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1353|    722|                          ASN1_Type::Sequence,
 1354|    722|                          ASN1_Class::Constructed);
 1355|       |      // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 1356|    722|      if(!full_name.has_items()) {
  ------------------
  |  Branch (1356:10): [True: 12, False: 710]
  ------------------
 1357|     12|         throw Decoding_Error("DistributionPointName fullName must contain at least one GeneralName");
 1358|     12|      }
 1359|    710|      if(std::ranges::any_of(full_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1359:10): [True: 0, False: 710]
  ------------------
 1360|      0|         throw Decoding_Error("DistributionPointName fullName must not contain an empty directoryName");
 1361|      0|      }
 1362|    710|      m_full_name = std::move(full_name);
 1363|    710|   } else if(obj.is_a(1, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1363:14): [True: 3, False: 63]
  ------------------
 1364|      3|      throw Decoding_Error("nameRelativeToCrlIssuer not supported in DistributionPointName");
 1365|     63|   } else {
 1366|     63|      throw Decoding_Error("DistributionPointName CHOICE is neither fullName nor nameRelativeToCRLIssuer");
 1367|     63|   }
 1368|    788|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1376|    931|void CRL_Distribution_Points::decode_inner(const std::vector<uint8_t>& buf) {
 1377|       |   /*
 1378|       |   * RFC 5280 Section 4.2.1.13
 1379|       |   *
 1380|       |   * CRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint
 1381|       |   */
 1382|    931|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_list(m_distribution_points).verify_end();
 1383|       |
 1384|    931|   if(m_distribution_points.empty()) {
  ------------------
  |  Branch (1384:7): [True: 3, False: 928]
  ------------------
 1385|      3|      throw Decoding_Error("CRLDistributionPoints extension must contain at least one DistributionPoint");
 1386|      3|   }
 1387|       |
 1388|    928|   m_crl_distribution_urls = crl_distribution_point_uris_from_distribution_points(m_distribution_points);
 1389|    928|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderE:
 1438|    888|void CRL_Distribution_Points::Distribution_Point::decode_from(BER_Decoder& ber) {
 1439|       |   /*
 1440|       |   * DistributionPoint ::= SEQUENCE {
 1441|       |   *      distributionPoint       [0]     DistributionPointName OPTIONAL,
 1442|       |   *      reasons                 [1]     ReasonFlags OPTIONAL,
 1443|       |   *      cRLIssuer               [2]     GeneralNames OPTIONAL }
 1444|       |   */
 1445|    888|   BER_Decoder dp = ber.start_sequence();
 1446|       |
 1447|    888|   m_dp_name.reset();
 1448|    888|   m_reasons.reset();
 1449|    888|   m_crl_issuer.reset();
 1450|       |
 1451|       |   // DER: these optional fields appear at most once and in increasing tag
 1452|       |   // order. Decoding them in tag order and then rejecting anything left over
 1453|       |   // (see end_cons below) catches out-of-order, duplicate, and unknown fields.
 1454|    888|   dp.decode_optional_field(0,
 1455|    888|                            ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1456|    888|                            [&](BER_Decoder& d) {
 1457|    888|                               DistributionPointName name;
 1458|    888|                               d.start_context_specific(0).decode(name).verify_end();
 1459|    888|                               m_dp_name = std::move(name);
 1460|    888|                            })
 1461|    888|      .decode_optional_field(
 1462|    888|         1, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_reasons = decode_reason_flags_implicit(d, 1); })
 1463|    888|      .decode_optional_field(2, ASN1_Class::ContextSpecific | ASN1_Class::Constructed, [&](BER_Decoder& d) {
 1464|    888|         AlternativeName crl_issuer;
 1465|    888|         d.decode_implicit(crl_issuer,
 1466|    888|                           ASN1_Type(2),
 1467|    888|                           ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1468|    888|                           ASN1_Type::Sequence,
 1469|    888|                           ASN1_Class::Constructed);
 1470|    888|         m_crl_issuer = std::move(crl_issuer);
 1471|    888|      });
 1472|       |
 1473|    888|   dp.end_cons();
 1474|       |
 1475|       |   // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 1476|    888|   if(m_crl_issuer.has_value() && m_crl_issuer->is_empty()) {
  ------------------
  |  Branch (1476:7): [True: 2, False: 886]
  |  Branch (1476:35): [True: 1, False: 1]
  ------------------
 1477|      1|      throw Decoding_Error("cRLIssuer GeneralNames must contain at least one GeneralName");
 1478|      1|   }
 1479|       |
 1480|    887|   if(m_crl_issuer.has_value() && !crl_issuer_is_well_formed(*m_crl_issuer)) {
  ------------------
  |  Branch (1480:7): [True: 1, False: 886]
  |  Branch (1480:35): [True: 1, False: 0]
  ------------------
 1481|       |      /* RFC 5280 4.2.1.13: "If present, the cRLIssuer MUST only contain the
 1482|       |      * distinguished name (DN) from the issuer field of the CRL". */
 1483|      1|      throw Decoding_Error("cRLIssuer must contain exactly one non-empty directoryName GeneralName");
 1484|      1|   }
 1485|       |
 1486|    886|   if(!m_dp_name.has_value() && !m_crl_issuer.has_value()) {
  ------------------
  |  Branch (1486:7): [True: 3, False: 883]
  |  Branch (1486:33): [True: 3, False: 0]
  ------------------
 1487|      3|      throw Decoding_Error("DistributionPoint must contain either distributionPoint or cRLIssuer");
 1488|      3|   }
 1489|    886|}
_ZN5Botan14Cert_Extension10TNAuthList5Entry11decode_fromERNS_11BER_DecoderE:
 1667|    301|void TNAuthList::Entry::decode_from(BER_Decoder& ber) {
 1668|    301|   const auto decode_ia5_string = [](BER_Decoder& from, std::string_view what) {
 1669|    301|      ASN1_String str;
 1670|    301|      from.decode(str);
 1671|    301|      if(str.tagging() != ASN1_Type::Ia5String) {
 1672|    301|         throw Decoding_Error(fmt("TNAuthList {} must be an IA5String", what));
 1673|    301|      }
 1674|    301|      return str.value();
 1675|    301|   };
 1676|       |
 1677|    301|   const BER_Object obj = ber.get_next_object();
 1678|       |
 1679|       |   // The TNEntry alternatives are explicitly tagged so each is constructed
 1680|    301|   if(obj.get_class() != (ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1680:7): [True: 27, False: 274]
  ------------------
 1681|     27|      throw Decoding_Error(fmt("Unexpected TNEntry class tag {}", static_cast<uint32_t>(obj.get_class())));
 1682|     27|   }
 1683|       |
 1684|    274|   const uint32_t type_tag = static_cast<uint32_t>(obj.type_tag());
 1685|    274|   BER_Decoder inner(obj, ber.limits());
 1686|       |
 1687|    274|   if(type_tag == ServiceProviderCode) {
  ------------------
  |  Branch (1687:7): [True: 93, False: 181]
  ------------------
 1688|     93|      m_type = ServiceProviderCode;
 1689|     93|      m_data = decode_ia5_string(inner, "ServiceProviderCode");
 1690|    181|   } else if(type_tag == TelephoneNumberRange) {
  ------------------
  |  Branch (1690:14): [True: 98, False: 83]
  ------------------
 1691|     98|      BER_Decoder range = inner.start_sequence();
 1692|       |
 1693|     98|      const auto start = Botan::TelephoneNumber::from_string(decode_ia5_string(range, "TelephoneNumberRange start"));
 1694|     98|      if(!start.has_value()) {
  ------------------
  |  Branch (1694:10): [True: 9, False: 89]
  ------------------
 1695|      9|         throw Decoding_Error("Invalid TelephoneNumberRange start");
 1696|      9|      }
 1697|       |
 1698|     89|      BigInt count;
 1699|     89|      range.decode(count);
 1700|       |      // count INTEGER (2..MAX), but no value over 64 bits fits within a 15 digit number
 1701|     89|      if(count.is_negative() || count.bits() > 64) {
  ------------------
  |  Branch (1701:10): [True: 13, False: 76]
  |  Branch (1701:33): [True: 3, False: 73]
  ------------------
 1702|      8|         throw Decoding_Error("Invalid TelephoneNumberRange count");
 1703|      8|      }
 1704|     81|      uint64_t count_value = 0;
 1705|    665|      for(size_t i = 0; i != 8; ++i) {
  ------------------
  |  Branch (1705:25): [True: 584, False: 81]
  ------------------
 1706|    584|         count_value = (count_value << 8) | count.byte_at(7 - i);
 1707|    584|      }
 1708|     81|      if(count_value < 2) {
  ------------------
  |  Branch (1708:10): [True: 3, False: 78]
  ------------------
 1709|      3|         throw Decoding_Error("Invalid TelephoneNumberRange count");
 1710|      3|      }
 1711|       |
 1712|     78|      auto tn_range = Botan::TelephoneNumberRange::from(*start, count_value);
 1713|     78|      if(!tn_range.has_value()) {
  ------------------
  |  Branch (1713:10): [True: 45, False: 33]
  ------------------
 1714|     45|         throw Decoding_Error("Invalid TelephoneNumberRange");
 1715|     45|      }
 1716|       |
 1717|       |      // TelephoneNumberRange is extensible; skip any additions following count
 1718|     98|      while(range.more_items()) {
  ------------------
  |  Branch (1718:13): [True: 65, False: 33]
  ------------------
 1719|     65|         range.get_next_object();
 1720|     65|      }
 1721|     33|      range.end_cons();
 1722|       |
 1723|     33|      set_range(std::move(*tn_range));
 1724|     83|   } else if(type_tag == TelephoneNumber) {
  ------------------
  |  Branch (1724:14): [True: 40, False: 43]
  ------------------
 1725|     40|      m_type = TelephoneNumber;
 1726|     40|      auto tn = Botan::TelephoneNumber::from_string(decode_ia5_string(inner, "TelephoneNumber"));
 1727|     40|      if(!tn.has_value()) {
  ------------------
  |  Branch (1727:10): [True: 7, False: 33]
  ------------------
 1728|      7|         throw Decoding_Error("Invalid TelephoneNumber");
 1729|      7|      }
 1730|     33|      m_data = std::move(*tn);
 1731|     43|   } else {
 1732|     43|      throw Decoding_Error(fmt("Unexpected TNEntry type code {}", type_tag));
 1733|     43|   }
 1734|       |
 1735|    159|   inner.verify_end();
 1736|    159|}
_ZN5Botan14Cert_Extension10TNAuthList12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1756|    214|void TNAuthList::decode_inner(const std::vector<uint8_t>& in) {
 1757|       |   /* RFC 8226 Section 9 - TNAuthorizationList ::= SEQUENCE SIZE (1..MAX) OF TNEntry */
 1758|    214|   m_tn_entries.clear();
 1759|    214|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_tn_entries).verify_end();
 1760|    214|   if(m_tn_entries.empty()) {
  ------------------
  |  Branch (1760:7): [True: 0, False: 214]
  ------------------
 1761|      0|      throw Decoding_Error("TNAuthorizationList is empty");
 1762|      0|   }
 1763|    214|}
_ZN5Botan14Cert_Extension10TNAuthList5Entry9set_rangeENS_20TelephoneNumberRangeE:
 1780|     16|void TNAuthList::Entry::set_range(Botan::TelephoneNumberRange range) {
 1781|     16|   m_type = TelephoneNumberRange;
 1782|     16|   m_legacy_range.clear();
 1783|     16|   if(std::in_range<size_t>(range.count())) {
  ------------------
  |  Branch (1783:7): [True: 16, False: 0]
  ------------------
 1784|     16|      m_legacy_range.push_back(TelephoneNumberRangeData{ASN1_String(range.start().to_string(), ASN1_Type::Ia5String),
 1785|     16|                                                        static_cast<size_t>(range.count())});
 1786|     16|   }
 1787|     16|   m_data = std::move(range);
 1788|     16|}
_ZN5Botan14Cert_Extension15IPAddressBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1950|    718|void IPAddressBlocks::decode_inner(const std::vector<uint8_t>& in) {
 1951|       |   /* RFC 3779 Section 2.2.3.1 - IPAddrBlocks ::= SEQUENCE OF IPAddressFamily */
 1952|    718|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_ip_addr_blocks).verify_end();
 1953|       |
 1954|       |   /* RFC 3779 Section 2.2.3.3
 1955|       |   *
 1956|       |   *    There MUST be only one IPAddressFamily SEQUENCE per unique combination of
 1957|       |   *    AFI and SAFI. Each SEQUENCE MUST be ordered by ascending addressFamily
 1958|       |   *    values (treating the octets as unsigned quantities).
 1959|       |   *
 1960|       |   * Comparing (afi, safi) pairs matches the octet string ordering, since
 1961|       |   * a std::nullopt safi sorts before any actual safi value.
 1962|       |   */
 1963|    718|   for(size_t i = 1; i < m_ip_addr_blocks.size(); i++) {
  ------------------
  |  Branch (1963:22): [True: 0, False: 718]
  ------------------
 1964|      0|      const auto prev = std::make_pair(m_ip_addr_blocks[i - 1].afi(), m_ip_addr_blocks[i - 1].safi());
 1965|      0|      const auto cur = std::make_pair(m_ip_addr_blocks[i].afi(), m_ip_addr_blocks[i].safi());
 1966|      0|      if(prev >= cur) {
  ------------------
  |  Branch (1966:10): [True: 0, False: 0]
  ------------------
 1967|      0|         throw Decoding_Error("IPAddrBlocks families must be sorted by AFI/SAFI and not repeat");
 1968|      0|      }
 1969|      0|   }
 1970|       |
 1971|       |   // IPAddressFamily::decode_from only accepts AFI 1 (IPv4) or 2 (IPv6)
 1972|    718|   m_v4_count = 0;
 1973|    718|   m_v6_count = 0;
 1974|    718|   for(const IPAddressFamily& block : m_ip_addr_blocks) {
  ------------------
  |  Branch (1974:37): [True: 0, False: 718]
  ------------------
 1975|      0|      if(block.afi() == 1) {
  ------------------
  |  Branch (1975:10): [True: 0, False: 0]
  ------------------
 1976|      0|         m_v4_count++;
 1977|      0|      } else {
 1978|      0|         m_v6_count++;
 1979|      0|      }
 1980|      0|   }
 1981|    718|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamily11decode_fromERNS_11BER_DecoderE:
 2002|    866|void IPAddressBlocks::IPAddressFamily::decode_from(Botan::BER_Decoder& from) {
 2003|    866|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2004|    866|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (2004:7): [True: 53, False: 813]
  ------------------
 2005|     53|      throw Decoding_Error(fmt("Unexpected type for IPAddressFamily {}", static_cast<uint32_t>(next_tag)));
 2006|     53|   }
 2007|       |
 2008|    813|   BER_Decoder seq_dec = from.start_sequence();
 2009|       |
 2010|    813|   std::vector<uint8_t> addr_family;
 2011|    813|   seq_dec.decode(addr_family, ASN1_Type::OctetString);
 2012|    813|   const size_t addr_family_length = addr_family.size();
 2013|       |
 2014|    813|   if(addr_family_length != 2 && addr_family_length != 3) {
  ------------------
  |  Branch (2014:7): [True: 751, False: 62]
  |  Branch (2014:34): [True: 8, False: 743]
  ------------------
 2015|      8|      throw Decoding_Error("(S)AFI can only contain 2 or 3 bytes");
 2016|      8|   }
 2017|       |
 2018|    805|   m_afi = (addr_family[0] << 8) | addr_family[1];
 2019|       |
 2020|    805|   if(addr_family_length == 3) {
  ------------------
  |  Branch (2020:7): [True: 743, False: 62]
  ------------------
 2021|    743|      m_safi = addr_family[2];
 2022|    743|   }
 2023|       |
 2024|    805|   if(m_afi == 1) {
  ------------------
  |  Branch (2024:7): [True: 368, False: 437]
  ------------------
 2025|    368|      IPAddressChoice<Version::IPv4> addr_choice;
 2026|    368|      seq_dec.decode(addr_choice);
 2027|    368|      m_ip_addr_choice = addr_choice;
 2028|    437|   } else if(m_afi == 2) {
  ------------------
  |  Branch (2028:14): [True: 356, False: 81]
  ------------------
 2029|    356|      IPAddressChoice<Version::IPv6> addr_choice;
 2030|    356|      seq_dec.decode(addr_choice);
 2031|    356|      m_ip_addr_choice = addr_choice;
 2032|    356|   } else {
 2033|     81|      throw Decoding_Error("Only AFI IPv4 and IPv6 are supported.");
 2034|     81|   }
 2035|       |
 2036|    724|   seq_dec.end_cons();
 2037|    724|}
_ZN5Botan14Cert_Extension8ASBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2676|    587|void ASBlocks::decode_inner(const std::vector<uint8_t>& in) {
 2677|       |   /* RFC 3779 Section 3.2.3.1 - ASIdentifiers ::= SEQUENCE { ... } */
 2678|    587|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_as_identifiers).verify_end();
 2679|    587|}
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiers11decode_fromERNS_11BER_DecoderE:
 2714|    587|void ASBlocks::ASIdentifiers::decode_from(Botan::BER_Decoder& from) {
 2715|    587|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2716|    587|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (2716:7): [True: 89, False: 498]
  ------------------
 2717|     89|      throw Decoding_Error(fmt("Unexpected type for ASIdentifiers {}", static_cast<uint32_t>(next_tag)));
 2718|     89|   }
 2719|       |
 2720|    498|   BER_Decoder seq_dec = from.start_sequence();
 2721|       |
 2722|    498|   const BER_Object elem_obj = seq_dec.get_next_object();
 2723|       |
 2724|       |   // asnum, potentially followed by an rdi
 2725|    498|   if(elem_obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (2725:7): [True: 162, False: 336]
  ------------------
 2726|    162|      BER_Decoder as_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 2727|    162|      ASIdentifierChoice asnum;
 2728|    162|      as_obj_ber.decode(asnum).verify_end();
 2729|    162|      m_asnum = asnum;
 2730|       |
 2731|    162|      const BER_Object rdi_obj = seq_dec.get_next_object();
 2732|    162|      if(rdi_obj.is_a(1, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (2732:10): [True: 22, False: 140]
  ------------------
 2733|     22|         BER_Decoder rdi_obj_ber = BER_Decoder(rdi_obj, seq_dec.limits());
 2734|     22|         ASIdentifierChoice rdi;
 2735|     22|         rdi_obj_ber.decode(rdi).verify_end();
 2736|     22|         m_rdi = rdi;
 2737|    140|      } else if(rdi_obj.type_tag() != ASN1_Type::NoObject) {
  ------------------
  |  Branch (2737:17): [True: 24, False: 116]
  ------------------
 2738|     24|         throw Decoding_Error(
 2739|     24|            fmt("Unexpected type for ASIdentifiers rdi: {}", static_cast<uint32_t>(rdi_obj.type_tag())));
 2740|     24|      }
 2741|    336|   } else if(elem_obj.is_a(1, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (2741:14): [True: 240, False: 96]
  ------------------
 2742|       |      // just an rdi
 2743|    240|      BER_Decoder rdi_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 2744|    240|      ASIdentifierChoice rdi;
 2745|    240|      rdi_obj_ber.decode(rdi).verify_end();
 2746|    240|      m_rdi = rdi;
 2747|    240|      const BER_Object end = seq_dec.get_next_object();
 2748|    240|      if(end.type_tag() != ASN1_Type::NoObject) {
  ------------------
  |  Branch (2748:10): [True: 30, False: 210]
  ------------------
 2749|     30|         throw Decoding_Error(
 2750|     30|            fmt("Unexpected element with type {} in ASIdentifiers", static_cast<uint32_t>(end.type_tag())));
 2751|     30|      }
 2752|    240|   } else if(elem_obj.type_tag() == ASN1_Type::NoObject) {
  ------------------
  |  Branch (2752:14): [True: 9, False: 87]
  ------------------
 2753|       |      /* RFC 3779 Section 3.2.3.1 -
 2754|       |      *    "The ASIdentifiers type is a SEQUENCE containing one or more forms of
 2755|       |      *    autonomous system identifiers"
 2756|       |      */
 2757|      9|      throw Decoding_Error("ASIdentifiers must contain an asnum or rdi element");
 2758|     87|   } else {
 2759|     87|      throw Decoding_Error(
 2760|     87|         fmt("Unexpected element with type {} in ASIdentifiers", static_cast<uint32_t>(elem_obj.type_tag())));
 2761|     87|   }
 2762|       |
 2763|    348|   seq_dec.end_cons();
 2764|       |
 2765|    348|   if(!m_asnum.has_value() && !m_rdi.has_value()) {
  ------------------
  |  Branch (2765:7): [True: 6, False: 342]
  |  Branch (2765:31): [True: 0, False: 6]
  ------------------
 2766|      0|      throw Decoding_Error("Invalid encoding for ASIdentifiers");
 2767|      0|   }
 2768|    348|}
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoice11decode_fromERNS_11BER_DecoderE:
 2782|    424|void ASBlocks::ASIdentifierChoice::decode_from(Botan::BER_Decoder& from) {
 2783|    424|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2784|       |
 2785|    424|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2785:7): [True: 13, False: 411]
  ------------------
 2786|     13|      from.decode_null();
 2787|     13|      m_as_ranges = std::nullopt;
 2788|    411|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2788:14): [True: 315, False: 96]
  ------------------
 2789|    315|      std::vector<ASIdOrRange> as_ranges;
 2790|    315|      from.decode_list(as_ranges);
 2791|       |
 2792|       |      /* RFC 3779 Section 3.2.3.4 -
 2793|       |      *    "Any pair of items in the asIdsOrRanges SEQUENCE MUST NOT overlap.
 2794|       |      *    Any contiguous series of AS identifiers MUST be combined into a
 2795|       |      *    single range whenever possible.  The AS identifiers in the
 2796|       |      *    asIdsOrRanges element MUST be sorted by increasing numeric value."
 2797|       |      */
 2798|    315|      if(!ranges_are_sorted_and_merged(as_ranges)) {
  ------------------
  |  Branch (2798:10): [True: 41, False: 274]
  ------------------
 2799|     41|         throw Decoding_Error("ASIdentifierChoice entries must be sorted, non-overlapping and fully merged");
 2800|     41|      }
 2801|    274|      m_as_ranges = std::move(as_ranges);
 2802|    274|   } else {
 2803|     96|      throw Decoding_Error(fmt("Unexpected type for ASIdentifierChoice {}", static_cast<uint32_t>(next_tag)));
 2804|     96|   }
 2805|    424|}
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRange11decode_fromERNS_11BER_DecoderE:
 2818|    970|void ASBlocks::ASIdOrRange::decode_from(BER_Decoder& from) {
 2819|    970|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2820|       |
 2821|    970|   size_t min = 0;
 2822|    970|   size_t max = 0;
 2823|       |
 2824|    970|   if(next_tag == ASN1_Type::Integer) {
  ------------------
  |  Branch (2824:7): [True: 754, False: 216]
  ------------------
 2825|    754|      from.decode(min);
 2826|    754|      m_min = checked_cast_to<asnum_t>(min);
 2827|    754|      m_max = m_min;
 2828|    754|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2828:14): [True: 138, False: 78]
  ------------------
 2829|    138|      from.start_sequence().decode(min).decode(max).end_cons();
 2830|    138|      m_min = checked_cast_to<asnum_t>(min);
 2831|    138|      m_max = checked_cast_to<asnum_t>(max);
 2832|    138|      if(m_min >= m_max) {
  ------------------
  |  Branch (2832:10): [True: 20, False: 118]
  ------------------
 2833|     20|         throw Decoding_Error("ASIdOrRange has min greater than max");
 2834|     20|      }
 2835|    138|   } else {
 2836|     78|      throw Decoding_Error(fmt("Unexpected type for ASIdOrRange {}", static_cast<uint32_t>(next_tag)));
 2837|     78|   }
 2838|    970|}
_ZN5Botan14Cert_Extension21NoRevocationAvailable12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2940|     21|void NoRevocationAvailable::decode_inner(const std::vector<uint8_t>& buf) {
 2941|       |   // RFC 9608 Section 2, it's just a NULL
 2942|     21|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_null().verify_end();
 2943|     21|}
_ZN5Botan14Cert_Extension17Unknown_Extension12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 3008|  12.7k|void Unknown_Extension::decode_inner(const std::vector<uint8_t>& bytes) {
 3009|       |   // Just treat as an opaque blob at this level
 3010|  12.7k|   m_bytes = bytes;
 3011|  12.7k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_118extension_from_oidERKNS_3OIDE:
   60|  14.9k|std::unique_ptr<Certificate_Extension> extension_from_oid(const OID& oid) {
   61|  14.9k|   if(auto iso_ext = is_sub_element_of(oid, {2, 5, 29})) {
  ------------------
  |  Branch (61:12): [True: 8.18k, False: 6.73k]
  ------------------
   62|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   63|  8.18k|      switch(*iso_ext) {
  ------------------
  |  Branch (63:14): [True: 7.16k, False: 1.02k]
  ------------------
   64|    446|         case 14:
  ------------------
  |  Branch (64:10): [True: 446, False: 7.73k]
  ------------------
   65|    446|            return make_extension<Cert_Extension::Subject_Key_ID>(oid);
   66|  1.05k|         case 15:
  ------------------
  |  Branch (66:10): [True: 1.05k, False: 7.12k]
  ------------------
   67|  1.05k|            return make_extension<Cert_Extension::Key_Usage>(oid);
   68|  1.01k|         case 17:
  ------------------
  |  Branch (68:10): [True: 1.01k, False: 7.17k]
  ------------------
   69|  1.01k|            return make_extension<Cert_Extension::Subject_Alternative_Name>(oid);
   70|    720|         case 18:
  ------------------
  |  Branch (70:10): [True: 720, False: 7.46k]
  ------------------
   71|    720|            return make_extension<Cert_Extension::Issuer_Alternative_Name>(oid);
   72|    857|         case 19:
  ------------------
  |  Branch (72:10): [True: 857, False: 7.32k]
  ------------------
   73|    857|            return make_extension<Cert_Extension::Basic_Constraints>(oid);
   74|      1|         case 20:
  ------------------
  |  Branch (74:10): [True: 1, False: 8.18k]
  ------------------
   75|      1|            return make_extension<Cert_Extension::CRL_Number>(oid);
   76|      1|         case 21:
  ------------------
  |  Branch (76:10): [True: 1, False: 8.18k]
  ------------------
   77|      1|            return make_extension<Cert_Extension::CRL_ReasonCode>(oid);
   78|      1|         case 28:
  ------------------
  |  Branch (78:10): [True: 1, False: 8.18k]
  ------------------
   79|      1|            return make_extension<Cert_Extension::CRL_Issuing_Distribution_Point>(oid);
   80|    434|         case 30:
  ------------------
  |  Branch (80:10): [True: 434, False: 7.75k]
  ------------------
   81|    434|            return make_extension<Cert_Extension::Name_Constraints>(oid);
   82|    931|         case 31:
  ------------------
  |  Branch (82:10): [True: 931, False: 7.25k]
  ------------------
   83|    931|            return make_extension<Cert_Extension::CRL_Distribution_Points>(oid);
   84|    674|         case 32:
  ------------------
  |  Branch (84:10): [True: 674, False: 7.51k]
  ------------------
   85|    674|            return make_extension<Cert_Extension::Certificate_Policies>(oid);
   86|    735|         case 35:
  ------------------
  |  Branch (86:10): [True: 735, False: 7.45k]
  ------------------
   87|    735|            return make_extension<Cert_Extension::Authority_Key_ID>(oid);
   88|    270|         case 37:
  ------------------
  |  Branch (88:10): [True: 270, False: 7.91k]
  ------------------
   89|    270|            return make_extension<Cert_Extension::Extended_Key_Usage>(oid);
   90|     21|         case 56:
  ------------------
  |  Branch (90:10): [True: 21, False: 8.16k]
  ------------------
   91|     21|            return make_extension<Cert_Extension::NoRevocationAvailable>(oid);
   92|  8.18k|      }
   93|  8.18k|   }
   94|       |
   95|  7.76k|   if(auto pkix_ext = is_sub_element_of(oid, {1, 3, 6, 1, 5, 5, 7, 1})) {
  ------------------
  |  Branch (95:12): [True: 2.07k, False: 5.68k]
  ------------------
   96|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   97|  2.07k|      switch(*pkix_ext) {
  ------------------
  |  Branch (97:14): [True: 2.00k, False: 74]
  ------------------
   98|    486|         case 1:
  ------------------
  |  Branch (98:10): [True: 486, False: 1.59k]
  ------------------
   99|    486|            return make_extension<Cert_Extension::Authority_Information_Access>(oid);
  100|    718|         case 7:
  ------------------
  |  Branch (100:10): [True: 718, False: 1.36k]
  ------------------
  101|    718|            return make_extension<Cert_Extension::IPAddressBlocks>(oid);
  102|    587|         case 8:
  ------------------
  |  Branch (102:10): [True: 587, False: 1.49k]
  ------------------
  103|    587|            return make_extension<Cert_Extension::ASBlocks>(oid);
  104|    214|         case 26:
  ------------------
  |  Branch (104:10): [True: 214, False: 1.86k]
  ------------------
  105|    214|            return make_extension<Cert_Extension::TNAuthList>(oid);
  106|  2.07k|      }
  107|  2.07k|   }
  108|       |
  109|  5.75k|   if(oid == Cert_Extension::OCSP_NoCheck::static_oid()) {
  ------------------
  |  Branch (109:7): [True: 0, False: 5.75k]
  ------------------
  110|      0|      return make_extension<Cert_Extension::OCSP_NoCheck>(oid);
  111|      0|   }
  112|       |
  113|  5.75k|   return nullptr;  // unknown
  114|  5.75k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14Subject_Key_IDEEEDaRKNS_3OIDE:
   55|    446|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    446|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    446|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    446|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 446]
  |  |  ------------------
  ------------------
   57|    446|   return std::make_unique<T>();
   58|    446|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension9Key_UsageEEEDaRKNS_3OIDE:
   55|  1.05k|auto make_extension([[maybe_unused]] const OID& oid) {
   56|  1.05k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|  1.05k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  1.05k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
   57|  1.05k|   return std::make_unique<T>();
   58|  1.05k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension24Subject_Alternative_NameEEEDaRKNS_3OIDE:
   55|  1.01k|auto make_extension([[maybe_unused]] const OID& oid) {
   56|  1.01k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|  1.01k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|  1.01k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1.01k]
  |  |  ------------------
  ------------------
   57|  1.01k|   return std::make_unique<T>();
   58|  1.01k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23Issuer_Alternative_NameEEEDaRKNS_3OIDE:
   55|    720|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    720|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    720|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    720|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 720]
  |  |  ------------------
  ------------------
   57|    720|   return std::make_unique<T>();
   58|    720|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension17Basic_ConstraintsEEEDaRKNS_3OIDE:
   55|    857|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    857|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    857|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    857|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 857]
  |  |  ------------------
  ------------------
   57|    857|   return std::make_unique<T>();
   58|    857|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10CRL_NumberEEEDaRKNS_3OIDE:
   55|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   56|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   57|      1|   return std::make_unique<T>();
   58|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14CRL_ReasonCodeEEEDaRKNS_3OIDE:
   55|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   56|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   57|      1|   return std::make_unique<T>();
   58|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEDaRKNS_3OIDE:
   55|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   56|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   57|      1|   return std::make_unique<T>();
   58|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Name_ConstraintsEEEDaRKNS_3OIDE:
   55|    434|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    434|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    434|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    434|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 434]
  |  |  ------------------
  ------------------
   57|    434|   return std::make_unique<T>();
   58|    434|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23CRL_Distribution_PointsEEEDaRKNS_3OIDE:
   55|    931|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    931|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    931|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    931|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 931]
  |  |  ------------------
  ------------------
   57|    931|   return std::make_unique<T>();
   58|    931|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension20Certificate_PoliciesEEEDaRKNS_3OIDE:
   55|    674|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    674|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    674|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    674|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 674]
  |  |  ------------------
  ------------------
   57|    674|   return std::make_unique<T>();
   58|    674|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Authority_Key_IDEEEDaRKNS_3OIDE:
   55|    735|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    735|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    735|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    735|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 735]
  |  |  ------------------
  ------------------
   57|    735|   return std::make_unique<T>();
   58|    735|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension18Extended_Key_UsageEEEDaRKNS_3OIDE:
   55|    270|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    270|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    270|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    270|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 270]
  |  |  ------------------
  ------------------
   57|    270|   return std::make_unique<T>();
   58|    270|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension21NoRevocationAvailableEEEDaRKNS_3OIDE:
   55|     21|auto make_extension([[maybe_unused]] const OID& oid) {
   56|     21|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|     21|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|     21|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 21]
  |  |  ------------------
  ------------------
   57|     21|   return std::make_unique<T>();
   58|     21|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension28Authority_Information_AccessEEEDaRKNS_3OIDE:
   55|    486|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    486|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    486|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    486|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 486]
  |  |  ------------------
  ------------------
   57|    486|   return std::make_unique<T>();
   58|    486|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension15IPAddressBlocksEEEDaRKNS_3OIDE:
   55|    718|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    718|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    718|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    718|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 718]
  |  |  ------------------
  ------------------
   57|    718|   return std::make_unique<T>();
   58|    718|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension8ASBlocksEEEDaRKNS_3OIDE:
   55|    587|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    587|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    587|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    587|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 587]
  |  |  ------------------
  ------------------
   57|    587|   return std::make_unique<T>();
   58|    587|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10TNAuthListEEEDaRKNS_3OIDE:
   55|    214|auto make_extension([[maybe_unused]] const OID& oid) {
   56|    214|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  137|    214|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  138|    214|      } while(0)
  |  |  ------------------
  |  |  |  Branch (138:15): [Folded, False: 214]
  |  |  ------------------
  ------------------
   57|    214|   return std::make_unique<T>();
   58|    214|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_126policy_oids_have_duplicateERKNSt3__16vectorINS_3OIDENS2_9allocatorIS4_EEEE:
  877|     93|bool policy_oids_have_duplicate(const std::vector<OID>& oids) {
  878|     93|   std::set<OID> seen;
  879|    781|   for(const auto& oid : oids) {
  ------------------
  |  Branch (879:24): [True: 781, False: 84]
  ------------------
  880|    781|      if(!seen.insert(oid).second) {
  ------------------
  |  Branch (880:10): [True: 9, False: 772]
  ------------------
  881|      9|         return true;
  882|      9|      }
  883|    781|   }
  884|     84|   return false;
  885|     93|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information11decode_fromERNS_11BER_DecoderE:
  869|  1.48k|      void decode_from(BER_Decoder& codec) override {
  870|  1.48k|         codec.start_sequence().decode(m_oid).discard_remaining().end_cons();
  871|  1.48k|      }
x509_ext.cpp:_ZNK5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information3oidEv:
  865|    822|      const OID& oid() const { return m_oid; }
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
 1014|    570|void validate_general_name_encoding(ASN1_Type tag, ASN1_Class cls, std::span<const uint8_t> value) {
 1015|       |   // AlternativeName decodes GeneralNames; AIA accessLocation is a single GeneralName.
 1016|    570|   std::vector<uint8_t> wrapped_name;
 1017|    570|   DER_Encoder(wrapped_name).start_sequence().add_object(tag, cls, value).end_cons();
 1018|       |
 1019|    570|   AlternativeName decoded_name;
 1020|    570|   BER_Decoder(wrapped_name, BER_Decoder::Limits::DER()).decode(decoded_name).verify_end();
 1021|       |
 1022|    570|   if((tag == ASN1_Type(1) || tag == ASN1_Type(2) || tag == ASN1_Type(6)) && value.empty()) {
  ------------------
  |  Branch (1022:8): [True: 241, False: 329]
  |  Branch (1022:31): [True: 4, False: 325]
  |  Branch (1022:54): [True: 252, False: 73]
  |  Branch (1022:78): [True: 6, False: 251]
  ------------------
 1023|      6|      throw Decoding_Error("GeneralName IA5String value must not be empty");
 1024|      6|   }
 1025|    564|   if(tag == ASN1_Type(4) &&
  ------------------
  |  Branch (1025:7): [True: 4, False: 560]
  ------------------
 1026|      4|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1026:7): [True: 1, False: 3]
  ------------------
 1027|      1|      throw Decoding_Error("GeneralName directoryName must not be empty");
 1028|      1|   }
 1029|    564|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEEENK3$_0clERKNS_7X509_DNE:
 1026|      4|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_152crl_distribution_point_uris_from_distribution_pointsERKNSt3__16vectorINS0_23CRL_Distribution_Points18Distribution_PointENS2_9allocatorIS5_EEEE:
 1307|     73|   const std::vector<CRL_Distribution_Points::Distribution_Point>& dps) {
 1308|     73|   std::vector<URI> out;
 1309|     80|   for(const auto& dp : dps) {
  ------------------
  |  Branch (1309:23): [True: 80, False: 73]
  ------------------
 1310|     80|      const auto& dpn = dp.distribution_point_name();
 1311|     80|      if(dpn.has_value() && dpn->full_name().has_value()) {
  ------------------
  |  Branch (1311:10): [True: 80, False: 0]
  |  Branch (1311:29): [True: 80, False: 0]
  ------------------
 1312|    240|         for(const auto& uri : dpn->full_name()->uri_names()) {
  ------------------
  |  Branch (1312:30): [True: 240, False: 80]
  ------------------
 1313|    240|            out.push_back(uri);
 1314|    240|         }
 1315|     80|      }
 1316|     80|   }
 1317|     73|   return out;
 1318|     73|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension21DistributionPointName11decode_fromERNS_11BER_DecoderEENK3$_0clERKNS_7X509_DNE:
 1359|      3|      if(std::ranges::any_of(full_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_125crl_issuer_is_well_formedERKNS_15AlternativeNameE:
 1301|      1|bool crl_issuer_is_well_formed(const AlternativeName& crl_issuer) {
 1302|      1|   const auto& dn = crl_issuer.directory_names();
 1303|      1|   return crl_issuer.count() == 1 && dn.size() == 1 && !dn.begin()->empty();
  ------------------
  |  Branch (1303:11): [True: 1, False: 0]
  |  Branch (1303:38): [True: 0, False: 1]
  |  Branch (1303:56): [True: 0, False: 0]
  ------------------
 1304|      1|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension10TNAuthList5Entry11decode_fromERNS_11BER_DecoderEENK3$_0clES4_NSt3__117basic_string_viewIcNS6_11char_traitsIcEEEE:
 1668|    227|   const auto decode_ia5_string = [](BER_Decoder& from, std::string_view what) {
 1669|    227|      ASN1_String str;
 1670|    227|      from.decode(str);
 1671|    227|      if(str.tagging() != ASN1_Type::Ia5String) {
  ------------------
  |  Branch (1671:10): [True: 12, False: 215]
  ------------------
 1672|     12|         throw Decoding_Error(fmt("TNAuthList {} must be an IA5String", what));
 1673|     12|      }
 1674|    215|      return str.value();
 1675|    227|   };
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_0clERNS_11BER_DecoderE:
  636|    163|                             [&](BER_Decoder& d) {
  637|    163|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  638|    163|                                key_id_present = true;
  639|    163|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_1clERNS_11BER_DecoderE:
  642|     92|                             [&](BER_Decoder& d) {
  643|     92|                                AlternativeName names;
  644|     92|                                d.decode_implicit(names,
  645|     92|                                                  ASN1_Type(1),
  646|     92|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  647|     92|                                                  ASN1_Type::Sequence,
  648|     92|                                                  ASN1_Class::Constructed);
  649|     92|                                authority_cert_issuer = std::move(names);
  650|     92|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_2clERNS_11BER_DecoderE:
  651|     72|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  652|     72|         X509_Serial_Number serial;
  653|     72|         d.decode_implicit(
  654|     72|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  655|     72|         authority_cert_serial = std::move(serial);
  656|     72|      });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_InformationC2Ev:
  861|  1.48k|      Policy_Information() = default;
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_0clES4_:
 1456|    788|                            [&](BER_Decoder& d) {
 1457|    788|                               DistributionPointName name;
 1458|    788|                               d.start_context_specific(0).decode(name).verify_end();
 1459|    788|                               m_dp_name = std::move(name);
 1460|    788|                            })
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_1clES4_:
 1462|     14|         1, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_reasons = decode_reason_flags_implicit(d, 1); })
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128decode_reason_flags_implicitERNS_11BER_DecoderEj:
 1287|     14|ReasonFlags decode_reason_flags_implicit(BER_Decoder& decoder, uint32_t tag) {
 1288|     14|   uint64_t bits = 0;
 1289|     14|   decoder.decode_named_bitstring(bits, ReasonFlagsNamedBitWidth, ASN1_Type(tag), ASN1_Class::ContextSpecific);
 1290|     14|   return ReasonFlags(checked_cast_to<uint16_t>(bits));
 1291|     14|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_2clES4_:
 1463|     12|      .decode_optional_field(2, ASN1_Class::ContextSpecific | ASN1_Class::Constructed, [&](BER_Decoder& d) {
 1464|     12|         AlternativeName crl_issuer;
 1465|     12|         d.decode_implicit(crl_issuer,
 1466|     12|                           ASN1_Type(2),
 1467|     12|                           ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1468|     12|                           ASN1_Type::Sequence,
 1469|     12|                           ASN1_Class::Constructed);
 1470|     12|         m_crl_issuer = std::move(crl_issuer);
 1471|     12|      });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_19successorILNS0_15IPAddressBlocks7VersionE4EEENS3_9IPAddressIXT_EEERKS6_:
 2147|     56|IPAddressBlocks::IPAddress<V> successor(const IPAddressBlocks::IPAddress<V>& addr) {
 2148|     56|   auto bytes = addr.to_bytes();
 2149|    101|   for(auto it = bytes.rbegin(); it != bytes.rend(); ++it) {
  ------------------
  |  Branch (2149:34): [True: 101, False: 0]
  ------------------
 2150|    101|      (*it)++;
 2151|    101|      if(*it != 0) {
  ------------------
  |  Branch (2151:10): [True: 56, False: 45]
  ------------------
 2152|     56|         break;
 2153|     56|      }
 2154|    101|   }
 2155|     56|   using Address = std::conditional_t<V == IPv4, IPv4Address, IPv6Address>;
 2156|     56|   return IPAddressBlocks::IPAddress<V>(Address(bytes));
 2157|     56|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_19successorILNS0_15IPAddressBlocks7VersionE16EEENS3_9IPAddressIXT_EEERKS6_:
 2147|     69|IPAddressBlocks::IPAddress<V> successor(const IPAddressBlocks::IPAddress<V>& addr) {
 2148|     69|   auto bytes = addr.to_bytes();
 2149|    833|   for(auto it = bytes.rbegin(); it != bytes.rend(); ++it) {
  ------------------
  |  Branch (2149:34): [True: 833, False: 0]
  ------------------
 2150|    833|      (*it)++;
 2151|    833|      if(*it != 0) {
  ------------------
  |  Branch (2151:10): [True: 69, False: 764]
  ------------------
 2152|     69|         break;
 2153|     69|      }
 2154|    833|   }
 2155|     69|   using Address = std::conditional_t<V == IPv4, IPv4Address, IPv6Address>;
 2156|     69|   return IPAddressBlocks::IPAddress<V>(Address(bytes));
 2157|     69|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_130range_is_expressible_as_prefixILNS0_15IPAddressBlocks7VersionE4EEEbRKNS3_9IPAddressIXT_EEES8_:
 2252|     98|                                    const IPAddressBlocks::IPAddress<V>& max_addr) {
 2253|     98|   return range_prefix_length<V>(min_addr, max_addr).has_value();
 2254|     98|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_119range_prefix_lengthILNS0_15IPAddressBlocks7VersionE4EEENSt3__18optionalImEERKNS3_9IPAddressIXT_EEESB_:
 2223|     98|                                          const IPAddressBlocks::IPAddress<V>& max_addr) {
 2224|     98|   const auto min = min_addr.to_bytes();
 2225|     98|   const auto max = max_addr.to_bytes();
 2226|       |
 2227|     98|   size_t i = 0;
 2228|    171|   while(i < min.size() && min[i] == max[i]) {
  ------------------
  |  Branch (2228:10): [True: 168, False: 3]
  |  Branch (2228:28): [True: 73, False: 95]
  ------------------
 2229|     73|      i++;
 2230|     73|   }
 2231|     98|   if(i == min.size()) {
  ------------------
  |  Branch (2231:7): [True: 3, False: 95]
  ------------------
 2232|       |      // min == max is a single address, ie a full length prefix
 2233|      3|      return 8 * min.size();
 2234|      3|   }
 2235|       |
 2236|       |   // From the first differing bit on, min must be all zero bits and max all one bits
 2237|     95|   const size_t common_bits = std::countl_zero(static_cast<uint8_t>(min[i] ^ max[i]));
 2238|     95|   const uint8_t diff_mask = static_cast<uint8_t>(0xFF >> common_bits);
 2239|     95|   if((min[i] & diff_mask) != 0 || (max[i] & diff_mask) != diff_mask) {
  ------------------
  |  Branch (2239:7): [True: 19, False: 76]
  |  Branch (2239:36): [True: 25, False: 51]
  ------------------
 2240|     44|      return std::nullopt;
 2241|     44|   }
 2242|     66|   for(size_t j = i + 1; j < min.size(); j++) {
  ------------------
  |  Branch (2242:26): [True: 63, False: 3]
  ------------------
 2243|     63|      if(min[j] != 0x00 || max[j] != 0xFF) {
  ------------------
  |  Branch (2243:10): [True: 34, False: 29]
  |  Branch (2243:28): [True: 14, False: 15]
  ------------------
 2244|     48|         return std::nullopt;
 2245|     48|      }
 2246|     63|   }
 2247|      3|   return 8 * i + common_bits;
 2248|     51|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_130range_is_expressible_as_prefixILNS0_15IPAddressBlocks7VersionE16EEEbRKNS3_9IPAddressIXT_EEES8_:
 2252|     84|                                    const IPAddressBlocks::IPAddress<V>& max_addr) {
 2253|     84|   return range_prefix_length<V>(min_addr, max_addr).has_value();
 2254|     84|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_119range_prefix_lengthILNS0_15IPAddressBlocks7VersionE16EEENSt3__18optionalImEERKNS3_9IPAddressIXT_EEESB_:
 2223|     84|                                          const IPAddressBlocks::IPAddress<V>& max_addr) {
 2224|     84|   const auto min = min_addr.to_bytes();
 2225|     84|   const auto max = max_addr.to_bytes();
 2226|       |
 2227|     84|   size_t i = 0;
 2228|    136|   while(i < min.size() && min[i] == max[i]) {
  ------------------
  |  Branch (2228:10): [True: 136, False: 0]
  |  Branch (2228:28): [True: 52, False: 84]
  ------------------
 2229|     52|      i++;
 2230|     52|   }
 2231|     84|   if(i == min.size()) {
  ------------------
  |  Branch (2231:7): [True: 0, False: 84]
  ------------------
 2232|       |      // min == max is a single address, ie a full length prefix
 2233|      0|      return 8 * min.size();
 2234|      0|   }
 2235|       |
 2236|       |   // From the first differing bit on, min must be all zero bits and max all one bits
 2237|     84|   const size_t common_bits = std::countl_zero(static_cast<uint8_t>(min[i] ^ max[i]));
 2238|     84|   const uint8_t diff_mask = static_cast<uint8_t>(0xFF >> common_bits);
 2239|     84|   if((min[i] & diff_mask) != 0 || (max[i] & diff_mask) != diff_mask) {
  ------------------
  |  Branch (2239:7): [True: 36, False: 48]
  |  Branch (2239:36): [True: 12, False: 36]
  ------------------
 2240|     48|      return std::nullopt;
 2241|     48|   }
 2242|     72|   for(size_t j = i + 1; j < min.size(); j++) {
  ------------------
  |  Branch (2242:26): [True: 69, False: 3]
  ------------------
 2243|     69|      if(min[j] != 0x00 || max[j] != 0xFF) {
  ------------------
  |  Branch (2243:10): [True: 20, False: 49]
  |  Branch (2243:28): [True: 13, False: 36]
  ------------------
 2244|     33|         return std::nullopt;
 2245|     33|      }
 2246|     69|   }
 2247|      3|   return 8 * i + common_bits;
 2248|     36|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128ranges_are_sorted_and_mergedINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEEbRKNSt3__16vectorIT_NS7_9allocatorIS9_EEEE:
 2204|     79|bool ranges_are_sorted_and_merged(const std::vector<T>& ranges) {
 2205|    132|   for(size_t i = 1; i < ranges.size(); i++) {
  ------------------
  |  Branch (2205:22): [True: 78, False: 54]
  ------------------
 2206|       |      // Required sorted order without overlaps implies the previous maximum
 2207|       |      // is strictly below the next minimum
 2208|     78|      if(!(ranges[i - 1].max() < ranges[i].min())) {
  ------------------
  |  Branch (2208:10): [True: 22, False: 56]
  ------------------
 2209|     22|         return false;
 2210|     22|      }
 2211|       |      // Contiguous entries were required to be combined by the issuer. The
 2212|       |      // increment cannot wrap since max() < min() <= the all-ones value.
 2213|     56|      if(successor(ranges[i - 1].max()) == ranges[i].min()) {
  ------------------
  |  Branch (2213:10): [True: 3, False: 53]
  ------------------
 2214|      3|         return false;
 2215|      3|      }
 2216|     56|   }
 2217|     54|   return true;
 2218|     79|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128ranges_are_sorted_and_mergedINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEEbRKNSt3__16vectorIT_NS7_9allocatorIS9_EEEE:
 2204|     99|bool ranges_are_sorted_and_merged(const std::vector<T>& ranges) {
 2205|    164|   for(size_t i = 1; i < ranges.size(); i++) {
  ------------------
  |  Branch (2205:22): [True: 93, False: 71]
  ------------------
 2206|       |      // Required sorted order without overlaps implies the previous maximum
 2207|       |      // is strictly below the next minimum
 2208|     93|      if(!(ranges[i - 1].max() < ranges[i].min())) {
  ------------------
  |  Branch (2208:10): [True: 24, False: 69]
  ------------------
 2209|     24|         return false;
 2210|     24|      }
 2211|       |      // Contiguous entries were required to be combined by the issuer. The
 2212|       |      // increment cannot wrap since max() < min() <= the all-ones value.
 2213|     69|      if(successor(ranges[i - 1].max()) == ranges[i].min()) {
  ------------------
  |  Branch (2213:10): [True: 4, False: 65]
  ------------------
 2214|      4|         return false;
 2215|      4|      }
 2216|     69|   }
 2217|     71|   return true;
 2218|     99|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_19successorITkNSt3__117unsigned_integralEjEET_S4_:
 2160|    334|T successor(T x) {
 2161|    334|   return static_cast<T>(x + 1);
 2162|    334|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128ranges_are_sorted_and_mergedINS0_8ASBlocks11ASIdOrRangeEEEbRKNSt3__16vectorIT_NS5_9allocatorIS7_EEEE:
 2204|    183|bool ranges_are_sorted_and_merged(const std::vector<T>& ranges) {
 2205|    514|   for(size_t i = 1; i < ranges.size(); i++) {
  ------------------
  |  Branch (2205:22): [True: 372, False: 142]
  ------------------
 2206|       |      // Required sorted order without overlaps implies the previous maximum
 2207|       |      // is strictly below the next minimum
 2208|    372|      if(!(ranges[i - 1].max() < ranges[i].min())) {
  ------------------
  |  Branch (2208:10): [True: 38, False: 334]
  ------------------
 2209|     38|         return false;
 2210|     38|      }
 2211|       |      // Contiguous entries were required to be combined by the issuer. The
 2212|       |      // increment cannot wrap since max() < min() <= the all-ones value.
 2213|    334|      if(successor(ranges[i - 1].max()) == ranges[i].min()) {
  ------------------
  |  Branch (2213:10): [True: 3, False: 331]
  ------------------
 2214|      3|         return false;
 2215|      3|      }
 2216|    334|   }
 2217|    142|   return true;
 2218|    183|}

_ZN5Botan11X509_Object9load_dataERNS_10DataSourceE:
   24|  5.47k|void X509_Object::load_data(DataSource& in) {
   25|  5.47k|   try {
   26|  5.47k|      if(ASN1::maybe_BER(in) && !PEM_Code::matches(in)) {
  ------------------
  |  Branch (26:10): [True: 5.15k, False: 323]
  |  Branch (26:33): [True: 5.15k, False: 1]
  ------------------
   27|  5.15k|         BER_Decoder dec(in, BER_Decoder::Limits::DER());
   28|  5.15k|         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|  5.15k|      } else {
   32|    324|         std::string got_label;
   33|    324|         DataSource_Memory ber(PEM_Code::decode(in, got_label));
   34|       |
   35|    324|         if(got_label != PEM_label()) {
  ------------------
  |  Branch (35:13): [True: 78, False: 246]
  ------------------
   36|     78|            bool is_alternate = false;
   37|     78|            for(const std::string_view alt_label : alternate_PEM_labels()) {
  ------------------
  |  Branch (37:50): [True: 78, False: 78]
  ------------------
   38|     78|               if(got_label == alt_label) {
  ------------------
  |  Branch (38:19): [True: 0, False: 78]
  ------------------
   39|      0|                  is_alternate = true;
   40|      0|                  break;
   41|      0|               }
   42|     78|            }
   43|       |
   44|     78|            if(!is_alternate) {
  ------------------
  |  Branch (44:16): [True: 78, False: 0]
  ------------------
   45|     78|               throw Decoding_Error("Unexpected PEM label for " + PEM_label() + " of " + got_label);
   46|     78|            }
   47|     78|         }
   48|       |
   49|    246|         BER_Decoder dec(ber, BER_Decoder::Limits::DER());
   50|    246|         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|    246|      }
   54|  5.47k|   } catch(Decoding_Error& e) {
   55|  4.85k|      throw Decoding_Error(PEM_label() + " decoding", e);
   56|  4.85k|   }
   57|  5.47k|}
_ZNK5Botan11X509_Object9signatureEv:
   59|    541|const std::vector<uint8_t>& X509_Object::signature() const {
   60|    541|   if(!m_signed_data) {
  ------------------
  |  Branch (60:7): [True: 0, False: 541]
  ------------------
   61|      0|      throw Invalid_State("X509_Object uninitialized");
   62|      0|   }
   63|    541|   return m_signed_data->m_sig;
   64|    541|}
_ZNK5Botan11X509_Object11signed_bodyEv:
   66|  4.78k|const std::vector<uint8_t>& X509_Object::signed_body() const {
   67|  4.78k|   if(!m_signed_data) {
  ------------------
  |  Branch (67:7): [True: 0, False: 4.78k]
  ------------------
   68|      0|      throw Invalid_State("X509_Object uninitialized");
   69|      0|   }
   70|  4.78k|   return m_signed_data->m_tbs_bits;
   71|  4.78k|}
_ZNK5Botan11X509_Object19signature_algorithmEv:
   73|  3.69k|const AlgorithmIdentifier& X509_Object::signature_algorithm() const {
   74|  3.69k|   if(!m_signed_data) {
  ------------------
  |  Branch (74:7): [True: 0, False: 3.69k]
  ------------------
   75|      0|      throw Invalid_State("X509_Object uninitialized");
   76|      0|   }
   77|  3.69k|   return m_signed_data->m_sig_algo;
   78|  3.69k|}
_ZNK5Botan11X509_Object11encode_intoERNS_11DER_EncoderE:
   80|    541|void X509_Object::encode_into(DER_Encoder& to) const {
   81|    541|   to.start_sequence()
   82|    541|      .start_sequence()
   83|    541|      .raw_bytes(signed_body())
   84|    541|      .end_cons()
   85|    541|      .encode(signature_algorithm())
   86|    541|      .encode_octet_aligned_bitstring(signature())
   87|    541|      .end_cons();
   88|    541|}
_ZN5Botan11X509_Object11decode_fromERNS_11BER_DecoderE:
   93|  5.15k|void X509_Object::decode_from(BER_Decoder& from) {
   94|  5.15k|   auto data = std::make_shared<Signed_Data>();
   95|       |
   96|  5.15k|   from.start_sequence()
   97|  5.15k|      .start_sequence()
   98|  5.15k|      .raw_bytes(data->m_tbs_bits)
   99|  5.15k|      .end_cons()
  100|  5.15k|      .decode(data->m_sig_algo)
  101|  5.15k|      .decode_octet_aligned_bitstring(data->m_sig)
  102|  5.15k|      .end_cons();
  103|       |
  104|  5.15k|   m_signed_data = std::move(data);
  105|  5.15k|   force_decode();
  106|  5.15k|}

_ZN5Botan18X509_Serial_NumberC2ERKNS_6BigIntE:
   20|  4.20k|X509_Serial_Number::X509_Serial_Number(const BigInt& value) : m_contents(ASN1::integer_contents(value)) {}
_ZNK5Botan18X509_Serial_Number11is_negativeEv:
   65|  3.05k|bool X509_Serial_Number::is_negative() const {
   66|  3.05k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  3.05k|   do {                                                         \
  |  |   52|  3.05k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  3.05k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 3.05k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  3.05k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 3.05k]
  |  |  ------------------
  ------------------
   67|  3.05k|   return (m_contents[0] & 0x80) == 0x80;
   68|  3.05k|}
_ZNK5Botan18X509_Serial_Number7is_zeroEv:
   70|  3.10k|bool X509_Serial_Number::is_zero() const {
   71|  3.10k|   return m_contents.size() == 1 && m_contents[0] == 0x00;
  ------------------
  |  Branch (71:11): [True: 402, False: 2.70k]
  |  Branch (71:37): [True: 45, False: 357]
  ------------------
   72|  3.10k|}
_ZNK5Botan18X509_Serial_Number9magnitudeEv:
   74|  3.10k|std::vector<uint8_t> X509_Serial_Number::magnitude() const {
   75|  3.10k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  3.10k|   do {                                                         \
  |  |   52|  3.10k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  3.10k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 3.10k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  3.10k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 3.10k]
  |  |  ------------------
  ------------------
   76|       |
   77|  3.10k|   if(is_zero()) {
  ------------------
  |  Branch (77:7): [True: 45, False: 3.05k]
  ------------------
   78|     45|      return {};
   79|  3.05k|   } else if(is_negative()) {
  ------------------
  |  Branch (79:14): [True: 955, False: 2.10k]
  ------------------
   80|    955|      return to_bigint().serialize();
   81|  2.10k|   } else if(m_contents[0] == 0x00) {
  ------------------
  |  Branch (81:14): [True: 258, False: 1.84k]
  ------------------
   82|       |      // Positive value whose leading magnitude bit is set; skip the sign octet
   83|    258|      return {m_contents.begin() + 1, m_contents.end()};
   84|  1.84k|   } else {
   85|  1.84k|      return m_contents;
   86|  1.84k|   }
   87|  3.10k|}
_ZNK5Botan18X509_Serial_Number9to_bigintEv:
   89|    955|BigInt X509_Serial_Number::to_bigint() const {
   90|    955|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|    955|   do {                                                         \
  |  |   52|    955|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    955|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 955]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    955|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 955]
  |  |  ------------------
  ------------------
   91|    955|   return ASN1::integer_from_contents(m_contents);
   92|    955|}
_ZN5Botan18X509_Serial_Number11decode_fromERNS_11BER_DecoderE:
  108|  4.30k|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|  4.30k|   BigInt value;
  112|  4.30k|   from.decode(value);
  113|  4.30k|   *this = X509_Serial_Number(value);
  114|  4.30k|}

_ZN5Botan16X509_CertificateD2Ev:
   85|    541|X509_Certificate::~X509_Certificate() = default;
_ZNK5Botan16X509_Certificate9PEM_labelEv:
   87|  5.02k|std::string X509_Certificate::PEM_label() const {
   88|  5.02k|   return "CERTIFICATE";
   89|  5.02k|}
_ZNK5Botan16X509_Certificate20alternate_PEM_labelsEv:
   91|     78|std::vector<std::string> X509_Certificate::alternate_PEM_labels() const {
   92|     78|   return {"X509 CERTIFICATE"};
   93|     78|}
_ZN5Botan16X509_CertificateC2ERNS_10DataSourceE:
   95|  5.47k|X509_Certificate::X509_Certificate(DataSource& src) {
   96|  5.47k|   load_data(src);
   97|  5.47k|}
_ZN5Botan16X509_Certificate12force_decodeEv:
  366|  4.24k|void X509_Certificate::force_decode() {
  367|  4.24k|   m_data.reset();
  368|  4.24k|   m_data = parse_x509_cert_body(*this);
  369|  4.24k|}
x509cert.cpp:_ZN5Botan12_GLOBAL__N_120parse_x509_cert_bodyERKNS_11X509_ObjectE:
  113|  4.24k|std::unique_ptr<X509_Certificate_Data> parse_x509_cert_body(const X509_Object& obj) {
  114|  4.24k|   auto data = std::make_unique<X509_Certificate_Data>();
  115|       |
  116|  4.24k|   BER_Object public_key;
  117|  4.24k|   BER_Object v3_exts_data;
  118|       |
  119|  4.24k|   BER_Decoder(obj.signed_body(), BER_Decoder::Limits::DER())
  120|  4.24k|      .decode_optional(data->m_version, ASN1_Type(0), ASN1_Class::Constructed | ASN1_Class::ContextSpecific)
  121|  4.24k|      .decode(data->m_serial)
  122|  4.24k|      .decode(data->m_sig_algo_inner)
  123|  4.24k|      .decode(data->m_issuer_dn)
  124|  4.24k|      .start_sequence()
  125|  4.24k|      .decode(data->m_not_before)
  126|  4.24k|      .decode(data->m_not_after)
  127|  4.24k|      .end_cons()
  128|  4.24k|      .decode(data->m_subject_dn)
  129|  4.24k|      .get_next(public_key)
  130|  4.24k|      .decode_optional_string(data->m_v2_issuer_key_id, ASN1_Type::BitString, 1)
  131|  4.24k|      .decode_optional_string(data->m_v2_subject_key_id, ASN1_Type::BitString, 2)
  132|  4.24k|      .get_next(v3_exts_data)
  133|  4.24k|      .verify_end("TBSCertificate has extra data after extensions block");
  134|       |
  135|  4.24k|   if(data->m_version > 2) {
  ------------------
  |  Branch (135:7): [True: 3, False: 4.24k]
  ------------------
  136|      3|      throw Decoding_Error("Unknown X.509 cert version " + std::to_string(data->m_version));
  137|      3|   }
  138|  4.24k|   if(obj.signature_algorithm() != data->m_sig_algo_inner) {
  ------------------
  |  Branch (138:7): [True: 48, False: 4.19k]
  ------------------
  139|     48|      throw Decoding_Error("X.509 Certificate had differing algorithm identifiers in inner and outer ID fields");
  140|     48|   }
  141|       |
  142|  4.19k|   public_key.assert_is_a(ASN1_Type::Sequence, ASN1_Class::Constructed, "X.509 certificate public key");
  143|       |
  144|       |   // for general sanity convert wire version (0 based) to standards version (v1 .. v3)
  145|  4.19k|   data->m_version += 1;
  146|       |
  147|  4.19k|   data->m_serial_bits = data->m_serial.magnitude();
  148|  4.19k|   data->m_subject_dn_bits = ASN1::put_in_sequence(data->m_subject_dn.get_bits());
  149|  4.19k|   data->m_issuer_dn_bits = ASN1::put_in_sequence(data->m_issuer_dn.get_bits());
  150|       |
  151|  4.19k|   data->m_subject_public_key_bits.assign(public_key.bits(), public_key.bits() + public_key.length());
  152|       |
  153|  4.19k|   data->m_subject_public_key_bits_seq = ASN1::put_in_sequence(data->m_subject_public_key_bits);
  154|       |
  155|  4.19k|   BER_Decoder(data->m_subject_public_key_bits, BER_Decoder::Limits::DER())
  156|  4.19k|      .decode(data->m_subject_public_key_algid)
  157|  4.19k|      .decode_octet_aligned_bitstring(data->m_subject_public_key_bitstring)
  158|  4.19k|      .verify_end();
  159|       |
  160|  4.19k|   if(v3_exts_data.is_a(3, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (160:7): [True: 3.02k, False: 1.17k]
  ------------------
  161|       |      // Path validation will reject a v1/v2 cert with v3 extensions
  162|  3.02k|      BER_Decoder cert_extensions(v3_exts_data, BER_Decoder::Limits::DER());
  163|  3.02k|      data->m_v3_extensions.decode_from(cert_extensions, Extension_Context::Certificate);
  164|  3.02k|      cert_extensions.verify_end();
  165|  3.02k|   } else if(v3_exts_data.is_set()) {
  ------------------
  |  Branch (165:14): [True: 31, False: 1.14k]
  ------------------
  166|     31|      throw BER_Bad_Tag("Unknown tag in X.509 cert", v3_exts_data.tagging());
  167|     31|   }
  168|       |
  169|       |   // Now cache some fields from the extensions
  170|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Key_Usage>()) {
  ------------------
  |  Branch (170:19): [True: 228, False: 3.93k]
  ------------------
  171|    228|      data->m_key_constraints = ext->get_constraints();
  172|       |      /*
  173|       |      RFC 5280: When the keyUsage extension appears in a certificate,
  174|       |      at least one of the bits MUST be set to 1.
  175|       |      */
  176|    228|      if(data->m_key_constraints.empty()) {
  ------------------
  |  Branch (176:10): [True: 0, False: 228]
  ------------------
  177|      0|         throw Decoding_Error("Certificate has invalid encoding for KeyUsage");
  178|      0|      }
  179|    228|   }
  180|       |
  181|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Subject_Key_ID>()) {
  ------------------
  |  Branch (181:19): [True: 142, False: 4.02k]
  ------------------
  182|    142|      data->m_subject_key_id = ext->get_key_id();
  183|    142|   }
  184|       |
  185|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Authority_Key_ID>()) {
  ------------------
  |  Branch (185:19): [True: 48, False: 4.11k]
  ------------------
  186|     48|      data->m_authority_key_id = ext->get_key_id();
  187|     48|   }
  188|       |
  189|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Name_Constraints>()) {
  ------------------
  |  Branch (189:19): [True: 21, False: 4.14k]
  ------------------
  190|     21|      data->m_name_constraints = ext->get_name_constraints();
  191|     21|   }
  192|       |
  193|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Extended_Key_Usage>()) {
  ------------------
  |  Branch (193:19): [True: 74, False: 4.08k]
  ------------------
  194|     74|      data->m_extended_key_usage = ext->object_identifiers();
  195|       |      /*
  196|       |      RFC 5280 section 4.2.1.12
  197|       |
  198|       |      "This extension indicates one or more purposes ..."
  199|       |
  200|       |      "If the extension is present, then the certificate MUST only be
  201|       |      used for one of the purposes indicated."
  202|       |
  203|       |      Thus we reject an EKU extension which is empty, since this indicates
  204|       |      the certificate cannot be used for any purpose.
  205|       |      */
  206|     74|      if(data->m_extended_key_usage.empty()) {
  ------------------
  |  Branch (206:10): [True: 0, False: 74]
  ------------------
  207|      0|         throw Decoding_Error("Certificate has invalid empty EKU extension");
  208|      0|      }
  209|     74|   }
  210|       |
  211|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Basic_Constraints>()) {
  ------------------
  |  Branch (211:19): [True: 66, False: 4.09k]
  ------------------
  212|       |      /*
  213|       |      * RFC 5280 4.2.1.9 requires that conforming CAs "MUST mark the
  214|       |      * extension [basicConstraints] as critical in such certificates"
  215|       |      * but places no such requirement on validators.
  216|       |      */
  217|     66|      if(ext->is_ca() == true) {
  ------------------
  |  Branch (217:10): [True: 38, False: 28]
  ------------------
  218|       |         /*
  219|       |         * RFC 5280 section 4.2.1.3 requires that CAs include KeyUsage in all
  220|       |         * intermediate CA certificates they issue. Currently we accept it being
  221|       |         * missing, as do most other implementations. But it may be worth
  222|       |         * removing this entirely, or alternately adding a warning level
  223|       |         * validation failure for it.
  224|       |         */
  225|     38|         const bool allowed_by_ku =
  226|     38|            data->m_key_constraints.includes(Key_Constraints::KeyCertSign) || data->m_key_constraints.empty();
  ------------------
  |  Branch (226:13): [True: 7, False: 31]
  |  Branch (226:79): [True: 27, False: 4]
  ------------------
  227|       |
  228|       |         /*
  229|       |         * If the extended key usages are set then we must restrict the usage in
  230|       |         * accordance with it as well.
  231|       |         *
  232|       |         * RFC 5280 does not define any extended key usages compatible with certificate
  233|       |         * signing, but some CAs use serverAuth, clientAuth, OCSPSigning, or AnyExtendedKeyUsage
  234|       |         * for this purpose, even though clearly all of these (besides AEKU) are invalid.
  235|       |         * This check at least allows excluding a certificate which is set for only eg
  236|       |         * timestamping or code signing, and that seems about the best we can possibly enforce.
  237|       |         * OpenSSL, BoringSSL, and Go all completely ignore EKUs in determining ability to
  238|       |         * issue certs.
  239|       |         */
  240|     38|         const bool allowed_by_ext_ku = [](const std::vector<OID>& ext_ku) -> bool {
  241|     38|            if(ext_ku.empty()) {
  242|     38|               return true;
  243|     38|            }
  244|       |
  245|     38|            const auto server_auth = OID::from_name("PKIX.ServerAuth");
  246|     38|            const auto client_auth = OID::from_name("PKIX.ClientAuth");
  247|     38|            const auto ocsp_sign = OID::from_name("PKIX.OCSPSigning");
  248|     38|            const auto any_eku = OID::from_name("X509v3.AnyExtendedKeyUsage");
  249|       |
  250|     38|            for(const auto& oid : ext_ku) {
  251|     38|               if(oid == any_eku || oid == server_auth || oid == client_auth || oid == ocsp_sign) {
  252|     38|                  return true;
  253|     38|               }
  254|     38|            }
  255|       |
  256|     38|            return false;
  257|     38|         }(data->m_extended_key_usage);
  258|       |
  259|     38|         if(allowed_by_ku && allowed_by_ext_ku) {
  ------------------
  |  Branch (259:13): [True: 34, False: 4]
  |  Branch (259:30): [True: 18, False: 16]
  ------------------
  260|     18|            data->m_is_ca_certificate = true;
  261|     18|            data->m_path_len_constraint = ext->path_length_constraint();
  262|     18|         }
  263|     38|      }
  264|     66|   }
  265|       |
  266|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Issuer_Alternative_Name>()) {
  ------------------
  |  Branch (266:19): [True: 24, False: 4.13k]
  ------------------
  267|     24|      data->m_issuer_alt_name = ext->get_alt_name();
  268|     24|   }
  269|       |
  270|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Subject_Alternative_Name>()) {
  ------------------
  |  Branch (270:19): [True: 66, False: 4.09k]
  ------------------
  271|     66|      data->m_subject_alt_name = ext->get_alt_name();
  272|     66|   }
  273|       |
  274|       |   // This will be set even if SAN parsing failed entirely eg due to a decoding error
  275|       |   // or if the SAN is empty. This is used to guard against using the CN for domain
  276|       |   // name checking.
  277|  4.16k|   const auto san_oid = OID::from_string("X509v3.SubjectAlternativeName");
  278|  4.16k|   data->m_subject_alt_name_exists = data->m_v3_extensions.extension_set(san_oid);
  279|       |
  280|       |   /*
  281|       |   * RFC 9608 Section 4:
  282|       |   *
  283|       |   *   If the noRevAvail certificate extension specified in this document is
  284|       |   *   present or the ocsp-nocheck certificate extension [RFC6960] is
  285|       |   *   present, then Step (a)(3) is skipped.  Otherwise, revocation status
  286|       |   *   determination of the certificate is performed.
  287|       |   */
  288|  4.16k|   data->m_skip_revocation_check =
  289|  4.16k|      data->m_v3_extensions.extension_set(Cert_Extension::NoRevocationAvailable::static_oid()) ||
  ------------------
  |  Branch (289:7): [True: 3.62k, False: 534]
  ------------------
  290|    534|      data->m_v3_extensions.extension_set(Cert_Extension::OCSP_NoCheck::static_oid());
  ------------------
  |  Branch (290:7): [True: 0, False: 534]
  ------------------
  291|       |
  292|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Certificate_Policies>()) {
  ------------------
  |  Branch (292:19): [True: 20, False: 4.14k]
  ------------------
  293|     20|      data->m_cert_policies = ext->get_policy_oids();
  294|     20|   }
  295|       |
  296|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Authority_Information_Access>()) {
  ------------------
  |  Branch (296:19): [True: 81, False: 4.08k]
  ------------------
  297|     81|      data->m_ocsp_responders = ext->ocsp_responder_uris();
  298|     81|      data->m_ca_issuers = ext->ca_issuer_uris();
  299|     81|   }
  300|       |
  301|  4.16k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::CRL_Distribution_Points>()) {
  ------------------
  |  Branch (301:19): [True: 22, False: 4.14k]
  ------------------
  302|     22|      data->m_crl_distribution_points = ext->crl_distribution_point_uris();
  303|     22|   }
  304|       |
  305|       |   /*
  306|       |   Determine if this certificate appears to be self-issued (subject == issuer).
  307|       |   This is only a heuristic used for path building so it's ok it is not precise.
  308|       |   */
  309|  4.16k|   if(data->m_subject_dn == data->m_issuer_dn) {
  ------------------
  |  Branch (309:7): [True: 28, False: 4.13k]
  ------------------
  310|     28|      if(!data->m_subject_key_id.empty() && !data->m_authority_key_id.empty()) {
  ------------------
  |  Branch (310:10): [True: 19, False: 9]
  |  Branch (310:45): [True: 13, False: 6]
  ------------------
  311|       |         /*
  312|       |         Both SKID and AKID are set so we can reliably determine self-signed vs
  313|       |         self-issued by comparing the two
  314|       |         */
  315|     13|         data->m_self_signed = (data->m_subject_key_id == data->m_authority_key_id);
  316|     15|      } else {
  317|       |         /*
  318|       |         Without both SKID and AKID we can't determine with certainty. Assume
  319|       |         self-signed since that's by far the common case.
  320|       |         */
  321|     15|         data->m_self_signed = true;
  322|     15|      }
  323|     28|   }
  324|       |
  325|  4.16k|   const std::vector<uint8_t> full_encoding = obj.BER_encode();
  326|       |
  327|  4.16k|   if(auto sha1 = HashFunction::create("SHA-1")) {
  ------------------
  |  Branch (327:12): [True: 541, False: 3.62k]
  ------------------
  328|    541|      sha1->update(data->m_subject_public_key_bitstring);
  329|    541|      data->m_subject_public_key_bitstring_sha1 = sha1->final_stdvec();
  330|       |      // otherwise left as empty, and we will throw if subject_public_key_bitstring_sha1 is called
  331|       |
  332|    541|      sha1->update(full_encoding);
  333|    541|      sha1->final(data->m_cert_data_sha1);
  334|    541|      data->m_fingerprint_sha1 = format_hex_fingerprint(data->m_cert_data_sha1);
  335|       |
  336|    541|      sha1->update(data->m_issuer_dn_bits);
  337|    541|      sha1->final(data->m_issuer_dn_bits_sha1);
  338|       |
  339|    541|      sha1->update(data->m_subject_dn_bits);
  340|    541|      sha1->final(data->m_subject_dn_bits_sha1);
  341|    541|   }
  342|       |
  343|       |   // SHA-256 is a hard dependency of this module
  344|  4.16k|   auto sha256 = HashFunction::create_or_throw("SHA-256");
  345|  4.16k|   sha256->update(data->m_issuer_dn_bits);
  346|  4.16k|   data->m_issuer_dn_bits_sha256 = sha256->final_stdvec();
  347|       |
  348|  4.16k|   sha256->update(data->m_subject_dn_bits);
  349|  4.16k|   data->m_subject_dn_bits_sha256 = sha256->final_stdvec();
  350|       |
  351|  4.16k|   sha256->update(full_encoding);
  352|  4.16k|   sha256->final(data->m_cert_data_sha256);
  353|  4.16k|   data->m_fingerprint_sha256 = format_hex_fingerprint(data->m_cert_data_sha256);
  354|       |
  355|  4.16k|   sha256->update(data->m_subject_public_key_bitstring);
  356|  4.16k|   sha256->final(data->m_subject_public_key_bitstring_sha256);
  357|       |
  358|  4.16k|   return data;
  359|  4.16k|}
x509cert.cpp:_ZZN5Botan12_GLOBAL__N_120parse_x509_cert_bodyERKNS_11X509_ObjectEENK3$_0clERKNSt3__16vectorINS_3OIDENS5_9allocatorIS7_EEEE:
  240|     38|         const bool allowed_by_ext_ku = [](const std::vector<OID>& ext_ku) -> bool {
  241|     38|            if(ext_ku.empty()) {
  ------------------
  |  Branch (241:16): [True: 19, False: 19]
  ------------------
  242|     19|               return true;
  243|     19|            }
  244|       |
  245|     19|            const auto server_auth = OID::from_name("PKIX.ServerAuth");
  246|     19|            const auto client_auth = OID::from_name("PKIX.ClientAuth");
  247|     19|            const auto ocsp_sign = OID::from_name("PKIX.OCSPSigning");
  248|     19|            const auto any_eku = OID::from_name("X509v3.AnyExtendedKeyUsage");
  249|       |
  250|     34|            for(const auto& oid : ext_ku) {
  ------------------
  |  Branch (250:33): [True: 34, False: 16]
  ------------------
  251|     34|               if(oid == any_eku || oid == server_auth || oid == client_auth || oid == ocsp_sign) {
  ------------------
  |  Branch (251:19): [True: 0, False: 34]
  |  Branch (251:37): [True: 1, False: 33]
  |  Branch (251:59): [True: 1, False: 32]
  |  Branch (251:81): [True: 1, False: 31]
  ------------------
  252|      3|                  return true;
  253|      3|               }
  254|     34|            }
  255|       |
  256|     16|            return false;
  257|     19|         }(data->m_extended_key_usage);

