_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|  1.45k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|  1.45k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|  5.08k|      void clear() {
   72|  5.08k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|  5.08k|         m_position = 0;
   74|  5.08k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|  6.45k|      [[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|  6.45k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 6.45k]
  ------------------
  171|       |
  172|  6.45k|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 6.45k, False: 0]
  |  Branch (172:31): [True: 2.82k, False: 3.63k]
  ------------------
  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.82k|            return std::nullopt;
  177|  2.82k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|  3.63k|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|  3.63k|         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|  3.63k|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 0, False: 3.63k]
  |  Branch (188:36): [True: 0, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|      0|            return consume();
  190|  3.63k|         } else {
  191|  3.63k|            return std::nullopt;
  192|  3.63k|         }
  193|  3.63k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|  9.28k|      constexpr bool defers_final_block() const {
  234|  9.28k|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|  9.28k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|  7.26k|      void append(std::span<const T> elements) {
   91|  7.26k|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|  7.26k|   do {                                                                     \
  |  |   78|  7.26k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  7.26k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 7.26k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  7.26k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 7.26k]
  |  |  ------------------
  ------------------
   92|  7.26k|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|  7.26k|         m_position += elements.size();
   94|  7.26k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|  19.3k|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|  16.8k|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|  4.79k|      [[nodiscard]] std::span<const T> consume() {
  201|  4.79k|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|  4.79k|   do {                                                                     \
  |  |   78|  4.79k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.79k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.79k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.79k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.79k]
  |  |  ------------------
  ------------------
  202|  4.79k|         m_position = 0;
  203|  4.79k|         return m_buffer;
  204|  4.79k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|  15.7k|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  2.82k|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  2.82k|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  2.82k|   do {                                                                     \
  |  |   78|  2.82k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.82k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.82k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.82k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.82k]
  |  |  ------------------
  ------------------
  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.82k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 2.82k]
  ------------------
  132|  2.82k|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  2.82k|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  2.82k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|  4.79k|      void fill_up_with_zeros() {
   80|  4.79k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 4.79k, False: 0]
  ------------------
   81|  4.79k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|  4.79k|            m_position = m_buffer.size();
   83|  4.79k|         }
   84|  4.79k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|  3.63k|      std::span<T> directly_modify_last(size_t elements) {
  114|  3.63k|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   77|  3.63k|   do {                                                                     \
  |  |   78|  3.63k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.63k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.63k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.63k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.63k]
  |  |  ------------------
  ------------------
  115|  3.63k|         return std::span(m_buffer).last(elements);
  116|  3.63k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|  3.63k|      constexpr size_t size() const { return m_buffer.size(); }

_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  1.24k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  1.24k|   size_t hb = 0;
   75|       |
   76|  7.44k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 6.20k, False: 1.24k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  6.20k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  6.20k|      hb += z;
   80|  6.20k|      n >>= z;
   81|  6.20k|   }
   82|       |
   83|  1.24k|   hb += n;
   84|       |
   85|  1.24k|   return hb;
   86|  1.24k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  6.20k|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|  6.20k|   const T a = ~x & (x - 1);
   51|  6.20k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  6.20k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  6.20k|   return mask & s;
   54|  6.20k|}
_ZN5Botan17significant_bytesITkNSt3__117unsigned_integralEmEEmT_:
   94|  3.63k|BOTAN_FORCE_INLINE constexpr size_t significant_bytes(T n) {
   95|  3.63k|   size_t b = 0;
   96|       |
   97|  14.5k|   for(size_t s = 8 * sizeof(T) / 2; s >= 8; s /= 2) {
  ------------------
  |  Branch (97:38): [True: 10.9k, False: 3.63k]
  ------------------
   98|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   99|  10.9k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
  100|  10.9k|      b += z / 8;
  101|  10.9k|      n >>= z;
  102|  10.9k|   }
  103|       |
  104|  3.63k|   b += (n != 0);
  105|       |
  106|  3.63k|   return b;
  107|  3.63k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|  97.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|  97.6k|   const T a = ~x & (x - 1);
   51|  97.6k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  97.6k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  97.6k|   return mask & s;
   54|  97.6k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|  97.4k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  97.4k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  97.4k|   return static_cast<T>(0) - top;
   31|  97.4k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|  97.4k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  97.4k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  97.4k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  14.4k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  14.4k|   size_t hb = 0;
   75|       |
   76|   101k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 86.6k, False: 14.4k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  86.6k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  86.6k|      hb += z;
   80|  86.6k|      n >>= z;
   81|  86.6k|   }
   82|       |
   83|  14.4k|   hb += n;
   84|       |
   85|  14.4k|   return hb;
   86|  14.4k|}

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

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

base64.cpp:_ZN5Botan11base_decodeINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmRmbb:
  124|    163|                   bool ignore_ws = true) {
  125|       |   // TODO(Botan4) Check if we can use just base. or Base:: here instead
  126|    163|   constexpr size_t decoding_bytes_in = std::remove_reference_t<Base>::decoding_bytes_in();
  127|    163|   constexpr size_t decoding_bytes_out = std::remove_reference_t<Base>::decoding_bytes_out();
  128|       |
  129|    163|   uint8_t* out_ptr = output;
  130|    163|   std::array<uint8_t, decoding_bytes_in> decode_buf{};
  131|    163|   size_t decode_buf_pos = 0;
  132|    163|   size_t final_truncate = 0;
  133|       |
  134|    163|   clear_mem(output, base.decode_max_output(input_length));
  135|       |
  136|  50.4k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (136:22): [True: 50.2k, False: 163]
  ------------------
  137|  50.2k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  138|       |
  139|       |      // This call might throw Invalid_Argument
  140|  50.2k|      if(base.check_bad_char(bin, input[i], ignore_ws)) {
  ------------------
  |  Branch (140:10): [True: 12.9k, False: 37.2k]
  ------------------
  141|  12.9k|         decode_buf[decode_buf_pos] = bin;
  142|  12.9k|         ++decode_buf_pos;
  143|  12.9k|      }
  144|       |
  145|       |      /*
  146|       |      * If we're at the end of the input, pad with 0s and truncate
  147|       |      */
  148|  50.2k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (148:10): [True: 50.1k, False: 40]
  |  Branch (148:26): [True: 93, False: 50.1k]
  ------------------
  149|     93|         if(decode_buf_pos) {
  ------------------
  |  Branch (149:13): [True: 42, False: 51]
  ------------------
  150|    130|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (150:44): [True: 88, False: 42]
  ------------------
  151|     88|               decode_buf[j] = 0;
  152|     88|            }
  153|       |
  154|     42|            final_truncate = decoding_bytes_in - decode_buf_pos;
  155|     42|            decode_buf_pos = decoding_bytes_in;
  156|     42|         }
  157|     93|      }
  158|       |
  159|  50.2k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (159:10): [True: 3.25k, False: 46.9k]
  ------------------
  160|  3.25k|         base.decode(out_ptr, decode_buf.data());
  161|       |
  162|  3.25k|         out_ptr += decoding_bytes_out;
  163|  3.25k|         decode_buf_pos = 0;
  164|  3.25k|         input_consumed = i + 1;
  165|  3.25k|      }
  166|  50.2k|   }
  167|       |
  168|  17.9k|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (168:10): [True: 17.8k, False: 138]
  |  Branch (168:43): [True: 17.8k, False: 25]
  ------------------
  169|  17.8k|      ++input_consumed;
  170|  17.8k|   }
  171|       |
  172|    163|   const size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  173|       |
  174|    163|   return written;
  175|    163|}
base64.cpp:_ZN5Botan16base_decode_fullINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmb:
  178|    163|size_t base_decode_full(const Base& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  179|    163|   size_t consumed = 0;
  180|    163|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  181|       |
  182|    163|   if(consumed != input_length) {
  ------------------
  |  Branch (182:7): [True: 25, False: 138]
  ------------------
  183|     25|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  184|     25|   }
  185|       |
  186|    138|   return written;
  187|    163|}
base64.cpp:_ZN5Botan18base_decode_to_vecINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_12_GLOBAL__N_16Base64EEET_RKT0_PKcmb:
  190|    163|Vector base_decode_to_vec(const Base& base, const char input[], size_t input_length, bool ignore_ws) {
  191|    163|   const size_t output_length = base.decode_max_output(input_length);
  192|    163|   Vector bin(output_length);
  193|       |
  194|    163|   const size_t written = base_decode_full(base, bin.data(), input, input_length, ignore_ws);
  195|       |
  196|    163|   bin.resize(written);
  197|    163|   return bin;
  198|    163|}

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   94|  7.62k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  156|  7.62k|      static CPUID_Data& state() {
  157|  7.62k|         static CPUID::CPUID_Data g_cpuid;
  158|  7.62k|         return g_cpuid;
  159|  7.62k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  144|  7.62k|            bool has_bit(uint32_t bit) const { return (m_processor_features & bit) == bit; }
_ZN5Botan5CPUID6is_setEjNS_10CPUFeatureE:
  127|      4|      static inline bool is_set(uint32_t allowed, CPUID::Feature bit) {
  128|      4|         const uint32_t feat_bit = bit.as_u32();
  129|      4|         return ((allowed & feat_bit) == feat_bit);
  130|      4|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_1_bitsEEjmT_NS_10CPUFeatureEj:
  117|      6|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      6|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      6|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 6, False: 0]
  ------------------
  120|      6|            return (bit.as_u32() & allowed);
  121|      6|         } else {
  122|      0|            return 0;
  123|      0|         }
  124|      6|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_7_bitsEEjmT_NS_10CPUFeatureEj:
  117|      8|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      8|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      8|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 5, False: 3]
  ------------------
  120|      5|            return (bit.as_u32() & allowed);
  121|      5|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      8|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE18x86_CPUID_7_1_bitsEEjmT_NS_10CPUFeatureEj:
  117|      3|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      3|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      3|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 0, False: 3]
  ------------------
  120|      0|            return (bit.as_u32() & allowed);
  121|      3|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      3|      }

_ZNK5Botan10CPUFeature6as_u32Ev:
   53|  7.63k|      uint32_t as_u32() const { return static_cast<uint32_t>(m_bit); }
_ZN5Botan10CPUFeatureC2ENS0_3BitE:
   51|  7.64k|      CPUFeature(Bit b) : m_bit(b) {}  // NOLINT(*-explicit-conversions)

_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  26.3k|constexpr void unpoison(const T& p) {
  113|  26.3k|   unpoison(&p, 1);
  114|  26.3k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  39.0k|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|  39.0k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  39.0k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  39.0k|}

_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  9.13k|std::string fmt(std::string_view format, const T&... args) {
   54|  9.13k|   std::ostringstream oss;
   55|  9.13k|   oss.imbue(std::locale::classic());
   56|  9.13k|   fmt_detail::do_fmt(oss, format, args...);
   57|  9.13k|   return oss.str();
   58|  9.13k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  9.13k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  9.13k|   size_t i = 0;
   27|       |
   28|  82.8k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 82.8k, False: 0]
  ------------------
   29|  82.8k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 9.13k, False: 73.6k]
  |  Branch (29:30): [True: 9.13k, False: 0]
  |  Branch (29:59): [True: 9.13k, False: 0]
  ------------------
   30|  9.13k|         oss << val;
   31|  9.13k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  73.6k|      } else {
   33|  73.6k|         oss << format[i];
   34|  73.6k|      }
   35|       |
   36|  73.6k|      i += 1;
   37|  73.6k|   }
   38|  9.13k|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  17.1k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  17.1k|   oss << format;
   22|  17.1k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  4.09k|std::string fmt(std::string_view format, const T&... args) {
   54|  4.09k|   std::ostringstream oss;
   55|  4.09k|   oss.imbue(std::locale::classic());
   56|  4.09k|   fmt_detail::do_fmt(oss, format, args...);
   57|  4.09k|   return oss.str();
   58|  4.09k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  4.09k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.09k|   size_t i = 0;
   27|       |
   28|  4.09k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.09k, False: 0]
  ------------------
   29|  4.09k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.09k, False: 0]
  |  Branch (29:30): [True: 4.09k, False: 0]
  |  Branch (29:59): [True: 4.09k, False: 0]
  ------------------
   30|  4.09k|         oss << val;
   31|  4.09k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.09k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  4.09k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  4.21k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.21k|   size_t i = 0;
   27|       |
   28|  60.0k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 60.0k, False: 0]
  ------------------
   29|  60.0k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.21k, False: 55.8k]
  |  Branch (29:30): [True: 4.21k, False: 0]
  |  Branch (29:59): [True: 4.21k, False: 0]
  ------------------
   30|  4.21k|         oss << val;
   31|  4.21k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  55.8k|      } else {
   33|  55.8k|         oss << format[i];
   34|  55.8k|      }
   35|       |
   36|  55.8k|      i += 1;
   37|  55.8k|   }
   38|  4.21k|}
_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|     45|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     45|   size_t i = 0;
   27|       |
   28|  2.11k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 2.11k, False: 0]
  ------------------
   29|  2.11k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 45, False: 2.07k]
  |  Branch (29:30): [True: 45, False: 0]
  |  Branch (29:59): [True: 45, False: 0]
  ------------------
   30|     45|         oss << val;
   31|     45|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  2.07k|      } else {
   33|  2.07k|         oss << format[i];
   34|  2.07k|      }
   35|       |
   36|  2.07k|      i += 1;
   37|  2.07k|   }
   38|     45|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|    174|std::string fmt(std::string_view format, const T&... args) {
   54|    174|   std::ostringstream oss;
   55|    174|   oss.imbue(std::locale::classic());
   56|    174|   fmt_detail::do_fmt(oss, format, args...);
   57|    174|   return oss.str();
   58|    174|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|    174|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    174|   size_t i = 0;
   27|       |
   28|    174|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 174, False: 0]
  ------------------
   29|    174|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 174, False: 0]
  |  Branch (29:30): [True: 174, False: 0]
  |  Branch (29:59): [True: 174, False: 0]
  ------------------
   30|    174|         oss << val;
   31|    174|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    174|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|    174|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    841|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    841|   size_t i = 0;
   27|       |
   28|  19.9k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 19.9k, False: 0]
  ------------------
   29|  19.9k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 841, False: 19.1k]
  |  Branch (29:30): [True: 841, False: 0]
  |  Branch (29:59): [True: 841, False: 0]
  ------------------
   30|    841|         oss << val;
   31|    841|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  19.1k|      } else {
   33|  19.1k|         oss << format[i];
   34|  19.1k|      }
   35|       |
   36|  19.1k|      i += 1;
   37|  19.1k|   }
   38|    841|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|  2.87k|std::string fmt(std::string_view format, const T&... args) {
   54|  2.87k|   std::ostringstream oss;
   55|  2.87k|   oss.imbue(std::locale::classic());
   56|  2.87k|   fmt_detail::do_fmt(oss, format, args...);
   57|  2.87k|   return oss.str();
   58|  2.87k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|  2.87k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  2.87k|   size_t i = 0;
   27|       |
   28|  61.1k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 61.1k, False: 0]
  ------------------
   29|  61.1k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2.87k, False: 58.2k]
  |  Branch (29:30): [True: 2.87k, False: 0]
  |  Branch (29:59): [True: 2.87k, False: 0]
  ------------------
   30|  2.87k|         oss << val;
   31|  2.87k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  58.2k|      } else {
   33|  58.2k|         oss << format[i];
   34|  58.2k|      }
   35|       |
   36|  58.2k|      i += 1;
   37|  58.2k|   }
   38|  2.87k|}
_ZN5Botan3fmtIJjjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    142|std::string fmt(std::string_view format, const T&... args) {
   54|    142|   std::ostringstream oss;
   55|    142|   oss.imbue(std::locale::classic());
   56|    142|   fmt_detail::do_fmt(oss, format, args...);
   57|    142|   return oss.str();
   58|    142|}
_ZN5Botan10fmt_detail6do_fmtIjJjEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    142|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    142|   size_t i = 0;
   27|       |
   28|  4.52k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.52k, False: 0]
  ------------------
   29|  4.52k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 142, False: 4.38k]
  |  Branch (29:30): [True: 142, False: 0]
  |  Branch (29:59): [True: 142, False: 0]
  ------------------
   30|    142|         oss << val;
   31|    142|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.38k|      } else {
   33|  4.38k|         oss << format[i];
   34|  4.38k|      }
   35|       |
   36|  4.38k|      i += 1;
   37|  4.38k|   }
   38|    142|}
_ZN5Botan3fmtIJPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     91|std::string fmt(std::string_view format, const T&... args) {
   54|     91|   std::ostringstream oss;
   55|     91|   oss.imbue(std::locale::classic());
   56|     91|   fmt_detail::do_fmt(oss, format, args...);
   57|     91|   return oss.str();
   58|     91|}
_ZN5Botan3fmtIJmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     40|std::string fmt(std::string_view format, const T&... args) {
   54|     40|   std::ostringstream oss;
   55|     40|   oss.imbue(std::locale::classic());
   56|     40|   fmt_detail::do_fmt(oss, format, args...);
   57|     40|   return oss.str();
   58|     40|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     24|std::string fmt(std::string_view format, const T&... args) {
   54|     24|   std::ostringstream oss;
   55|     24|   oss.imbue(std::locale::classic());
   56|     24|   fmt_detail::do_fmt(oss, format, args...);
   57|     24|   return oss.str();
   58|     24|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     24|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     24|   size_t i = 0;
   27|       |
   28|     24|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 24, False: 0]
  ------------------
   29|     24|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 24, False: 0]
  |  Branch (29:30): [True: 24, False: 0]
  |  Branch (29:59): [True: 24, False: 0]
  ------------------
   30|     24|         oss << val;
   31|     24|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     24|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     24|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     24|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     24|   size_t i = 0;
   27|       |
   28|    120|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 120, False: 0]
  ------------------
   29|    120|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 24, False: 96]
  |  Branch (29:30): [True: 24, False: 0]
  |  Branch (29:59): [True: 24, False: 0]
  ------------------
   30|     24|         oss << val;
   31|     24|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     96|      } else {
   33|     96|         oss << format[i];
   34|     96|      }
   35|       |
   36|     96|      i += 1;
   37|     96|   }
   38|     24|}
_ZN5Botan3fmtIJmmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|      5|std::string fmt(std::string_view format, const T&... args) {
   54|      5|   std::ostringstream oss;
   55|      5|   oss.imbue(std::locale::classic());
   56|      5|   fmt_detail::do_fmt(oss, format, args...);
   57|      5|   return oss.str();
   58|      5|}
_ZN5Botan10fmt_detail6do_fmtImJmEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|    225|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 225, False: 0]
  ------------------
   29|    225|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 220]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    220|      } else {
   33|    220|         oss << format[i];
   34|    220|      }
   35|       |
   36|    220|      i += 1;
   37|    220|   }
   38|      5|}
_ZN5Botan3fmtIJjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    525|std::string fmt(std::string_view format, const T&... args) {
   54|    525|   std::ostringstream oss;
   55|    525|   oss.imbue(std::locale::classic());
   56|    525|   fmt_detail::do_fmt(oss, format, args...);
   57|    525|   return oss.str();
   58|    525|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  83.1k|constexpr inline std::optional<T> checked_mul(T a, T b) {
   47|       |   // Multiplication by 1U is a hack to work around C's insane
   48|       |   // integer promotion rules.
   49|       |   // https://stackoverflow.com/questions/24795651
   50|  83.1k|   const T r = (1U * a) * b;
   51|       |   // If a == 0 then the multiply certainly did not overflow
   52|       |   // Otherwise r / a == b unless overflow occurred
   53|  83.1k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 83.1k, False: 0]
  |  Branch (53:17): [True: 0, False: 83.1k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  83.1k|   return r;
   57|  83.1k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|    727|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|    727|   const T r = a + b;
   21|    727|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 727]
  |  Branch (21:16): [True: 0, False: 727]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|    727|   return r;
   25|    727|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   19|  1.86k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  1.86k|   const T r = a + b;
   21|  1.86k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 1.86k]
  |  Branch (21:16): [True: 0, False: 1.86k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  1.86k|   return r;
   25|  1.86k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan7swar_ltITkNSt3__117unsigned_integralEtEET_S2_S2_:
   91|  37.8k|constexpr T swar_lt(T a, T b) {
   92|       |   // The constant 0x808080... as a T
   93|  37.8k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
   94|       |   // The constant 0x7F7F7F... as a T
   95|  37.8k|   constexpr T lo7 = static_cast<T>(~hi1);
   96|  37.8k|   T r = (lo7 - a + b) & hi1;
   97|       |   // Currently the mask is 80 if lt, otherwise 00. Convert to FF/00
   98|  37.8k|   return (r << 1) - (r >> 7);
   99|  37.8k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  114|  68.1k|constexpr T swar_in_range(T v, T lower, T upper) {
  115|       |   // The constant 0x808080... as a T
  116|  68.1k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  117|       |   // The constant 0x7F7F7F... as a T
  118|  68.1k|   constexpr T lo7 = ~hi1;
  119|       |
  120|  68.1k|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  121|  68.1k|   const T a_lo = sub & lo7;
  122|  68.1k|   const T a_hi = sub & hi1;
  123|  68.1k|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  124|  68.1k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    266|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    266|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 266, False: 0]
  ------------------
   39|    266|      return checked_add(r.value(), rest...);
   40|    266|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    266|}
_ZN5Botan15checked_cast_toIjmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
   74|  4.71k|constexpr RT checked_cast_to(AT i) {
   75|  4.71k|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
   76|  4.71k|}
_ZN5Botan24checked_cast_to_or_throwIjNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   61|  4.71k|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   62|  4.71k|   const auto unwrapped_input = unwrap_strong_type(i);
   63|       |
   64|  4.71k|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   65|  4.71k|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (65:7): [True: 0, False: 4.71k]
  ------------------
   66|      0|      throw ExceptionType(error_msg_on_fail);
   67|      0|   }
   68|       |
   69|  4.71k|   return wrap_strong_type<RT>(unwrapped_result);
   70|  4.71k|}

_ZN5Botan11make_uint16Ehh:
   92|    724|inline constexpr uint16_t make_uint16(uint8_t i0, uint8_t i1) {
   93|    724|   return static_cast<uint16_t>((static_cast<uint16_t>(i0) << 8) | i1);
   94|    724|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|  42.3k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|  42.3k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|  42.3k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  24.7k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  24.7k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  24.7k|   using InT = decltype(in);
  528|  24.7k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  24.7k|   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|  24.7k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 24.7k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  24.7k|   } 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|  24.7k|      } else {
  542|  24.7k|         static_assert(opposite(endianness) == std::endian::native);
  543|  24.7k|         typecast_copy(out, reverse_bytes(in));
  544|  24.7k|      }
  545|  24.7k|   }
  546|  24.7k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEjEEDaT_:
  190|  24.7k|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|  24.7k|   } else {
  195|  24.7k|      return Botan::unwrap_strong_type(t);
  196|  24.7k|   }
  197|  24.7k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  8.45k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  8.45k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  8.45k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  8.45k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  8.45k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  8.45k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  8.45k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  8.45k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  8.45k|   using InT = decltype(in);
  528|  8.45k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  8.45k|   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|  8.45k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 8.45k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  8.45k|   } 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|  8.45k|      } else {
  542|  8.45k|         static_assert(opposite(endianness) == std::endian::native);
  543|  8.45k|         typecast_copy(out, reverse_bytes(in));
  544|  8.45k|      }
  545|  8.45k|   }
  546|  8.45k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  8.45k|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|  8.45k|   } else {
  195|  8.45k|      return Botan::unwrap_strong_type(t);
  196|  8.45k|   }
  197|  8.45k|}
_ZN5Botan8get_byteILm1EtEEhT0_QltT_stS1_:
   81|  37.8k|{
   82|  37.8k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  37.8k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  37.8k|}
_ZN5Botan8get_byteILm0EtEEhT0_QltT_stS1_:
   81|  37.8k|{
   82|  37.8k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  37.8k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  37.8k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|  4.75k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  4.75k|   } else {
  204|  4.75k|      return Botan::wrap_strong_type<OutT>(t);
  205|  4.75k|   }
  206|  4.75k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  4.75k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  4.75k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  4.75k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  4.75k|   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|  4.75k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  4.75k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.75k|      } else {
  289|  4.75k|         const std::span in{in_range};
  290|  4.75k|         if constexpr(sizeof(OutT) == 1) {
  291|  4.75k|            return static_cast<OutT>(in[0]);
  292|  4.75k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.75k|            return typecast_copy<OutT>(in);
  294|  4.75k|         } else {
  295|  4.75k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.75k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.75k|         }
  298|  4.75k|      }
  299|  4.75k|   }());
  300|  4.75k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  4.75k|   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|  4.75k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 4.75k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.75k|      } else {
  289|  4.75k|         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|  4.75k|         } else {
  295|  4.75k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.75k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.75k|         }
  298|  4.75k|      }
  299|  4.75k|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  8.45k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  8.45k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  8.45k|}
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorIjNS_16secure_allocatorIjEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|  3.63k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|  3.63k|   using T = std::ranges::range_value_t<InR>;
  775|  3.63k|   std::span<const T> in_s{in};
  776|  3.63k|   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|  3.63k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 3.63k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|  3.63k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|  3.63k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|  3.63k|   const size_t full_words = out.size() / sizeof(T);
  754|  3.63k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|  3.63k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|  3.63k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|  3.63k|   do {                                                                     \
  |  |   78|  3.63k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.63k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.63k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.63k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.63k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|  3.63k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|  3.63k|   out = out.subspan(full_word_bytes);
  761|  3.63k|   in = in.subspan(full_words);
  762|       |
  763|  3.63k|   return remaining_bytes;
  764|  3.63k|}
_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|  3.63k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  3.63k|   ranges::assert_equal_byte_lengths(out, in);
  605|  3.63k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  3.63k|   auto store_elementwise = [&] {
  608|  3.63k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  3.63k|      std::span<uint8_t> out_s(out);
  610|  3.63k|      for(auto in_elem : in) {
  611|  3.63k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  3.63k|         out_s = out_s.subspan(bytes_per_element);
  613|  3.63k|      }
  614|  3.63k|   };
  615|       |
  616|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  617|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  618|       |   // in a `constexpr` context.
  619|  3.63k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 3.63k]
  ------------------
  620|      0|      store_elementwise();
  621|  3.63k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  3.63k|      } else {
  625|  3.63k|         store_elementwise();
  626|  3.63k|      }
  627|  3.63k|   }
  628|  3.63k|}
_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|  3.63k|   auto store_elementwise = [&] {
  608|  3.63k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  3.63k|      std::span<uint8_t> out_s(out);
  610|  24.7k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 24.7k, False: 3.63k]
  ------------------
  611|  24.7k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  24.7k|         out_s = out_s.subspan(bytes_per_element);
  613|  24.7k|      }
  614|  3.63k|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  24.7k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  24.7k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  24.7k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  24.7k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  24.7k|      off += sizeof(T);
  587|  24.7k|   };
  588|       |
  589|  24.7k|   (store_one(std::span{out}, ins), ...);
  590|  24.7k|}
_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|  24.7k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  24.7k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  24.7k|      off += sizeof(T);
  587|  24.7k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  7.61k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  7.61k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  7.61k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  7.61k|   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|  7.61k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  7.61k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  7.61k|      } else {
  289|  7.61k|         const std::span in{in_range};
  290|  7.61k|         if constexpr(sizeof(OutT) == 1) {
  291|  7.61k|            return static_cast<OutT>(in[0]);
  292|  7.61k|         } else if constexpr(endianness == std::endian::native) {
  293|  7.61k|            return typecast_copy<OutT>(in);
  294|  7.61k|         } else {
  295|  7.61k|            static_assert(opposite(endianness) == std::endian::native);
  296|  7.61k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  7.61k|         }
  298|  7.61k|      }
  299|  7.61k|   }());
  300|  7.61k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|  17.7k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  17.7k|   } else {
  204|  17.7k|      return Botan::wrap_strong_type<OutT>(t);
  205|  17.7k|   }
  206|  17.7k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  7.61k|   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|  7.61k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 7.61k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  7.61k|      } else {
  289|  7.61k|         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|  7.61k|         } else {
  295|  7.61k|            static_assert(opposite(endianness) == std::endian::native);
  296|  7.61k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  7.61k|         }
  298|  7.61k|      }
  299|  7.61k|   }());
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|  7.61k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  7.61k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  7.61k|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  10.1k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  10.1k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  10.1k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  10.1k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  10.1k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  10.1k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  10.1k|   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.1k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  10.1k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  10.1k|      } else {
  289|  10.1k|         const std::span in{in_range};
  290|  10.1k|         if constexpr(sizeof(OutT) == 1) {
  291|  10.1k|            return static_cast<OutT>(in[0]);
  292|  10.1k|         } else if constexpr(endianness == std::endian::native) {
  293|  10.1k|            return typecast_copy<OutT>(in);
  294|  10.1k|         } else {
  295|  10.1k|            static_assert(opposite(endianness) == std::endian::native);
  296|  10.1k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  10.1k|         }
  298|  10.1k|      }
  299|  10.1k|   }());
  300|  10.1k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  10.1k|   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.1k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 10.1k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  10.1k|      } else {
  289|  10.1k|         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.1k|         } else {
  295|  10.1k|            static_assert(opposite(endianness) == std::endian::native);
  296|  10.1k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  10.1k|         }
  298|  10.1k|      }
  299|  10.1k|   }());
_ZN5Botan7load_beItJRPKhRmEEEDaDpOT0_:
  504|  4.38k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  4.38k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  4.38k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtEET0_PKhm:
  454|  4.38k|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|  4.38k|   constexpr size_t out_size = sizeof(OutT);
  457|  4.38k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  4.38k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  4.38k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  4.38k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  4.38k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  4.38k|   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|  4.38k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  4.38k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.38k|      } else {
  289|  4.38k|         const std::span in{in_range};
  290|  4.38k|         if constexpr(sizeof(OutT) == 1) {
  291|  4.38k|            return static_cast<OutT>(in[0]);
  292|  4.38k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.38k|            return typecast_copy<OutT>(in);
  294|  4.38k|         } else {
  295|  4.38k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.38k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.38k|         }
  298|  4.38k|      }
  299|  4.38k|   }());
  300|  4.38k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|  4.38k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  4.38k|   } else {
  204|  4.38k|      return Botan::wrap_strong_type<OutT>(t);
  205|  4.38k|   }
  206|  4.38k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  4.38k|   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|  4.38k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 4.38k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.38k|      } else {
  289|  4.38k|         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|  4.38k|         } else {
  295|  4.38k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.38k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.38k|         }
  298|  4.38k|      }
  299|  4.38k|   }());
_ZN5Botan7load_beIjJRPKhRmEEEDaDpOT0_:
  504|    107|inline constexpr auto load_be(ParamTs&&... params) {
  505|    107|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    107|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|  4.75k|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|  4.75k|   constexpr size_t out_size = sizeof(OutT);
  457|  4.75k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  4.75k|}
_ZN5Botan7load_beIjJPKhiEEEDaDpOT0_:
  504|  4.64k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  4.64k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  4.64k|}

_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EEC2Ev:
   42|    727|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5clearEv:
   70|  2.18k|      void clear() {
   71|  2.18k|         MD::init(m_digest);
   72|  2.18k|         m_buffer.clear();
   73|  2.18k|         m_count = 0;
   74|  2.18k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EEC2Ev:
   42|    727|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5clearEv:
   70|  2.90k|      void clear() {
   71|  2.90k|         MD::init(m_digest);
   72|  2.90k|         m_buffer.clear();
   73|  2.90k|         m_count = 0;
   74|  2.90k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  1.45k|      void update(std::span<const uint8_t> input) {
   45|  1.45k|         BufferSlicer in(input);
   46|       |
   47|  4.36k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 2.90k, False: 1.45k]
  ------------------
   48|  2.90k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 2.90k]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|  2.90k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 1.45k, False: 1.45k]
  ------------------
   53|  1.45k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  1.45k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.45k, False: 0]
  ------------------
   55|  1.45k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.45k|               }
   57|  1.45k|            }
   58|  2.90k|         }
   59|       |
   60|  1.45k|         m_count += input.size();
   61|  1.45k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  1.45k|      void final(std::span<uint8_t> output) {
   64|  1.45k|         append_padding_bit();
   65|  1.45k|         append_counter_and_finalize();
   66|  1.45k|         copy_output(output);
   67|  1.45k|         clear();
   68|  1.45k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE18append_padding_bitEv:
   77|  1.45k|      void append_padding_bit() {
   78|  1.45k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
   79|  1.45k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  1.45k|            const uint8_t final_byte = 0x80;
   81|  1.45k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  1.45k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE27append_counter_and_finalizeEv:
   88|  1.45k|      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|  1.45k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 231, False: 1.22k]
  ------------------
   92|    231|            m_buffer.fill_up_with_zeros();
   93|    231|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    231|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  1.45k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
   98|  1.45k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  1.45k|         const uint64_t bit_count = m_count * 8;
  102|  1.45k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  1.45k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  1.45k|            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|  1.45k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  1.45k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  1.45k|      void copy_output(std::span<uint8_t> output) {
  114|  1.45k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  1.45k|   do {                                                                     \
  |  |   78|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.45k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  115|       |
  116|  1.45k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  1.45k|            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|  1.45k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  2.18k|      void update(std::span<const uint8_t> input) {
   45|  2.18k|         BufferSlicer in(input);
   46|       |
   47|  5.73k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 3.55k, False: 2.18k]
  ------------------
   48|  3.55k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 3.55k]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|  3.55k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 1.37k, False: 2.18k]
  ------------------
   53|  1.37k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  1.37k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.37k, False: 0]
  ------------------
   55|  1.37k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.37k|               }
   57|  1.37k|            }
   58|  3.55k|         }
   59|       |
   60|  2.18k|         m_count += input.size();
   61|  2.18k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  2.18k|      void final(std::span<uint8_t> output) {
   64|  2.18k|         append_padding_bit();
   65|  2.18k|         append_counter_and_finalize();
   66|  2.18k|         copy_output(output);
   67|  2.18k|         clear();
   68|  2.18k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE18append_padding_bitEv:
   77|  2.18k|      void append_padding_bit() {
   78|  2.18k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  2.18k|   do {                                                                     \
  |  |   78|  2.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.18k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.18k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.18k]
  |  |  ------------------
  ------------------
   79|  2.18k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  2.18k|            const uint8_t final_byte = 0x80;
   81|  2.18k|            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.18k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE27append_counter_and_finalizeEv:
   88|  2.18k|      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.18k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 931, False: 1.25k]
  ------------------
   92|    931|            m_buffer.fill_up_with_zeros();
   93|    931|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|    931|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  2.18k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  2.18k|   do {                                                                     \
  |  |   78|  2.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.18k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.18k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.18k]
  |  |  ------------------
  ------------------
   98|  2.18k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  2.18k|         const uint64_t bit_count = m_count * 8;
  102|  2.18k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  2.18k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  2.18k|            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.18k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  2.18k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  2.18k|      void copy_output(std::span<uint8_t> output) {
  114|  2.18k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  2.18k|   do {                                                                     \
  |  |   78|  2.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.18k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.18k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.18k]
  |  |  ------------------
  ------------------
  115|       |
  116|  2.18k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  2.18k|            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.18k|      }

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

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

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

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

_ZN5Botan9SIMD_4x32C2EDv2_x:
  944|  5.66M|      explicit BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(native_simd_type x) noexcept : m_simd(x) {}
_ZN5Botan9SIMD_4x327load_beEPKv:
  189|   228k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_be(const void* in) noexcept {
  190|   228k|#if defined(BOTAN_SIMD_USE_SSSE3) || defined(BOTAN_SIMD_USE_LSX) || defined(BOTAN_SIMD_USE_SIMD128)
  191|   228k|         return load_le(in).bswap();
  192|       |
  193|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  194|       |         uint32_t R0 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 0);
  195|       |         uint32_t R1 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 1);
  196|       |         uint32_t R2 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 2);
  197|       |         uint32_t R3 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 3);
  198|       |         __vector unsigned int val = {R0, R1, R2, R3};
  199|       |         return SIMD_4x32(val);
  200|       |
  201|       |#elif defined(BOTAN_SIMD_USE_NEON)
  202|       |         SIMD_4x32 l(vld1q_u32(static_cast<const uint32_t*>(in)));
  203|       |         if constexpr(std::endian::native == std::endian::little) {
  204|       |            return l.bswap();
  205|       |         } else {
  206|       |            return l;
  207|       |         }
  208|       |#endif
  209|   228k|      }
_ZN5Botan9SIMD_4x327load_leEPKv:
  162|   700k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_le(const void* in) noexcept {
  163|   700k|#if defined(BOTAN_SIMD_USE_SSSE3)
  164|   700k|         return SIMD_4x32(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in)));
  165|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  166|       |         uint32_t R0 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 0);
  167|       |         uint32_t R1 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 1);
  168|       |         uint32_t R2 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 2);
  169|       |         uint32_t R3 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 3);
  170|       |         __vector unsigned int val = {R0, R1, R2, R3};
  171|       |         return SIMD_4x32(val);
  172|       |#elif defined(BOTAN_SIMD_USE_NEON)
  173|       |         SIMD_4x32 l(vld1q_u32(static_cast<const uint32_t*>(in)));
  174|       |         if constexpr(std::endian::native == std::endian::big) {
  175|       |            return l.bswap();
  176|       |         } else {
  177|       |            return l;
  178|       |         }
  179|       |#elif defined(BOTAN_SIMD_USE_LSX)
  180|       |         return SIMD_4x32(__lsx_vld(in, 0));
  181|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  182|       |         return SIMD_4x32(wasm_v128_load(in));
  183|       |#endif
  184|   700k|      }
_ZNK5Botan9SIMD_4x325bswapEv:
  576|   228k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32 bswap() const noexcept {
  577|   228k|#if defined(BOTAN_SIMD_USE_SSSE3)
  578|   228k|         const auto idx = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);
  579|       |
  580|   228k|         return SIMD_4x32(_mm_shuffle_epi8(raw(), idx));
  581|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  582|       |   #ifdef BOTAN_SIMD_USE_VSX
  583|       |         return SIMD_4x32(vec_revb(m_simd));
  584|       |   #else
  585|       |         const __vector unsigned char rev[1] = {
  586|       |            {3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12},
  587|       |         };
  588|       |
  589|       |         return SIMD_4x32(vec_perm(m_simd, m_simd, rev[0]));
  590|       |   #endif
  591|       |
  592|       |#elif defined(BOTAN_SIMD_USE_NEON)
  593|       |         return SIMD_4x32(vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(m_simd))));
  594|       |#elif defined(BOTAN_SIMD_USE_LSX)
  595|       |         return SIMD_4x32(__lsx_vshuf4i_b(m_simd, 0b00011011));
  596|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  597|       |         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));
  598|       |#endif
  599|   228k|      }
_ZNK5Botan9SIMD_4x323rawEv:
  942|  10.0M|      native_simd_type BOTAN_FN_ISA_SIMD_4X32 raw() const noexcept { return m_simd; }
_ZNK5Botan9SIMD_4x32plERKS0_:
  385|   487k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 operator+(const SIMD_4x32& other) const noexcept {
  386|   487k|         SIMD_4x32 retval(*this);
  387|   487k|         retval += other;
  388|   487k|         return retval;
  389|   487k|      }
_ZN5Botan9SIMD_4x32pLERKS0_:
  427|   918k|      void BOTAN_FN_ISA_SIMD_4X32 operator+=(const SIMD_4x32& other) noexcept {
  428|   918k|#if defined(BOTAN_SIMD_USE_SSSE3)
  429|   918k|         m_simd = _mm_add_epi32(m_simd, other.m_simd);
  430|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  431|       |         m_simd = vec_add(m_simd, other.m_simd);
  432|       |#elif defined(BOTAN_SIMD_USE_NEON)
  433|       |         m_simd = vaddq_u32(m_simd, other.m_simd);
  434|       |#elif defined(BOTAN_SIMD_USE_LSX)
  435|       |         m_simd = __lsx_vadd_w(m_simd, other.m_simd);
  436|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  437|       |         m_simd = wasm_i32x4_add(m_simd, other.m_simd);
  438|       |#endif
  439|   918k|      }
_ZNK5Botan9SIMD_4x328store_leEPj:
  219|  12.1k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint32_t out[4]) const noexcept {
  220|  12.1k|         this->store_le(reinterpret_cast<uint8_t*>(out));
  221|  12.1k|      }
_ZNK5Botan9SIMD_4x328store_leEPh:
  234|  12.1k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint8_t out[]) const noexcept {
  235|  12.1k|#if defined(BOTAN_SIMD_USE_SSSE3)
  236|       |
  237|  12.1k|         _mm_storeu_si128(reinterpret_cast<__m128i*>(out), raw());
  238|       |
  239|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  240|       |
  241|       |         union {
  242|       |               __vector unsigned int V;
  243|       |               uint32_t R[4];
  244|       |         } vec{};
  245|       |
  246|       |         // NOLINTNEXTLINE(*-union-access)
  247|       |         vec.V = raw();
  248|       |         // NOLINTNEXTLINE(*-union-access)
  249|       |         Botan::store_le(out, vec.R[0], vec.R[1], vec.R[2], vec.R[3]);
  250|       |
  251|       |#elif defined(BOTAN_SIMD_USE_NEON)
  252|       |         if constexpr(std::endian::native == std::endian::little) {
  253|       |            vst1q_u8(out, vreinterpretq_u8_u32(m_simd));
  254|       |         } else {
  255|       |            vst1q_u8(out, vreinterpretq_u8_u32(bswap().m_simd));
  256|       |         }
  257|       |#elif defined(BOTAN_SIMD_USE_LSX)
  258|       |         __lsx_vst(raw(), out, 0);
  259|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  260|       |         wasm_v128_store(out, m_simd);
  261|       |#endif
  262|  12.1k|      }
_ZN5Botan9SIMD_4x327alignr8ERKS0_S2_:
  886|  8.96k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr8(const SIMD_4x32& a, const SIMD_4x32& b) {
  887|  8.96k|#if defined(BOTAN_SIMD_USE_SSSE3)
  888|  8.96k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 8));
  889|       |#elif defined(BOTAN_SIMD_USE_NEON)
  890|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 2));
  891|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  892|       |         const __vector unsigned char mask = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23};
  893|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  894|       |#elif defined(BOTAN_SIMD_USE_LSX)
  895|       |         return SIMD_4x32(__lsx_vshuf4i_d(a.raw(), b.raw(), 0b0011));
  896|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  897|       |         return SIMD_4x32(
  898|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23));
  899|       |#endif
  900|  8.96k|      }
_ZN5Botan9SIMD_4x32eOERKS0_:
  455|   484k|      void BOTAN_FN_ISA_SIMD_4X32 operator^=(const SIMD_4x32& other) noexcept {
  456|   484k|#if defined(BOTAN_SIMD_USE_SSSE3)
  457|   484k|         m_simd = _mm_xor_si128(m_simd, other.m_simd);
  458|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  459|       |         m_simd = vec_xor(m_simd, other.m_simd);
  460|       |#elif defined(BOTAN_SIMD_USE_NEON)
  461|       |         m_simd = veorq_u32(m_simd, other.m_simd);
  462|       |#elif defined(BOTAN_SIMD_USE_LSX)
  463|       |         m_simd = __lsx_vxor_v(m_simd, other.m_simd);
  464|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  465|       |         m_simd = wasm_v128_xor(m_simd, other.m_simd);
  466|       |#endif
  467|   484k|      }
_ZN5Botan9SIMD_4x32C2Ejjjj:
  103|  3.13k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
  104|  3.13k|#if defined(BOTAN_SIMD_USE_SSSE3)
  105|  3.13k|         m_simd = _mm_set_epi32(B3, B2, B1, B0);
  106|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  107|       |         __vector unsigned int val = {B0, B1, B2, B3};
  108|       |         m_simd = val;
  109|       |#elif defined(BOTAN_SIMD_USE_NEON)
  110|       |         // Better way to do this?
  111|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  112|       |         m_simd = vld1q_u32(B);
  113|       |#elif defined(BOTAN_SIMD_USE_LSX)
  114|       |         // Better way to do this?
  115|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  116|       |         m_simd = __lsx_vld(B, 0);
  117|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  118|       |         m_simd = wasm_u32x4_make(B0, B1, B2, B3);
  119|       |#endif
  120|  3.13k|      }
_ZN5Botan9SIMD_4x327alignr4ERKS0_S2_:
  869|   344k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr4(const SIMD_4x32& a, const SIMD_4x32& b) {
  870|   344k|#if defined(BOTAN_SIMD_USE_SSSE3)
  871|   344k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 4));
  872|       |#elif defined(BOTAN_SIMD_USE_NEON)
  873|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 1));
  874|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  875|       |         const __vector unsigned char mask = {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  876|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  877|       |#elif defined(BOTAN_SIMD_USE_LSX)
  878|       |         const auto mask = SIMD_4x32(0x07060504, 0x0B0A0908, 0x0F0E0D0C, 0x13121110);
  879|       |         return SIMD_4x32(__lsx_vshuf_b(a.raw(), b.raw(), mask.raw()));
  880|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  881|       |         return SIMD_4x32(
  882|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19));
  883|       |#endif
  884|   344k|      }
_ZNK5Botan9SIMD_4x3217shift_elems_rightILm2EEES0_vQleT_Li3E:
  641|   459k|      {
  642|   459k|#if defined(BOTAN_SIMD_USE_SSSE3)
  643|   459k|         return SIMD_4x32(_mm_srli_si128(raw(), 4 * I));
  644|       |#elif defined(BOTAN_SIMD_USE_NEON)
  645|       |         return SIMD_4x32(vextq_u32(raw(), vdupq_n_u32(0), I));
  646|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  647|       |         const __vector unsigned int zero = vec_splat_u32(0);
  648|       |
  649|       |         const __vector unsigned char shuf[3] = {
  650|       |            {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19},
  651|       |            {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
  652|       |            {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27},
  653|       |         };
  654|       |
  655|       |         return SIMD_4x32(vec_perm(raw(), zero, shuf[I - 1]));
  656|       |#elif defined(BOTAN_SIMD_USE_LSX)
  657|       |         return SIMD_4x32(__lsx_vbsrl_v(raw(), 4 * I));
  658|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  659|       |         if constexpr(I == 0) {
  660|       |            return SIMD_4x32(m_simd);
  661|       |         }
  662|       |
  663|       |         const auto zero = wasm_u32x4_const_splat(0);
  664|       |         if constexpr(I == 1) {
  665|       |            return SIMD_4x32(
  666|       |               wasm_i8x16_shuffle(m_simd, zero, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16));
  667|       |         }
  668|       |         if constexpr(I == 2) {
  669|       |            return SIMD_4x32(
  670|       |               wasm_i8x16_shuffle(m_simd, zero, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16));
  671|       |         }
  672|       |
  673|       |         return SIMD_4x32(
  674|       |            wasm_i8x16_shuffle(m_simd, zero, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16));
  675|       |#endif
  676|   459k|      }

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

_ZN5Botan17is_sub_element_ofERKNS_3OIDESt16initializer_listIjE:
   16|  17.7k|inline std::optional<uint32_t> is_sub_element_of(const OID& oid, std::initializer_list<uint32_t> prefix) {
   17|  17.7k|   const auto& c = oid.get_components();
   18|       |
   19|  17.7k|   if(c.size() != prefix.size() + 1) {
  ------------------
  |  Branch (19:7): [True: 7.51k, False: 10.2k]
  ------------------
   20|  7.51k|      return {};
   21|  7.51k|   }
   22|       |
   23|  10.2k|   if(!std::equal(c.begin(), c.end() - 1, prefix.begin(), prefix.end())) {
  ------------------
  |  Branch (23:7): [True: 2.12k, False: 8.10k]
  ------------------
   24|  2.12k|      return {};
   25|  2.12k|   }
   26|       |
   27|  8.10k|   return c[c.size() - 1];
   28|  10.2k|}

_ZNK5Botan10BER_Object6is_setEv:
  138|   741k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  140|   318k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  142|   336k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  144|   345k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  146|  54.1k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  148|  27.2k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  150|  5.07M|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  152|  10.6M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  154|   117k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  171|   272k|      uint8_t* mutable_bits(size_t length) {
  172|   272k|         m_value.resize(length);
  173|   272k|         return m_value.data();
  174|   272k|      }
_ZNK5Botan3OID5emptyEv:
  265|  1.44k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  271|  1.44k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  301|  32.3k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan3OID14get_componentsEv:
  321|   189k|      const std::vector<uint32_t>& get_components() const {
  322|   189k|         return m_id;
  323|   189k|      }
_ZNK5Botan11ASN1_String5valueEv:
  365|  27.9k|      const std::string& value() const { return m_utf8_str; }
_ZNK5Botan11ASN1_String4sizeEv:
  367|     62|      size_t size() const { return value().size(); }
_ZNK5Botan11ASN1_String5emptyEv:
  369|  16.1k|      bool empty() const { return m_utf8_str.empty(); }
_ZN5BotanltERKNS_11ASN1_StringES2_:
  378|  2.61k|      friend bool operator<(const ASN1_String& a, const ASN1_String& b) { return a.value() < b.value(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  407|  7.25k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  409|    849|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  419|  6.43k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  421|  6.43k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (421:58): [True: 548, False: 5.88k]
  |  Branch (421:84): [True: 5.82k, False: 61]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   78|   144k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   79|   144k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   80|   144k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   82|   318k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   83|   318k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   84|   318k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
   86|  46.1k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
   87|  46.1k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   88|  46.1k|}
_ZN5BotanneERKNS_3OIDES2_:
  342|  27.8k|inline bool operator!=(const OID& a, const OID& b) {
  343|  27.8k|   return !(a == b);
  344|  27.8k|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  441|      4|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectD2Ev:
  122|   346k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  117|   148k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  399|  12.3k|      AlgorithmIdentifier() = default;
_ZN5Botan3OIDC2Ev:
  220|  48.6k|      explicit OID() = default;
_ZN5Botan10BER_ObjectC2Ev:
  130|   456k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  135|   105k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  118|   111k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  119|    457|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  120|  99.1k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  133|   123k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2ERKS0_:
  132|    617|      BER_Object(const BER_Object& other) = default;
_ZN5Botan11ASN1_ObjectaSEOS0_:
  121|  10.5k|      ASN1_Object& operator=(ASN1_Object&&) = default;

_ZN5Botan9ASN1_TimeC2Ev:
   39|  7.80k|      ASN1_Time() = default;

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

_ZN5Botan11BER_Decoder6Limits3DEREv:
   35|  22.4k|            static Limits DER() { return Limits(false, 0); }
_ZN5Botan11BER_Decoder6LimitsC2Ebm:
   54|  22.4k|                  m_allow_ber(allow_ber), m_max_nested_indef(max_nested_indef) {}
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  285|  5.44k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  286|  5.44k|         std::optional<T> optval;
  287|  5.44k|         this->decode_optional(optval, type_tag, class_tag);
  288|  5.44k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (288:16): [True: 3.69k, False: 1.75k]
  ------------------
  289|  5.44k|         return (*this);
  290|  5.44k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  394|  7.38k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  395|  7.38k|   BER_Object obj = get_next_object();
  396|       |
  397|  7.38k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (397:7): [True: 3.81k, False: 3.57k]
  ------------------
  398|  3.81k|      T out{};
  399|  3.81k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (399:10): [True: 3.70k, False: 105]
  ------------------
  400|  3.70k|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  401|  3.70k|      } else {
  402|    105|         this->push_back(std::move(obj));
  403|    105|         this->decode(out, type_tag, class_tag);
  404|    105|      }
  405|  3.81k|      optval = std::move(out);
  406|  3.81k|   } else {
  407|  3.57k|      this->push_back(std::move(obj));
  408|  3.57k|      optval = std::nullopt;
  409|  3.57k|   }
  410|       |
  411|  7.38k|   return (*this);
  412|  7.38k|}
_ZN5Botan11BER_Decoder6decodeERm:
  225|  8.57k|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  230|  3.87k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder14start_sequenceEv:
  160|  72.7k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder8get_nextERNS_10BER_ObjectE:
  106|  6.56k|      BER_Decoder& get_next(BER_Object& ber) {
  107|  6.56k|         ber = get_next_object();
  108|  6.56k|         return (*this);
  109|  6.56k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  345|  6.72k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  346|  6.72k|         BER_Object obj = get_next_object();
  347|       |
  348|  6.72k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  349|       |
  350|  6.72k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (350:13): [True: 151, False: 6.57k]
  ------------------
  351|    151|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (351:16): [True: 0, False: 151]
  ------------------
  352|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  353|    151|            } else {
  354|    151|               push_back(std::move(obj));
  355|    151|               decode(out, real_type, type_tag, class_tag);
  356|    151|            }
  357|  6.57k|         } else {
  358|  6.57k|            out.clear();
  359|  6.57k|            push_back(std::move(obj));
  360|  6.57k|         }
  361|       |
  362|  6.72k|         return (*this);
  363|  6.72k|      }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  242|  19.8k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  243|  19.8k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  244|  19.8k|      }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
   81|  18.8k|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   44|   586k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   46|   312k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6limitsEv:
   98|   112k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder9start_setEv:
  162|  16.4k|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder22start_context_specificEj:
  164|    659|      BER_Decoder start_context_specific(uint32_t tag) {
  165|    659|         return start_cons(ASN1_Type(tag), ASN1_Class::ContextSpecific);
  166|    659|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  203|  23.4k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  204|  23.4k|         out.clear();
  205|  4.32M|         for(;;) {
  206|  4.32M|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (206:21): [True: 4.30M, False: 23.4k]
  ------------------
  207|  4.30M|               out.push_back(*next);
  208|  4.30M|            } else {
  209|  23.4k|               break;
  210|  23.4k|            }
  211|  4.32M|         }
  212|  23.4k|         return (*this);
  213|  23.4k|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_3OIDEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  310|    617|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  311|    617|         obj.set_tagging(real_type, real_class);
  312|    617|         push_back(std::move(obj));
  313|    617|         return decode(out, real_type, real_class);
  314|    617|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  285|  11.8k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  286|  11.8k|         std::optional<T> optval;
  287|  11.8k|         this->decode_optional(optval, type_tag, class_tag);
  288|  11.8k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (288:16): [True: 1.67k, False: 10.2k]
  ------------------
  289|  11.8k|         return (*this);
  290|  11.8k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  394|  11.8k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  395|  11.8k|   BER_Object obj = get_next_object();
  396|       |
  397|  11.8k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (397:7): [True: 1.69k, False: 10.1k]
  ------------------
  398|  1.69k|      T out{};
  399|  1.69k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (399:10): [True: 0, False: 1.69k]
  ------------------
  400|      0|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  401|  1.69k|      } else {
  402|  1.69k|         this->push_back(std::move(obj));
  403|  1.69k|         this->decode(out, type_tag, class_tag);
  404|  1.69k|      }
  405|  1.69k|      optval = std::move(out);
  406|  10.1k|   } else {
  407|  10.1k|      this->push_back(std::move(obj));
  408|  10.1k|      optval = std::nullopt;
  409|  10.1k|   }
  410|       |
  411|  11.8k|   return (*this);
  412|  11.8k|}
_ZN5Botan11BER_Decoder11decode_listINS_3OIDEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    406|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    406|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  1.02k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 622, False: 406]
  ------------------
  447|    622|      T value;
  448|    622|      list.decode(value);
  449|    622|      vec.push_back(std::move(value));
  450|    622|   }
  451|       |
  452|    406|   list.end_cons();
  453|       |
  454|    406|   return (*this);
  455|    406|}
_ZN5Botan11BER_Decoder20decode_optional_listINS_14GeneralSubtreeEEEbRNSt3__16vectorIT_NS3_9allocatorIS5_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  461|    468|bool BER_Decoder::decode_optional_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  462|    468|   if(peek_next_object().is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (462:7): [True: 237, False: 231]
  ------------------
  463|    237|      decode_list(vec, type_tag, class_tag);
  464|    237|      return true;
  465|    237|   }
  466|       |
  467|    231|   return false;
  468|    468|}
_ZN5Botan11BER_Decoder11decode_listINS_14GeneralSubtreeEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    237|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    237|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  1.91k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 1.67k, False: 237]
  ------------------
  447|  1.67k|      T value;
  448|  1.67k|      list.decode(value);
  449|  1.67k|      vec.push_back(std::move(value));
  450|  1.67k|   }
  451|       |
  452|    237|   list.end_cons();
  453|       |
  454|    237|   return (*this);
  455|    237|}
x509_ext.cpp:_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension12_GLOBAL__N_118Policy_InformationEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    127|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    127|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|    257|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 130, False: 127]
  ------------------
  447|    130|      T value;
  448|    130|      list.decode(value);
  449|    130|      vec.push_back(std::move(value));
  450|    130|   }
  451|       |
  452|    127|   list.end_cons();
  453|       |
  454|    127|   return (*this);
  455|    127|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension23CRL_Distribution_Points18Distribution_PointEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    626|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    626|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  1.30k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 681, False: 626]
  ------------------
  447|    681|      T value;
  448|    681|      list.decode(value);
  449|    681|      vec.push_back(std::move(value));
  450|    681|   }
  451|       |
  452|    626|   list.end_cons();
  453|       |
  454|    626|   return (*this);
  455|    626|}
_ZN5Botan11BER_Decoder24decode_optional_implicitINS_15AlternativeNameEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_RKS4_:
  423|    511|                                                   const T& default_value) {
  424|    511|   BER_Object obj = get_next_object();
  425|       |
  426|    511|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (426:7): [True: 433, False: 78]
  ------------------
  427|    433|      obj.set_tagging(real_type, real_class);
  428|    433|      push_back(std::move(obj));
  429|    433|      decode(out, real_type, real_class);
  430|    433|   } else {
  431|       |      // Not what we wanted, push it back on the stream
  432|     78|      out = default_value;
  433|     78|      push_back(std::move(obj));
  434|     78|   }
  435|       |
  436|    511|   return (*this);
  437|    511|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension10TNAuthList5EntryEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    144|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    144|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|    296|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 152, False: 144]
  ------------------
  447|    152|      T value;
  448|    152|      list.decode(value);
  449|    152|      vec.push_back(std::move(value));
  450|    152|   }
  451|       |
  452|    144|   list.end_cons();
  453|       |
  454|    144|   return (*this);
  455|    144|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks15IPAddressFamilyEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    981|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    981|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  2.03k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 1.05k, False: 981]
  ------------------
  447|  1.05k|      T value;
  448|  1.05k|      list.decode(value);
  449|  1.05k|      vec.push_back(std::move(value));
  450|  1.05k|   }
  451|       |
  452|    981|   list.end_cons();
  453|       |
  454|    981|   return (*this);
  455|    981|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    371|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    371|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  1.68k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 1.31k, False: 371]
  ------------------
  447|  1.31k|      T value;
  448|  1.31k|      list.decode(value);
  449|  1.31k|      vec.push_back(std::move(value));
  450|  1.31k|   }
  451|       |
  452|    371|   list.end_cons();
  453|       |
  454|    371|   return (*this);
  455|    371|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|    401|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|    401|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  1.82k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 1.42k, False: 401]
  ------------------
  447|  1.42k|      T value;
  448|  1.42k|      list.decode(value);
  449|  1.42k|      vec.push_back(std::move(value));
  450|  1.42k|   }
  451|       |
  452|    401|   list.end_cons();
  453|       |
  454|    401|   return (*this);
  455|    401|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension8ASBlocks11ASIdOrRangeEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  443|  1.20k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  444|  1.20k|   BER_Decoder list = start_cons(type_tag, class_tag);
  445|       |
  446|  6.07k|   while(list.more_items()) {
  ------------------
  |  Branch (446:10): [True: 4.87k, False: 1.20k]
  ------------------
  447|  4.87k|      T value;
  448|  4.87k|      list.decode(value);
  449|  4.87k|      vec.push_back(std::move(value));
  450|  4.87k|   }
  451|       |
  452|  1.20k|   list.end_cons();
  453|       |
  454|  1.20k|   return (*this);
  455|  1.20k|}

_ZN5Botan6BigIntC2Ev:
   45|  12.6k|      BigInt() = default;
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_v:
  760|  3.17k|      T serialize() const {
  761|  3.17k|         return serialize<T>(this->bytes());
  762|  3.17k|      }
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  747|  3.17k|      T serialize(size_t len) const {
  748|       |         // TODO this supports std::vector and secure_vector
  749|       |         // it would be nice if this also could work with std::array as in
  750|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  751|  3.17k|         T out(len);
  752|  3.17k|         this->serialize_to(out);
  753|  3.17k|         return out;
  754|  3.17k|      }
_ZNK5Botan6BigInt6signumEv:
  467|  11.7k|      int signum() const {
  468|  11.7k|         if(sig_words() == 0) {
  ------------------
  |  Branch (468:13): [True: 374, False: 11.4k]
  ------------------
  469|    374|            return 0;
  470|    374|         }
  471|  11.4k|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (471:17): [True: 1.68k, False: 9.73k]
  ------------------
  472|  11.7k|      }
_ZNK5Botan6BigInt9sig_wordsEv:
  648|  43.0k|      size_t sig_words() const { return m_data.sig_words(); }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1102|  43.0k|            size_t sig_words() const {
 1103|  43.0k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1103:19): [True: 11.9k, False: 31.0k]
  ------------------
 1104|  11.9k|                  m_sig_words = calc_sig_words();
 1105|  11.9k|               }
 1106|  43.0k|               return m_sig_words;
 1107|  43.0k|            }
_ZNK5Botan6BigInt4signEv:
  604|  13.2k|      Sign sign() const { return (m_signedness); }
_ZN5Botan6BigIntD2Ev:
  185|  12.6k|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigInt5clearEv:
  415|  12.4k|      void clear() {
  416|  12.4k|         m_data.set_to_zero();
  417|  12.4k|         m_signedness = Positive;
  418|  12.4k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  484|  1.83k|      bool is_zero() const { return sig_words() == 0; }
_ZNK5Botan6BigInt7word_atEm:
  574|  54.3k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt12reverse_signEv:
  609|  1.83k|      Sign reverse_sign() const {
  610|  1.83k|         if(sign() == Positive) {
  ------------------
  |  Branch (610:13): [True: 1.83k, False: 0]
  ------------------
  611|  1.83k|            return Negative;
  612|  1.83k|         }
  613|      0|         return Positive;
  614|  1.83k|      }
_ZN5Botan6BigInt9flip_signEv:
  619|  1.83k|      BOTAN_DEPRECATED("Deprecated no replacement") void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  625|  1.83k|      void set_sign(Sign sign) {
  626|  1.83k|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (626:13): [True: 1.83k, False: 0]
  |  Branch (626:33): [True: 0, False: 1.83k]
  ------------------
  627|      0|            sign = Positive;
  628|      0|         }
  629|       |
  630|  1.83k|         m_signedness = sign;
  631|  1.83k|      }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  983|  12.4k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1027|  12.6k|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1038|  54.3k|            word get_word_at(size_t n) const {
 1039|  54.3k|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1039:19): [True: 54.3k, False: 0]
  ------------------
 1040|  54.3k|                  return m_reg[n];
 1041|  54.3k|               }
 1042|      0|               return 0;
 1043|  54.3k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1075|  12.6k|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1095|  12.4k|            void swap(secure_vector<word>& reg) noexcept {
 1096|  12.4k|               m_reg.swap(reg);
 1097|  12.4k|               invalidate_sig_words();
 1098|  12.4k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1100|  12.4k|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }

_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   40|  3.63k|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation12final_stdvecEv:
   83|  2.18k|      std::vector<uint8_t> final_stdvec() { return final<std::vector<uint8_t>>(); }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS3_9allocatorIhEEEEEET_v:
   77|  2.18k|      T final() {
   78|  2.18k|         T output(output_length());
   79|  2.18k|         final_result(output);
   80|  2.18k|         return output;
   81|  2.18k|      }
_ZN5Botan20Buffered_ComputationD2Ev:
  130|  1.45k|      virtual ~Buffered_Computation() = default;

_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  141|  46.9k|      explicit DataSource_Memory(std::span<const uint8_t> in) : m_source(in.begin(), in.end()), m_offset(0) {}
_ZN5Botan10DataSourceC2Ev:
  100|   138k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  101|   138k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  135|     98|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZN5Botan11DER_Encoder14start_sequenceEv:
   67|  11.6k|      DER_Encoder& start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11DER_Encoder9raw_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   89|  1.45k|      DER_Encoder& raw_bytes(std::span<const uint8_t> val) { return raw_bytes(val.data(), val.size()); }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  185|  5.18k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  186|  5.18k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  187|  5.18k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  189|    727|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  190|    727|         return add_object(type_tag, class_tag, std::span{rep});
  191|    727|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  193|    727|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const secure_vector<uint8_t>& rep) {
  194|    727|         return add_object(type_tag, class_tag, std::span{rep});
  195|    727|      }
_ZN5Botan11DER_Encoder12DER_SequenceC2EOS1_:
  229|  24.1k|                  m_type_tag(seq.m_type_tag),
  230|  24.1k|                  m_class_tag(seq.m_class_tag),
  231|  24.1k|                  m_contents(std::move(seq.m_contents)),
  232|  24.1k|                  m_set_contents(std::move(seq.m_set_contents)) {}
_ZN5Botan11DER_Encoder12DER_SequenceD2Ev:
  244|  35.8k|            ~DER_Sequence() = default;
_ZN5Botan11DER_Encoder6encodeINSt3__19allocatorIhEEEERS0_RKNS2_6vectorIhT_EENS_9ASN1_TypeE:
   98|    727|      DER_Encoder& encode(const std::vector<uint8_t, Alloc>& vec, ASN1_Type real_type) {
   99|    727|         return encode(vec.data(), vec.size(), real_type);
  100|    727|      }

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

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

_ZN5Botan11IPv4AddressC2Ej:
   25|    200|      explicit IPv4Address(uint32_t ip) : m_ip(ip) {}
_ZNK5Botan11IPv4AddressanERKS0_:
   37|     27|      IPv4Address operator&(const IPv4Address& other) const { return IPv4Address(m_ip & other.m_ip); }

_ZNK5Botan11IPv6AddressssERKS0_:
   52|  7.38k|      auto operator<=>(const IPv6Address&) const = default;
_ZN5Botan11IPv6AddressC2ENSt3__15arrayIhLm16EEE:
   29|     39|      explicit IPv6Address(std::array<uint8_t, 16> ip) : m_ip(ip) {}

_ZN5Botan11clear_bytesEPvm:
  101|  12.6k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  12.6k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 139, False: 12.4k]
  ------------------
  103|    139|      std::memset(ptr, 0, bytes);
  104|    139|   }
  105|  12.6k|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  5.34M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  5.34M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  5.34M|   do {                                                                                          \
  |  |  104|  5.34M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  10.6M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 5.30M, False: 35.9k]
  |  |  |  Branch (105:23): [True: 5.30M, False: 0]
  |  |  |  Branch (105:23): [True: 5.30M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  5.34M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 5.34M]
  |  |  ------------------
  ------------------
  146|       |
  147|  5.34M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 5.34M, False: 718]
  |  Branch (147:24): [True: 5.33M, False: 7.90k]
  |  Branch (147:42): [True: 5.30M, False: 27.2k]
  ------------------
  148|  5.30M|      std::memmove(out, in, sizeof(T) * n);
  149|  5.30M|   }
  150|  5.34M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   580k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   580k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   580k|}
_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|  24.7k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  24.7k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  24.7k|}
_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|  24.7k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  24.7k|   ranges::assert_equal_byte_lengths(out, in);
  178|  24.7k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  24.7k|}
_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|  8.45k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  8.45k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  8.45k|}
_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|  8.45k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  8.45k|   ranges::assert_equal_byte_lengths(out, in);
  178|  8.45k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  8.45k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|    163|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|    163|   clear_bytes(ptr, sizeof(T) * n);
  120|    163|}
_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|  4.75k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  4.75k|   ranges::assert_equal_byte_lengths(out, in);
  178|  4.75k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  4.75k|}
_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|  4.75k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  4.75k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  4.75k|}
_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|  4.75k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  4.75k|   ToT dst;  // NOLINT(*-member-init)
  212|  4.75k|   typecast_copy(dst, src);
  213|  4.75k|   return dst;
  214|  4.75k|}
_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|  7.61k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  7.61k|   ToT dst;  // NOLINT(*-member-init)
  212|  7.61k|   typecast_copy(dst, src);
  213|  7.61k|   return dst;
  214|  7.61k|}
_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|  7.61k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  7.61k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  7.61k|}
_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|  7.61k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  7.61k|   ranges::assert_equal_byte_lengths(out, in);
  178|  7.61k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  7.61k|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  12.4k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  12.4k|   clear_bytes(ptr, sizeof(T) * n);
  120|  12.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|  10.1k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  10.1k|   ranges::assert_equal_byte_lengths(out, in);
  162|  10.1k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 10.1k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  10.1k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 10.1k, False: 0]
  ------------------
  165|  10.1k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  10.1k|   }
  167|  10.1k|}
_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|  10.1k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  10.1k|   ToT dst;  // NOLINT(*-member-init)
  212|  10.1k|   typecast_copy(dst, src);
  213|  10.1k|   return dst;
  214|  10.1k|}
_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|  10.1k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  10.1k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  10.1k|}
_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|  10.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  10.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  10.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  10.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|  4.38k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  4.38k|   ToT dst;  // NOLINT(*-member-init)
  212|  4.38k|   typecast_copy(dst, src);
  213|  4.38k|   return dst;
  214|  4.38k|}
_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|  4.38k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  4.38k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  4.38k|}
_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|  4.38k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  4.38k|   ranges::assert_equal_byte_lengths(out, in);
  178|  4.38k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  4.38k|}
_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:
  154|    932|      Key_Constraints(Key_Constraints::Bits bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ej:
  156|    722|      explicit Key_Constraints(uint32_t bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ev:
  158|  3.90k|      Key_Constraints() : m_value(0) {}
_ZNK5Botan15Key_Constraints8includesENS0_4BitsE:
  178|    103|      bool includes(Key_Constraints::Bits other) const { return (m_value & other) == other; }
_ZNK5Botan15Key_Constraints5emptyEv:
  185|    402|      bool empty() const { return m_value == 0; }

_ZN5Botan7X509_DNC2Ev:
   45|  9.16k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
  720|  3.90k|      Extensions() = default;
_ZN5Botan15AlternativeNameC2Ev:
  176|  9.79k|      AlternativeName() = default;
_ZN5Botan15NameConstraintsC2Ev:
  479|  4.20k|      NameConstraints() = default;
_ZN5Botan10ExtensionsD2Ev:
  728|  3.90k|      ~Extensions() override = default;
_ZNK5Botan7X509_DN8get_bitsEv:
   84|  6.34k|      const std::vector<uint8_t>& get_bits() const { return m_dn_bits; }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension9Key_UsageEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 477, False: 250]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    477|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 113, False: 364]
  ------------------
  598|    113|               return nullptr;
  599|    364|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 364, False: 0]
  ------------------
  600|    364|               return extn_as_T;
  601|    364|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    477|         }
  605|       |
  606|    250|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14Subject_Key_IDEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 142, False: 585]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    142|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 32, False: 110]
  ------------------
  598|     32|               return nullptr;
  599|    110|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 110, False: 0]
  ------------------
  600|    110|               return extn_as_T;
  601|    110|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    142|         }
  605|       |
  606|    585|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 237, False: 490]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    237|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 133, False: 104]
  ------------------
  598|    133|               return nullptr;
  599|    133|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 104, False: 0]
  ------------------
  600|    104|               return extn_as_T;
  601|    104|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    237|         }
  605|       |
  606|    490|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Name_ConstraintsEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 104, False: 623]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    104|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 71, False: 33]
  ------------------
  598|     71|               return nullptr;
  599|     71|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 33, False: 0]
  ------------------
  600|     33|               return extn_as_T;
  601|     33|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    104|         }
  605|       |
  606|    623|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension18Extended_Key_UsageEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 304, False: 423]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    304|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 44, False: 260]
  ------------------
  598|     44|               return nullptr;
  599|    260|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 260, False: 0]
  ------------------
  600|    260|               return extn_as_T;
  601|    260|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    304|         }
  605|       |
  606|    423|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension17Basic_ConstraintsEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 462, False: 265]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    462|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 160, False: 302]
  ------------------
  598|    160|               return nullptr;
  599|    302|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 302, False: 0]
  ------------------
  600|    302|               return extn_as_T;
  601|    302|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    462|         }
  605|       |
  606|    265|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23Issuer_Alternative_NameEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 87, False: 640]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|     87|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 55, False: 32]
  ------------------
  598|     55|               return nullptr;
  599|     55|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 32, False: 0]
  ------------------
  600|     32|               return extn_as_T;
  601|     32|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|     87|         }
  605|       |
  606|    640|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension24Subject_Alternative_NameEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 295, False: 432]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    295|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 159, False: 136]
  ------------------
  598|    159|               return nullptr;
  599|    159|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 136, False: 0]
  ------------------
  600|    136|               return extn_as_T;
  601|    136|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    295|         }
  605|       |
  606|    432|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension20Certificate_PoliciesEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 31, False: 696]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|     31|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 13, False: 18]
  ------------------
  598|     13|               return nullptr;
  599|     18|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 18, False: 0]
  ------------------
  600|     18|               return extn_as_T;
  601|     18|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|     31|         }
  605|       |
  606|    696|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension28Authority_Information_AccessEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 174, False: 553]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    174|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 48, False: 126]
  ------------------
  598|     48|               return nullptr;
  599|    126|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 126, False: 0]
  ------------------
  600|    126|               return extn_as_T;
  601|    126|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    174|         }
  605|       |
  606|    553|         return nullptr;
  607|    727|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23CRL_Distribution_PointsEEEPKT_RKNS_3OIDE:
  594|    727|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|    727|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 225, False: 502]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|    225|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 146, False: 79]
  ------------------
  598|    146|               return nullptr;
  599|    146|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 79, False: 0]
  ------------------
  600|     79|               return extn_as_T;
  601|     79|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|    225|         }
  605|       |
  606|    502|         return nullptr;
  607|    727|      }
_ZNK5Botan15AlternativeName4urisEv:
  212|    227|      const std::set<std::string>& uris() const { return m_uri; }
_ZNK5Botan14GeneralSubtree4baseEv:
  461|    596|      const GeneralName& base() const { return m_base; }
_ZNK5Botan15AlternativeName14OtherNameValue3oidEv:
  149|  50.4k|            const OID& oid() const { return m_oid; }
_ZNK5Botan15AlternativeName14OtherNameValueltERKS1_:
  153|  17.3k|            bool operator<(const OtherNameValue& other) const {
  154|  17.3k|               if(oid() != other.oid()) {
  ------------------
  |  Branch (154:19): [True: 7.90k, False: 9.41k]
  ------------------
  155|  7.90k|                  return oid() < other.oid();
  156|  7.90k|               }
  157|  9.41k|               return m_value < other.m_value;
  158|  17.3k|            }
_ZN5Botan15AlternativeName14OtherNameValueC2ERKNS_3OIDENSt3__16vectorIhNS5_9allocatorIhEEEE:
  163|  3.73k|            OtherNameValue(const OID& oid, std::vector<uint8_t> value) : m_oid(oid), m_value(std::move(value)) {}
_ZNK5Botan11GeneralName9type_codeEv:
  371|    596|      NameType type_code() const { return m_type; }
_ZN5Botan10Extensions15Extensions_InfoC2EbRKNSt3__16vectorIhNS2_9allocatorIhEEEENS2_10unique_ptrINS_21Certificate_ExtensionENS2_14default_deleteISA_EEEE:
  743|  11.2k|                  m_obj(std::move(ext)), m_bits(encoding), m_critical(critical) {}
_ZN5Botan11GeneralNameC2Ev:
  350|  1.67k|      BOTAN_DEPRECATED("Deprecated use NameConstraints") GeneralName() = default;
_ZN5Botan21Certificate_ExtensionD2Ev:
  568|  16.5k|      virtual ~Certificate_Extension() = default;

_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  10.1k|{
  101|  10.1k|   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|  10.1k|   } else {
  107|  10.1k|      const size_t expected_size = s0.size_bytes();
  108|  10.1k|      const bool correct_size =
  109|  10.1k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  10.1k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 10.1k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  10.1k|   }
  115|  10.1k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   580k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   580k|   return std::span{r}.size_bytes();
   61|   580k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  49.4k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  49.4k|   const std::span s{r};
   79|  49.4k|   if constexpr(statically_spanable_range<R>) {
   80|  49.4k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  49.4k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm4EEETpTkNS0_14spanable_rangeEJNS3_IKjLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  24.7k|{
  101|  24.7k|   const std::span s0{r0};
  102|       |
  103|  24.7k|   if constexpr(statically_spanable_range<R0>) {
  104|  24.7k|      constexpr size_t expected_size = s0.size_bytes();
  105|  24.7k|      (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|  24.7k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKjLm1EEEEEvRKT0_:
   77|  24.7k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  24.7k|   const std::span s{r};
   79|  24.7k|   if constexpr(statically_spanable_range<R>) {
   80|  24.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|  24.7k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEmRKT_:
   59|  24.7k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  24.7k|   return std::span{r}.size_bytes();
   61|  24.7k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  18.6k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  18.6k|   const std::span s{r};
   79|  18.6k|   if constexpr(statically_spanable_range<R>) {
   80|  18.6k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  18.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  8.45k|{
  101|  8.45k|   const std::span s0{r0};
  102|       |
  103|  8.45k|   if constexpr(statically_spanable_range<R0>) {
  104|  8.45k|      constexpr size_t expected_size = s0.size_bytes();
  105|  8.45k|      (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.45k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  8.45k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  8.45k|   const std::span s{r};
   79|  8.45k|   if constexpr(statically_spanable_range<R>) {
   80|  8.45k|      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.45k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  8.45k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  8.45k|   return std::span{r}.size_bytes();
   61|  8.45k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKjLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  3.63k|{
  101|  3.63k|   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|  3.63k|   } else {
  107|  3.63k|      const size_t expected_size = s0.size_bytes();
  108|  3.63k|      const bool correct_size =
  109|  3.63k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  3.63k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 3.63k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  3.63k|   }
  115|  3.63k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  20.3k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  20.3k|   return std::span{r}.size_bytes();
   61|  20.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  9.51k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  9.51k|   const std::span s{r};
   79|  9.51k|   if constexpr(statically_spanable_range<R>) {
   80|  9.51k|      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|  9.51k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.75k|{
  101|  4.75k|   const std::span s0{r0};
  102|       |
  103|  4.75k|   if constexpr(statically_spanable_range<R0>) {
  104|  4.75k|      constexpr size_t expected_size = s0.size_bytes();
  105|  4.75k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  4.75k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|  4.75k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  4.75k|   return std::span{r}.size_bytes();
   61|  4.75k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|  15.2k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  15.2k|   const std::span s{r};
   79|  15.2k|   if constexpr(statically_spanable_range<R>) {
   80|  15.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|  15.2k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  7.61k|{
  101|  7.61k|   const std::span s0{r0};
  102|       |
  103|  7.61k|   if constexpr(statically_spanable_range<R0>) {
  104|  7.61k|      constexpr size_t expected_size = s0.size_bytes();
  105|  7.61k|      (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|  7.61k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  17.7k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  17.7k|   return std::span{r}.size_bytes();
   61|  17.7k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  10.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  10.1k|   const std::span s{r};
   79|  10.1k|   if constexpr(statically_spanable_range<R>) {
   80|  10.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|  10.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  10.1k|{
  101|  10.1k|   const std::span s0{r0};
  102|       |
  103|  10.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  10.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  10.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|  10.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|  8.76k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  8.76k|   const std::span s{r};
   79|  8.76k|   if constexpr(statically_spanable_range<R>) {
   80|  8.76k|      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.76k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.38k|{
  101|  4.38k|   const std::span s0{r0};
  102|       |
  103|  4.38k|   if constexpr(statically_spanable_range<R0>) {
  104|  4.38k|      constexpr size_t expected_size = s0.size_bytes();
  105|  4.38k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  4.38k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  4.38k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  4.38k|   return std::span{r}.size_bytes();
   61|  4.38k|}

_ZN5Botan16secure_allocatorIhE8allocateEm:
   52|  69.2k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
   54|  69.2k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
   54|  12.4k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   52|  12.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:
  110|  17.5k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<const T*, L>& in) {
  111|  17.5k|   out.insert(out.end(), in.first, in.first + in.second);
  112|  17.5k|   return out;
  113|  17.5k|}
_ZN5Botan16secure_allocatorIjE10deallocateEPjm:
   54|  1.45k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIjE8allocateEm:
   52|  1.45k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }

_ZN5Botan18unwrap_strong_typeIRjEEDcOT_:
  243|  24.7k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|  24.7k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|  24.7k|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|  24.7k|}
_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  243|  13.1k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|  13.1k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|  13.1k|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|  13.1k|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  4.75k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  4.75k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  4.75k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  4.75k|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  17.7k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  17.7k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  17.7k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  17.7k|}
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  4.38k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  4.38k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  4.38k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  4.38k|}
_ZN5Botan16wrap_strong_typeIjRKjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS3_Esr3stdE18constructible_fromINS3_12wrapped_typeES4_EEEDcOS4_:
  268|  4.71k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  4.71k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  4.71k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  4.71k|}

_ZN5Botan14Cert_Extension9Key_Usage10static_oidEv:
   84|    727|      static OID static_oid() { return OID({2, 5, 29, 15}); }
_ZNK5Botan14Cert_Extension9Key_Usage15get_constraintsEv:
   82|    364|      Key_Constraints get_constraints() const { return m_constraints; }
_ZN5Botan14Cert_Extension14Subject_Key_ID10static_oidEv:
  116|    727|      static OID static_oid() { return OID({2, 5, 29, 14}); }
_ZNK5Botan14Cert_Extension14Subject_Key_ID10get_key_idEv:
  114|    110|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  146|    727|      static OID static_oid() { return OID({2, 5, 29, 35}); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID10get_key_idEv:
  144|    104|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Name_Constraints10static_oidEv:
  268|    727|      static OID static_oid() { return OID({2, 5, 29, 30}); }
_ZNK5Botan14Cert_Extension16Name_Constraints20get_name_constraintsEv:
  266|     33|      const NameConstraints& get_name_constraints() const { return m_name_constraints; }
_ZN5Botan14Cert_Extension18Extended_Key_Usage10static_oidEv:
  232|    727|      static OID static_oid() { return OID({2, 5, 29, 37}); }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage18object_identifiersEv:
  230|    260|      const std::vector<OID>& object_identifiers() const { return m_oids; }
_ZN5Botan14Cert_Extension17Basic_Constraints10static_oidEv:
   55|    727|      static OID static_oid() { return OID({2, 5, 29, 19}); }
_ZNK5Botan14Cert_Extension17Basic_Constraints5is_caEv:
   51|    302|      bool is_ca() const { return m_is_ca; }
_ZNK5Botan14Cert_Extension17Basic_Constraints22path_length_constraintEv:
   53|     79|      std::optional<size_t> path_length_constraint() const { return m_path_length_constraint; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name10static_oidEv:
  196|    727|      static OID static_oid() { return OID({2, 5, 29, 18}); }
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name12get_alt_nameEv:
  194|     32|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension24Subject_Alternative_Name10static_oidEv:
  168|    727|      static OID static_oid() { return OID({2, 5, 29, 17}); }
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name12get_alt_nameEv:
  166|    136|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension20Certificate_Policies10static_oidEv:
  298|    727|      static OID static_oid() { return OID({2, 5, 29, 32}); }
_ZNK5Botan14Cert_Extension20Certificate_Policies15get_policy_oidsEv:
  296|     18|      const std::vector<OID>& get_policy_oids() const { return m_oids; }
_ZN5Botan14Cert_Extension28Authority_Information_Access10static_oidEv:
  348|    727|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 1, 1}); }
_ZNK5Botan14Cert_Extension28Authority_Information_Access15ocsp_respondersEv:
  346|    126|      const std::vector<std::string>& ocsp_responders() const { return m_ocsp_responders; }
_ZNK5Botan14Cert_Extension28Authority_Information_Access10ca_issuersEv:
  352|    126|      const std::vector<std::string>& ca_issuers() const { return m_ca_issuers; }
_ZN5Botan14Cert_Extension23CRL_Distribution_Points10static_oidEv:
  454|    727|      static OID static_oid() { return OID({2, 5, 29, 31}); }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points21crl_distribution_urlsEv:
  452|     79|      const std::vector<std::string>& crl_distribution_urls() const { return m_crl_distribution_urls; }
_ZNK5Botan14Cert_Extension17Basic_Constraints8oid_nameEv:
   60|    302|      std::string oid_name() const override { return "X509v3.BasicConstraints"; }
_ZN5Botan14Cert_Extension9Key_UsageC2Ev:
   80|    932|      explicit Key_Usage() : m_constraints(Key_Constraints::None) {}
_ZNK5Botan14Cert_Extension9Key_Usage8oid_nameEv:
   89|    364|      std::string oid_name() const override { return "X509v3.KeyUsage"; }
_ZNK5Botan14Cert_Extension14Subject_Key_ID8oid_nameEv:
  121|    110|      std::string oid_name() const override { return "X509v3.SubjectKeyIdentifier"; }
_ZNK5Botan14Cert_Extension16Authority_Key_ID8oid_nameEv:
  151|    104|      std::string oid_name() const override { return "X509v3.AuthorityKeyIdentifier"; }
_ZN5Botan14Cert_Extension24Subject_Alternative_NameC2ERKNS_15AlternativeNameE:
  176|    626|      explicit Subject_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name8oid_nameEv:
  179|    136|      std::string oid_name() const override { return "X509v3.SubjectAlternativeName"; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_NameC2ERKNS_15AlternativeNameE:
  204|    153|      explicit Issuer_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name8oid_nameEv:
  207|     32|      std::string oid_name() const override { return "X509v3.IssuerAlternativeName"; }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage8oid_nameEv:
  237|    260|      std::string oid_name() const override { return "X509v3.ExtendedKeyUsage"; }
_ZNK5Botan14Cert_Extension16Name_Constraints8oid_nameEv:
  273|     33|      std::string oid_name() const override { return "X509v3.NameConstraints"; }
_ZNK5Botan14Cert_Extension20Certificate_Policies8oid_nameEv:
  309|     18|      std::string oid_name() const override { return "X509v3.CertificatePolicies"; }
_ZNK5Botan14Cert_Extension28Authority_Information_Access8oid_nameEv:
  355|    126|      std::string oid_name() const override { return "PKIX.AuthorityInformationAccess"; }
_ZN5Botan14Cert_Extension10CRL_NumberC2Ev:
  373|     33|      CRL_Number() : m_has_value(false), m_crl_number(0) {}
_ZN5Botan14Cert_Extension14CRL_ReasonCodeC2ENS_8CRL_CodeE:
  404|     32|      explicit CRL_ReasonCode(CRL_Code r = CRL_Code::Unspecified) : m_reason(r) {}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_PointC2ERKNS_15AlternativeNameE:
  434|    705|            explicit Distribution_Point(const AlternativeName& name = AlternativeName()) : m_point(name) {}
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point5pointEv:
  436|    227|            const AlternativeName& point() const { return m_point; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points8oid_nameEv:
  459|     79|      std::string oid_name() const override { return "X509v3.CRLDistributionPoints"; }
_ZN5Botan14Cert_Extension12OCSP_NoCheck10static_oidEv:
  519|  3.52k|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 5}); }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3minEv:
  854|  18.9k|            asnum_t min() const { return m_min; }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3maxEv:
  856|  6.82k|            asnum_t max() const { return m_max; }
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRangeC2Ejj:
  862|    318|            ASIdOrRange(asnum_t min, asnum_t max) : m_min(min), m_max(max) {
  863|    318|               if(max < min) {
  ------------------
  |  Branch (863:19): [True: 0, False: 318]
  ------------------
  864|      0|                  throw Decoding_Error("AS range numbers must be sorted");
  865|      0|               }
  866|    318|            }
_ZN5Botan14Cert_Extension17Unknown_ExtensionC2ERKNS_3OIDEbb:
  985|  8.77k|            m_oid(oid), m_critical(critical), m_failed_to_decode(failed_to_decode) {}
_ZNK5Botan14Cert_Extension17Unknown_Extension8oid_nameEv:
 1027|    974|      std::string oid_name() const override { return ""; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE5valueEv:
  656|  19.6k|            std::array<uint8_t, Length> value() const { return m_value; }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE4nextEv:
  662|    494|            void next() {
  663|  1.09k|               for(auto it = m_value.rbegin(); it != m_value.rend(); it++) {
  ------------------
  |  Branch (663:48): [True: 1.09k, False: 0]
  ------------------
  664|       |                  // we increment the current octet
  665|  1.09k|                  (*it)++;
  666|       |                  // if it did not wrap around we are done, else look at the next octet
  667|  1.09k|                  if(*it != 0) {
  ------------------
  |  Branch (667:22): [True: 494, False: 599]
  ------------------
  668|    494|                     break;
  669|    494|                  }
  670|  1.09k|               }
  671|    494|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE5valueEv:
  656|  26.8k|            std::array<uint8_t, Length> value() const { return m_value; }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE4nextEv:
  662|    510|            void next() {
  663|  6.36k|               for(auto it = m_value.rbegin(); it != m_value.rend(); it++) {
  ------------------
  |  Branch (663:48): [True: 6.36k, False: 0]
  ------------------
  664|       |                  // we increment the current octet
  665|  6.36k|                  (*it)++;
  666|       |                  // if it did not wrap around we are done, else look at the next octet
  667|  6.36k|                  if(*it != 0) {
  ------------------
  |  Branch (667:22): [True: 510, False: 5.85k]
  ------------------
  668|    510|                     break;
  669|    510|                  }
  670|  6.36k|               }
  671|    510|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EEC2ERKNS1_9IPAddressILS3_4EEES8_:
  709|    308|            IPAddressOrRange(const IPAddress<V>& min, const IPAddress<V>& max) : m_min(min), m_max(max) {
  710|    308|               if(max < min) {
  ------------------
  |  Branch (710:19): [True: 0, False: 308]
  ------------------
  711|      0|                  throw Decoding_Error("IP address ranges must be sorted");
  712|      0|               }
  713|    308|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3minEv:
  715|  4.56k|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3maxEv:
  717|  1.89k|            IPAddress<V> max() const { return m_max; }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EEC2ERKNS1_9IPAddressILS3_16EEES8_:
  709|    269|            IPAddressOrRange(const IPAddress<V>& min, const IPAddress<V>& max) : m_min(min), m_max(max) {
  710|    269|               if(max < min) {
  ------------------
  |  Branch (710:19): [True: 0, False: 269]
  ------------------
  711|      0|                  throw Decoding_Error("IP address ranges must be sorted");
  712|      0|               }
  713|    269|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3minEv:
  715|  4.39k|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3maxEv:
  717|  1.82k|            IPAddress<V> max() const { return m_max; }
_ZN5Botan14Cert_Extension14Subject_Key_IDC2Ev:
  104|    355|      Subject_Key_ID() = default;
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_PointC2Ev:
  476|     24|      CRL_Issuing_Distribution_Point() = default;
_ZN5Botan14Cert_Extension16Name_ConstraintsC2Ev:
  256|    302|      Name_Constraints() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_PointsC2Ev:
  446|    626|      CRL_Distribution_Points() = default;
_ZN5Botan14Cert_Extension20Certificate_PoliciesC2Ev:
  292|    127|      Certificate_Policies() = default;
_ZN5Botan14Cert_Extension16Authority_Key_IDC2Ev:
  140|    474|      Authority_Key_ID() = default;
_ZN5Botan14Cert_Extension18Extended_Key_UsageC2Ev:
  226|    406|      Extended_Key_Usage() = default;
_ZN5Botan14Cert_Extension21NoRevocationAvailableC2Ev:
  550|      3|      NoRevocationAvailable() = default;
_ZN5Botan14Cert_Extension28Authority_Information_AccessC2Ev:
  328|    333|      Authority_Information_Access() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocksC2Ev:
  772|    981|      IPAddressBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocksC2Ev:
  913|  1.48k|      ASBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiersC2Ev:
  907|  1.48k|            ASIdentifiers() = default;
_ZN5Botan14Cert_Extension10TNAuthListC2Ev:
  615|    144|      TNAuthList() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EEC2Ev:
  734|  1.46k|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EEC2Ev:
  734|    453|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoiceC2Ev:
  878|  1.32k|            ASIdentifierChoice() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamilyC2Ev:
  749|  1.05k|            IPAddressFamily() = default;
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEERKS4_:
  681|  2.97k|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
  682|  5.46k|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (682:34): [True: 5.31k, False: 152]
  ------------------
  683|  5.31k|                  if(lhs.value()[i] < rhs.value()[i]) {
  ------------------
  |  Branch (683:22): [True: 1.29k, False: 4.02k]
  ------------------
  684|  1.29k|                     return std::strong_ordering::less;
  685|  4.02k|                  } else if(lhs.value()[i] > rhs.value()[i]) {
  ------------------
  |  Branch (685:29): [True: 1.53k, False: 2.48k]
  ------------------
  686|  1.53k|                     return std::strong_ordering::greater;
  687|  1.53k|                  }
  688|  5.31k|               }
  689|    152|               return std::strong_ordering::equal;
  690|  2.97k|            }
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEERKS4_:
  681|  2.79k|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
  682|  7.21k|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (682:34): [True: 7.04k, False: 164]
  ------------------
  683|  7.04k|                  if(lhs.value()[i] < rhs.value()[i]) {
  ------------------
  |  Branch (683:22): [True: 1.18k, False: 5.85k]
  ------------------
  684|  1.18k|                     return std::strong_ordering::less;
  685|  5.85k|                  } else if(lhs.value()[i] > rhs.value()[i]) {
  ------------------
  |  Branch (685:29): [True: 1.44k, False: 4.41k]
  ------------------
  686|  1.44k|                     return std::strong_ordering::greater;
  687|  1.44k|                  }
  688|  7.04k|               }
  689|    164|               return std::strong_ordering::equal;
  690|  2.79k|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EEC2Ev:
  705|  1.31k|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEES6_:
  692|    494|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
  693|    494|               return lhs.value() == rhs.value();
  694|    494|            }
_ZN5Botan14Cert_ExtensionplENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEEm:
  673|    494|            friend IPAddress<V> operator+(IPAddress<V> lhs, size_t rhs) {
  674|       |               // we only really need to be able to compute +1, so this is fine
  675|    988|               for(size_t i = 0; i < rhs; i++) {
  ------------------
  |  Branch (675:34): [True: 494, False: 494]
  ------------------
  676|    494|                  lhs.next();
  677|    494|               }
  678|    494|               return IPAddress<V>(lhs);
  679|    494|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EEC2Ev:
  705|  1.42k|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEES6_:
  692|    510|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
  693|    510|               return lhs.value() == rhs.value();
  694|    510|            }
_ZN5Botan14Cert_ExtensionplENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEEm:
  673|    510|            friend IPAddress<V> operator+(IPAddress<V> lhs, size_t rhs) {
  674|       |               // we only really need to be able to compute +1, so this is fine
  675|  1.02k|               for(size_t i = 0; i < rhs; i++) {
  ------------------
  |  Branch (675:34): [True: 510, False: 510]
  ------------------
  676|    510|                  lhs.next();
  677|    510|               }
  678|    510|               return IPAddress<V>(lhs);
  679|    510|            }
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRangeC2Ev:
  858|  4.87k|            ASIdOrRange() = default;

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

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

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

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   49|  5.88k|bool AlgorithmIdentifier::parameters_are_null() const {
   50|  5.88k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (50:12): [True: 5.87k, False: 13]
  |  Branch (50:40): [True: 5.85k, False: 24]
  |  Branch (50:69): [True: 5.82k, False: 24]
  ------------------
   51|  5.88k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   53|  3.26k|bool operator==(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) {
   54|  3.26k|   if(a1.oid() != a2.oid()) {
  ------------------
  |  Branch (54:7): [True: 28, False: 3.23k]
  ------------------
   55|     28|      return false;
   56|     28|   }
   57|       |
   58|       |   /*
   59|       |   * Treat NULL and empty as equivalent
   60|       |   */
   61|  3.23k|   if(a1.parameters_are_null_or_empty() && a2.parameters_are_null_or_empty()) {
  ------------------
  |  Branch (61:7): [True: 3.20k, False: 31]
  |  Branch (61:44): [True: 3.17k, False: 30]
  ------------------
   62|  3.17k|      return true;
   63|  3.17k|   }
   64|       |
   65|     61|   return (a1.parameters() == a2.parameters());
   66|  3.23k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   68|  3.26k|bool operator!=(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) {
   69|  3.26k|   return !(a1 == a2);
   70|  3.26k|}
_ZNK5Botan19AlgorithmIdentifier11encode_intoERNS_11DER_EncoderE:
   75|    727|void AlgorithmIdentifier::encode_into(DER_Encoder& codec) const {
   76|    727|   codec.start_sequence().encode(oid()).raw_bytes(parameters()).end_cons();
   77|    727|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   82|  11.0k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   83|  11.0k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   84|  11.0k|}

_ZNK5Botan11ASN1_Object10BER_encodeEv:
   20|    727|std::vector<uint8_t> ASN1_Object::BER_encode() const {
   21|    727|   std::vector<uint8_t> output;
   22|    727|   DER_Encoder der(output);
   23|    727|   this->encode_into(der);
   24|    727|   return output;
   25|    727|}
_ZN5Botan10BER_ObjectD2Ev:
   27|   580k|BER_Object::~BER_Object() {
   28|   580k|   secure_scrub_memory(m_value);
   29|   580k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   34|   134k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   35|   134k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (35:7): [True: 1.63k, False: 132k]
  ------------------
   36|  1.63k|      std::stringstream msg;
   37|       |
   38|  1.63k|      msg << "Tag mismatch when decoding " << descr << " got ";
   39|       |
   40|  1.63k|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (40:10): [True: 52, False: 1.58k]
  |  Branch (40:49): [True: 52, False: 0]
  ------------------
   41|     52|         msg << "EOF";
   42|  1.58k|      } else {
   43|  1.58k|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (43:13): [True: 340, False: 1.24k]
  |  Branch (43:53): [True: 906, False: 339]
  ------------------
   44|  1.24k|            msg << asn1_tag_to_string(m_type_tag);
   45|  1.24k|         } else {
   46|    339|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   47|    339|         }
   48|       |
   49|  1.58k|         msg << "/" << asn1_class_to_string(m_class_tag);
   50|  1.58k|      }
   51|       |
   52|  1.63k|      msg << " expected ";
   53|       |
   54|  1.63k|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (54:10): [True: 371, False: 1.26k]
  |  Branch (54:57): [True: 1.23k, False: 30]
  ------------------
   55|  1.60k|         msg << asn1_tag_to_string(expected_type_tag);
   56|  1.60k|      } else {
   57|     30|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   58|     30|      }
   59|       |
   60|  1.63k|      msg << "/" << asn1_class_to_string(expected_class_tag);
   61|       |
   62|  1.63k|      throw BER_Decoding_Error(msg.str());
   63|  1.63k|   }
   64|   134k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   66|   421k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   67|   421k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (67:12): [True: 177k, False: 244k]
  |  Branch (67:47): [True: 174k, False: 3.03k]
  ------------------
   68|   421k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
   70|   261k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
   71|   261k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
   72|   261k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
   74|   279k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
   75|   279k|   m_type_tag = type_tag;
   76|   279k|   m_class_tag = class_tag;
   77|   279k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
   79|  3.22k|std::string asn1_class_to_string(ASN1_Class type) {
   80|  3.22k|   switch(type) {
   81|    711|      case ASN1_Class::Universal:
  ------------------
  |  Branch (81:7): [True: 711, False: 2.51k]
  ------------------
   82|    711|         return "UNIVERSAL";
   83|  2.14k|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (83:7): [True: 2.14k, False: 1.08k]
  ------------------
   84|  2.14k|         return "CONSTRUCTED";
   85|     95|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (85:7): [True: 95, False: 3.12k]
  ------------------
   86|     95|         return "CONTEXT_SPECIFIC";
   87|     38|      case ASN1_Class::Application:
  ------------------
  |  Branch (87:7): [True: 38, False: 3.18k]
  ------------------
   88|     38|         return "APPLICATION";
   89|     23|      case ASN1_Class::Private:
  ------------------
  |  Branch (89:7): [True: 23, False: 3.19k]
  ------------------
   90|     23|         return "PRIVATE";
   91|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (91:7): [True: 0, False: 3.22k]
  ------------------
   92|      0|         return "NO_OBJECT";
   93|    213|      default:
  ------------------
  |  Branch (93:7): [True: 213, False: 3.00k]
  ------------------
   94|    213|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
   95|  3.22k|   }
   96|  3.22k|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
   98|  5.41k|std::string asn1_tag_to_string(ASN1_Type type) {
   99|  5.41k|   switch(type) {
  100|  1.25k|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (100:7): [True: 1.25k, False: 4.16k]
  ------------------
  101|  1.25k|         return "SEQUENCE";
  102|       |
  103|    343|      case ASN1_Type::Set:
  ------------------
  |  Branch (103:7): [True: 343, False: 5.07k]
  ------------------
  104|    343|         return "SET";
  105|       |
  106|     52|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (106:7): [True: 52, False: 5.36k]
  ------------------
  107|     52|         return "PRINTABLE STRING";
  108|       |
  109|     54|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (109:7): [True: 54, False: 5.36k]
  ------------------
  110|     54|         return "NUMERIC STRING";
  111|       |
  112|     25|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 25, False: 5.39k]
  ------------------
  113|     25|         return "IA5 STRING";
  114|       |
  115|     15|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (115:7): [True: 15, False: 5.40k]
  ------------------
  116|     15|         return "T61 STRING";
  117|       |
  118|  2.50k|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (118:7): [True: 2.50k, False: 2.91k]
  ------------------
  119|  2.50k|         return "UTF8 STRING";
  120|       |
  121|     24|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (121:7): [True: 24, False: 5.39k]
  ------------------
  122|     24|         return "VISIBLE STRING";
  123|       |
  124|     12|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (124:7): [True: 12, False: 5.40k]
  ------------------
  125|     12|         return "BMP STRING";
  126|       |
  127|      3|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (127:7): [True: 3, False: 5.41k]
  ------------------
  128|      3|         return "UNIVERSAL STRING";
  129|       |
  130|     17|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (130:7): [True: 17, False: 5.40k]
  ------------------
  131|     17|         return "UTC TIME";
  132|       |
  133|     11|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (133:7): [True: 11, False: 5.40k]
  ------------------
  134|     11|         return "GENERALIZED TIME";
  135|       |
  136|    150|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (136:7): [True: 150, False: 5.26k]
  ------------------
  137|    150|         return "OCTET STRING";
  138|       |
  139|    158|      case ASN1_Type::BitString:
  ------------------
  |  Branch (139:7): [True: 158, False: 5.26k]
  ------------------
  140|    158|         return "BIT STRING";
  141|       |
  142|     26|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (142:7): [True: 26, False: 5.39k]
  ------------------
  143|     26|         return "ENUMERATED";
  144|       |
  145|    146|      case ASN1_Type::Integer:
  ------------------
  |  Branch (145:7): [True: 146, False: 5.27k]
  ------------------
  146|    146|         return "INTEGER";
  147|       |
  148|     34|      case ASN1_Type::Null:
  ------------------
  |  Branch (148:7): [True: 34, False: 5.38k]
  ------------------
  149|     34|         return "NULL";
  150|       |
  151|     43|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (151:7): [True: 43, False: 5.37k]
  ------------------
  152|     43|         return "OBJECT";
  153|       |
  154|     89|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (154:7): [True: 89, False: 5.32k]
  ------------------
  155|     89|         return "BOOLEAN";
  156|       |
  157|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (157:7): [True: 0, False: 5.41k]
  ------------------
  158|      0|         return "NO_OBJECT";
  159|       |
  160|    459|      default:
  ------------------
  |  Branch (160:7): [True: 459, False: 4.95k]
  ------------------
  161|    459|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  162|  5.41k|   }
  163|  5.41k|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  168|  4.52k|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  170|    174|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN115put_in_sequenceERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  177|  9.51k|std::vector<uint8_t> put_in_sequence(const std::vector<uint8_t>& contents) {
  178|  9.51k|   return ASN1::put_in_sequence(contents.data(), contents.size());
  179|  9.51k|}
_ZN5Botan4ASN115put_in_sequenceEPKhm:
  181|  9.51k|std::vector<uint8_t> put_in_sequence(const uint8_t bits[], size_t len) {
  182|  9.51k|   std::vector<uint8_t> output;
  183|  9.51k|   DER_Encoder(output).start_sequence().raw_bytes(bits, len).end_cons();
  184|  9.51k|   return output;
  185|  9.51k|}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  190|  38.2k|std::string to_string(const BER_Object& obj) {
  191|  38.2k|   return bytes_to_string(obj.data());
  192|  38.2k|}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  197|  4.89k|bool maybe_BER(DataSource& source) {
  198|  4.89k|   uint8_t first_u8 = 0;
  199|  4.89k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (199:7): [True: 0, False: 4.89k]
  ------------------
  200|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   90|      0|   do {                                                                                                \
  |  |   91|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|      0|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  201|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  202|      0|   }
  203|       |
  204|  4.89k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  205|  4.89k|   return first_u8 == cons_seq;
  206|  4.89k|}

_ZN5Botan3OID9from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   72|    100|std::optional<OID> OID::from_name(std::string_view name) {
   73|    100|   if(name.empty()) {
  ------------------
  |  Branch (73:7): [True: 0, False: 100]
  ------------------
   74|      0|      throw Invalid_Argument("OID::from_name argument must be non-empty");
   75|      0|   }
   76|       |
   77|    100|   OID o = OID_Map::global_registry().str2oid(name);
   78|    100|   if(o.has_value()) {
  ------------------
  |  Branch (78:7): [True: 100, False: 0]
  ------------------
   79|    100|      return std::optional(o);
   80|    100|   }
   81|       |
   82|      0|   return std::nullopt;
   83|    100|}
_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   86|  1.34k|OID OID::from_string(std::string_view str) {
   87|  1.34k|   if(str.empty()) {
  ------------------
  |  Branch (87:7): [True: 0, False: 1.34k]
  ------------------
   88|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   89|      0|   }
   90|       |
   91|  1.34k|   OID o = OID_Map::global_registry().str2oid(str);
   92|  1.34k|   if(o.has_value()) {
  ------------------
  |  Branch (92:7): [True: 1.34k, False: 0]
  ------------------
   93|  1.34k|      return o;
   94|  1.34k|   }
   95|       |
   96|       |   // Try to parse as a dotted decimal
   97|      0|   try {
   98|      0|      return OID(str);
   99|      0|   } catch(...) {}
  100|       |
  101|      0|   throw Lookup_Error(fmt("No OID associated with name '{}'", str));
  102|      0|}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
  104|  12.9k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
  105|  12.9k|   oid_valid_check(m_id);
  106|  12.9k|}
_ZNK5Botan3OID9hash_codeEv:
  160|      4|uint64_t OID::hash_code() const {
  161|       |   // If this is changed also update gen_oids.py to match
  162|      4|   uint64_t hash = 0x621F302327D9A49A;
  163|     32|   for(auto id : m_id) {
  ------------------
  |  Branch (163:16): [True: 32, False: 4]
  ------------------
  164|     32|      hash *= 193;
  165|     32|      hash += id;
  166|     32|   }
  167|      4|   return hash;
  168|      4|}
_ZN5BotanltERKNS_3OIDES2_:
  173|  85.7k|bool operator<(const OID& a, const OID& b) {
  174|  85.7k|   const std::vector<uint32_t>& oid1 = a.get_components();
  175|  85.7k|   const std::vector<uint32_t>& oid2 = b.get_components();
  176|       |
  177|  85.7k|   return std::lexicographical_compare(oid1.begin(), oid1.end(), oid2.begin(), oid2.end());
  178|  85.7k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  183|    727|void OID::encode_into(DER_Encoder& der) const {
  184|    727|   if(m_id.size() < 2) {
  ------------------
  |  Branch (184:7): [True: 0, False: 727]
  ------------------
  185|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  186|      0|   }
  187|       |
  188|    727|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  189|    727|      if(z <= 0x7F) {
  190|    727|         encoding.push_back(static_cast<uint8_t>(z));
  191|    727|      } else {
  192|    727|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  193|       |
  194|    727|         for(size_t j = 0; j != z7; ++j) {
  195|    727|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  196|       |
  197|    727|            if(j != z7 - 1) {
  198|    727|               zp |= 0x80;
  199|    727|            }
  200|       |
  201|    727|            encoding.push_back(zp);
  202|    727|         }
  203|    727|      }
  204|    727|   };
  205|       |
  206|    727|   std::vector<uint8_t> encoding;
  207|       |
  208|       |   // We know 40 * root can't overflow because root is between 0 and 2
  209|    727|   auto first = checked_add(40 * m_id[0], m_id[1]);
  210|    727|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|    727|   do {                                                                     \
  |  |   78|    727|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    727|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 727]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    727|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 727]
  |  |  ------------------
  ------------------
  211|       |
  212|    727|   append(encoding, *first);
  213|       |
  214|  4.33k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (214:22): [True: 3.60k, False: 727]
  ------------------
  215|  3.60k|      append(encoding, m_id[i]);
  216|  3.60k|   }
  217|    727|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  218|    727|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  223|  46.2k|void OID::decode_from(BER_Decoder& decoder) {
  224|  46.2k|   const BER_Object obj = decoder.get_next_object();
  225|  46.2k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (225:7): [True: 134, False: 46.1k]
  ------------------
  226|    134|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  227|    134|   }
  228|       |
  229|  46.1k|   if(obj.length() == 0) {
  ------------------
  |  Branch (229:7): [True: 4, False: 46.1k]
  ------------------
  230|      4|      throw BER_Decoding_Error("OID encoding is too short");
  231|      4|   }
  232|       |
  233|  46.1k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  234|  46.1k|      BOTAN_ASSERT_NOMSG(!data.empty());
  235|  46.1k|      uint32_t b = data.take_byte();
  236|       |
  237|  46.1k|      if(b > 0x7F) {
  238|  46.1k|         b &= 0x7F;
  239|       |
  240|       |         // Even BER requires that the OID have minimal length, ie that
  241|       |         // the first byte of a multibyte encoding cannot be zero
  242|       |         // See X.690 section 8.19.2
  243|  46.1k|         if(b == 0) {
  244|  46.1k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  245|  46.1k|         }
  246|       |
  247|  46.1k|         while(true) {
  248|  46.1k|            if(data.empty()) {
  249|  46.1k|               throw Decoding_Error("Truncated OID value");
  250|  46.1k|            }
  251|       |
  252|  46.1k|            const uint8_t next = data.take_byte();
  253|  46.1k|            const bool more = (next & 0x80) == 0x80;
  254|  46.1k|            const uint8_t value = next & 0x7F;
  255|       |
  256|  46.1k|            if((b >> (32 - 7)) != 0) {
  257|  46.1k|               throw Decoding_Error("OID component overflow");
  258|  46.1k|            }
  259|       |
  260|  46.1k|            b = (b << 7) | value;
  261|       |
  262|  46.1k|            if(!more) {
  263|  46.1k|               break;
  264|  46.1k|            }
  265|  46.1k|         }
  266|  46.1k|      }
  267|       |
  268|  46.1k|      return b;
  269|  46.1k|   };
  270|       |
  271|  46.1k|   BufferSlicer data(obj.data());
  272|  46.1k|   std::vector<uint32_t> parts;
  273|   277k|   while(!data.empty()) {
  ------------------
  |  Branch (273:10): [True: 231k, False: 46.1k]
  ------------------
  274|   231k|      const uint32_t comp = consume(data);
  275|       |
  276|   231k|      if(parts.empty()) {
  ------------------
  |  Branch (276:10): [True: 46.0k, False: 185k]
  ------------------
  277|       |         // divide into root and second arc
  278|       |
  279|  46.0k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  280|  46.0k|            if(b0 < 40) {
  281|  46.0k|               return 0;
  282|  46.0k|            } else if(b0 < 80) {
  283|  46.0k|               return 1;
  284|  46.0k|            } else {
  285|  46.0k|               return 2;
  286|  46.0k|            }
  287|  46.0k|         }(comp);
  288|       |
  289|  46.0k|         parts.push_back(root_arc);
  290|  46.0k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   77|  46.0k|   do {                                                                     \
  |  |   78|  46.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  46.0k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 46.0k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  46.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 46.0k]
  |  |  ------------------
  ------------------
  291|  46.0k|         parts.push_back(comp - 40 * root_arc);
  292|   185k|      } else {
  293|   185k|         parts.push_back(comp);
  294|   185k|      }
  295|   231k|   }
  296|       |
  297|  46.1k|   m_id = parts;
  298|  46.1k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  12.9k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  12.9k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  12.9k|   do {                                                          \
  |  |   36|  12.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  12.9k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 12.9k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  12.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 12.9k]
  |  |  ------------------
  ------------------
   28|  12.9k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  12.9k|   do {                                                          \
  |  |   36|  12.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  12.9k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 12.9k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  12.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 12.9k]
  |  |  ------------------
  ------------------
   29|  12.9k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  12.9k|   do {                                                          \
  |  |   36|  12.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  12.9k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 12.9k, 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|  12.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 12.9k]
  |  |  ------------------
  ------------------
   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|  12.9k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  12.9k|   do {                                                          \
  |  |   36|  12.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  12.9k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 12.9k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  12.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 12.9k]
  |  |  ------------------
  ------------------
   33|  12.9k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  188|  4.33k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  189|  4.33k|      if(z <= 0x7F) {
  ------------------
  |  Branch (189:10): [True: 3.09k, False: 1.24k]
  ------------------
  190|  3.09k|         encoding.push_back(static_cast<uint8_t>(z));
  191|  3.09k|      } else {
  192|  1.24k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  193|       |
  194|  4.17k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (194:28): [True: 2.93k, False: 1.24k]
  ------------------
  195|  2.93k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  196|       |
  197|  2.93k|            if(j != z7 - 1) {
  ------------------
  |  Branch (197:16): [True: 1.69k, False: 1.24k]
  ------------------
  198|  1.69k|               zp |= 0x80;
  199|  1.69k|            }
  200|       |
  201|  2.93k|            encoding.push_back(zp);
  202|  2.93k|         }
  203|  1.24k|      }
  204|  4.33k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  233|   231k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  234|   231k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   77|   231k|   do {                                                                     \
  |  |   78|   231k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   231k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 231k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   231k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 231k]
  |  |  ------------------
  ------------------
  235|   231k|      uint32_t b = data.take_byte();
  236|       |
  237|   231k|      if(b > 0x7F) {
  ------------------
  |  Branch (237:10): [True: 33.3k, False: 197k]
  ------------------
  238|  33.3k|         b &= 0x7F;
  239|       |
  240|       |         // Even BER requires that the OID have minimal length, ie that
  241|       |         // the first byte of a multibyte encoding cannot be zero
  242|       |         // See X.690 section 8.19.2
  243|  33.3k|         if(b == 0) {
  ------------------
  |  Branch (243:13): [True: 12, False: 33.3k]
  ------------------
  244|     12|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  245|     12|         }
  246|       |
  247|  46.4k|         while(true) {
  ------------------
  |  Branch (247:16): [True: 46.4k, Folded]
  ------------------
  248|  46.4k|            if(data.empty()) {
  ------------------
  |  Branch (248:16): [True: 49, False: 46.4k]
  ------------------
  249|     49|               throw Decoding_Error("Truncated OID value");
  250|     49|            }
  251|       |
  252|  46.4k|            const uint8_t next = data.take_byte();
  253|  46.4k|            const bool more = (next & 0x80) == 0x80;
  254|  46.4k|            const uint8_t value = next & 0x7F;
  255|       |
  256|  46.4k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (256:16): [True: 44, False: 46.4k]
  ------------------
  257|     44|               throw Decoding_Error("OID component overflow");
  258|     44|            }
  259|       |
  260|  46.4k|            b = (b << 7) | value;
  261|       |
  262|  46.4k|            if(!more) {
  ------------------
  |  Branch (262:16): [True: 33.2k, False: 13.1k]
  ------------------
  263|  33.2k|               break;
  264|  33.2k|            }
  265|  46.4k|         }
  266|  33.3k|      }
  267|       |
  268|   230k|      return b;
  269|   231k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  279|  46.0k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  280|  46.0k|            if(b0 < 40) {
  ------------------
  |  Branch (280:16): [True: 3.31k, False: 42.7k]
  ------------------
  281|  3.31k|               return 0;
  282|  42.7k|            } else if(b0 < 80) {
  ------------------
  |  Branch (282:23): [True: 17.6k, False: 25.1k]
  ------------------
  283|  17.6k|               return 1;
  284|  25.1k|            } else {
  285|  25.1k|               return 2;
  286|  25.1k|            }
  287|  46.0k|         }(comp);

_ZN5Botan11ASN1_String14is_string_typeENS_9ASN1_TypeE:
  131|  3.73k|bool ASN1_String::is_string_type(ASN1_Type tag) {
  132|  3.73k|   return is_asn1_string_type(tag);
  133|  3.73k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  135|  20.0k|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
  136|  20.0k|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (136:7): [True: 43, False: 20.0k]
  ------------------
  137|     43|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
  138|     43|   }
  139|       |
  140|  20.0k|   if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (140:7): [True: 2.47k, False: 17.5k]
  ------------------
  141|  2.47k|      throw Invalid_Argument(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  142|  2.47k|   }
  143|  20.0k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  145|  16.7k|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
  162|  16.5k|void ASN1_String::decode_from(BER_Decoder& source) {
  163|  16.5k|   const BER_Object obj = source.get_next_object();
  164|       |
  165|  16.5k|   if(obj.get_class() != ASN1_Class::Universal || !is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (165:7): [True: 49, False: 16.4k]
  |  Branch (165:51): [True: 72, False: 16.4k]
  ------------------
  166|     99|      auto typ = static_cast<uint32_t>(obj.type());
  167|     99|      auto cls = static_cast<uint32_t>(obj.get_class());
  168|     99|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}/{}", typ, cls));
  169|     99|   }
  170|       |
  171|  16.4k|   m_tag = obj.type();
  172|  16.4k|   m_data.assign(obj.bits(), obj.bits() + obj.length());
  173|       |
  174|  16.4k|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (174:7): [True: 3.40k, False: 13.0k]
  ------------------
  175|  3.40k|      m_utf8_str = ucs2_to_utf8(m_data.data(), m_data.size());
  176|  13.0k|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (176:14): [True: 90, False: 12.9k]
  ------------------
  177|     90|      m_utf8_str = ucs4_to_utf8(m_data.data(), m_data.size());
  178|  12.9k|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (178:14): [True: 1.11k, False: 11.8k]
  ------------------
  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|  1.11k|      m_utf8_str = latin1_to_utf8(m_data.data(), m_data.size());
  184|  11.8k|   } else {
  185|       |      // All other supported string types are UTF-8 or some subset thereof
  186|  11.8k|      m_utf8_str = ASN1::to_string(obj);
  187|       |
  188|  11.8k|      if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (188:10): [True: 88, False: 11.7k]
  ------------------
  189|     88|         throw Decoding_Error(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  190|     88|      }
  191|  11.8k|   }
  192|  16.4k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   99|  20.2k|bool is_asn1_string_type(ASN1_Type tag) {
  100|  20.2k|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (100:12): [True: 15.1k, False: 5.06k]
  |  Branch (100:47): [True: 1.21k, False: 3.85k]
  |  Branch (100:82): [True: 3.43k, False: 413]
  ------------------
  101|    413|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (101:12): [True: 126, False: 287]
  ------------------
  102|  20.2k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   94|  72.1k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   95|  72.1k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (95:12): [True: 807, False: 71.3k]
  |  Branch (95:47): [True: 48.8k, False: 22.4k]
  |  Branch (95:84): [True: 166, False: 22.2k]
  ------------------
   96|  22.2k|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (96:12): [True: 2.37k, False: 19.8k]
  |  Branch (96:43): [True: 14.7k, False: 5.11k]
  ------------------
   97|  72.1k|}
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));
  ------------------
  |  |   77|  31.8k|   do {                                                                     \
  |  |   78|  31.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  31.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  31.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
  106|       |
  107|  31.8k|   switch(tag) {
  108|  5.77k|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (108:7): [True: 5.77k, False: 26.0k]
  ------------------
  109|  5.77k|         return is_valid_utf8(str);
  110|    391|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (110:7): [True: 391, False: 31.4k]
  ------------------
  111|  24.8k|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (111:7): [True: 24.4k, False: 7.40k]
  ------------------
  112|  25.9k|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 1.17k, False: 30.6k]
  ------------------
  113|  26.0k|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (113:7): [True: 64, False: 31.7k]
  ------------------
  114|  26.0k|         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|  42.7k|      constexpr bool valid_encoding(std::string_view str, ASN1_Type tag) const {
   26|  42.7k|         const uint8_t mask = mask_for(tag);
   27|  91.8k|         for(const char c : str) {
  ------------------
  |  Branch (27:27): [True: 91.8k, False: 42.7k]
  ------------------
   28|  91.8k|            const uint8_t codepoint = static_cast<uint8_t>(c);
   29|  91.8k|            const bool is_valid = (m_table[codepoint] & mask) != 0;
   30|       |
   31|  91.8k|            if(!is_valid) {
  ------------------
  |  Branch (31:16): [True: 88, False: 91.7k]
  ------------------
   32|     88|               return false;
   33|     88|            }
   34|  91.8k|         }
   35|       |
   36|  42.7k|         return true;
   37|  42.7k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator8mask_forENS_9ASN1_TypeE:
   45|  42.7k|      static constexpr uint8_t mask_for(ASN1_Type tag) {
   46|  42.7k|         switch(tag) {
   47|    391|            case ASN1_Type::NumericString:
  ------------------
  |  Branch (47:13): [True: 391, False: 42.3k]
  ------------------
   48|    391|               return Numeric_String;
   49|  41.1k|            case ASN1_Type::PrintableString:
  ------------------
  |  Branch (49:13): [True: 41.1k, False: 1.63k]
  ------------------
   50|  41.1k|               return Printable_String;
   51|  1.17k|            case ASN1_Type::Ia5String:
  ------------------
  |  Branch (51:13): [True: 1.17k, False: 41.6k]
  ------------------
   52|  1.17k|               return IA5_String;
   53|     64|            case ASN1_Type::VisibleString:
  ------------------
  |  Branch (53:13): [True: 64, False: 42.7k]
  ------------------
   54|     64|               return Visible_String;
   55|      0|            default:
  ------------------
  |  Branch (55:13): [True: 0, False: 42.7k]
  ------------------
   56|      0|               return 0;
   57|  42.7k|         }
   58|  42.7k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  120|  16.7k|ASN1_Type choose_encoding(std::string_view str) {
  121|  16.7k|   if(g_char_validator.valid_encoding(str, ASN1_Type::PrintableString)) {
  ------------------
  |  Branch (121:7): [True: 16.7k, False: 0]
  ------------------
  122|  16.7k|      return ASN1_Type::PrintableString;
  123|  16.7k|   } else {
  124|      0|      return ASN1_Type::Utf8String;
  125|      0|   }
  126|  16.7k|}

_ZN5Botan9ASN1_Time11decode_fromERNS_11BER_DecoderE:
   59|  6.95k|void ASN1_Time::decode_from(BER_Decoder& source) {
   60|  6.95k|   const BER_Object ber_time = source.get_next_object();
   61|       |
   62|  6.95k|   if(ber_time.get_class() != ASN1_Class::Universal ||
  ------------------
  |  Branch (62:7): [True: 10, False: 6.94k]
  ------------------
   63|  6.94k|      (ber_time.type() != ASN1_Type::UtcTime && ber_time.type() != ASN1_Type::GeneralizedTime)) {
  ------------------
  |  Branch (63:8): [True: 174, False: 6.77k]
  |  Branch (63:49): [True: 35, False: 139]
  ------------------
   64|     43|      throw Decoding_Error(fmt("ASN1_Time: Unexpected tag {}/{}",
   65|     43|                               static_cast<uint32_t>(ber_time.type()),
   66|     43|                               static_cast<uint32_t>(ber_time.get_class())));
   67|     43|   }
   68|       |
   69|  6.91k|   try {
   70|  6.91k|      set_to(ASN1::to_string(ber_time), ber_time.type());
   71|  6.91k|   } catch(Invalid_Argument& e) {
   72|     91|      throw Decoding_Error(fmt("Invalid ASN1_Time encoding: {}", e.what()));
   73|     91|   }
   74|  6.91k|}
_ZN5Botan9ASN1_Time6set_toENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  176|  6.90k|void ASN1_Time::set_to(std::string_view t_spec, ASN1_Type spec_tag) {
  177|  6.90k|   BOTAN_ARG_CHECK(spec_tag == ASN1_Type::UtcTime || spec_tag == ASN1_Type::GeneralizedTime,
  ------------------
  |  |   35|  6.90k|   do {                                                          \
  |  |   36|  6.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  7.04k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 6.77k, False: 139]
  |  |  |  Branch (37:12): [True: 139, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  6.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.90k]
  |  |  ------------------
  ------------------
  178|  6.90k|                   "Invalid tag for ASN1_Time");
  179|       |
  180|  6.90k|   if(spec_tag == ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (180:7): [True: 139, False: 6.77k]
  ------------------
  181|    139|      BOTAN_ARG_CHECK(t_spec.size() == 15, "Invalid GeneralizedTime input string");
  ------------------
  |  |   35|    139|   do {                                                          \
  |  |   36|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    139|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 9, False: 130]
  |  |  ------------------
  |  |   38|      9|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      9|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      9|      }                                                          \
  |  |   41|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  182|  6.77k|   } else if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (182:14): [True: 6.77k, False: 0]
  ------------------
  183|  6.77k|      BOTAN_ARG_CHECK(t_spec.size() == 13, "Invalid UTCTime input string");
  ------------------
  |  |   35|  6.77k|   do {                                                          \
  |  |   36|  6.77k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.77k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 5, False: 6.76k]
  |  |  ------------------
  |  |   38|      5|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      5|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      5|      }                                                          \
  |  |   41|  6.77k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.77k]
  |  |  ------------------
  ------------------
  184|  6.77k|   }
  185|       |
  186|  6.90k|   BOTAN_ARG_CHECK(t_spec.back() == 'Z', "Botan does not support ASN1 times with timezones other than Z");
  ------------------
  |  |   35|  6.90k|   do {                                                          \
  |  |   36|  6.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.90k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 10, False: 6.89k]
  |  |  ------------------
  |  |   38|     10|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     10|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     10|      }                                                          \
  |  |   41|  6.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 6.90k]
  |  |  ------------------
  ------------------
  187|       |
  188|  6.90k|   const size_t field_len = 2;
  189|       |
  190|  6.90k|   const size_t year_start = 0;
  191|  6.90k|   const size_t year_len = (spec_tag == ASN1_Type::UtcTime) ? 2 : 4;
  ------------------
  |  Branch (191:28): [True: 6.75k, False: 153]
  ------------------
  192|  6.90k|   const size_t month_start = year_start + year_len;
  193|  6.90k|   const size_t day_start = month_start + field_len;
  194|  6.90k|   const size_t hour_start = day_start + field_len;
  195|  6.90k|   const size_t min_start = hour_start + field_len;
  196|  6.90k|   const size_t sec_start = min_start + field_len;
  197|       |
  198|  6.90k|   m_year = to_u32bit(t_spec.substr(year_start, year_len));
  199|  6.90k|   m_month = to_u32bit(t_spec.substr(month_start, field_len));
  200|  6.90k|   m_day = to_u32bit(t_spec.substr(day_start, field_len));
  201|  6.90k|   m_hour = to_u32bit(t_spec.substr(hour_start, field_len));
  202|  6.90k|   m_minute = to_u32bit(t_spec.substr(min_start, field_len));
  203|  6.90k|   m_second = to_u32bit(t_spec.substr(sec_start, field_len));
  204|  6.90k|   m_tag = spec_tag;
  205|       |
  206|  6.90k|   if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (206:7): [True: 6.73k, False: 171]
  ------------------
  207|  6.73k|      if(m_year >= 50) {
  ------------------
  |  Branch (207:10): [True: 65, False: 6.67k]
  ------------------
  208|     65|         m_year += 1900;
  209|  6.67k|      } else {
  210|  6.67k|         m_year += 2000;
  211|  6.67k|      }
  212|  6.73k|   }
  213|       |
  214|  6.90k|   if(!passes_sanity_check()) {
  ------------------
  |  Branch (214:7): [True: 45, False: 6.86k]
  ------------------
  215|     45|      throw Invalid_Argument(fmt("ASN1_Time string '{}' does not seem to be valid", t_spec));
  216|     45|   }
  217|  6.90k|}
_ZNK5Botan9ASN1_Time19passes_sanity_checkEv:
  222|  6.86k|bool ASN1_Time::passes_sanity_check() const {
  223|       |   // AppVeyor's trust store includes a cert with expiration date in 3016 ...
  224|  6.86k|   if(m_year < 1950 || m_year > 3100) {
  ------------------
  |  Branch (224:7): [True: 9, False: 6.85k]
  |  Branch (224:24): [True: 3, False: 6.85k]
  ------------------
  225|     12|      return false;
  226|     12|   }
  227|  6.85k|   if(m_month == 0 || m_month > 12) {
  ------------------
  |  Branch (227:7): [True: 1, False: 6.85k]
  |  Branch (227:23): [True: 5, False: 6.84k]
  ------------------
  228|      6|      return false;
  229|      6|   }
  230|       |
  231|  6.84k|   const uint32_t days_in_month[12] = {31, 28 + 1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  232|       |
  233|  6.84k|   if(m_day == 0 || m_day > days_in_month[m_month - 1]) {
  ------------------
  |  Branch (233:7): [True: 1, False: 6.84k]
  |  Branch (233:21): [True: 11, False: 6.83k]
  ------------------
  234|     12|      return false;
  235|     12|   }
  236|       |
  237|  6.83k|   if(m_month == 2 && m_day == 29) {
  ------------------
  |  Branch (237:7): [True: 170, False: 6.66k]
  |  Branch (237:23): [True: 5, False: 165]
  ------------------
  238|      5|      if(m_year % 4 != 0) {
  ------------------
  |  Branch (238:10): [True: 2, False: 3]
  ------------------
  239|      2|         return false;  // not a leap year
  240|      2|      }
  241|       |
  242|      3|      if(m_year % 100 == 0 && m_year % 400 != 0) {
  ------------------
  |  Branch (242:10): [True: 2, False: 1]
  |  Branch (242:31): [True: 1, False: 1]
  ------------------
  243|      1|         return false;
  244|      1|      }
  245|      3|   }
  246|       |
  247|  6.83k|   if(m_hour >= 24 || m_minute >= 60 || m_second > 60) {
  ------------------
  |  Branch (247:7): [True: 6, False: 6.82k]
  |  Branch (247:23): [True: 2, False: 6.82k]
  |  Branch (247:41): [True: 3, False: 6.81k]
  ------------------
  248|     11|      return false;
  249|     11|   }
  250|       |
  251|  6.81k|   if(m_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (251:7): [True: 6.72k, False: 99]
  ------------------
  252|       |      /*
  253|       |      UTCTime limits the value of components such that leap seconds
  254|       |      are not covered. See "UNIVERSAL 23" in "Information technology
  255|       |      Abstract Syntax Notation One (ASN.1): Specification of basic notation"
  256|       |
  257|       |      http://www.itu.int/ITU-T/studygroups/com17/languages/
  258|       |      */
  259|  6.72k|      if(m_second > 59) {
  ------------------
  |  Branch (259:10): [True: 1, False: 6.71k]
  ------------------
  260|      1|         return false;
  261|      1|      }
  262|  6.72k|   }
  263|       |
  264|  6.81k|   return true;
  265|  6.81k|}

_ZN5Botan11BER_DecoderD2Ev:
  366|   138k|BER_Decoder::~BER_Decoder() = default;
_ZNK5Botan11BER_Decoder10more_itemsEv:
  371|   141k|bool BER_Decoder::more_items() const {
  372|   141k|   if(m_source->end_of_data() && !m_pushed.is_set()) {
  ------------------
  |  Branch (372:7): [True: 29.4k, False: 112k]
  |  Branch (372:34): [True: 29.4k, False: 0]
  ------------------
  373|  29.4k|      return false;
  374|  29.4k|   }
  375|   112k|   return true;
  376|   141k|}
_ZN5Botan11BER_Decoder10verify_endEv:
  381|  20.5k|BER_Decoder& BER_Decoder::verify_end() {
  382|  20.5k|   return verify_end("BER_Decoder::verify_end called, but data remains");
  383|  20.5k|}
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  388|  23.8k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  389|  23.8k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (389:7): [True: 986, False: 22.8k]
  |  Branch (389:35): [True: 0, False: 22.8k]
  ------------------
  390|    986|      throw Decoding_Error(err);
  391|    986|   }
  392|  22.8k|   return (*this);
  393|  23.8k|}
_ZN5Botan11BER_Decoder17discard_remainingEv:
  398|    245|BER_Decoder& BER_Decoder::discard_remaining() {
  399|    245|   m_pushed = BER_Object();
  400|    245|   uint8_t buf = 0;
  401|  24.9k|   while(m_source->read_byte(buf) != 0) {}
  ------------------
  |  Branch (401:10): [True: 24.7k, False: 245]
  ------------------
  402|    245|   return (*this);
  403|    245|}
_ZN5Botan11BER_Decoder14read_next_byteEv:
  405|  4.32M|std::optional<uint8_t> BER_Decoder::read_next_byte() {
  406|  4.32M|   BOTAN_ASSERT_NOMSG(m_source != nullptr);
  ------------------
  |  |   77|  4.32M|   do {                                                                     \
  |  |   78|  4.32M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.32M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.32M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.32M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.32M]
  |  |  ------------------
  ------------------
  407|  4.32M|   uint8_t b = 0;
  408|  4.32M|   if(m_source->read_byte(b) != 0) {
  ------------------
  |  Branch (408:7): [True: 4.30M, False: 23.4k]
  ------------------
  409|  4.30M|      return b;
  410|  4.30M|   } else {
  411|  23.4k|      return {};
  412|  23.4k|   }
  413|  4.32M|}
_ZN5Botan11BER_Decoder16peek_next_objectEv:
  415|  12.9k|const BER_Object& BER_Decoder::peek_next_object() {
  416|  12.9k|   if(!m_pushed.is_set()) {
  ------------------
  |  Branch (416:7): [True: 12.7k, False: 166]
  ------------------
  417|  12.7k|      m_pushed = get_next_object();
  418|  12.7k|   }
  419|       |
  420|  12.9k|   return m_pushed;
  421|  12.9k|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  426|   310k|BER_Object BER_Decoder::get_next_object() {
  427|   310k|   BER_Object next;
  428|       |
  429|   310k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (429:7): [True: 31.5k, False: 278k]
  ------------------
  430|  31.5k|      std::swap(next, m_pushed);
  431|  31.5k|      return next;
  432|  31.5k|   }
  433|       |
  434|   278k|   for(;;) {
  435|   278k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  436|   278k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  437|   278k|      decode_tag(m_source, type_tag, class_tag);
  438|   278k|      next.set_tagging(type_tag, class_tag);
  439|   278k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (439:10): [True: 3.98k, False: 274k]
  ------------------
  440|  3.98k|         return next;
  441|  3.98k|      }
  442|       |
  443|   274k|      const size_t allow_indef = m_limits.allow_ber_encoding() ? m_limits.max_nested_indefinite_length() : 0;
  ------------------
  |  Branch (443:34): [True: 0, False: 274k]
  ------------------
  444|   274k|      const bool der_mode = m_limits.require_der_encoding();
  445|   274k|      const auto dl = decode_length(m_source, allow_indef, der_mode, is_constructed(class_tag));
  446|       |
  447|       |      // Per X.690 8.1.5 the only valid EOC encoding is the two-octet
  448|       |      // sequence 0x00 0x00. Reject any other length encoding on a tag of
  449|       |      // (Eoc, Universal) before we consume the "content" bytes.
  450|   274k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal &&
  ------------------
  |  Branch (450:10): [True: 15.8k, False: 258k]
  |  Branch (450:40): [True: 344, False: 15.4k]
  ------------------
  451|    344|         (dl.content_length() != 0 || dl.indefinite_length())) {
  ------------------
  |  Branch (451:11): [True: 157, False: 187]
  |  Branch (451:39): [True: 0, False: 187]
  ------------------
  452|    157|         throw BER_Decoding_Error("EOC marker with non-zero length");
  453|    157|      }
  454|       |
  455|   274k|      if(!m_source->check_available(dl.total_length())) {
  ------------------
  |  Branch (455:10): [True: 934, False: 273k]
  ------------------
  456|    934|         throw BER_Decoding_Error("Value truncated");
  457|    934|      }
  458|       |
  459|   273k|      uint8_t* out = next.mutable_bits(dl.content_length());
  460|   273k|      if(m_source->read(out, dl.content_length()) != dl.content_length()) {
  ------------------
  |  Branch (460:10): [True: 0, False: 273k]
  ------------------
  461|      0|         throw BER_Decoding_Error("Value truncated");
  462|      0|      }
  463|       |
  464|   273k|      if(dl.indefinite_length()) {
  ------------------
  |  Branch (464:10): [True: 0, False: 273k]
  ------------------
  465|       |         // After reading the data consume the 2-byte EOC
  466|      0|         uint8_t eoc[2] = {0xFF, 0xFF};
  467|      0|         if(m_source->read(eoc, 2) != 2 || eoc[0] != 0x00 || eoc[1] != 0x00) {
  ------------------
  |  Branch (467:13): [True: 0, False: 0]
  |  Branch (467:44): [True: 0, False: 0]
  |  Branch (467:62): [True: 0, False: 0]
  ------------------
  468|      0|            throw BER_Decoding_Error("Missing or malformed EOC marker");
  469|      0|         }
  470|      0|      }
  471|       |
  472|   273k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (472:10): [True: 187, False: 273k]
  ------------------
  473|    187|         if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (473:13): [True: 187, False: 0]
  ------------------
  474|    187|            throw BER_Decoding_Error("Detected EOC marker in DER structure");
  475|    187|         }
  476|      0|         continue;
  477|   273k|      } else {
  478|   273k|         break;
  479|   273k|      }
  480|   273k|   }
  481|       |
  482|   273k|   return next;
  483|   278k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  507|  23.3k|void BER_Decoder::push_back(BER_Object&& obj) {
  508|  23.3k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (508:7): [True: 0, False: 23.3k]
  ------------------
  509|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  510|      0|   }
  511|  23.3k|   m_pushed = std::move(obj);
  512|  23.3k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  514|  94.3k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  515|  94.3k|   BER_Object obj = get_next_object();
  516|  94.3k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  517|  94.3k|   BER_Decoder child(std::move(obj), this);
  518|  94.3k|   return child;
  519|  94.3k|}
_ZN5Botan11BER_Decoder8end_consEv:
  524|  64.6k|BER_Decoder& BER_Decoder::end_cons() {
  525|  64.6k|   if(m_parent == nullptr) {
  ------------------
  |  Branch (525:7): [True: 0, False: 64.6k]
  ------------------
  526|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  527|      0|   }
  528|  64.6k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (528:7): [True: 594, False: 64.0k]
  |  Branch (528:35): [True: 90, False: 63.9k]
  ------------------
  529|    684|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  530|    684|   }
  531|  63.9k|   return (*m_parent);
  532|  64.6k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  535|  91.7k|      m_limits(parent != nullptr ? parent->limits() : BER_Decoder::Limits::BER()), m_parent(parent) {
  ------------------
  |  Branch (535:16): [True: 91.7k, False: 0]
  ------------------
  536|  91.7k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  537|  91.7k|   m_source = m_data_src.get();
  538|  91.7k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceENS0_6LimitsE:
  543|  4.57k|BER_Decoder::BER_Decoder(DataSource& src, Limits limits) : m_limits(limits), m_source(&src) {}
_ZN5Botan11BER_DecoderC2ENSt3__14spanIKhLm18446744073709551615EEENS0_6LimitsE:
  548|  42.1k|BER_Decoder::BER_Decoder(std::span<const uint8_t> buf, Limits limits) : m_limits(limits) {
  549|  42.1k|   m_data_src = std::make_unique<DataSource_Memory>(buf);
  550|  42.1k|   m_source = m_data_src.get();
  551|  42.1k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  560|   110k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type /*unused*/, ASN1_Class /*unused*/) {
  561|   110k|   obj.decode_from(*this);
  562|   110k|   return (*this);
  563|   110k|}
_ZN5Botan11BER_Decoder11decode_nullEv:
  568|     35|BER_Decoder& BER_Decoder::decode_null() {
  569|     35|   const BER_Object obj = get_next_object();
  570|     35|   obj.assert_is_a(ASN1_Type::Null, ASN1_Class::Universal);
  571|     35|   if(obj.length() > 0) {
  ------------------
  |  Branch (571:7): [True: 4, False: 31]
  ------------------
  572|      4|      throw BER_Decoding_Error("NULL object had nonzero size");
  573|      4|   }
  574|     31|   return (*this);
  575|     35|}
_ZN5Botan11BER_Decoder6decodeERbNS_9ASN1_TypeENS_10ASN1_ClassE:
  587|  1.69k|BER_Decoder& BER_Decoder::decode(bool& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  588|  1.69k|   const BER_Object obj = get_next_object();
  589|  1.69k|   obj.assert_is_a(type_tag, class_tag);
  590|       |
  591|  1.69k|   if(obj.length() != 1) {
  ------------------
  |  Branch (591:7): [True: 6, False: 1.69k]
  ------------------
  592|      6|      throw BER_Decoding_Error("BER boolean value had invalid size");
  593|      6|   }
  594|       |
  595|  1.69k|   const uint8_t val = obj.bits()[0];
  596|       |
  597|       |   // DER requires boolean values to be exactly 0x00 or 0xFF
  598|  1.69k|   if(m_limits.require_der_encoding() && val != 0x00 && val != 0xFF) {
  ------------------
  |  Branch (598:7): [True: 1.69k, False: 0]
  |  Branch (598:42): [True: 1.67k, False: 17]
  |  Branch (598:57): [True: 16, False: 1.66k]
  ------------------
  599|     16|      throw BER_Decoding_Error("Detected non-canonical boolean encoding in DER structure");
  600|     16|   }
  601|       |
  602|  1.67k|   out = (val != 0) ? true : false;
  ------------------
  |  Branch (602:10): [True: 1.66k, False: 17]
  ------------------
  603|       |
  604|  1.67k|   return (*this);
  605|  1.69k|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  610|  8.70k|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  611|  8.70k|   BigInt integer;
  612|  8.70k|   decode(integer, type_tag, class_tag);
  613|       |
  614|  8.70k|   if(integer.signum() < 0) {
  ------------------
  |  Branch (614:7): [True: 28, False: 8.67k]
  ------------------
  615|     28|      throw BER_Decoding_Error("Decoded small integer value was negative");
  616|     28|   }
  617|       |
  618|  8.67k|   if(integer.bits() > 32) {
  ------------------
  |  Branch (618:7): [True: 27, False: 8.65k]
  ------------------
  619|     27|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  620|     27|   }
  621|       |
  622|  8.65k|   out = 0;
  623|  42.9k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (623:22): [True: 34.2k, False: 8.65k]
  ------------------
  624|  34.2k|      out = (out << 8) | integer.byte_at(3 - i);
  625|  34.2k|   }
  626|       |
  627|  8.65k|   return (*this);
  628|  8.67k|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  660|  12.5k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  661|  12.5k|   const BER_Object obj = get_next_object();
  662|  12.5k|   obj.assert_is_a(type_tag, class_tag);
  663|       |
  664|       |   // DER requires minimal INTEGER encoding (X.690 section 8.3.2)
  665|  12.5k|   if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (665:7): [True: 12.4k, False: 123]
  ------------------
  666|  12.4k|      if(obj.length() == 0) {
  ------------------
  |  Branch (666:10): [True: 12, False: 12.4k]
  ------------------
  667|     12|         throw BER_Decoding_Error("Detected empty INTEGER encoding in DER structure");
  668|     12|      }
  669|  12.4k|      if(obj.length() > 1) {
  ------------------
  |  Branch (669:10): [True: 7.41k, False: 5.03k]
  ------------------
  670|  7.41k|         if(obj.bits()[0] == 0x00 && (obj.bits()[1] & 0x80) == 0) {
  ------------------
  |  Branch (670:13): [True: 310, False: 7.10k]
  |  Branch (670:38): [True: 6, False: 304]
  ------------------
  671|      6|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  672|      6|         }
  673|  7.40k|         if(obj.bits()[0] == 0xFF && (obj.bits()[1] & 0x80) != 0) {
  ------------------
  |  Branch (673:13): [True: 142, False: 7.26k]
  |  Branch (673:38): [True: 8, False: 134]
  ------------------
  674|      8|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  675|      8|         }
  676|  7.40k|      }
  677|  12.4k|   }
  678|       |
  679|  12.5k|   if(obj.length() == 0) {
  ------------------
  |  Branch (679:7): [True: 0, False: 12.5k]
  ------------------
  680|      0|      out.clear();
  681|  12.5k|   } else {
  682|  12.5k|      const uint8_t first = obj.bits()[0];
  683|  12.5k|      const bool negative = (first & 0x80) == 0x80;
  684|       |
  685|  12.5k|      if(negative) {
  ------------------
  |  Branch (685:10): [True: 1.83k, False: 10.7k]
  ------------------
  686|  1.83k|         secure_vector<uint8_t> vec(obj.bits(), obj.bits() + obj.length());
  687|  3.99k|         for(size_t i = obj.length(); i > 0; --i) {
  ------------------
  |  Branch (687:39): [True: 3.99k, False: 0]
  ------------------
  688|  3.99k|            const bool gt0 = (vec[i - 1] > 0);
  689|  3.99k|            vec[i - 1] -= 1;
  690|  3.99k|            if(gt0) {
  ------------------
  |  Branch (690:16): [True: 1.83k, False: 2.15k]
  ------------------
  691|  1.83k|               break;
  692|  1.83k|            }
  693|  3.99k|         }
  694|  44.6k|         for(size_t i = 0; i != obj.length(); ++i) {
  ------------------
  |  Branch (694:28): [True: 42.8k, False: 1.83k]
  ------------------
  695|  42.8k|            vec[i] = ~vec[i];
  696|  42.8k|         }
  697|  1.83k|         out._assign_from_bytes(vec);
  698|  1.83k|         out.flip_sign();
  699|  10.7k|      } else {
  700|  10.7k|         out._assign_from_bytes(obj.data());
  701|  10.7k|      }
  702|  12.5k|   }
  703|       |
  704|  12.5k|   return (*this);
  705|  12.5k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
  782|  23.6k|                                 ASN1_Class class_tag) {
  783|  23.6k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (783:7): [True: 8.10k, False: 15.5k]
  |  Branch (783:46): [True: 0, False: 8.10k]
  ------------------
  784|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
  785|      0|   }
  786|       |
  787|  23.6k|   asn1_decode_binary_string(
  788|  23.6k|      buffer, get_next_object(), real_type, type_tag, class_tag, m_limits.require_der_encoding());
  789|  23.6k|   return (*this);
  790|  23.6k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   27|   278k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   28|   278k|   auto b = ber->read_byte();
   29|       |
   30|   278k|   if(!b) {
  ------------------
  |  Branch (30:7): [True: 3.98k, False: 274k]
  ------------------
   31|  3.98k|      type_tag = ASN1_Type::NoObject;
   32|  3.98k|      class_tag = ASN1_Class::NoObject;
   33|  3.98k|      return 0;
   34|  3.98k|   }
   35|       |
   36|   274k|   if((*b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (36:7): [True: 270k, False: 4.01k]
  ------------------
   37|   270k|      type_tag = ASN1_Type(*b & 0x1F);
   38|   270k|      class_tag = ASN1_Class(*b & 0xE0);
   39|   270k|      return 1;
   40|   270k|   }
   41|       |
   42|  4.01k|   size_t tag_bytes = 1;
   43|  4.01k|   class_tag = ASN1_Class(*b & 0xE0);
   44|       |
   45|  4.01k|   uint32_t tag_buf = 0;
   46|  9.81k|   while(true) {
  ------------------
  |  Branch (46:10): [True: 9.81k, Folded]
  ------------------
   47|  9.81k|      b = ber->read_byte();
   48|  9.81k|      if(!b) {
  ------------------
  |  Branch (48:10): [True: 26, False: 9.79k]
  ------------------
   49|     26|         throw BER_Decoding_Error("Long-form tag truncated");
   50|     26|      }
   51|  9.79k|      if((tag_buf >> 24) != 0) {
  ------------------
  |  Branch (51:10): [True: 142, False: 9.64k]
  ------------------
   52|    142|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   53|    142|      }
   54|       |      // This is required even by BER (see X.690 section 8.1.2.4.2 sentence c).
   55|       |      // Bits 7-1 of the first subsequent octet must not be all zero; this rules
   56|       |      // out both 0x80 (continuation with no data) and 0x00 (a long-form encoding
   57|       |      // of tag value 0, which collides with the EOC marker).
   58|  9.64k|      if(tag_bytes == 1 && (*b & 0x7F) == 0) {
  ------------------
  |  Branch (58:10): [True: 4.00k, False: 5.64k]
  |  Branch (58:28): [True: 18, False: 3.99k]
  ------------------
   59|     18|         throw BER_Decoding_Error("Long form tag with leading zero");
   60|     18|      }
   61|  9.63k|      ++tag_bytes;
   62|  9.63k|      tag_buf = (tag_buf << 7) | (*b & 0x7F);
   63|  9.63k|      if((*b & 0x80) == 0) {
  ------------------
  |  Branch (63:10): [True: 3.82k, False: 5.80k]
  ------------------
   64|  3.82k|         break;
   65|  3.82k|      }
   66|  9.63k|   }
   67|       |   // Per X.690 8.1.2.2, tag values 0-30 shall be encoded in the short form.
   68|       |   // Long-form encoding is reserved for tag values >= 31 (X.690 8.1.2.3).
   69|       |   // This is unconditional and applies to BER as well as DER.
   70|  3.82k|   if(tag_buf <= 30) {
  ------------------
  |  Branch (70:7): [True: 24, False: 3.80k]
  ------------------
   71|     24|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
   72|     24|   }
   73|       |
   74|  3.80k|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (74:7): [True: 1, False: 3.80k]
  ------------------
   75|      1|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
   76|      1|   }
   77|       |
   78|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
   79|  3.80k|   type_tag = ASN1_Type(tag_buf);
   80|  3.80k|   return tag_bytes;
   81|  3.80k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceEmbb:
  126|   274k|BerDecodedLength decode_length(DataSource* ber, size_t allow_indef, bool der_mode, bool constructed) {
  127|   274k|   uint8_t b = 0;
  128|   274k|   if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (128:7): [True: 176, False: 274k]
  ------------------
  129|    176|      throw BER_Decoding_Error("Length field not found");
  130|    176|   }
  131|   274k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (131:7): [True: 250k, False: 23.5k]
  ------------------
  132|   250k|      return BerDecodedLength(b, 1);
  133|   250k|   }
  134|       |
  135|  23.5k|   const size_t num_length_bytes = (b & 0x7F);
  136|  23.5k|   if(num_length_bytes > 4) {
  ------------------
  |  Branch (136:7): [True: 709, False: 22.8k]
  ------------------
  137|    709|      throw BER_Decoding_Error("Length field is too large");
  138|    709|   }
  139|       |
  140|  22.8k|   const size_t field_size = 1 + num_length_bytes;
  141|       |
  142|  22.8k|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (142:7): [True: 27, False: 22.8k]
  ------------------
  143|     27|      if(der_mode) {
  ------------------
  |  Branch (143:10): [True: 27, False: 0]
  ------------------
  144|     27|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  145|     27|      } else if(!constructed) {
  ------------------
  |  Branch (145:17): [True: 0, False: 0]
  ------------------
  146|       |         // Indefinite length is only valid for constructed types (X.690 8.1.3.2)
  147|      0|         throw BER_Decoding_Error("Indefinite-length encoding used with non-constructed type");
  148|      0|      } else if(allow_indef == 0) {
  ------------------
  |  Branch (148:17): [True: 0, False: 0]
  ------------------
  149|      0|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
  150|      0|      } else {
  151|       |         // find_eoc returns bytes up to and including the EOC marker.
  152|       |         // Return the content length; the caller consumes the EOC separately.
  153|      0|         const size_t eoc_len = find_eoc(ber, /*base_offset=*/0, allow_indef - 1);
  154|      0|         if(eoc_len < 2) {
  ------------------
  |  Branch (154:13): [True: 0, False: 0]
  ------------------
  155|      0|            throw BER_Decoding_Error("Invalid EOC encoding");
  156|      0|         }
  157|      0|         return BerDecodedLength::indefinite(eoc_len - 2, field_size);
  158|      0|      }
  159|     27|   }
  160|       |
  161|  22.8k|   size_t length = 0;
  162|       |
  163|  62.3k|   for(size_t i = 0; i != num_length_bytes; ++i) {
  ------------------
  |  Branch (163:22): [True: 39.5k, False: 22.8k]
  ------------------
  164|  39.5k|      if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (164:10): [True: 8, False: 39.5k]
  ------------------
  165|      8|         throw BER_Decoding_Error("Corrupted length field");
  166|      8|      }
  167|       |      // Can't overflow since we already checked that num_length_bytes <= 4
  168|  39.5k|      length = (length << 8) | b;
  169|  39.5k|   }
  170|       |
  171|       |   // DER requires shortest possible length encoding
  172|  22.8k|   if(der_mode) {
  ------------------
  |  Branch (172:7): [True: 22.8k, False: 0]
  ------------------
  173|  22.8k|      if(length < 128) {
  ------------------
  |  Branch (173:10): [True: 39, False: 22.8k]
  ------------------
  174|     39|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  175|     39|      }
  176|  22.8k|      if(num_length_bytes > 1 && length < (size_t(1) << ((num_length_bytes - 1) * 8))) {
  ------------------
  |  Branch (176:10): [True: 16.5k, False: 6.28k]
  |  Branch (176:34): [True: 3, False: 16.5k]
  ------------------
  177|      3|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  178|      3|      }
  179|  22.8k|   }
  180|       |
  181|  22.8k|   return BerDecodedLength(length, field_size);
  182|  22.8k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emm:
   99|   273k|            BerDecodedLength(content_length, field_length, false) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emmb:
  116|   273k|            m_content_length(content_length), m_field_length(field_length), m_indefinite(indefinite) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedENS_10ASN1_ClassE:
   20|   297k|bool is_constructed(ASN1_Class class_tag) {
   21|   297k|   return (static_cast<uint32_t>(class_tag) & static_cast<uint32_t>(ASN1_Class::Constructed)) != 0;
   22|   297k|}
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength14content_lengthEv:
  105|   817k|      size_t content_length() const { return m_content_length; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength17indefinite_lengthEv:
  112|   272k|      bool indefinite_length() const { return m_indefinite; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12total_lengthEv:
  108|   273k|      size_t total_length() const { return m_indefinite ? m_content_length + 2 : m_content_length; }
  ------------------
  |  Branch (108:44): [True: 0, False: 273k]
  ------------------
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  357|  91.7k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  327|  4.94M|      size_t read(uint8_t out[], size_t length) override {
  328|  4.94M|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|  4.94M|   do {                                                                     \
  |  |   78|  4.94M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.94M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.94M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.94M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.94M]
  |  |  ------------------
  ------------------
  329|  4.94M|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  330|  4.94M|         copy_mem(out, m_obj.bits() + m_offset, got);
  331|  4.94M|         m_offset += got;
  332|  4.94M|         return got;
  333|  4.94M|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  348|   187k|      bool check_available(size_t n) override {
  349|   187k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|   187k|   do {                                                                     \
  |  |   78|   187k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   187k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 187k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   187k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 187k]
  |  |  ------------------
  ------------------
  350|   187k|         return (n <= (m_obj.length() - m_offset));
  351|   187k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  353|   177k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  355|   177k|      size_t get_bytes_read() const override { return m_offset; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedERKNS_10BER_ObjectE:
  709|  23.2k|bool is_constructed(const BER_Object& obj) {
  710|  23.2k|   return is_constructed(obj.class_tag());
  711|  23.2k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINSt3__19allocatorIhEEEEvRNS2_6vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassEb:
  719|  23.5k|                               bool require_der) {
  720|  23.5k|   obj.assert_is_a(type_tag, class_tag);
  721|       |
  722|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding
  723|  23.5k|   if(require_der && is_constructed(obj)) {
  ------------------
  |  Branch (723:7): [True: 23.2k, False: 249]
  |  Branch (723:22): [True: 0, False: 23.2k]
  ------------------
  724|      0|      throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  725|      0|   }
  726|       |
  727|  23.5k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (727:7): [True: 15.3k, False: 8.20k]
  ------------------
  728|  15.3k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  729|  15.3k|   } else {
  730|  8.20k|      if(obj.length() == 0) {
  ------------------
  |  Branch (730:10): [True: 2, False: 8.20k]
  ------------------
  731|      2|         throw BER_Decoding_Error("Invalid BIT STRING");
  732|      2|      }
  733|       |
  734|  8.20k|      const uint8_t unused_bits = obj.bits()[0];
  735|       |
  736|  8.20k|      if(unused_bits >= 8) {
  ------------------
  |  Branch (736:10): [True: 26, False: 8.17k]
  ------------------
  737|     26|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  738|     26|      }
  739|       |
  740|       |      // Empty BIT STRING with unused bits > 0 ...
  741|  8.17k|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (741:10): [True: 1.05k, False: 7.11k]
  |  Branch (741:29): [True: 6, False: 1.05k]
  ------------------
  742|      6|         throw BER_Decoding_Error("Invalid BIT STRING");
  743|      6|      }
  744|       |
  745|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  746|  8.16k|      if(require_der && unused_bits > 0) {
  ------------------
  |  Branch (746:10): [True: 7.91k, False: 249]
  |  Branch (746:25): [True: 1.05k, False: 6.86k]
  ------------------
  747|  1.05k|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  748|  1.05k|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (748:13): [True: 113, False: 940]
  ------------------
  749|    113|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  750|    113|         }
  751|  1.05k|      }
  752|       |
  753|  8.05k|      buffer.resize(obj.length() - 1);
  754|       |
  755|  8.05k|      if(obj.length() > 1) {
  ------------------
  |  Branch (755:10): [True: 7.59k, False: 463]
  ------------------
  756|  7.59k|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  757|  7.59k|      }
  758|  8.05k|   }
  759|  23.5k|}

_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   72|  13.9k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   73|  13.9k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };
   74|  13.9k|}
_ZN5Botan11DER_Encoder12DER_Sequence13push_contentsERS0_:
   79|  11.6k|void DER_Encoder::DER_Sequence::push_contents(DER_Encoder& der) {
   80|  11.6k|   const auto real_class_tag = m_class_tag | ASN1_Class::Constructed;
   81|       |
   82|  11.6k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (82:7): [True: 0, False: 11.6k]
  |  Branch (82:39): [True: 0, False: 0]
  ------------------
   83|      0|      std::sort(m_set_contents.begin(), m_set_contents.end());
   84|      0|      for(const auto& set_elem : m_set_contents) {
  ------------------
  |  Branch (84:32): [True: 0, False: 0]
  ------------------
   85|      0|         m_contents += set_elem;
   86|      0|      }
   87|      0|      m_set_contents.clear();
   88|      0|   }
   89|       |
   90|  11.6k|   der.add_object(m_type_tag, real_class_tag, m_contents.data(), m_contents.size());
   91|  11.6k|   m_contents.clear();
   92|  11.6k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhm:
   97|  10.9k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t data[], size_t length) {
   98|  10.9k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (98:7): [True: 0, False: 10.9k]
  |  Branch (98:39): [True: 0, False: 0]
  ------------------
   99|      0|      m_set_contents.push_back(secure_vector<uint8_t>(data, data + length));
  100|  10.9k|   } else {
  101|  10.9k|      m_contents += std::make_pair(data, length);
  102|  10.9k|   }
  103|  10.9k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhmS3_m:
  105|  2.90k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t hdr[], size_t hdr_len, const uint8_t val[], size_t val_len) {
  106|  2.90k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (106:7): [True: 0, False: 2.90k]
  |  Branch (106:39): [True: 0, False: 0]
  ------------------
  107|      0|      secure_vector<uint8_t> m;
  108|      0|      m.reserve(hdr_len + val_len);
  109|      0|      m += std::make_pair(hdr, hdr_len);
  110|      0|      m += std::make_pair(val, val_len);
  111|      0|      m_set_contents.push_back(std::move(m));
  112|  2.90k|   } else {
  113|  2.90k|      m_contents += std::make_pair(hdr, hdr_len);
  114|  2.90k|      m_contents += std::make_pair(val, val_len);
  115|  2.90k|   }
  116|  2.90k|}
_ZN5Botan11DER_Encoder12DER_SequenceC2ENS_9ASN1_TypeENS_10ASN1_ClassE:
  129|  11.6k|      m_type_tag(type_tag), m_class_tag(class_tag) {}
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  165|  11.6k|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  166|  11.6k|   m_subsequences.push_back(DER_Sequence(type_tag, class_tag));
  167|  11.6k|   return (*this);
  168|  11.6k|}
_ZN5Botan11DER_Encoder8end_consEv:
  173|  11.6k|DER_Encoder& DER_Encoder::end_cons() {
  174|  11.6k|   if(m_subsequences.empty()) {
  ------------------
  |  Branch (174:7): [True: 0, False: 11.6k]
  ------------------
  175|      0|      throw Invalid_State("DER_Encoder::end_cons: No such sequence");
  176|      0|   }
  177|       |
  178|  11.6k|   DER_Sequence last_seq = std::move(m_subsequences[m_subsequences.size() - 1]);
  179|  11.6k|   m_subsequences.pop_back();
  180|  11.6k|   last_seq.push_contents(*this);
  181|       |
  182|  11.6k|   return (*this);
  183|  11.6k|}
_ZN5Botan11DER_Encoder9raw_bytesEPKhm:
  202|  10.9k|DER_Encoder& DER_Encoder::raw_bytes(const uint8_t bytes[], size_t length) {
  203|  10.9k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (203:7): [True: 10.9k, False: 0]
  ------------------
  204|  10.9k|      m_subsequences[m_subsequences.size() - 1].add_bytes(bytes, length);
  205|  10.9k|   } else if(m_append_output) {
  ------------------
  |  Branch (205:14): [True: 0, False: 0]
  ------------------
  206|      0|      m_append_output(bytes, length);
  207|      0|   } else {
  208|      0|      m_default_outbuf += std::make_pair(bytes, length);
  209|      0|   }
  210|       |
  211|  10.9k|   return (*this);
  212|  10.9k|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  244|  16.8k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  245|  16.8k|   std::vector<uint8_t> hdr;
  246|  16.8k|   encode_tag(hdr, type_tag, class_tag);
  247|  16.8k|   encode_length(hdr, length);
  248|       |
  249|  16.8k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (249:7): [True: 2.90k, False: 13.9k]
  ------------------
  250|  2.90k|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  251|  13.9k|   } else if(m_append_output) {
  ------------------
  |  Branch (251:14): [True: 13.9k, False: 1]
  ------------------
  252|  13.9k|      m_append_output(hdr.data(), hdr.size());
  253|  13.9k|      m_append_output(rep, length);
  254|  13.9k|   } else {
  255|      1|      m_default_outbuf += hdr;
  256|      1|      m_default_outbuf += std::make_pair(rep, length);
  257|      1|   }
  258|       |
  259|  16.8k|   return (*this);
  260|  16.8k|}
_ZN5Botan11DER_Encoder6encodeEPKhmNS_9ASN1_TypeE:
  293|    727|DER_Encoder& DER_Encoder::encode(const uint8_t bytes[], size_t length, ASN1_Type real_type) {
  294|    727|   return encode(bytes, length, real_type, real_type, ASN1_Class::Universal);
  295|    727|}
_ZN5Botan11DER_Encoder6encodeEPKhmNS_9ASN1_TypeES3_NS_10ASN1_ClassE:
  350|    727|   const uint8_t bytes[], size_t length, ASN1_Type real_type, ASN1_Type type_tag, ASN1_Class class_tag) {
  351|    727|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (351:7): [True: 727, False: 0]
  |  Branch (351:46): [True: 0, False: 727]
  ------------------
  352|      0|      throw Invalid_Argument("DER_Encoder: Invalid tag for byte/bit string");
  353|      0|   }
  354|       |
  355|    727|   if(real_type == ASN1_Type::BitString) {
  ------------------
  |  Branch (355:7): [True: 727, False: 0]
  ------------------
  356|    727|      secure_vector<uint8_t> encoded;
  357|    727|      encoded.push_back(0);
  358|    727|      encoded += std::make_pair(bytes, length);
  359|    727|      return add_object(type_tag, class_tag, encoded);
  360|    727|   } else {
  361|      0|      return add_object(type_tag, class_tag, bytes, length);
  362|      0|   }
  363|    727|}
_ZN5Botan11DER_Encoder6encodeERKNS_11ASN1_ObjectE:
  365|  1.45k|DER_Encoder& DER_Encoder::encode(const ASN1_Object& obj) {
  366|  1.45k|   obj.encode_into(*this);
  367|  1.45k|   return (*this);
  368|  1.45k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   25|  16.8k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   26|  16.8k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   27|  16.8k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   28|       |
   29|  16.8k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (29:7): [True: 1, False: 16.8k]
  ------------------
   30|      1|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   31|      1|   }
   32|       |
   33|  16.8k|   if(type_tag <= 30) {
  ------------------
  |  Branch (33:7): [True: 16.8k, False: 0]
  ------------------
   34|  16.8k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   35|  16.8k|   } else {
   36|      0|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   37|      0|      blocks = (blocks - (blocks % 7)) / 7;
   38|       |
   39|      0|      BOTAN_ASSERT_NOMSG(blocks > 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   40|       |
   41|      0|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   42|      0|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (42:25): [True: 0, False: 0]
  ------------------
   43|      0|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   44|      0|      }
   45|      0|      encoded_tag.push_back(type_tag & 0x7F);
   46|      0|   }
   47|  16.8k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   52|  16.8k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   53|  16.8k|   if(length <= 127) {
  ------------------
  |  Branch (53:7): [True: 13.2k, False: 3.63k]
  ------------------
   54|  13.2k|      encoded_length.push_back(static_cast<uint8_t>(length));
   55|  13.2k|   } else {
   56|  3.63k|      const size_t bytes_needed = significant_bytes(length);
   57|       |
   58|  3.63k|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   59|       |
   60|  10.1k|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (60:53): [True: 6.47k, False: 3.63k]
  ------------------
   61|  6.47k|         encoded_length.push_back(get_byte_var(i, length));
   62|  6.47k|      }
   63|  3.63k|   }
   64|  16.8k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   73|  27.9k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };

_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.44k|OID_Map& OID_Map::global_registry() {
   17|  1.44k|   static OID_Map g_map;
   18|  1.44k|   return g_map;
   19|  1.44k|}
_ZN5Botan7OID_Map7str2oidENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   84|  1.44k|OID OID_Map::str2oid(std::string_view str) {
   85|  1.44k|   if(auto oid = lookup_static_oid_name(str)) {
  ------------------
  |  Branch (85:12): [True: 1.44k, False: 0]
  ------------------
   86|  1.44k|      return std::move(*oid);
   87|  1.44k|   }
   88|       |
   89|      0|   const lock_guard_type<mutex_type> lock(m_mutex);
   90|      0|   auto i = m_str2oid.find(std::string(str));
   91|      0|   if(i != m_str2oid.end()) {
  ------------------
  |  Branch (91:7): [True: 0, False: 0]
  ------------------
   92|      0|      return i->second;
   93|      0|   }
   94|       |
   95|      0|   return OID();
   96|      0|}

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

_ZN5Botan20Buffered_Computation5finalENSt3__14spanIhLm18446744073709551615EEE:
   54|  1.45k|void Buffered_Computation::final(std::span<uint8_t> out) {
   55|  1.45k|   BOTAN_ARG_CHECK(out.size() >= output_length(), "provided output buffer has insufficient capacity");
  ------------------
  |  |   35|  1.45k|   do {                                                          \
  |  |   36|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.45k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
   56|  1.45k|   final_result(out);
   57|  1.45k|}

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

_ZN5Botan10hex_encodeEPcPKhmb:
   34|  1.45k|void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase) {
   35|  39.2k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (35:22): [True: 37.8k, False: 1.45k]
  ------------------
   36|  37.8k|      const uint16_t h = hex_encode_2nibble(input[i], uppercase);
   37|  37.8k|      output[2 * i] = get_byte<0>(h);
   38|  37.8k|      output[2 * i + 1] = get_byte<1>(h);
   39|  37.8k|   }
   40|  1.45k|}
_ZN5Botan10hex_encodeEPKhmb:
   42|  1.45k|std::string hex_encode(const uint8_t input[], size_t input_length, bool uppercase) {
   43|  1.45k|   std::string output(2 * input_length, 0);
   44|       |
   45|  1.45k|   if(input_length > 0) {
  ------------------
  |  Branch (45:7): [True: 1.45k, False: 0]
  ------------------
   46|  1.45k|      hex_encode(&output.front(), input, input_length, uppercase);
   47|  1.45k|   }
   48|       |
   49|  1.45k|   return output;
   50|  1.45k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_118hex_encode_2nibbleEhb:
   21|  37.8k|uint16_t hex_encode_2nibble(uint8_t n8, bool uppercase) {
   22|       |   // Offset for upper or lower case 'a' resp
   23|  37.8k|   const uint16_t a_mask = uppercase ? 0x0707 : 0x2727;
  ------------------
  |  Branch (23:28): [True: 37.8k, False: 0]
  ------------------
   24|       |
   25|  37.8k|   const uint16_t n = (static_cast<uint16_t>(n8 & 0xF0) << 4) | (n8 & 0x0F);
   26|       |   // n >= 10? If so add offset
   27|  37.8k|   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|  37.8k|   return n + 0x3030 + diff;
   30|  37.8k|}

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

_ZN5Botan5SHA_110compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   24|  3.13k|void SHA_1::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   25|  3.13k|   using namespace SHA1_F;
   26|       |
   27|  3.13k|#if defined(BOTAN_HAS_SHA1_X86_SHA_NI)
   28|  3.13k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (28:7): [True: 3.13k, False: 0]
  ------------------
   29|  3.13k|      return sha1_compress_x86(digest, input, blocks);
   30|  3.13k|   }
   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.18k|void SHA_1::init(digest_type& digest) {
  175|  2.18k|   digest.assign({0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0});
  176|  2.18k|}
_ZN5Botan5SHA_18add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  214|  1.45k|void SHA_1::add_data(std::span<const uint8_t> input) {
  215|  1.45k|   m_md.update(input);
  216|  1.45k|}
_ZN5Botan5SHA_112final_resultENSt3__14spanIhLm18446744073709551615EEE:
  218|  1.45k|void SHA_1::final_result(std::span<uint8_t> output) {
  219|  1.45k|   m_md.final(output);
  220|  1.45k|}

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

_ZN5Botan7SHA_25615compress_digestERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   59|  4.48k|                                                             size_t blocks) {
   60|  4.48k|#if defined(BOTAN_HAS_SHA2_32_X86)
   61|  4.48k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (61:7): [True: 4.48k, False: 0]
  ------------------
   62|  4.48k|      return SHA_256::compress_digest_x86(digest, input, blocks);
   63|  4.48k|   }
   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], 0x428A2F98);
  103|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x71374491);
  104|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0xB5C0FBCF);
  105|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0xE9B5DBA5);
  106|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x3956C25B);
  107|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x59F111F1);
  108|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x923F82A4);
  109|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0xAB1C5ED5);
  110|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xD807AA98);
  111|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x12835B01);
  112|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x243185BE);
  113|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x550C7DC3);
  114|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x72BE5D74);
  115|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0x80DEB1FE);
  116|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x9BDC06A7);
  117|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC19BF174);
  118|       |
  119|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0xE49B69C1);
  120|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0xEFBE4786);
  121|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x0FC19DC6);
  122|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x240CA1CC);
  123|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x2DE92C6F);
  124|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4A7484AA);
  125|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5CB0A9DC);
  126|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x76F988DA);
  127|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x983E5152);
  128|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA831C66D);
  129|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xB00327C8);
  130|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xBF597FC7);
  131|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xC6E00BF3);
  132|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD5A79147);
  133|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x06CA6351);
  134|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x14292967);
  135|       |
  136|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x27B70A85);
  137|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x2E1B2138);
  138|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x4D2C6DFC);
  139|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x53380D13);
  140|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x650A7354);
  141|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x766A0ABB);
  142|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x81C2C92E);
  143|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x92722C85);
  144|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xA2BFE8A1);
  145|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA81A664B);
  146|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xC24B8B70);
  147|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xC76C51A3);
  148|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xD192E819);
  149|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD6990624);
  150|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xF40E3585);
  151|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x106AA070);
  152|       |
  153|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x19A4C116);
  154|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x1E376C08);
  155|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x2748774C);
  156|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x34B0BCB5);
  157|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x391C0CB3);
  158|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4ED8AA4A);
  159|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5B9CCA4F);
  160|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x682E6FF3);
  161|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x748F82EE);
  162|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x78A5636F);
  163|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x84C87814);
  164|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x8CC70208);
  165|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x90BEFFFA);
  166|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xA4506CEB);
  167|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xBEF9A3F7);
  168|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC67178F2);
  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.48k|void SHA_256::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  216|  4.48k|   SHA_256::compress_digest(digest, input, blocks);
  217|  4.48k|}
_ZN5Botan7SHA_2564initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  219|  2.90k|void SHA_256::init(digest_type& digest) {
  220|  2.90k|   digest.assign({0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19});
  221|  2.90k|}
_ZN5Botan7SHA_2568add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  231|  2.18k|void SHA_256::add_data(std::span<const uint8_t> input) {
  232|  2.18k|   m_md.update(input);
  233|  2.18k|}
_ZN5Botan7SHA_25612final_resultENSt3__14spanIhLm18446744073709551615EEE:
  235|  2.18k|void SHA_256::final_result(std::span<uint8_t> output) {
  236|  2.18k|   m_md.final(output);
  237|  2.18k|}

_ZN5Botan7SHA_25619compress_digest_x86ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   58|  4.48k|                                                                                    size_t blocks) {
   59|  4.48k|   alignas(64) static const uint32_t K[] = {
   60|  4.48k|      0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
   61|  4.48k|      0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
   62|  4.48k|      0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
   63|  4.48k|      0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
   64|  4.48k|      0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
   65|  4.48k|      0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
   66|  4.48k|      0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
   67|  4.48k|      0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2,
   68|  4.48k|   };
   69|       |
   70|  4.48k|   const uint8_t* input = input_span.data();
   71|       |
   72|  4.48k|   SIMD_4x32 S0 = SIMD_4x32::load_le(&digest[0]);  // NOLINT(*container-data-pointer)
   73|  4.48k|   SIMD_4x32 S1 = SIMD_4x32::load_le(&digest[4]);
   74|       |
   75|  4.48k|   sha256_permute_state(S0, S1);
   76|       |
   77|  33.1k|   while(blocks > 0) {
  ------------------
  |  Branch (77:10): [True: 28.7k, False: 4.48k]
  ------------------
   78|  28.7k|      const auto S0_SAVE = S0;
   79|  28.7k|      const auto S1_SAVE = S1;
   80|       |
   81|  28.7k|      auto W0 = SIMD_4x32::load_be(input);
   82|  28.7k|      auto W1 = SIMD_4x32::load_be(input + 16);
   83|  28.7k|      auto W2 = SIMD_4x32::load_be(input + 32);
   84|  28.7k|      auto W3 = SIMD_4x32::load_be(input + 48);
   85|       |
   86|  28.7k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[0]));
   87|  28.7k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4]));
   88|  28.7k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[8]));
   89|  28.7k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[12]));
   90|       |
   91|  28.7k|      W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   92|  28.7k|      W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   93|       |
   94|  28.7k|      sha256_msg_exp(W2, W3, W0, W1);
   95|       |
   96|  28.7k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 4]));
   97|  28.7k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 5]));
   98|       |
   99|  28.7k|      sha256_msg_exp(W0, W1, W2, W3);
  100|       |
  101|  28.7k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 6]));
  102|  28.7k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 7]));
  103|       |
  104|  28.7k|      sha256_msg_exp(W2, W3, W0, W1);
  105|       |
  106|  28.7k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 8]));
  107|  28.7k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 9]));
  108|       |
  109|  28.7k|      sha256_msg_exp(W0, W1, W2, W3);
  110|       |
  111|  28.7k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 10]));
  112|  28.7k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 11]));
  113|       |
  114|  28.7k|      sha256_msg_exp(W2, W3, W0, W1);
  115|       |
  116|  28.7k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 12]));
  117|  28.7k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 13]));
  118|       |
  119|  28.7k|      sha256_msg_exp(W0, W1, W2, W3);
  120|       |
  121|  28.7k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 14]));
  122|  28.7k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 15]));
  123|       |
  124|       |      // Add values back to state
  125|  28.7k|      S0 += S0_SAVE;
  126|  28.7k|      S1 += S1_SAVE;
  127|       |
  128|  28.7k|      input += 64;
  129|  28.7k|      blocks--;
  130|  28.7k|   }
  131|       |
  132|  4.48k|   sha256_permute_state(S1, S0);
  133|       |
  134|  4.48k|   S0.store_le(&digest[0]);  // NOLINT(*container-data-pointer)
  135|  4.48k|   S1.store_le(&digest[4]);
  136|  4.48k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_120sha256_permute_stateERNS_9SIMD_4x32ES2_:
   43|  8.96k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_permute_state(SIMD_4x32& S0, SIMD_4x32& S1) {
   44|  8.96k|   S0 = SIMD_4x32(_mm_shuffle_epi32(S0.raw(), 0b10110001));  // CDAB
   45|  8.96k|   S1 = SIMD_4x32(_mm_shuffle_epi32(S1.raw(), 0b00011011));  // EFGH
   46|       |
   47|  8.96k|   const auto T = SIMD_4x32::alignr8(S0, S1);                  // ABEF
   48|       |   S1 = SIMD_4x32(_mm_blend_epi16(S1.raw(), S0.raw(), 0xF0));  // CDGH
   49|  8.96k|   S0 = T;
   50|  8.96k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_112sha256_rnds4ERNS_9SIMD_4x32ES2_RKS1_S4_:
   27|   459k|                                                        const SIMD_4x32& k) {
   28|   459k|   const auto mk = msg + k;
   29|   459k|   S1 = SIMD_4x32(_mm_sha256rnds2_epu32(S1.raw(), S0.raw(), mk.raw()));
   30|   459k|   S0 = SIMD_4x32(_mm_sha256rnds2_epu32(S0.raw(), S1.raw(), mk.shift_elems_right<2>().raw()));
   31|   459k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha256_msg_expERNS_9SIMD_4x32ES2_S2_S2_:
   33|   172k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_msg_exp(SIMD_4x32& W0, SIMD_4x32& W1, SIMD_4x32& W2, SIMD_4x32& W3) {
   34|   172k|   W2 += SIMD_4x32::alignr4(W1, W0);
   35|   172k|   W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   36|   172k|   W2 = SIMD_4x32(_mm_sha256msg2_epu32(W2.raw(), W1.raw()));
   37|       |
   38|   172k|   W3 += SIMD_4x32::alignr4(W2, W1);
   39|   172k|   W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   40|   172k|   W3 = SIMD_4x32(_mm_sha256msg2_epu32(W3.raw(), W2.raw()));
   41|   172k|}

_ZNK5Botan6BigInt7byte_atEm:
  118|  34.2k|uint8_t BigInt::byte_at(size_t n) const {
  119|  34.2k|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  120|  34.2k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  12.4k|void BigInt::Data::set_to_zero() {
  192|  12.4k|   m_reg.resize(m_reg.capacity());
  193|  12.4k|   clear_mem(m_reg.data(), m_reg.size());
  194|  12.4k|   m_sig_words = 0;
  195|  12.4k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  11.9k|size_t BigInt::Data::calc_sig_words() const {
  216|  11.9k|   const size_t sz = m_reg.size();
  217|  11.9k|   size_t sig = sz;
  218|       |
  219|  11.9k|   word sub = 1;
  220|       |
  221|   109k|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 97.4k, False: 11.9k]
  ------------------
  222|  97.4k|      const word w = m_reg[sz - i - 1];
  223|  97.4k|      sub &= ct_is_zero(w);
  224|  97.4k|      sig -= sub;
  225|  97.4k|   }
  226|       |
  227|       |   /*
  228|       |   * This depends on the data so is poisoned, but unpoison it here as
  229|       |   * later conditionals are made on the size.
  230|       |   */
  231|  11.9k|   CT::unpoison(sig);
  232|       |
  233|  11.9k|   return sig;
  234|  11.9k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  6.34k|size_t BigInt::bytes() const {
  295|  6.34k|   return round_up(bits(), 8) / 8;
  296|  6.34k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  14.4k|size_t BigInt::top_bits_free() const {
  299|  14.4k|   const size_t words = sig_words();
  300|       |
  301|  14.4k|   const word top_word = word_at(words - 1);
  302|  14.4k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  14.4k|   CT::unpoison(bits_used);
  304|  14.4k|   return WordInfo<word>::bits - bits_used;
  305|  14.4k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  14.9k|size_t BigInt::bits() const {
  308|  14.9k|   const size_t words = sig_words();
  309|       |
  310|  14.9k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 488, False: 14.4k]
  ------------------
  311|    488|      return 0;
  312|    488|   }
  313|       |
  314|  14.4k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  14.4k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  14.4k|   return full_words + top_bits;
  318|  14.9k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|  3.17k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|  3.17k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  3.17k|   do {                                                          \
  |  |   36|  3.17k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.17k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 3.17k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.17k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.17k]
  |  |  ------------------
  ------------------
  397|       |
  398|  3.17k|   this->binary_encode(output.data(), output.size());
  399|  3.17k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|  3.17k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|  3.17k|   const size_t full_words = len / sizeof(word);
  406|  3.17k|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|  7.99k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 4.82k, False: 3.17k]
  ------------------
  409|  4.82k|      const word w = word_at(i);
  410|  4.82k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|  4.82k|   }
  412|       |
  413|  3.17k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 802, False: 2.37k]
  ------------------
  414|    802|      const word w = word_at(full_words);
  415|       |
  416|  2.38k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 1.58k, False: 802]
  ------------------
  417|  1.58k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|  1.58k|      }
  419|    802|   }
  420|  3.17k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  12.4k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  12.4k|   clear();
  427|       |
  428|  12.4k|   const size_t length = bytes.size();
  429|  12.4k|   const size_t full_words = length / sizeof(word);
  430|  12.4k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  12.4k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 10.1k, False: 2.26k]
  ------------------
  433|       |
  434|  20.0k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 7.61k, False: 12.4k]
  ------------------
  435|  7.61k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|  7.61k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|  7.61k|   }
  438|       |
  439|  12.4k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 10.1k, False: 2.26k]
  ------------------
  440|  10.1k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  10.1k|   do {                                                                     \
  |  |   78|  10.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  10.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 10.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  10.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  441|  10.1k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  10.1k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  10.1k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  10.1k|   }
  445|       |
  446|  12.4k|   m_data.swap(reg);
  447|  12.4k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  12.6k|void BigInt::_const_time_unpoison() const {
  560|  12.6k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  12.6k|}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    330|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    330|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    330|   label.clear();
   66|       |
   67|    330|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    330|   const std::string PEM_HEADER2 = "-----";
   69|    330|   size_t position = 0;
   70|       |
   71|  9.97k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 9.68k, False: 286]
  ------------------
   72|  9.68k|      auto b = source.read_byte();
   73|       |
   74|  9.68k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 43, False: 9.64k]
  ------------------
   75|     43|         throw Decoding_Error("PEM: No PEM header found");
   76|     43|      }
   77|  9.64k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 3.43k, False: 6.20k]
  ------------------
   78|  3.43k|         ++position;
   79|  6.20k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 6.20k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  6.20k|      } else {
   82|  6.20k|         position = 0;
   83|  6.20k|      }
   84|  9.64k|   }
   85|    286|   position = 0;
   86|  4.51k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 4.27k, False: 241]
  ------------------
   87|  4.27k|      auto b = source.read_byte();
   88|       |
   89|  4.27k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 41, False: 4.23k]
  ------------------
   90|     41|         throw Decoding_Error("PEM: No PEM header found");
   91|     41|      }
   92|  4.23k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 1.22k, False: 3.01k]
  ------------------
   93|  1.22k|         ++position;
   94|  3.01k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 3, False: 3.00k]
  ------------------
   95|      3|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      3|      }
   97|       |
   98|  4.23k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 3.00k, False: 1.22k]
  ------------------
   99|  3.00k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 3.00k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  3.00k|         label += static_cast<char>(*b);
  103|  3.00k|      }
  104|  4.23k|   }
  105|       |
  106|    241|   std::vector<char> b64;
  107|       |
  108|    241|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    241|   position = 0;
  110|  82.7k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 82.5k, False: 163]
  ------------------
  111|  82.5k|      auto b = source.read_byte();
  112|       |
  113|  82.5k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 69, False: 82.5k]
  ------------------
  114|     69|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     69|      }
  116|  82.5k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 3.15k, False: 79.3k]
  ------------------
  117|  3.15k|         ++position;
  118|  79.3k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 9, False: 79.3k]
  ------------------
  119|      9|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|      9|      }
  121|       |
  122|  82.5k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 79.3k, False: 3.15k]
  ------------------
  123|  79.3k|         b64.push_back(*b);
  124|  79.3k|      }
  125|  82.5k|   }
  126|       |
  127|    163|   return base64_decode(b64.data(), b64.size());
  128|    241|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  4.57k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  4.57k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  4.57k|   secure_vector<uint8_t> search_buf(search_range);
  147|  4.57k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  4.57k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 409, False: 4.16k]
  ------------------
  150|    409|      return false;
  151|    409|   }
  152|       |
  153|  4.16k|   size_t index = 0;
  154|       |
  155|  4.44M|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 4.44M, False: 4.15k]
  ------------------
  156|  4.44M|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 36.2k, False: 4.40M]
  ------------------
  157|  36.2k|         ++index;
  158|  4.40M|      } else {
  159|  4.40M|         index = 0;
  160|  4.40M|      }
  161|       |
  162|  4.44M|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 10, False: 4.44M]
  ------------------
  163|     10|         return true;
  164|     10|      }
  165|  4.44M|   }
  166|       |
  167|  4.15k|   return false;
  168|  4.16k|}

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

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

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

_ZN5Botan13is_valid_utf8ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  106|  5.77k|bool is_valid_utf8(const std::string& utf8) {
  107|  5.77k|   try {
  108|  5.77k|      size_t pos = 0;
  109|  72.2k|      while(pos < utf8.size()) {
  ------------------
  |  Branch (109:13): [True: 66.4k, False: 5.77k]
  ------------------
  110|  66.4k|         const uint32_t c = next_utf8_codepoint(utf8, pos);
  111|  66.4k|         BOTAN_UNUSED(c);
  ------------------
  |  |  144|  66.4k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  112|  66.4k|      }
  113|  5.77k|   } catch(Decoding_Error&) {
  114|  2.47k|      return false;
  115|  2.47k|   }
  116|  3.29k|   return true;
  117|  5.77k|}
_ZN5Botan12ucs2_to_utf8EPKhm:
  119|  3.40k|std::string ucs2_to_utf8(const uint8_t ucs2[], size_t len) {
  120|  3.40k|   if(len % 2 != 0) {
  ------------------
  |  Branch (120:7): [True: 3, False: 3.40k]
  ------------------
  121|      3|      throw Decoding_Error("Invalid length for UCS-2 string");
  122|      3|   }
  123|       |
  124|  3.40k|   const size_t chars = len / 2;
  125|       |
  126|  3.40k|   std::string s;
  127|  7.78k|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (127:22): [True: 4.38k, False: 3.40k]
  ------------------
  128|  4.38k|      const uint32_t c = load_be<uint16_t>(ucs2, i);
  129|  4.38k|      append_utf8_for(s, c);
  130|  4.38k|   }
  131|       |
  132|  3.40k|   return s;
  133|  3.40k|}
_ZN5Botan12ucs4_to_utf8EPKhm:
  153|     90|std::string ucs4_to_utf8(const uint8_t ucs4[], size_t len) {
  154|     90|   if(len % 4 != 0) {
  ------------------
  |  Branch (154:7): [True: 2, False: 88]
  ------------------
  155|      2|      throw Decoding_Error("Invalid length for UCS-4 string");
  156|      2|   }
  157|       |
  158|     88|   const size_t chars = len / 4;
  159|       |
  160|     88|   std::string s;
  161|    195|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (161:22): [True: 107, False: 88]
  ------------------
  162|    107|      const uint32_t c = load_be<uint32_t>(ucs4, i);
  163|    107|      append_utf8_for(s, c);
  164|    107|   }
  165|       |
  166|     88|   return s;
  167|     90|}
_ZN5Botan14latin1_to_utf8EPKhm:
  188|  1.11k|std::string latin1_to_utf8(const uint8_t chars[], size_t len) {
  189|  1.11k|   std::string s;
  190|  10.4k|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (190:22): [True: 9.31k, False: 1.11k]
  ------------------
  191|  9.31k|      const uint32_t c = static_cast<uint8_t>(chars[i]);
  192|  9.31k|      append_utf8_for(s, c);
  193|  9.31k|   }
  194|  1.11k|   return s;
  195|  1.11k|}
_ZN5Botan23format_char_for_displayEc:
  197|     40|std::string format_char_for_display(char c) {
  198|     40|   std::ostringstream oss;
  199|       |
  200|     40|   oss << "'";
  201|       |
  202|     40|   if(c == '\t') {
  ------------------
  |  Branch (202:7): [True: 0, False: 40]
  ------------------
  203|      0|      oss << "\\t";
  204|     40|   } else if(c == '\n') {
  ------------------
  |  Branch (204:14): [True: 0, False: 40]
  ------------------
  205|      0|      oss << "\\n";
  206|     40|   } else if(c == '\r') {
  ------------------
  |  Branch (206:14): [True: 0, False: 40]
  ------------------
  207|      0|      oss << "\\r";
  208|     40|   } else if(static_cast<unsigned char>(c) >= 128) {
  ------------------
  |  Branch (208:14): [True: 16, False: 24]
  ------------------
  209|     16|      const unsigned char z = static_cast<unsigned char>(c);
  210|     16|      oss << "\\x" << std::hex << std::uppercase << static_cast<int>(z);
  211|     24|   } else {
  212|     24|      oss << c;
  213|     24|   }
  214|       |
  215|     40|   oss << "'";
  216|       |
  217|     40|   return oss.str();
  218|     40|}
charset.cpp:_ZN5Botan12_GLOBAL__N_119next_utf8_codepointERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   52|  66.4k|uint32_t next_utf8_codepoint(const std::string& utf8, size_t& pos) {
   53|  66.4k|   auto read_continuation = [&]() -> uint32_t {
   54|  66.4k|      if(pos >= utf8.size()) {
   55|  66.4k|         throw Decoding_Error("Invalid UTF-8 sequence");
   56|  66.4k|      }
   57|  66.4k|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   58|  66.4k|      if((b & 0xC0) != 0x80) {
   59|  66.4k|         throw Decoding_Error("Invalid UTF-8 sequence");
   60|  66.4k|      }
   61|  66.4k|      return b & 0x3F;
   62|  66.4k|   };
   63|       |
   64|  66.4k|   const uint8_t lead = static_cast<uint8_t>(utf8[pos++]);
   65|  66.4k|   uint32_t c = 0;
   66|       |
   67|  66.4k|   if(lead <= 0x7F) {
  ------------------
  |  Branch (67:7): [True: 51.9k, False: 14.5k]
  ------------------
   68|  51.9k|      c = lead;
   69|  51.9k|   } else if((lead & 0xE0) == 0xC0) {
  ------------------
  |  Branch (69:14): [True: 12.9k, False: 1.56k]
  ------------------
   70|  12.9k|      c = (lead & 0x1F) << 6;
   71|  12.9k|      c |= read_continuation();
   72|  12.9k|      if(c < 0x80) {
  ------------------
  |  Branch (72:10): [True: 30, False: 12.9k]
  ------------------
   73|     30|         throw Decoding_Error("Overlong UTF-8 sequence");
   74|     30|      }
   75|  12.9k|   } else if((lead & 0xF0) == 0xE0) {
  ------------------
  |  Branch (75:14): [True: 655, False: 909]
  ------------------
   76|    655|      c = (lead & 0x0F) << 12;
   77|    655|      c |= read_continuation() << 6;
   78|    655|      c |= read_continuation();
   79|    655|      if(c < 0x800) {
  ------------------
  |  Branch (79:10): [True: 12, False: 643]
  ------------------
   80|     12|         throw Decoding_Error("Overlong UTF-8 sequence");
   81|     12|      }
   82|    909|   } else if((lead & 0xF8) == 0xF0) {
  ------------------
  |  Branch (82:14): [True: 58, False: 851]
  ------------------
   83|     58|      c = (lead & 0x07) << 18;
   84|     58|      c |= read_continuation() << 12;
   85|     58|      c |= read_continuation() << 6;
   86|     58|      c |= read_continuation();
   87|     58|      if(c < 0x10000) {
  ------------------
  |  Branch (87:10): [True: 4, False: 54]
  ------------------
   88|      4|         throw Decoding_Error("Overlong UTF-8 sequence");
   89|      4|      }
   90|    851|   } else {
   91|    851|      throw Decoding_Error("Invalid UTF-8 sequence");
   92|    851|   }
   93|       |
   94|  65.5k|   if(c > 0x10FFFF) {
  ------------------
  |  Branch (94:7): [True: 1, False: 65.5k]
  ------------------
   95|      1|      throw Decoding_Error("UTF-8 sequence encodes value outside Unicode range");
   96|      1|   }
   97|  65.5k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (97:7): [True: 72, False: 65.5k]
  |  Branch (97:22): [True: 24, False: 48]
  ------------------
   98|     24|      throw Decoding_Error("UTF-8 sequence encodes surrogate code point");
   99|     24|   }
  100|       |
  101|  65.5k|   return c;
  102|  65.5k|}
charset.cpp:_ZZN5Botan12_GLOBAL__N_119next_utf8_codepointERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERmENK3$_0clEv:
   53|  13.8k|   auto read_continuation = [&]() -> uint32_t {
   54|  13.8k|      if(pos >= utf8.size()) {
  ------------------
  |  Branch (54:10): [True: 20, False: 13.8k]
  ------------------
   55|     20|         throw Decoding_Error("Invalid UTF-8 sequence");
   56|     20|      }
   57|  13.8k|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   58|  13.8k|      if((b & 0xC0) != 0x80) {
  ------------------
  |  Branch (58:10): [True: 1.53k, False: 12.2k]
  ------------------
   59|  1.53k|         throw Decoding_Error("Invalid UTF-8 sequence");
   60|  1.53k|      }
   61|  12.2k|      return b & 0x3F;
   62|  13.8k|   };
charset.cpp:_ZN5Botan12_GLOBAL__N_115append_utf8_forERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   18|  13.8k|void append_utf8_for(std::string& s, uint32_t c) {
   19|  13.8k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (19:7): [True: 2.35k, False: 11.4k]
  |  Branch (19:22): [True: 16, False: 2.34k]
  ------------------
   20|     16|      throw Decoding_Error("Invalid Unicode character");
   21|     16|   }
   22|       |
   23|  13.7k|   if(c <= 0x7F) {
  ------------------
  |  Branch (23:7): [True: 5.36k, False: 8.42k]
  ------------------
   24|  5.36k|      const uint8_t b0 = static_cast<uint8_t>(c);
   25|  5.36k|      s.push_back(static_cast<char>(b0));
   26|  8.42k|   } else if(c <= 0x7FF) {
  ------------------
  |  Branch (26:14): [True: 5.11k, False: 3.31k]
  ------------------
   27|  5.11k|      const uint8_t b0 = 0xC0 | static_cast<uint8_t>(c >> 6);
   28|  5.11k|      const uint8_t b1 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   29|  5.11k|      s.push_back(static_cast<char>(b0));
   30|  5.11k|      s.push_back(static_cast<char>(b1));
   31|  5.11k|   } else if(c <= 0xFFFF) {
  ------------------
  |  Branch (31:14): [True: 3.22k, False: 94]
  ------------------
   32|  3.22k|      const uint8_t b0 = 0xE0 | static_cast<uint8_t>(c >> 12);
   33|  3.22k|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   34|  3.22k|      const uint8_t b2 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   35|  3.22k|      s.push_back(static_cast<char>(b0));
   36|  3.22k|      s.push_back(static_cast<char>(b1));
   37|  3.22k|      s.push_back(static_cast<char>(b2));
   38|  3.22k|   } else if(c <= 0x10FFFF) {
  ------------------
  |  Branch (38:14): [True: 29, False: 65]
  ------------------
   39|     29|      const uint8_t b0 = 0xF0 | static_cast<uint8_t>(c >> 18);
   40|     29|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 12) & 0x3F);
   41|     29|      const uint8_t b2 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   42|     29|      const uint8_t b3 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   43|     29|      s.push_back(static_cast<char>(b0));
   44|     29|      s.push_back(static_cast<char>(b1));
   45|     29|      s.push_back(static_cast<char>(b2));
   46|     29|      s.push_back(static_cast<char>(b3));
   47|     65|   } else {
   48|     65|      throw Decoding_Error("Invalid Unicode character");
   49|     65|   }
   50|  13.7k|}

_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|      AESNI = (1ULL << 57),
   70|       |      // AVX + OSXSAVE
   71|      1|      OSXSAVE = (1ULL << 59) | (1ULL << 60),
   72|      1|      RDRAND = (1ULL << 62)
   73|      1|   };
   74|       |
   75|      1|   enum class x86_CPUID_7_bits : uint64_t {
   76|      1|      BMI1 = (1ULL << 3),
   77|      1|      AVX2 = (1ULL << 5),
   78|      1|      BMI2 = (1ULL << 8),
   79|      1|      BMI_1_AND_2 = BMI1 | BMI2,
   80|      1|      AVX512_F = (1ULL << 16),
   81|      1|      AVX512_DQ = (1ULL << 17),
   82|      1|      RDSEED = (1ULL << 18),
   83|      1|      ADX = (1ULL << 19),
   84|      1|      AVX512_IFMA = (1ULL << 21),
   85|      1|      SHA = (1ULL << 29),
   86|      1|      AVX512_BW = (1ULL << 30),
   87|      1|      AVX512_VL = (1ULL << 31),
   88|      1|      AVX512_VBMI = (1ULL << 33),
   89|      1|      AVX512_VBMI2 = (1ULL << 38),
   90|      1|      GFNI = (1ULL << 40),
   91|      1|      AVX512_VAES = (1ULL << 41),
   92|      1|      AVX512_VCLMUL = (1ULL << 42),
   93|      1|      AVX512_VBITALG = (1ULL << 44),
   94|       |
   95|       |      /*
   96|       |      We only enable AVX512 support if all of the below flags are available
   97|       |
   98|       |      This is more than we strictly need for most uses, however it also has
   99|       |      the effect of preventing execution of AVX512 codepaths on cores that
  100|       |      have serious downclocking problems when AVX512 code executes,
  101|       |      especially Intel Skylake.
  102|       |
  103|       |      VBMI2/VBITALG are the key flags here as they restrict us to Intel Ice
  104|       |      Lake/Rocket Lake, or AMD Zen4, all of which do not have penalties for
  105|       |      executing AVX512.
  106|       |
  107|       |      There is nothing stopping some future processor from supporting the
  108|       |      above flags and having AVX512 penalties, but maybe you should not have
  109|       |      bought such a processor.
  110|       |      */
  111|      1|      AVX512_PROFILE =
  112|      1|         AVX512_F | AVX512_DQ | AVX512_IFMA | AVX512_BW | AVX512_VL | AVX512_VBMI | AVX512_VBMI2 | AVX512_VBITALG,
  113|      1|   };
  114|       |
  115|       |   // NOLINTNEXTLINE(performance-enum-size)
  116|      1|   enum class x86_CPUID_7_1_bits : uint64_t {
  117|      1|      SHA512 = (1 << 0),
  118|      1|      SM3 = (1 << 1),
  119|      1|      SM4 = (1 << 2),
  120|      1|   };
  121|       |
  122|      1|   uint32_t feat = 0;
  123|      1|   uint32_t cpuid[4] = {0};
  124|      1|   bool has_os_ymm_support = false;
  125|      1|   bool has_os_zmm_support = false;
  126|       |
  127|       |   // CPUID 0: vendor identification, max sublevel
  128|      1|   invoke_cpuid(0, cpuid);
  129|       |
  130|      1|   const uint32_t max_supported_sublevel = cpuid[0];
  131|       |
  132|      1|   if(max_supported_sublevel >= 1) {
  ------------------
  |  Branch (132:7): [True: 1, False: 0]
  ------------------
  133|       |      // CPUID 1: feature bits
  134|      1|      invoke_cpuid(1, cpuid);
  135|      1|      const uint64_t flags0 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[3];
  136|       |
  137|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDTSC, CPUFeature::Bit::RDTSC, allowed);
  138|       |
  139|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDRAND, CPUFeature::Bit::RDRAND, allowed);
  140|       |
  141|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::SSE2, CPUFeature::Bit::SSE2, allowed);
  142|       |
  143|      1|      if(is_set(feat, CPUFeature::Bit::SSE2)) {
  ------------------
  |  Branch (143:10): [True: 1, False: 0]
  ------------------
  144|      1|         feat |= if_set(flags0, x86_CPUID_1_bits::SSSE3, CPUFeature::Bit::SSSE3, allowed);
  145|       |
  146|      1|         if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (146:13): [True: 1, False: 0]
  ------------------
  147|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::CLMUL, CPUFeature::Bit::CLMUL, allowed);
  148|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::AESNI, CPUFeature::Bit::AESNI, allowed);
  149|      1|         }
  150|       |
  151|      1|         const uint64_t osxsave64 = static_cast<uint64_t>(x86_CPUID_1_bits::OSXSAVE);
  152|      1|         if((flags0 & osxsave64) == osxsave64) {
  ------------------
  |  Branch (152:13): [True: 1, False: 0]
  ------------------
  153|      1|            const uint64_t xcr_flags = xgetbv();
  154|      1|            if((xcr_flags & 0x6) == 0x6) {
  ------------------
  |  Branch (154:16): [True: 1, False: 0]
  ------------------
  155|      1|               has_os_ymm_support = true;
  156|      1|               has_os_zmm_support = (xcr_flags & 0xE0) == 0xE0;
  157|      1|            }
  158|      1|         }
  159|      1|      }
  160|      1|   }
  161|       |
  162|      1|   if(max_supported_sublevel >= 7) {
  ------------------
  |  Branch (162:7): [True: 1, False: 0]
  ------------------
  163|      1|      clear_mem(cpuid, 4);
  164|      1|      invoke_cpuid_sublevel(7, 0, cpuid);
  165|       |
  166|      1|      const uint64_t flags7 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[1];
  167|       |
  168|      1|      clear_mem(cpuid, 4);
  169|      1|      invoke_cpuid_sublevel(7, 1, cpuid);
  170|      1|      const uint32_t flags7_1 = cpuid[0];
  171|       |
  172|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::RDSEED, CPUFeature::Bit::RDSEED, allowed);
  173|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::ADX, CPUFeature::Bit::ADX, allowed);
  174|       |
  175|       |      /*
  176|       |      We only set the BMI bit if both BMI1 and BMI2 are supported, since
  177|       |      typically we want to use both extensions in the same code.
  178|       |      */
  179|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::BMI_1_AND_2, CPUFeature::Bit::BMI, allowed);
  180|       |
  181|      1|      if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (181:10): [True: 1, False: 0]
  ------------------
  182|      1|         feat |= if_set(flags7, x86_CPUID_7_bits::SHA, CPUFeature::Bit::SHA, allowed);
  183|      1|         feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM3, CPUFeature::Bit::SM3, allowed);
  184|       |
  185|       |         // We only consider AVX2 if SSSE3 is supported
  186|      1|         if(has_os_ymm_support) {
  ------------------
  |  Branch (186:13): [True: 1, False: 0]
  ------------------
  187|      1|            feat |= if_set(flags7, x86_CPUID_7_bits::AVX2, CPUFeature::Bit::AVX2, allowed);
  188|       |
  189|      1|            if(is_set(feat, CPUFeature::Bit::AVX2)) {
  ------------------
  |  Branch (189:16): [True: 1, False: 0]
  ------------------
  190|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::GFNI, CPUFeature::Bit::GFNI, allowed);
  191|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX2_AES, allowed);
  192|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX2_CLMUL, allowed);
  193|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SHA512, CPUFeature::Bit::SHA512, allowed);
  194|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM4, CPUFeature::Bit::SM4, allowed);
  195|       |
  196|       |               // Likewise we only consider AVX-512 if AVX2 is supported
  197|      1|               if(has_os_zmm_support) {
  ------------------
  |  Branch (197:19): [True: 0, False: 1]
  ------------------
  198|      0|                  feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_PROFILE, CPUFeature::Bit::AVX512, allowed);
  199|       |
  200|      0|                  if(is_set(feat, CPUFeature::Bit::AVX512)) {
  ------------------
  |  Branch (200:22): [True: 0, False: 0]
  ------------------
  201|      0|                     feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX512_AES, allowed);
  202|      0|                     feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX512_CLMUL, allowed);
  203|      0|                  }
  204|      0|               }
  205|      1|            }
  206|      1|         }
  207|      1|      }
  208|      1|   }
  209|       |
  210|       |/*
  211|       |   * If we don't have access to CPUID, we can still safely assume that
  212|       |   * any x86-64 processor has SSE2 and RDTSC
  213|       |   */
  214|      1|#if defined(BOTAN_TARGET_ARCH_IS_X86_64)
  215|      1|   if(feat == 0) {
  ------------------
  |  Branch (215:7): [True: 0, False: 1]
  ------------------
  216|      0|      feat |= CPUFeature::Bit::SSE2 & allowed;
  217|      0|      feat |= CPUFeature::Bit::RDTSC & allowed;
  218|      0|   }
  219|      1|#endif
  220|       |
  221|      1|   return feat;
  222|      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|  4.66M|size_t DataSource::read_byte(uint8_t& out) {
   28|  4.66M|   return read(&out, 1);
   29|  4.66M|}
_ZN5Botan10DataSource9read_byteEv:
   34|   384k|std::optional<uint8_t> DataSource::read_byte() {
   35|   384k|   uint8_t b = 0;
   36|   384k|   if(this->read(&b, 1) == 1) {
  ------------------
  |  Branch (36:7): [True: 380k, False: 4.16k]
  ------------------
   37|   380k|      return b;
   38|   380k|   } else {
   39|  4.16k|      return {};
   40|  4.16k|   }
   41|   384k|}
_ZNK5Botan10DataSource9peek_byteERh:
   46|  4.89k|size_t DataSource::peek_byte(uint8_t& out) const {
   47|  4.89k|   return peek(&out, 1, 0);
   48|  4.89k|}
_ZN5Botan17DataSource_Memory4readEPhm:
   73|   377k|size_t DataSource_Memory::read(uint8_t out[], size_t length) {
   74|   377k|   const size_t got = std::min<size_t>(m_source.size() - m_offset, length);
   75|   377k|   copy_mem(out, m_source.data() + m_offset, got);
   76|   377k|   m_offset += got;
   77|   377k|   return got;
   78|   377k|}
_ZN5Botan17DataSource_Memory15check_availableEm:
   80|  85.8k|bool DataSource_Memory::check_available(size_t n) {
   81|  85.8k|   return (n <= (m_source.size() - m_offset));
   82|  85.8k|}
_ZNK5Botan17DataSource_Memory4peekEPhmm:
   87|  9.46k|size_t DataSource_Memory::peek(uint8_t out[], size_t length, size_t peek_offset) const {
   88|  9.46k|   const size_t bytes_left = m_source.size() - m_offset;
   89|  9.46k|   if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (89:7): [True: 0, False: 9.46k]
  ------------------
   90|      0|      return 0;
   91|      0|   }
   92|       |
   93|  9.46k|   const size_t got = std::min(bytes_left - peek_offset, length);
   94|  9.46k|   copy_mem(out, &m_source[m_offset + peek_offset], got);
   95|  9.46k|   return got;
   96|  9.46k|}
_ZNK5Botan17DataSource_Memory11end_of_dataEv:
  101|  53.2k|bool DataSource_Memory::end_of_data() const {
  102|  53.2k|   return (m_offset == m_source.size());
  103|  53.2k|}

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  14.5k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  4.09k|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|  2.67k|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|  11.8k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  4.09k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan11IPv4Address7netmaskEm:
   26|     27|IPv4Address IPv4Address::netmask(size_t bits) {
   27|     27|   BOTAN_ARG_CHECK(bits <= 32, "IPv4 netmask prefix length must be at most 32");
  ------------------
  |  |   35|     27|   do {                                                          \
  |  |   36|     27|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     27|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 27]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     27|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 27]
  |  |  ------------------
  ------------------
   28|     27|   if(bits == 0) {
  ------------------
  |  Branch (28:7): [True: 3, False: 24]
  ------------------
   29|      3|      return IPv4Address(0);
   30|      3|   }
   31|     24|   return IPv4Address(0xFFFFFFFF << (32 - bits));
   32|     27|}
_ZNK5Botan11IPv4Address13prefix_lengthEv:
   44|     73|std::optional<size_t> IPv4Address::prefix_length() const {
   45|       |   // A 32-bit mask m is a CIDR prefix iff (~m) + 1 is a power of two or zero,
   46|       |   // i.e. (~m) & (~m + 1) == 0. If so, the prefix length is the leading-one count.
   47|     73|   const uint32_t inv = ~m_ip;
   48|     73|   if((inv & (inv + 1)) != 0) {
  ------------------
  |  Branch (48:7): [True: 46, False: 27]
  ------------------
   49|     46|      return std::nullopt;
   50|     46|   }
   51|     27|   return std::countl_one(m_ip);
   52|     73|}
_ZN5Botan10IPv4SubnetC2ENS_11IPv4AddressEm:
   55|     27|      m_address(address & IPv4Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
   56|       |   // IPv4Address::netmask validates prefix_length <= 32, so by this point
   57|       |   // the static_cast is in range.
   58|     27|}
_ZN5Botan10IPv4Subnet21from_address_and_maskENSt3__14spanIKhLm8EEE:
   69|     73|std::optional<IPv4Subnet> IPv4Subnet::from_address_and_mask(std::span<const uint8_t, 8> addr_and_mask) {
   70|     73|   const IPv4Address addr(load_be<uint32_t>(addr_and_mask.data(), 0));
   71|     73|   const IPv4Address mask(load_be<uint32_t>(addr_and_mask.data(), 1));
   72|       |
   73|     73|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (73:18): [True: 27, False: 46]
  ------------------
   74|     27|      return IPv4Subnet(addr, *plen);
   75|     46|   } else {
   76|     46|      return {};
   77|     46|   }
   78|     73|}

_ZN5Botan11IPv6AddressC2ENSt3__14spanIKhLm16EEE:
   16|    960|IPv6Address::IPv6Address(std::span<const uint8_t, 16> ip) : m_ip{} {
   17|  16.3k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (17:22): [True: 15.3k, False: 960]
  ------------------
   18|  15.3k|      m_ip[i] = ip[i];
   19|  15.3k|   }
   20|    960|}
_ZN5Botan11IPv6Address7netmaskEm:
  137|     29|IPv6Address IPv6Address::netmask(size_t bits) {
  138|     29|   BOTAN_ARG_CHECK(bits <= 128, "IPv6 netmask prefix length must be at most 128");
  ------------------
  |  |   35|     29|   do {                                                          \
  |  |   36|     29|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     29|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 29]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     29|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 29]
  |  |  ------------------
  ------------------
  139|       |
  140|     29|   const size_t full_bytes = bits / 8;
  141|     29|   const size_t leftover = bits % 8;
  142|       |
  143|     29|   std::array<uint8_t, 16> m{};
  144|    220|   for(size_t i = 0; i != full_bytes; ++i) {
  ------------------
  |  Branch (144:22): [True: 191, False: 29]
  ------------------
  145|    191|      m[i] = 0xFF;
  146|    191|   }
  147|       |
  148|     29|   if(leftover > 0) {
  ------------------
  |  Branch (148:7): [True: 13, False: 16]
  ------------------
  149|     13|      m[full_bytes] = static_cast<uint8_t>(0xFF << (8 - leftover));
  150|     13|   }
  151|       |
  152|     29|   return IPv6Address(m);
  153|     29|}
_ZNK5Botan11IPv6AddressanERKS0_:
  179|     10|IPv6Address IPv6Address::operator&(const IPv6Address& other) const {
  180|     10|   std::array<uint8_t, 16> masked{};
  181|    170|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (181:22): [True: 160, False: 10]
  ------------------
  182|    160|      masked[i] = m_ip[i] & other.m_ip[i];
  183|    160|   }
  184|     10|   return IPv6Address(masked);
  185|     10|}
_ZNK5Botan11IPv6Address13prefix_lengthEv:
  187|     19|std::optional<size_t> IPv6Address::prefix_length() const {
  188|       |   // Count leading one bits, stopping at the first byte that isn't fully set.
  189|     19|   size_t leading = 0;
  190|    144|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (190:22): [True: 143, False: 1]
  ------------------
  191|    143|      const size_t hw = (m_ip[i] == 0xFF) ? 8 : std::countl_one(m_ip[i]);
  ------------------
  |  Branch (191:25): [True: 125, False: 18]
  ------------------
  192|    143|      leading += hw;
  193|    143|      if(hw != 8) {
  ------------------
  |  Branch (193:10): [True: 18, False: 125]
  ------------------
  194|     18|         break;
  195|     18|      }
  196|    143|   }
  197|       |
  198|       |   // Verify this is exactly equal to a netmask of that size
  199|     19|   if(*this != netmask(leading)) {
  ------------------
  |  Branch (199:7): [True: 9, False: 10]
  ------------------
  200|      9|      return std::nullopt;
  201|      9|   }
  202|     10|   return leading;
  203|     19|}
_ZN5Botan10IPv6SubnetC2ENS_11IPv6AddressEm:
  219|     10|      m_address(address & IPv6Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
  220|       |   // IPv6Address::netmask validates prefix_length <= 128, so by this point
  221|       |   // the static_cast is in range.
  222|     10|}
_ZN5Botan10IPv6Subnet21from_address_and_maskENSt3__14spanIKhLm32EEE:
  225|     19|std::optional<IPv6Subnet> IPv6Subnet::from_address_and_mask(std::span<const uint8_t, 32> addr_and_mask) {
  226|     19|   const auto addr = IPv6Address(addr_and_mask.first<16>());
  227|     19|   const auto mask = IPv6Address(addr_and_mask.last<16>());
  228|       |
  229|     19|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (229:18): [True: 10, False: 9]
  ------------------
  230|     10|      return IPv6Subnet(addr, *plen);
  231|     10|   } else {
  232|      9|      return {};
  233|      9|   }
  234|     19|}

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

_ZN5Botan2OS17read_env_variableERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
  448|      1|bool OS::read_env_variable(std::string& value_out, std::string_view name_view) {
  449|      1|   value_out = "";
  450|       |
  451|      1|   if(running_in_privileged_state()) {
  ------------------
  |  Branch (451:7): [True: 0, False: 1]
  ------------------
  452|      0|      return false;
  453|      0|   }
  454|       |
  455|       |#if defined(BOTAN_TARGET_OS_HAS_WIN32) && \
  456|       |   (defined(BOTAN_BUILD_COMPILER_IS_MSVC) || defined(BOTAN_BUILD_COMPILER_IS_CLANGCL))
  457|       |   const std::string name(name_view);
  458|       |   char val[128] = {0};
  459|       |   size_t req_size = 0;
  460|       |   if(getenv_s(&req_size, val, sizeof(val), name.c_str()) == 0) {
  461|       |      // Microsoft's implementation always writes a terminating \0,
  462|       |      // and includes it in the reported length of the environment variable
  463|       |      // if a value exists.
  464|       |      if(req_size > 0 && val[req_size - 1] == '\0') {
  465|       |         value_out = std::string(val);
  466|       |      } else {
  467|       |         value_out = std::string(val, req_size);
  468|       |      }
  469|       |      return true;
  470|       |   }
  471|       |#else
  472|      1|   const std::string name(name_view);
  473|      1|   if(const char* val = std::getenv(name.c_str())) {
  ------------------
  |  Branch (473:19): [True: 0, False: 1]
  ------------------
  474|      0|      value_out = val;
  475|      0|      return true;
  476|      0|   }
  477|      1|#endif
  478|       |
  479|      1|   return false;
  480|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_110get_auxvalENSt3__18optionalImEE:
  118|      1|std::optional<unsigned long> get_auxval(std::optional<unsigned long> id) {
  119|      1|   if(id) {
  ------------------
  |  Branch (119:7): [True: 1, False: 0]
  ------------------
  120|      1|#if defined(BOTAN_TARGET_OS_HAS_GETAUXVAL)
  121|      1|      return ::getauxval(*id);
  122|       |#elif defined(BOTAN_TARGET_OS_HAS_ELF_AUX_INFO)
  123|       |      unsigned long auxinfo = 0;
  124|       |      if(::elf_aux_info(static_cast<int>(*id), &auxinfo, sizeof(auxinfo)) == 0) {
  125|       |         return auxinfo;
  126|       |      }
  127|       |#endif
  128|      1|   }
  129|       |
  130|      0|   return {};
  131|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_127running_in_privileged_stateEv:
  152|      1|bool running_in_privileged_state() {
  153|      1|#if defined(AT_SECURE)
  154|      1|   if(auto at_secure = get_auxval(AT_SECURE)) {
  ------------------
  |  Branch (154:12): [True: 1, False: 0]
  ------------------
  155|      1|      return at_secure != 0;
  156|      1|   }
  157|      0|#endif
  158|       |
  159|      0|#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
  160|      0|   return (::getuid() != ::geteuid()) || (::getgid() != ::getegid());
  ------------------
  |  Branch (160:11): [True: 0, False: 0]
  |  Branch (160:42): [True: 0, False: 0]
  ------------------
  161|       |#else
  162|       |   return false;
  163|       |#endif
  164|      1|}

_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   30|  41.2k|uint32_t to_u32bit(std::string_view str_view) {
   31|  41.2k|   const std::string str(str_view);
   32|       |
   33|       |   // std::stoul is not strict enough. Ensure that str is digit only [0-9]*
   34|  82.7k|   for(const char chr : str) {
  ------------------
  |  Branch (34:23): [True: 82.7k, False: 41.2k]
  ------------------
   35|  82.7k|      if(chr < '0' || chr > '9') {
  ------------------
  |  Branch (35:10): [True: 15, False: 82.7k]
  |  Branch (35:23): [True: 7, False: 82.7k]
  ------------------
   36|     22|         throw Invalid_Argument("to_u32bit invalid decimal string '" + str + "'");
   37|     22|      }
   38|  82.7k|   }
   39|       |
   40|  41.2k|   const unsigned long int x = std::stoul(str);
   41|       |
   42|  41.2k|   if constexpr(sizeof(unsigned long int) > 4) {
   43|       |      // x might be uint64
   44|  41.2k|      if(x > std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (44:10): [True: 0, False: 41.2k]
  ------------------
   45|      0|         throw Invalid_Argument("Integer value of " + str + " exceeds 32 bit range");
   46|      0|      }
   47|  41.2k|   }
   48|       |
   49|  41.2k|   return static_cast<uint32_t>(x);
   50|  41.2k|}
_ZN5Botan14tolower_stringENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  239|    235|std::string tolower_string(std::string_view str) {
  240|       |   // Locale-independent ASCII fold; the only callers (DNS name canonicalization
  241|       |   // for SAN/name-constraints) work on ASCII strings per RFC 1035.
  242|    235|   std::string lower(str);
  243|  4.63k|   for(char& c : lower) {
  ------------------
  |  Branch (243:16): [True: 4.63k, False: 235]
  ------------------
  244|  4.63k|      if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (244:10): [True: 1.59k, False: 3.03k]
  |  Branch (244:22): [True: 338, False: 1.26k]
  ------------------
  245|    338|         c = static_cast<char>(c + ('a' - 'A'));
  246|    338|      }
  247|  4.63k|   }
  248|    235|   return lower;
  249|    235|}
_ZN5Botan31check_and_canonicalize_dns_nameENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  393|  6.30k|std::string check_and_canonicalize_dns_name(std::string_view name) {
  394|  6.30k|   if(name.size() > 255) {
  ------------------
  |  Branch (394:7): [True: 2, False: 6.30k]
  ------------------
  395|      2|      throw Decoding_Error("DNS name exceeds maximum allowed length");
  396|      2|   }
  397|       |
  398|  6.30k|   if(name.empty()) {
  ------------------
  |  Branch (398:7): [True: 4, False: 6.29k]
  ------------------
  399|      4|      throw Decoding_Error("DNS name cannot be empty");
  400|      4|   }
  401|       |
  402|  6.29k|   if(name.starts_with(".") || name.ends_with(".")) {
  ------------------
  |  Branch (402:7): [True: 1, False: 6.29k]
  |  Branch (402:32): [True: 7, False: 6.28k]
  ------------------
  403|      8|      throw Decoding_Error("DNS name cannot start or end with a dot");
  404|      8|   }
  405|       |
  406|       |   /*
  407|       |   * Table mapping uppercase to lowercase and only including values for valid DNS names
  408|       |   * namely A-Z, a-z, 0-9, hyphen, and dot, plus '*' for wildcarding. (RFC 1035)
  409|       |   */
  410|       |   // clang-format off
  411|  6.28k|   constexpr uint8_t DNS_CHAR_MAPPING[128] = {
  412|  6.28k|      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
  413|  6.28k|      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
  414|  6.28k|      '\0', '\0', '\0', '\0',  '*', '\0', '\0',  '-',  '.', '\0',  '0',  '1',  '2',  '3',  '4',  '5',  '6',  '7',  '8',
  415|  6.28k|       '9', '\0', '\0', '\0', '\0', '\0', '\0', '\0',  'a',  'b',  'c',  'd',  'e',  'f',  'g',  'h',  'i',  'j',  'k',
  416|  6.28k|       'l',  'm',  'n',  'o',  'p',  'q',  'r',  's',  't',  'u',  'v',  'w',  'x',  'y',  'z', '\0', '\0', '\0', '\0',
  417|  6.28k|      '\0', '\0',  'a',  'b',  'c',  'd',  'e',  'f',  'g',  'h',  'i',  'j',  'k',  'l',  'm',  'n',  'o',  'p',  'q',
  418|  6.28k|       'r',  's',  't',  'u',  'v',  'w',  'x',  'y',  'z', '\0', '\0', '\0', '\0', '\0',
  419|  6.28k|   };
  420|       |   // clang-format on
  421|       |
  422|  6.28k|   std::string canon;
  423|  6.28k|   canon.reserve(name.size());
  424|       |
  425|       |   // RFC 1035: DNS labels must not exceed 63 characters
  426|  6.28k|   size_t current_label_length = 0;
  427|       |
  428|   119k|   for(size_t i = 0; i != name.size(); ++i) {
  ------------------
  |  Branch (428:22): [True: 113k, False: 6.20k]
  ------------------
  429|   113k|      const char c = name[i];
  430|       |
  431|   113k|      if(c == '.') {
  ------------------
  |  Branch (431:10): [True: 7.87k, False: 105k]
  ------------------
  432|  7.87k|         if(i > 0 && name[i - 1] == '.') {
  ------------------
  |  Branch (432:13): [True: 7.87k, False: 0]
  |  Branch (432:22): [True: 1, False: 7.87k]
  ------------------
  433|      1|            throw Decoding_Error("DNS name contains sequential period chars");
  434|      1|         }
  435|       |
  436|  7.87k|         if(current_label_length == 0) {
  ------------------
  |  Branch (436:13): [True: 0, False: 7.87k]
  ------------------
  437|      0|            throw Decoding_Error("DNS name contains empty label");
  438|      0|         }
  439|  7.87k|         current_label_length = 0;  // Reset for next label
  440|   105k|      } else {
  441|   105k|         current_label_length++;
  442|       |
  443|   105k|         if(current_label_length > 63) {  // RFC 1035 Maximum DNS label length
  ------------------
  |  Branch (443:13): [True: 1, False: 105k]
  ------------------
  444|      1|            throw Decoding_Error("DNS name label exceeds maximum length of 63 characters");
  445|      1|         }
  446|   105k|      }
  447|       |
  448|   113k|      const uint8_t cu = static_cast<uint8_t>(c);
  449|   113k|      if(cu >= 128) {
  ------------------
  |  Branch (449:10): [True: 32, False: 113k]
  ------------------
  450|     32|         throw Decoding_Error("DNS name must not contain any extended ASCII code points");
  451|     32|      }
  452|   113k|      const uint8_t mapped = DNS_CHAR_MAPPING[cu];
  453|   113k|      if(mapped == 0) {
  ------------------
  |  Branch (453:10): [True: 39, False: 113k]
  ------------------
  454|     39|         throw Decoding_Error("DNS name includes invalid character");
  455|     39|      }
  456|       |
  457|   113k|      if(mapped == '-') {
  ------------------
  |  Branch (457:10): [True: 2.93k, False: 110k]
  ------------------
  458|  2.93k|         if(i == 0 || (i > 0 && name[i - 1] == '.')) {
  ------------------
  |  Branch (458:13): [True: 3, False: 2.93k]
  |  Branch (458:24): [True: 2.93k, False: 0]
  |  Branch (458:33): [True: 1, False: 2.93k]
  ------------------
  459|      4|            throw Decoding_Error("DNS name has label with leading hyphen");
  460|  2.93k|         } else if(i == name.size() - 1 || (i < name.size() - 1 && name[i + 1] == '.')) {
  ------------------
  |  Branch (460:20): [True: 3, False: 2.92k]
  |  Branch (460:45): [True: 2.92k, False: 0]
  |  Branch (460:68): [True: 1, False: 2.92k]
  ------------------
  461|      4|            throw Decoding_Error("DNS name has label with trailing hyphen");
  462|      4|         }
  463|  2.93k|      }
  464|   113k|      canon.push_back(static_cast<char>(mapped));
  465|   113k|   }
  466|       |
  467|  6.20k|   if(current_label_length == 0) {
  ------------------
  |  Branch (467:7): [True: 0, False: 6.20k]
  ------------------
  468|      0|      throw Decoding_Error("DNS name contains empty label");
  469|      0|   }
  470|  6.20k|   return canon;
  471|  6.20k|}

_ZN5Botan15AlternativeName7add_uriENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   17|  1.91k|void AlternativeName::add_uri(std::string_view uri) {
   18|  1.91k|   if(!uri.empty()) {
  ------------------
  |  Branch (18:7): [True: 1.88k, False: 24]
  ------------------
   19|  1.88k|      m_uri.insert(std::string(uri));
   20|  1.88k|   }
   21|  1.91k|}
_ZN5Botan15AlternativeName9add_emailENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   23|  6.80k|void AlternativeName::add_email(std::string_view addr) {
   24|  6.80k|   if(!addr.empty()) {
  ------------------
  |  Branch (24:7): [True: 3.66k, False: 3.13k]
  ------------------
   25|  3.66k|      m_email.insert(std::string(addr));
   26|  3.66k|   }
   27|  6.80k|}
_ZN5Botan15AlternativeName17add_registered_idERKNS_3OIDE:
   46|    609|void AlternativeName::add_registered_id(const OID& oid) {
   47|    609|   m_registered_ids.insert(oid);
   48|    609|}
_ZN5Botan15AlternativeName6add_dnERKNS_7X509_DNE:
   50|  1.22k|void AlternativeName::add_dn(const X509_DN& dn) {
   51|  1.22k|   m_dn_names.insert(dn);
   52|  1.22k|}
_ZN5Botan15AlternativeName16add_ipv4_addressEj:
   54|  4.50k|void AlternativeName::add_ipv4_address(uint32_t ip) {
   55|  4.50k|   m_ipv4_addr.insert(ip);
   56|  4.50k|}
_ZN5Botan15AlternativeName16add_ipv6_addressERKNS_11IPv6AddressE:
   58|    922|void AlternativeName::add_ipv6_address(const IPv6Address& ip) {
   59|    922|   m_ipv6_addr.insert(ip);
   60|    922|}
_ZNK5Botan15AlternativeName5countEv:
   62|    266|size_t AlternativeName::count() const {
   63|    266|   const auto sum = checked_add(m_dns.size(),
   64|    266|                                m_uri.size(),
   65|    266|                                m_email.size(),
   66|    266|                                m_ipv4_addr.size(),
   67|    266|                                m_ipv6_addr.size(),
   68|    266|                                m_dn_names.size(),
   69|    266|                                m_other_name_values.size(),
   70|    266|                                m_registered_ids.size());
   71|       |
   72|    266|   BOTAN_ASSERT_NOMSG(sum.has_value());
  ------------------
  |  |   77|    266|   do {                                                                     \
  |  |   78|    266|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    266|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 266]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    266|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 266]
  |  |  ------------------
  ------------------
   73|    266|   return sum.value();
   74|    266|}
_ZNK5Botan15AlternativeName9has_itemsEv:
   76|    266|bool AlternativeName::has_items() const {
   77|    266|   return this->count() > 0;
   78|    266|}
_ZN5Botan15AlternativeName11decode_fromERNS_11BER_DecoderE:
  144|  1.21k|void AlternativeName::decode_from(BER_Decoder& source) {
  145|  1.21k|   BER_Decoder names = source.start_sequence();
  146|       |
  147|  52.0k|   while(names.more_items()) {
  ------------------
  |  Branch (147:10): [True: 50.8k, False: 1.19k]
  ------------------
  148|  50.8k|      const BER_Object obj = names.get_next_object();
  149|       |
  150|  50.8k|      if(obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (150:10): [True: 5.54k, False: 45.2k]
  ------------------
  151|  5.54k|         BER_Decoder othername(obj, names.limits());
  152|       |
  153|  5.54k|         OID oid;
  154|  5.54k|         othername.decode(oid);
  155|  5.54k|         if(othername.more_items()) {
  ------------------
  |  Branch (155:13): [True: 3.76k, False: 1.77k]
  ------------------
  156|  3.76k|            const BER_Object othername_value_outer = othername.get_next_object();
  157|  3.76k|            othername.verify_end();
  158|       |
  159|  3.76k|            if(!othername_value_outer.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (159:16): [True: 3, False: 3.76k]
  ------------------
  160|      3|               throw Decoding_Error("Invalid tags on otherName value");
  161|      3|            }
  162|       |
  163|  3.76k|            BER_Decoder othername_value_inner(othername_value_outer, names.limits());
  164|       |
  165|  3.76k|            const BER_Object value = othername_value_inner.get_next_object();
  166|  3.76k|            othername_value_inner.verify_end();
  167|       |
  168|       |            // Capture the inner ANY value verbatim so applications can retrieve
  169|       |            // it regardless of its ASN.1 form.
  170|  3.76k|            std::vector<uint8_t> raw_value;
  171|  3.76k|            DER_Encoder(raw_value).add_object(value.type_tag(), value.class_tag(), value.data());
  172|  3.76k|            m_other_name_values.insert(OtherNameValue{oid, std::move(raw_value)});
  173|       |
  174|       |            // Populate old string view for compatibility
  175|  3.76k|            if(ASN1_String::is_string_type(value.type()) && value.get_class() == ASN1_Class::Universal) {
  ------------------
  |  Branch (175:16): [True: 3.51k, False: 246]
  |  Branch (175:61): [True: 3.31k, False: 200]
  ------------------
  176|  3.31k|               try {
  177|  3.31k|                  m_othernames.insert(std::make_pair(oid, ASN1_String(ASN1::to_string(value), value.type())));
  178|  3.31k|               } catch(const Invalid_Argument&) {  // NOLINT(*-empty-catch)
  179|  2.52k|               }
  180|  3.31k|            }
  181|  3.76k|         }
  182|  45.2k|      } else if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (182:17): [True: 6.80k, False: 38.4k]
  ------------------
  183|  6.80k|         add_email(ASN1::to_string(obj));
  184|  38.4k|      } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (184:17): [True: 6.30k, False: 32.1k]
  ------------------
  185|  6.30k|         m_dns.insert(check_and_canonicalize_dns_name(ASN1::to_string(obj)));
  186|  32.1k|      } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (186:17): [True: 1.33k, False: 30.8k]
  ------------------
  187|  1.33k|         BER_Decoder dec(obj, names.limits());
  188|  1.33k|         X509_DN dn;
  189|  1.33k|         dec.decode(dn).verify_end();
  190|  1.33k|         this->add_dn(dn);
  191|  30.8k|      } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (191:17): [True: 1.91k, False: 28.9k]
  ------------------
  192|  1.91k|         this->add_uri(ASN1::to_string(obj));
  193|  28.9k|      } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (193:17): [True: 5.43k, False: 23.5k]
  ------------------
  194|  5.43k|         if(obj.length() == 4) {
  ------------------
  |  Branch (194:13): [True: 4.50k, False: 933]
  ------------------
  195|  4.50k|            const uint32_t ip = load_be<uint32_t>(obj.bits(), 0);
  196|  4.50k|            this->add_ipv4_address(ip);
  197|  4.50k|         } else if(obj.length() == 16) {
  ------------------
  |  Branch (197:20): [True: 922, False: 11]
  ------------------
  198|    922|            const IPv6Address ip(std::span<const uint8_t, 16>{obj.bits(), 16});
  199|    922|            this->add_ipv6_address(ip);
  200|    922|         } else {
  201|     11|            throw Decoding_Error("Invalid IP constraint neither IPv4 or IPv6");
  202|     11|         }
  203|  23.5k|      } else if(obj.is_a(8, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (203:17): [True: 617, False: 22.8k]
  ------------------
  204|       |         // [8] registeredID is IMPLICIT OBJECT IDENTIFIER.
  205|    617|         OID oid;
  206|    617|         names.decode_implicit(obj, oid, ASN1_Type::ObjectId, ASN1_Class::Universal);
  207|    617|         this->add_registered_id(oid);
  208|    617|      }
  209|  50.8k|   }
  210|  1.21k|}

_ZN5Botan11GeneralName11decode_fromERNS_11BER_DecoderE:
  139|  1.62k|void GeneralName::decode_from(BER_Decoder& ber) {
  140|  1.62k|   const BER_Object obj = ber.get_next_object();
  141|       |
  142|  1.62k|   if(obj.is_a(0, ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (142:7): [True: 39, False: 1.58k]
  ------------------
  143|     39|      m_type = NameType::Other;
  144|  1.58k|   } else if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (144:14): [True: 548, False: 1.03k]
  ------------------
  145|    548|      m_type = NameType::RFC822;
  146|    548|      m_name.emplace<RFC822_IDX>(ASN1::to_string(obj));
  147|  1.03k|   } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (147:14): [True: 235, False: 799]
  ------------------
  148|       |      // Store it in case insensitive form so we don't have to do it
  149|       |      // again while matching
  150|    235|      auto dns = canonicalize_dns_name(ASN1::to_string(obj));
  151|       |      // An empty DNS subtree has no clear meaning, reject immediately
  152|    235|      if(dns.empty()) {
  ------------------
  |  Branch (152:10): [True: 1, False: 234]
  ------------------
  153|      1|         throw Decoding_Error("Empty DNS name in GeneralName");
  154|      1|      }
  155|    234|      m_type = NameType::DNS;
  156|    234|      m_name.emplace<DNS_IDX>(std::move(dns));
  157|    799|   } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (157:14): [True: 214, False: 585]
  ------------------
  158|    214|      m_type = NameType::URI;
  159|    214|      m_name.emplace<URI_IDX>(ASN1::to_string(obj));
  160|    585|   } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (160:14): [True: 24, False: 561]
  ------------------
  161|     24|      X509_DN dn;
  162|     24|      BER_Decoder dec(obj, ber.limits());
  163|     24|      dn.decode_from(dec);
  164|     24|      dec.verify_end();
  165|     24|      m_type = NameType::DN;
  166|     24|      m_name.emplace<DN_IDX>(dn);
  167|    561|   } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (167:14): [True: 96, False: 465]
  ------------------
  168|     96|      if(obj.length() == 8) {
  ------------------
  |  Branch (168:10): [True: 73, False: 23]
  ------------------
  169|     73|         const auto addr_and_mask = std::span<const uint8_t, 8>{obj.bits(), 8};
  170|     73|         auto subnet = IPv4Subnet::from_address_and_mask(addr_and_mask);
  171|     73|         if(!subnet.has_value()) {
  ------------------
  |  Branch (171:13): [True: 46, False: 27]
  ------------------
  172|     46|            throw Decoding_Error("IPv4 name constraint mask is not a contiguous CIDR prefix");
  173|     46|         }
  174|       |
  175|     27|         m_type = NameType::IPv4;
  176|     27|         m_name.emplace<IPV4_IDX>(*subnet);
  177|     27|      } else if(obj.length() == 32) {
  ------------------
  |  Branch (177:17): [True: 19, False: 4]
  ------------------
  178|     19|         const auto addr_and_mask = std::span<const uint8_t, 32>{obj.bits(), 32};
  179|     19|         auto subnet = IPv6Subnet::from_address_and_mask(addr_and_mask);
  180|     19|         if(!subnet.has_value()) {
  ------------------
  |  Branch (180:13): [True: 9, False: 10]
  ------------------
  181|      9|            throw Decoding_Error("IPv6 name constraint mask is not a contiguous CIDR prefix");
  182|      9|         }
  183|       |
  184|     10|         m_type = NameType::IPv6;
  185|     10|         m_name.emplace<IPV6_IDX>(*subnet);
  186|     10|      } else {
  187|      4|         throw Decoding_Error("Invalid IP name constraint size " + std::to_string(obj.length()));
  188|      4|      }
  189|    465|   } else {
  190|    465|      m_type = NameType::Unknown;
  191|    465|   }
  192|  1.62k|}
_ZN5Botan14GeneralSubtreeC2Ev:
  360|  1.67k|GeneralSubtree::GeneralSubtree() = default;
_ZN5Botan14GeneralSubtree11decode_fromERNS_11BER_DecoderE:
  366|  1.67k|void GeneralSubtree::decode_from(BER_Decoder& ber) {
  367|       |   /*
  368|       |   * RFC 5280 Section 4.2.1.10:
  369|       |   *    Within this profile, the minimum and maximum fields are not used with any
  370|       |   *    name forms, thus, the minimum MUST be zero, and maximum MUST be absent.
  371|       |   */
  372|  1.67k|   size_t minimum = 0;
  373|  1.67k|   std::optional<size_t> maximum;
  374|       |
  375|  1.67k|   ber.start_sequence()
  376|  1.67k|      .decode(m_base)
  377|  1.67k|      .decode_optional(minimum, ASN1_Type(0), ASN1_Class::ContextSpecific, size_t(0))
  378|  1.67k|      .decode_optional(maximum, ASN1_Type(1), ASN1_Class::ContextSpecific)
  379|  1.67k|      .end_cons();
  380|       |
  381|  1.67k|   if(minimum != 0) {
  ------------------
  |  Branch (381:7): [True: 9, False: 1.66k]
  ------------------
  382|      9|      throw Decoding_Error("GeneralSubtree minimum must be 0");
  383|      9|   }
  384|  1.66k|   if(maximum.has_value()) {
  ------------------
  |  Branch (384:7): [True: 1, False: 1.66k]
  ------------------
  385|      1|      throw Decoding_Error("GeneralSubtree maximum must be absent");
  386|      1|   }
  387|  1.66k|}
_ZN5Botan15NameConstraintsC2EONSt3__16vectorINS_14GeneralSubtreeENS1_9allocatorIS3_EEEES7_:
  396|     41|      m_permitted_subtrees(std::move(permitted_subtrees)), m_excluded_subtrees(std::move(excluded_subtrees)) {
  397|    284|   for(const auto& c : m_permitted_subtrees) {
  ------------------
  |  Branch (397:22): [True: 284, False: 41]
  ------------------
  398|    284|      m_permitted_name_types.insert(c.base().type_code());
  399|    284|   }
  400|    312|   for(const auto& c : m_excluded_subtrees) {
  ------------------
  |  Branch (400:22): [True: 312, False: 41]
  ------------------
  401|    312|      m_excluded_name_types.insert(c.base().type_code());
  402|    312|   }
  403|     41|}
name_constraint.cpp:_ZN5Botan12_GLOBAL__N_121canonicalize_dns_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   28|    235|std::string canonicalize_dns_name(std::string_view name) {
   29|    235|   return tolower_string(name);
   30|    235|}

_ZN5Botan13x500_name_cmpENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEES4_:
   82|    589|bool x500_name_cmp(std::string_view name1, std::string_view name2) {
   83|    589|   X500_Char_Iterator it1(name1);
   84|    589|   X500_Char_Iterator it2(name2);
   85|       |
   86|  6.61k|   while(true) {
  ------------------
  |  Branch (86:10): [True: 6.61k, Folded]
  ------------------
   87|  6.61k|      const auto c1 = it1.next();
   88|  6.61k|      const auto c2 = it2.next();
   89|       |
   90|  6.61k|      if(c1 != c2) {
  ------------------
  |  Branch (90:10): [True: 264, False: 6.35k]
  ------------------
   91|    264|         return false;
   92|    264|      }
   93|  6.35k|      if(!c1.has_value() && !c2.has_value()) {
  ------------------
  |  Branch (93:10): [True: 325, False: 6.02k]
  |  Branch (93:29): [True: 325, False: 0]
  ------------------
   94|    325|         return true;
   95|    325|      }
   96|  6.35k|   }
   97|    589|}
_ZN5Botan7X509_DN13add_attributeERKNS_3OIDERKNS_11ASN1_StringE:
  109|  16.1k|void X509_DN::add_attribute(const OID& oid, const ASN1_String& str) {
  110|  16.1k|   if(str.empty()) {
  ------------------
  |  Branch (110:7): [True: 1, False: 16.1k]
  ------------------
  111|      1|      return;
  112|      1|   }
  113|       |
  114|  16.1k|   m_rdn.push_back(std::make_pair(oid, str));
  115|  16.1k|   m_dn_bits.clear();
  116|  16.1k|}
_ZNK5Botan7X509_DN14get_attributesEv:
  121|  10.6k|std::multimap<OID, std::string> X509_DN::get_attributes() const {
  122|  10.6k|   std::multimap<OID, std::string> retval;
  123|       |
  124|  22.6k|   for(const auto& i : m_rdn) {
  ------------------
  |  Branch (124:22): [True: 22.6k, False: 10.6k]
  ------------------
  125|  22.6k|      retval.emplace(i.first, i.second.value());
  126|  22.6k|   }
  127|  10.6k|   return retval;
  128|  10.6k|}
_ZN5BotaneqERKNS_7X509_DNES2_:
  229|    727|bool operator==(const X509_DN& dn1, const X509_DN& dn2) {
  230|    727|   auto attr1 = dn1.get_attributes();
  231|    727|   auto attr2 = dn2.get_attributes();
  232|       |
  233|    727|   if(attr1.size() != attr2.size()) {
  ------------------
  |  Branch (233:7): [True: 157, False: 570]
  ------------------
  234|    157|      return false;
  235|    157|   }
  236|       |
  237|    570|   auto p1 = attr1.begin();
  238|    570|   auto p2 = attr2.begin();
  239|       |
  240|    895|   while(true) {
  ------------------
  |  Branch (240:10): [True: 895, Folded]
  ------------------
  241|    895|      if(p1 == attr1.end() && p2 == attr2.end()) {
  ------------------
  |  Branch (241:10): [True: 65, False: 830]
  |  Branch (241:10): [True: 65, False: 830]
  |  Branch (241:31): [True: 65, False: 0]
  ------------------
  242|     65|         break;
  243|     65|      }
  244|    830|      if(p1 == attr1.end()) {
  ------------------
  |  Branch (244:10): [True: 0, False: 830]
  ------------------
  245|      0|         return false;
  246|      0|      }
  247|    830|      if(p2 == attr2.end()) {
  ------------------
  |  Branch (247:10): [True: 0, False: 830]
  ------------------
  248|      0|         return false;
  249|      0|      }
  250|    830|      if(p1->first != p2->first) {
  ------------------
  |  Branch (250:10): [True: 241, False: 589]
  ------------------
  251|    241|         return false;
  252|    241|      }
  253|    589|      if(!x500_name_cmp(p1->second, p2->second)) {
  ------------------
  |  Branch (253:10): [True: 264, False: 325]
  ------------------
  254|    264|         return false;
  255|    264|      }
  256|    325|      ++p1;
  257|    325|      ++p2;
  258|    325|   }
  259|     65|   return true;
  260|    570|}
_ZN5BotanltERKNS_7X509_DNES2_:
  272|  4.59k|bool operator<(const X509_DN& dn1, const X509_DN& dn2) {
  273|  4.59k|   auto attr1 = dn1.get_attributes();
  274|  4.59k|   auto attr2 = dn2.get_attributes();
  275|       |
  276|       |   // If they are not the same size, choose the smaller as the "lessor"
  277|  4.59k|   if(attr1.size() != attr2.size()) {
  ------------------
  |  Branch (277:7): [True: 182, False: 4.41k]
  ------------------
  278|    182|      return attr1.size() < attr2.size();
  279|    182|   }
  280|       |
  281|       |   // We know they are the same # of elements, now compare the OIDs:
  282|  4.41k|   auto p1 = attr1.begin();
  283|  4.41k|   auto p2 = attr2.begin();
  284|       |
  285|  7.27k|   while(p1 != attr1.end() && p2 != attr2.end()) {
  ------------------
  |  Branch (285:10): [True: 6.41k, False: 854]
  |  Branch (285:10): [True: 6.41k, False: 854]
  |  Branch (285:31): [True: 6.41k, False: 0]
  ------------------
  286|  6.41k|      if(p1->first != p2->first) {
  ------------------
  |  Branch (286:10): [True: 1.23k, False: 5.18k]
  ------------------
  287|  1.23k|         return (p1->first < p2->first);
  288|  1.23k|      }
  289|       |
  290|       |      // If they are not (by X.500) the same string, pick the
  291|       |      // lexicographic first as the lessor
  292|  5.18k|      const std::string c1 = X500_Char_Iterator::canonicalize(p1->second);
  293|  5.18k|      const std::string c2 = X500_Char_Iterator::canonicalize(p2->second);
  294|  5.18k|      if(c1 != c2) {
  ------------------
  |  Branch (294:10): [True: 2.33k, False: 2.85k]
  ------------------
  295|  2.33k|         return c1 < c2;
  296|  2.33k|      }
  297|       |
  298|  2.85k|      ++p1;
  299|  2.85k|      ++p2;
  300|  2.85k|   }
  301|       |
  302|       |   // if we reach here, then the DNs should be identical
  303|    854|   BOTAN_DEBUG_ASSERT(dn1 == dn2);
  ------------------
  |  |  130|    854|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    854|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 854]
  |  |  ------------------
  ------------------
  304|    854|   return false;
  305|  4.41k|}
_ZN5Botan7X509_DN11decode_fromERNS_11BER_DecoderE:
  338|  8.44k|void X509_DN::decode_from(BER_Decoder& source) {
  339|  8.44k|   std::vector<uint8_t> bits;
  340|       |
  341|  8.44k|   source.start_sequence().raw_bytes(bits).end_cons();
  342|       |
  343|  8.44k|   BER_Decoder sequence(bits, source.limits());
  344|       |
  345|  8.44k|   m_rdn.clear();
  346|       |
  347|  24.9k|   while(sequence.more_items()) {
  ------------------
  |  Branch (347:10): [True: 16.4k, False: 8.44k]
  ------------------
  348|  16.4k|      BER_Decoder rdn = sequence.start_set();
  349|       |
  350|  32.9k|      while(rdn.more_items()) {
  ------------------
  |  Branch (350:13): [True: 16.4k, False: 16.4k]
  ------------------
  351|  16.4k|         OID oid;
  352|  16.4k|         ASN1_String str;
  353|       |
  354|  16.4k|         rdn.start_sequence()
  355|  16.4k|            .decode(oid)
  356|  16.4k|            .decode(str)  // TODO support Any
  357|  16.4k|            .end_cons();
  358|       |
  359|  16.4k|         add_attribute(oid, str);
  360|  16.4k|      }
  361|  16.4k|   }
  362|       |
  363|       |   // Have to assign last as add_attribute zaps m_dn_bits
  364|  8.44k|   m_dn_bits = bits;
  365|  8.44k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_IteratorC2ENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   30|  11.5k|      explicit X500_Char_Iterator(std::string_view s) : m_str(s), m_pos(0) {
   31|       |         // Skip leading whitespace
   32|  14.7k|         while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (32:16): [True: 14.5k, False: 139]
  |  Branch (32:40): [True: 3.15k, False: 11.4k]
  ------------------
   33|  3.15k|            ++m_pos;
   34|  3.15k|         }
   35|  11.5k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator4nextEv:
   38|  79.3k|      std::optional<char> next() {
   39|  79.3k|         if(m_pos >= m_str.size()) {
  ------------------
  |  Branch (39:13): [True: 10.0k, False: 69.2k]
  ------------------
   40|  10.0k|            return std::nullopt;
   41|  10.0k|         }
   42|       |
   43|  69.2k|         if(is_space(m_str[m_pos])) {
  ------------------
  |  Branch (43:13): [True: 3.06k, False: 66.2k]
  ------------------
   44|       |            // Skip the entire whitespace run
   45|  6.63k|            while(m_pos < m_str.size() && is_space(m_str[m_pos])) {
  ------------------
  |  Branch (45:19): [True: 5.66k, False: 966]
  |  Branch (45:43): [True: 3.56k, False: 2.09k]
  ------------------
   46|  3.56k|               ++m_pos;
   47|  3.56k|            }
   48|       |            // Emit a single space only if more content follows (strip trailing ws)
   49|  3.06k|            if(m_pos < m_str.size()) {
  ------------------
  |  Branch (49:16): [True: 2.09k, False: 966]
  ------------------
   50|  2.09k|               return ' ';
   51|  2.09k|            }
   52|    966|            return std::nullopt;
   53|  3.06k|         }
   54|       |
   55|  66.2k|         const char c = m_str[m_pos++];
   56|       |         // Locale-independent ASCII fold; RFC 5280 DN matching does not depend on libc locale
   57|  66.2k|         if(c >= 'A' && c <= 'Z') {
  ------------------
  |  Branch (57:13): [True: 19.8k, False: 46.3k]
  |  Branch (57:25): [True: 8.83k, False: 11.0k]
  ------------------
   58|  8.83k|            return static_cast<char>(c + ('a' - 'A'));
   59|  8.83k|         }
   60|  57.3k|         return c;
   61|  66.2k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_118X500_Char_Iterator12canonicalizeENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   63|  10.3k|      static std::string canonicalize(std::string_view name) {
   64|  10.3k|         std::string result;
   65|  10.3k|         result.reserve(name.size());
   66|       |
   67|  10.3k|         X500_Char_Iterator it(name);
   68|  66.1k|         while(auto c = it.next()) {
  ------------------
  |  Branch (68:21): [True: 55.7k, False: 10.3k]
  ------------------
   69|  55.7k|            result += *c;
   70|  55.7k|         }
   71|       |
   72|  10.3k|         return result;
   73|  10.3k|      }
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_18is_spaceEc:
   21|  89.5k|bool is_space(char c) {
   22|  89.5k|   return c == ' ' || c == '\t';
  ------------------
  |  Branch (22:11): [True: 8.10k, False: 81.4k]
  |  Branch (22:23): [True: 1.67k, False: 79.7k]
  ------------------
   23|  89.5k|}

_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EEC2ENSt3__14spanIKhLm18446744073709551615EEE:
 1543|  2.37k|IPAddressBlocks::IPAddress<V>::IPAddress(std::span<const uint8_t> v) {
 1544|  2.37k|   if(v.size() != Length) {
  ------------------
  |  Branch (1544:7): [True: 0, False: 2.37k]
  ------------------
 1545|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 1546|      0|   }
 1547|       |
 1548|  11.8k|   for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (1548:22): [True: 9.48k, False: 2.37k]
  ------------------
 1549|  9.48k|      m_value[i] = v[i];
 1550|  9.48k|   }
 1551|  2.37k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EEC2ENSt3__14spanIKhLm18446744073709551615EEE:
 1543|  2.52k|IPAddressBlocks::IPAddress<V>::IPAddress(std::span<const uint8_t> v) {
 1544|  2.52k|   if(v.size() != Length) {
  ------------------
  |  Branch (1544:7): [True: 0, False: 2.52k]
  ------------------
 1545|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 1546|      0|   }
 1547|       |
 1548|  42.9k|   for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (1548:22): [True: 40.4k, False: 2.52k]
  ------------------
 1549|  40.4k|      m_value[i] = v[i];
 1550|  40.4k|   }
 1551|  2.52k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 1458|  1.31k|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 1459|  1.31k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1460|       |
 1461|       |   // this can either be a prefix or a single address
 1462|  1.31k|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (1462:7): [True: 1.11k, False: 192]
  ------------------
 1463|       |      // construct a min and a max address from the prefix
 1464|       |
 1465|  1.11k|      std::vector<uint8_t> prefix_min;
 1466|  1.11k|      from.decode(prefix_min, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal);
 1467|       |
 1468|       |      // copy because we modify the address in `decode_single_address`, but we need it twice for min and max
 1469|  1.11k|      std::vector<uint8_t> prefix_max(prefix_min);
 1470|       |
 1471|       |      // min address gets filled with 0's
 1472|  1.11k|      m_min = decode_single_address(std::move(prefix_min), true);
 1473|       |      // max address with 1's
 1474|  1.11k|      m_max = decode_single_address(std::move(prefix_max), false);
 1475|  1.11k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1475:14): [True: 132, False: 60]
  ------------------
 1476|       |      // this is a range
 1477|       |
 1478|    132|      std::vector<uint8_t> addr_min;
 1479|    132|      std::vector<uint8_t> addr_max;
 1480|       |
 1481|    132|      from.start_sequence()
 1482|    132|         .decode(addr_min, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal)
 1483|    132|         .decode(addr_max, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal)
 1484|    132|         .end_cons();
 1485|       |
 1486|    132|      m_min = decode_single_address(std::move(addr_min), true);
 1487|    132|      m_max = decode_single_address(std::move(addr_max), false);
 1488|       |
 1489|    132|      if(m_min > m_max) {
  ------------------
  |  Branch (1489:10): [True: 16, False: 116]
  ------------------
 1490|     16|         throw Decoding_Error("IP address ranges must be sorted.");
 1491|     16|      }
 1492|    132|   } else {
 1493|     60|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 1494|     60|   }
 1495|  1.31k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE21decode_single_addressENSt3__16vectorIhNS5_9allocatorIhEEEEb:
 1499|  2.41k|                                                                                          bool min) {
 1500|  2.41k|   const size_t version_octets = static_cast<size_t>(V);
 1501|       |
 1502|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 1503|       |
 1504|       |   // we have to account for the octet at the beginning that specifies how many bits are unused in the last octet
 1505|  2.41k|   if(decoded.empty() || decoded.size() > version_octets + 1) {
  ------------------
  |  Branch (1505:7): [True: 5, False: 2.41k]
  |  Branch (1505:26): [True: 3, False: 2.40k]
  ------------------
 1506|      8|      throw Decoding_Error(fmt("IP address range entries must have a length between 1 and {} bytes.", version_octets));
 1507|      8|   }
 1508|       |
 1509|  2.40k|   const uint8_t unused = decoded.front();
 1510|  2.40k|   const uint8_t discarded_octets = version_octets - (static_cast<uint8_t>(decoded.size()) - 1);
 1511|       |
 1512|  2.40k|   decoded.erase(decoded.begin());
 1513|       |
 1514|  2.40k|   if(decoded.empty() && unused != 0) {
  ------------------
  |  Branch (1514:7): [True: 20, False: 2.38k]
  |  Branch (1514:26): [True: 8, False: 12]
  ------------------
 1515|      8|      throw Decoding_Error("IP address range entry specified unused bits, but did not provide any octets.");
 1516|      8|   }
 1517|       |
 1518|       |   // if they were 8, the entire octet should have been discarded
 1519|  2.40k|   if(unused > 7) {
  ------------------
  |  Branch (1519:7): [True: 31, False: 2.37k]
  ------------------
 1520|     31|      throw Decoding_Error("IP address range entry specified invalid number of unused bits.");
 1521|     31|   }
 1522|       |
 1523|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 1524|  2.37k|   const uint8_t fill_discarded = min ? 0 : 0xff;
  ------------------
  |  Branch (1524:35): [True: 1.18k, False: 1.18k]
  ------------------
 1525|  4.83k|   for(size_t i = 0; i < discarded_octets; i++) {
  ------------------
  |  Branch (1525:22): [True: 2.46k, False: 2.37k]
  ------------------
 1526|  2.46k|      decoded.push_back(fill_discarded);
 1527|  2.46k|   }
 1528|       |
 1529|       |   // for min addresses they should already be 0, but we set them to zero regardless
 1530|       |   // for max addresses this turns the unused bits to 1
 1531|  7.50k|   for(size_t i = 0; i < unused; i++) {
  ------------------
  |  Branch (1531:22): [True: 5.13k, False: 2.37k]
  ------------------
 1532|  5.13k|      if(min) {
  ------------------
  |  Branch (1532:10): [True: 2.60k, False: 2.52k]
  ------------------
 1533|  2.60k|         decoded[version_octets - 1 - discarded_octets] &= ~(1 << i);
 1534|  2.60k|      } else {
 1535|  2.52k|         decoded[version_octets - 1 - discarded_octets] |= (1 << i);
 1536|  2.52k|      }
 1537|  5.13k|   }
 1538|       |
 1539|  2.37k|   return IPAddressBlocks::IPAddress<V>(decoded);
 1540|  2.40k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 1458|  1.42k|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 1459|  1.42k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1460|       |
 1461|       |   // this can either be a prefix or a single address
 1462|  1.42k|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (1462:7): [True: 1.24k, False: 182]
  ------------------
 1463|       |      // construct a min and a max address from the prefix
 1464|       |
 1465|  1.24k|      std::vector<uint8_t> prefix_min;
 1466|  1.24k|      from.decode(prefix_min, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal);
 1467|       |
 1468|       |      // copy because we modify the address in `decode_single_address`, but we need it twice for min and max
 1469|  1.24k|      std::vector<uint8_t> prefix_max(prefix_min);
 1470|       |
 1471|       |      // min address gets filled with 0's
 1472|  1.24k|      m_min = decode_single_address(std::move(prefix_min), true);
 1473|       |      // max address with 1's
 1474|  1.24k|      m_max = decode_single_address(std::move(prefix_max), false);
 1475|  1.24k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1475:14): [True: 88, False: 94]
  ------------------
 1476|       |      // this is a range
 1477|       |
 1478|     88|      std::vector<uint8_t> addr_min;
 1479|     88|      std::vector<uint8_t> addr_max;
 1480|       |
 1481|     88|      from.start_sequence()
 1482|     88|         .decode(addr_min, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal)
 1483|     88|         .decode(addr_max, ASN1_Type::OctetString, ASN1_Type::BitString, ASN1_Class::Universal)
 1484|     88|         .end_cons();
 1485|       |
 1486|     88|      m_min = decode_single_address(std::move(addr_min), true);
 1487|     88|      m_max = decode_single_address(std::move(addr_max), false);
 1488|       |
 1489|     88|      if(m_min > m_max) {
  ------------------
  |  Branch (1489:10): [True: 12, False: 76]
  ------------------
 1490|     12|         throw Decoding_Error("IP address ranges must be sorted.");
 1491|     12|      }
 1492|     94|   } else {
 1493|     94|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 1494|     94|   }
 1495|  1.42k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE21decode_single_addressENSt3__16vectorIhNS5_9allocatorIhEEEEb:
 1499|  2.57k|                                                                                          bool min) {
 1500|  2.57k|   const size_t version_octets = static_cast<size_t>(V);
 1501|       |
 1502|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 1503|       |
 1504|       |   // we have to account for the octet at the beginning that specifies how many bits are unused in the last octet
 1505|  2.57k|   if(decoded.empty() || decoded.size() > version_octets + 1) {
  ------------------
  |  Branch (1505:7): [True: 10, False: 2.56k]
  |  Branch (1505:26): [True: 4, False: 2.55k]
  ------------------
 1506|     14|      throw Decoding_Error(fmt("IP address range entries must have a length between 1 and {} bytes.", version_octets));
 1507|     14|   }
 1508|       |
 1509|  2.55k|   const uint8_t unused = decoded.front();
 1510|  2.55k|   const uint8_t discarded_octets = version_octets - (static_cast<uint8_t>(decoded.size()) - 1);
 1511|       |
 1512|  2.55k|   decoded.erase(decoded.begin());
 1513|       |
 1514|  2.55k|   if(decoded.empty() && unused != 0) {
  ------------------
  |  Branch (1514:7): [True: 22, False: 2.53k]
  |  Branch (1514:26): [True: 14, False: 8]
  ------------------
 1515|     14|      throw Decoding_Error("IP address range entry specified unused bits, but did not provide any octets.");
 1516|     14|   }
 1517|       |
 1518|       |   // if they were 8, the entire octet should have been discarded
 1519|  2.54k|   if(unused > 7) {
  ------------------
  |  Branch (1519:7): [True: 16, False: 2.52k]
  ------------------
 1520|     16|      throw Decoding_Error("IP address range entry specified invalid number of unused bits.");
 1521|     16|   }
 1522|       |
 1523|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 1524|  2.52k|   const uint8_t fill_discarded = min ? 0 : 0xff;
  ------------------
  |  Branch (1524:35): [True: 1.26k, False: 1.26k]
  ------------------
 1525|  31.8k|   for(size_t i = 0; i < discarded_octets; i++) {
  ------------------
  |  Branch (1525:22): [True: 29.3k, False: 2.52k]
  ------------------
 1526|  29.3k|      decoded.push_back(fill_discarded);
 1527|  29.3k|   }
 1528|       |
 1529|       |   // for min addresses they should already be 0, but we set them to zero regardless
 1530|       |   // for max addresses this turns the unused bits to 1
 1531|  7.39k|   for(size_t i = 0; i < unused; i++) {
  ------------------
  |  Branch (1531:22): [True: 4.86k, False: 2.52k]
  ------------------
 1532|  4.86k|      if(min) {
  ------------------
  |  Branch (1532:10): [True: 2.46k, False: 2.39k]
  ------------------
 1533|  2.46k|         decoded[version_octets - 1 - discarded_octets] &= ~(1 << i);
 1534|  2.46k|      } else {
 1535|  2.39k|         decoded[version_octets - 1 - discarded_octets] |= (1 << i);
 1536|  2.39k|      }
 1537|  4.86k|   }
 1538|       |
 1539|  2.52k|   return IPAddressBlocks::IPAddress<V>(decoded);
 1540|  2.54k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 1322|    408|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 1323|    408|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1324|       |
 1325|    408|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (1325:7): [True: 3, False: 405]
  ------------------
 1326|      3|      from.decode_null();
 1327|      3|      m_ip_addr_ranges = std::nullopt;
 1328|    405|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1328:14): [True: 371, False: 34]
  ------------------
 1329|    371|      std::vector<IPAddressOrRange<V>> ip_ranges;
 1330|    371|      from.decode_list(ip_ranges);
 1331|    371|      m_ip_addr_ranges = sort_and_merge_ranges<IPAddressOrRange<V>>(ip_ranges);
 1332|    371|   } else {
 1333|     34|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 1334|     34|   }
 1335|    408|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 1322|    453|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 1323|    453|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1324|       |
 1325|    453|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (1325:7): [True: 10, False: 443]
  ------------------
 1326|     10|      from.decode_null();
 1327|     10|      m_ip_addr_ranges = std::nullopt;
 1328|    443|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1328:14): [True: 401, False: 42]
  ------------------
 1329|    401|      std::vector<IPAddressOrRange<V>> ip_ranges;
 1330|    401|      from.decode_list(ip_ranges);
 1331|    401|      m_ip_addr_ranges = sort_and_merge_ranges<IPAddressOrRange<V>>(ip_ranges);
 1332|    401|   } else {
 1333|     42|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 1334|     42|   }
 1335|    453|}
_ZN5Botan10Extensions15create_extn_objERKNS_3OIDEbRKNSt3__16vectorIhNS4_9allocatorIhEEEE:
  130|  11.2k|                                                                   const std::vector<uint8_t>& body) {
  131|  11.2k|   auto extn = extension_from_oid(oid);
  132|       |
  133|  11.2k|   if(!extn) {
  ------------------
  |  Branch (133:7): [True: 3.52k, False: 7.74k]
  ------------------
  134|       |      // some other unknown extension type
  135|  3.52k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  136|  7.74k|   } else {
  137|  7.74k|      try {
  138|  7.74k|         extn->decode_inner(body);
  139|  7.74k|         return extn;
  140|  7.74k|      } catch(const Exception&) {
  141|       |         // OID was recognized but contents failed to decode
  142|  5.25k|         extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical, /*failed_to_decode=*/true);
  143|  5.25k|      }
  144|  7.74k|   }
  145|       |
  146|       |   // This is always Unknown_Extension:
  147|  8.77k|   extn->decode_inner(body);
  148|  8.77k|   return extn;
  149|  11.2k|}
_ZNK5Botan10Extensions15Extensions_Info3objEv:
  151|  2.53k|const Certificate_Extension& Extensions::Extensions_Info::obj() const {
  152|  2.53k|   BOTAN_ASSERT_NONNULL(m_obj.get());
  ------------------
  |  |  116|  2.53k|   do {                                                                                   \
  |  |  117|  2.53k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.53k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.53k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.53k]
  |  |  ------------------
  ------------------
  153|  2.53k|   return *m_obj;
  154|  2.53k|}
_ZNK5Botan10Extensions13extension_setERKNS_3OIDE:
  213|    727|bool Extensions::extension_set(const OID& oid) const {
  214|    727|   return m_extension_info.contains(oid);
  215|    727|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  234|  7.99k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  235|  7.99k|   auto extn = m_extension_info.find(oid);
  236|  7.99k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (236:7): [True: 5.45k, False: 2.53k]
  ------------------
  237|  5.45k|      return nullptr;
  238|  5.45k|   }
  239|       |
  240|  2.53k|   return &extn->second.obj();
  241|  7.99k|}
_ZN5Botan10Extensions11decode_fromERNS_11BER_DecoderE:
  290|  3.03k|void Extensions::decode_from(BER_Decoder& from_source) {
  291|  3.03k|   m_extension_oids.clear();
  292|  3.03k|   m_extension_info.clear();
  293|       |
  294|  3.03k|   BER_Decoder sequence = from_source.start_sequence();
  295|       |
  296|  14.1k|   while(sequence.more_items()) {
  ------------------
  |  Branch (296:10): [True: 12.3k, False: 1.75k]
  ------------------
  297|  12.3k|      OID oid;
  298|  12.3k|      bool critical = false;
  299|  12.3k|      std::vector<uint8_t> bits;
  300|       |
  301|  12.3k|      sequence.start_sequence()
  302|  12.3k|         .decode(oid)
  303|  12.3k|         .decode_optional(critical, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  304|  12.3k|         .decode(bits, ASN1_Type::OctetString)
  305|  12.3k|         .end_cons();
  306|       |
  307|  12.3k|      auto obj = create_extn_obj(oid, critical, bits);
  308|  12.3k|      Extensions_Info info(critical, bits, std::move(obj));
  309|       |
  310|       |      // RFC 5280 4.2: "A certificate MUST NOT include more than one
  311|       |      // instance of a particular extension."
  312|  12.3k|      if(!m_extension_info.emplace(oid, info).second) {
  ------------------
  |  Branch (312:10): [True: 1.28k, False: 11.0k]
  ------------------
  313|  1.28k|         throw Decoding_Error("Duplicate certificate extension encountered");
  314|  1.28k|      }
  315|  11.0k|      m_extension_oids.push_back(oid);
  316|  11.0k|   }
  317|  1.75k|   sequence.verify_end();
  318|  1.75k|}
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2Ebm:
  323|    709|      Basic_Constraints(is_ca, is_ca ? std::optional<size_t>(path_length_constraint) : std::nullopt) {}
  ------------------
  |  Branch (323:32): [True: 0, False: 709]
  ------------------
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2EbNSt3__18optionalImEE:
  326|    709|      m_is_ca(is_ca), m_path_length_constraint(path_length_constraint) {
  327|    709|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (327:7): [True: 709, False: 0]
  |  Branch (327:19): [True: 0, False: 709]
  ------------------
  328|       |      // RFC 5280 Sec 4.2.1.9 "CAs MUST NOT include the pathLenConstraint field unless the cA boolean is asserted"
  329|      0|      throw Invalid_Argument(
  330|      0|         "Basic_Constraints nonsensical to set a path length constraint for a non-CA basicConstraints");
  331|      0|   }
  332|    709|}
_ZN5Botan14Cert_Extension17Basic_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  363|    709|void Basic_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  364|       |   /*
  365|       |   * RFC 5280 Section 4.2.1.9
  366|       |   *
  367|       |   * BasicConstraints ::= SEQUENCE {
  368|       |   *    cA                      BOOLEAN DEFAULT FALSE,
  369|       |   *    pathLenConstraint       INTEGER (0..MAX) OPTIONAL }
  370|       |   */
  371|    709|   BER_Decoder(in, BER_Decoder::Limits::DER())
  372|    709|      .start_sequence()
  373|    709|      .decode_optional(m_is_ca, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  374|    709|      .decode_optional(m_path_length_constraint, ASN1_Type::Integer, ASN1_Class::Universal)
  375|    709|      .end_cons()
  376|    709|      .verify_end();
  377|       |
  378|       |   /* RFC 5280 Section 4.2.1.9:
  379|       |   *  "CAs MUST NOT include the pathLenConstraint field unless the cA boolean
  380|       |   *  is asserted and the key usage extension asserts the keyCertSign bit" */
  381|    709|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (381:7): [True: 227, False: 482]
  |  Branch (381:19): [True: 3, False: 224]
  ------------------
  382|      3|      throw Decoding_Error("BasicConstraints pathLenConstraint must not be present when cA is FALSE");
  383|      3|   }
  384|    709|}
_ZN5Botan14Cert_Extension9Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  412|    932|void Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  413|       |   /* RFC 5280 Section 4.2.1.3 - KeyUsage ::= BIT STRING */
  414|    932|   std::vector<uint8_t> bits;
  415|    932|   BER_Decoder(in, BER_Decoder::Limits::DER())
  416|    932|      .decode(bits, ASN1_Type::BitString, ASN1_Type::BitString, ASN1_Class::Universal)
  417|    932|      .verify_end();
  418|       |
  419|    932|   const uint16_t usage = [&bits]() -> uint16_t {
  420|    932|      switch(bits.size()) {
  421|    932|         case 0:
  422|    932|            return 0;
  423|    932|         case 1:
  424|    932|            return make_uint16(bits[0], 0);
  425|    932|         case 2:
  426|    932|            return make_uint16(bits[0], bits[1]);
  427|    932|         default:
  428|    932|            throw Decoding_Error("Invalid KeyUsage bitstring encoding");
  429|    932|      }
  430|    932|   }();
  431|       |
  432|       |   /* RFC 5280 Section 4.2.1.3:
  433|       |   *  "When the keyUsage extension appears in a certificate, at least one of
  434|       |   *  the bits MUST be set to 1." */
  435|    932|   if(usage == 0) {
  ------------------
  |  Branch (435:7): [True: 2, False: 930]
  ------------------
  436|      2|      throw Decoding_Error("KeyUsage extension must have at least one bit set");
  437|      2|   }
  438|       |
  439|    930|   m_constraints = Key_Constraints(usage);
  440|    930|}
_ZN5Botan14Cert_Extension14Subject_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  454|    355|void Subject_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  455|       |   /* RFC 5280 Section 4.2.1.2 - SubjectKeyIdentifier ::= KeyIdentifier */
  456|    355|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_key_id, ASN1_Type::OctetString).verify_end();
  457|       |
  458|    355|   if(m_key_id.empty()) {
  ------------------
  |  Branch (458:7): [True: 0, False: 355]
  ------------------
  459|      0|      throw Decoding_Error("SubjectKeyIdentifier must not be empty");
  460|      0|   }
  461|    355|   if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (461:7): [True: 0, False: 355]
  ------------------
  462|      0|      throw Decoding_Error(
  463|      0|         fmt("SubjectKeyIdentifier length {} exceeds limit of {} bytes", m_key_id.size(), MaximumKeyIdentifierLength));
  464|      0|   }
  465|    355|}
_ZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  500|    474|void Authority_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  501|       |   /*
  502|       |   * RFC 5280 Section 4.2.1.1
  503|       |   *
  504|       |   * AuthorityKeyIdentifier ::= SEQUENCE {
  505|       |   *    keyIdentifier             [0] KeyIdentifier           OPTIONAL,
  506|       |   *    authorityCertIssuer       [1] GeneralNames            OPTIONAL,
  507|       |   *    authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
  508|       |   */
  509|    474|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  510|    474|   BER_Decoder seq = ber.start_sequence();
  511|       |
  512|    474|   const bool key_id_present = seq.peek_next_object().is_a(0, ASN1_Class::ContextSpecific);
  513|       |
  514|    474|   seq.decode_optional_string(m_key_id, ASN1_Type::OctetString, 0).discard_remaining().end_cons();
  515|    474|   ber.verify_end();
  516|       |
  517|    474|   if(key_id_present) {
  ------------------
  |  Branch (517:7): [True: 134, False: 340]
  ------------------
  518|    134|      if(m_key_id.empty()) {
  ------------------
  |  Branch (518:10): [True: 3, False: 131]
  ------------------
  519|      3|         throw Decoding_Error("AuthorityKeyIdentifier keyIdentifier must not be empty");
  520|      3|      }
  521|    131|      if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (521:10): [True: 5, False: 126]
  ------------------
  522|      5|         throw Decoding_Error(fmt("AuthorityKeyIdentifier keyIdentifier length {} exceeds limit of {} bytes",
  523|      5|                                  m_key_id.size(),
  524|      5|                                  MaximumKeyIdentifierLength));
  525|      5|      }
  526|    131|   }
  527|    474|}
_ZN5Botan14Cert_Extension24Subject_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  550|    626|void Subject_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  551|       |   /* RFC 5280 Section 4.2.1.6 - SubjectAltName ::= GeneralNames
  552|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  553|    626|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  554|    626|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (554:7): [True: 16, False: 610]
  ------------------
  555|     16|      throw Decoding_Error("SubjectAlternativeName extension must contain at least one GeneralName");
  556|     16|   }
  557|    626|}
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  562|    153|void Issuer_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  563|       |   /* RFC 5280 Section 4.2.1.7 - IssuerAltName ::= GeneralNames
  564|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  565|    153|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  566|    153|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (566:7): [True: 31, False: 122]
  ------------------
  567|     31|      throw Decoding_Error("IssuerAlternativeName extension must contain at least one GeneralName");
  568|     31|   }
  569|    153|}
_ZN5Botan14Cert_Extension18Extended_Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  583|    406|void Extended_Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  584|       |   /* RFC 5280 Section 4.2.1.12 - ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId */
  585|    406|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_oids).verify_end();
  586|    406|   if(m_oids.empty()) {
  ------------------
  |  Branch (586:7): [True: 6, False: 400]
  ------------------
  587|      6|      throw Decoding_Error("ExtendedKeyUsage extension must contain at least one KeyPurposeId");
  588|      6|   }
  589|    406|}
_ZN5Botan14Cert_Extension16Name_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  601|    302|void Name_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  602|       |   /*
  603|       |   * RFC 5280 Section 4.2.1.10
  604|       |   *
  605|       |   * NameConstraints ::= SEQUENCE {
  606|       |   *    permittedSubtrees       [0] GeneralSubtrees OPTIONAL,
  607|       |   *    excludedSubtrees        [1] GeneralSubtrees OPTIONAL }
  608|       |   */
  609|    302|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  610|    302|   BER_Decoder inner = ber.start_sequence();
  611|       |
  612|    302|   std::vector<GeneralSubtree> permitted;
  613|    302|   if(inner.decode_optional_list(permitted, ASN1_Type(0), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (613:7): [True: 26, False: 276]
  ------------------
  614|     26|      if(permitted.empty()) {
  ------------------
  |  Branch (614:10): [True: 4, False: 22]
  ------------------
  615|      4|         throw Decoding_Error("Empty NameConstraint permitted list");
  616|      4|      }
  617|     26|   }
  618|       |
  619|    298|   std::vector<GeneralSubtree> excluded;
  620|    298|   if(inner.decode_optional_list(excluded, ASN1_Type(1), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (620:7): [True: 27, False: 271]
  ------------------
  621|     27|      if(excluded.empty()) {
  ------------------
  |  Branch (621:10): [True: 4, False: 23]
  ------------------
  622|      4|         throw Decoding_Error("Empty NameConstraint excluded list");
  623|      4|      }
  624|     27|   }
  625|       |
  626|    294|   inner.end_cons();
  627|    294|   ber.verify_end();
  628|       |
  629|    294|   if(permitted.empty() && excluded.empty()) {
  ------------------
  |  Branch (629:7): [True: 23, False: 271]
  |  Branch (629:28): [True: 1, False: 22]
  ------------------
  630|      1|      throw Decoding_Error("Empty NameConstraint extension");
  631|      1|   }
  632|       |
  633|    293|   m_name_constraints = NameConstraints(std::move(permitted), std::move(excluded));
  634|    293|}
_ZN5Botan14Cert_Extension20Certificate_Policies12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  716|    127|void Certificate_Policies::decode_inner(const std::vector<uint8_t>& in) {
  717|       |   /* RFC 5280 Section 4.2.1.4 - CertificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation */
  718|    127|   std::vector<Policy_Information> policies;
  719|       |
  720|    127|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(policies).verify_end();
  721|    127|   if(policies.empty()) {
  ------------------
  |  Branch (721:7): [True: 1, False: 126]
  ------------------
  722|      1|      throw Decoding_Error("CertificatePolicies extension must contain at least one PolicyInformation");
  723|      1|   }
  724|    126|   m_oids.clear();
  725|    126|   for(const auto& policy : policies) {
  ------------------
  |  Branch (725:27): [True: 76, False: 126]
  ------------------
  726|     76|      m_oids.push_back(policy.oid());
  727|     76|   }
  728|    126|}
_ZN5Botan14Cert_Extension28Authority_Information_Access12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  768|    333|void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) {
  769|       |   /*
  770|       |   * RFC 5280 Section 4.2.2.1
  771|       |   *
  772|       |   * AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription
  773|       |   * AccessDescription ::= SEQUENCE {
  774|       |   *    accessMethod          OBJECT IDENTIFIER,
  775|       |   *    accessLocation        GeneralName }
  776|       |   */
  777|    333|   BER_Decoder outer(in, BER_Decoder::Limits::DER());
  778|    333|   BER_Decoder ber = outer.start_sequence();
  779|       |
  780|    333|   const OID ocsp_responder = OID::from_string("PKIX.OCSP");
  781|    333|   const OID ca_issuer = OID::from_string("PKIX.CertificateAuthorityIssuers");
  782|       |
  783|    333|   size_t access_descriptions_seen = 0;
  784|    874|   while(ber.more_items()) {
  ------------------
  |  Branch (784:10): [True: 541, False: 333]
  ------------------
  785|    541|      OID oid;
  786|       |
  787|    541|      BER_Decoder info = ber.start_sequence();
  788|       |
  789|    541|      info.decode(oid);
  790|    541|      const BER_Object name = info.get_next_object();
  791|    541|      info.end_cons();
  792|       |
  793|    541|      access_descriptions_seen += 1;
  794|       |
  795|    541|      if(oid == ocsp_responder && name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (795:10): [True: 45, False: 496]
  |  Branch (795:35): [True: 35, False: 10]
  ------------------
  796|     35|         m_ocsp_responders.push_back(ASN1::to_string(name));
  797|    506|      } else if(oid == ca_issuer && name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (797:17): [True: 158, False: 348]
  |  Branch (797:37): [True: 146, False: 12]
  ------------------
  798|    146|         m_ca_issuers.push_back(ASN1::to_string(name));
  799|    146|      }
  800|    541|   }
  801|       |
  802|    333|   ber.end_cons();
  803|    333|   outer.verify_end();
  804|       |
  805|    333|   if(access_descriptions_seen == 0) {
  ------------------
  |  Branch (805:7): [True: 0, False: 333]
  ------------------
  806|      0|      throw Decoding_Error("AuthorityInformationAccess extension must contain at least one AccessDescription");
  807|      0|   }
  808|    333|}
_ZN5Botan14Cert_Extension10CRL_Number12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  842|     33|void CRL_Number::decode_inner(const std::vector<uint8_t>& in) {
  843|       |   /* RFC 5280 Section 5.2.3 - CRLNumber ::= INTEGER (0..MAX) */
  844|     33|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_crl_number).verify_end();
  845|     33|   m_has_value = true;
  846|     33|}
_ZN5Botan14Cert_Extension14CRL_ReasonCode12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  860|     32|void CRL_ReasonCode::decode_inner(const std::vector<uint8_t>& in) {
  861|       |   /*
  862|       |   * RFC 5280 Section 5.3.1
  863|       |   *
  864|       |   * CRLReason ::= ENUMERATED {
  865|       |   *      unspecified             (0),
  866|       |   *      keyCompromise           (1),
  867|       |   *      cACompromise            (2),
  868|       |   *      affiliationChanged      (3),
  869|       |   *      superseded              (4),
  870|       |   *      cessationOfOperation    (5),
  871|       |   *      certificateHold         (6),
  872|       |   *           -- value 7 is not used
  873|       |   *      removeFromCRL           (8),
  874|       |   *      privilegeWithdrawn      (9),
  875|       |   *      aACompromise           (10) }
  876|       |   */
  877|     32|   size_t reason_code = 0;
  878|     32|   BER_Decoder(in, BER_Decoder::Limits::DER())
  879|     32|      .decode(reason_code, ASN1_Type::Enumerated, ASN1_Class::Universal)
  880|     32|      .verify_end();
  881|       |
  882|     32|   if(reason_code == 7 || reason_code > 10) {
  ------------------
  |  Branch (882:7): [True: 17, False: 15]
  |  Branch (882:27): [True: 15, False: 0]
  ------------------
  883|     15|      throw Decoding_Error(fmt("CRLReason has unknown enumeration value {}", reason_code));
  884|     15|   }
  885|       |
  886|     17|   m_reason = static_cast<CRL_Code>(reason_code);
  887|     17|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  895|    626|void CRL_Distribution_Points::decode_inner(const std::vector<uint8_t>& buf) {
  896|       |   /*
  897|       |   * RFC 5280 Section 4.2.1.13
  898|       |   *
  899|       |   * CRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint
  900|       |   */
  901|    626|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_list(m_distribution_points).verify_end();
  902|       |
  903|    626|   if(m_distribution_points.empty()) {
  ------------------
  |  Branch (903:7): [True: 11, False: 615]
  ------------------
  904|     11|      throw Decoding_Error("CRLDistributionPoints extension must contain at least one DistributionPoint");
  905|     11|   }
  906|       |
  907|    615|   for(const auto& distribution_point : m_distribution_points) {
  ------------------
  |  Branch (907:39): [True: 227, False: 615]
  ------------------
  908|    267|      for(const auto& uri : distribution_point.point().uris()) {
  ------------------
  |  Branch (908:27): [True: 267, False: 227]
  ------------------
  909|    267|         m_crl_distribution_urls.push_back(uri);
  910|    267|      }
  911|    227|   }
  912|    615|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderE:
  932|    705|void CRL_Distribution_Points::Distribution_Point::decode_from(BER_Decoder& ber) {
  933|    705|   ber.start_sequence()
  934|    705|      .start_context_specific(0)
  935|    705|      .decode_optional_implicit(m_point,
  936|    705|                                ASN1_Type(0),
  937|    705|                                ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  938|    705|                                ASN1_Type::Sequence,
  939|    705|                                ASN1_Class::Constructed)
  940|    705|      .end_cons()
  941|    705|      .end_cons();
  942|    705|}
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  948|     24|void CRL_Issuing_Distribution_Point::decode_inner(const std::vector<uint8_t>& buf) {
  949|       |   /* RFC 5280 Section 5.2.5 - IssuingDistributionPoint ::= SEQUENCE { ... } */
  950|     24|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode(m_distribution_point).verify_end();
  951|     24|}
_ZN5Botan14Cert_Extension10TNAuthList5Entry11decode_fromERNS_11BER_DecoderE:
  957|    152|void TNAuthList::Entry::decode_from(class BER_Decoder& ber) {
  958|    152|   const BER_Object obj = ber.get_next_object();
  959|       |
  960|    152|   if(obj.get_class() != (ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (960:7): [True: 7, False: 145]
  ------------------
  961|      7|      throw Decoding_Error(fmt("Unexpected TNEntry class tag {}", static_cast<uint32_t>(obj.get_class())));
  962|      7|   }
  963|       |
  964|    145|   const uint32_t type_tag = static_cast<uint32_t>(obj.type_tag());
  965|       |
  966|    145|   if(type_tag == ServiceProviderCode) {
  ------------------
  |  Branch (966:7): [True: 23, False: 122]
  ------------------
  967|     23|      m_type = ServiceProviderCode;
  968|     23|      ASN1_String spc_string;
  969|     23|      BER_Decoder(obj, ber.limits()).decode(spc_string).verify_end();
  970|     23|      m_data = std::move(spc_string);
  971|    122|   } else if(type_tag == TelephoneNumberRange) {
  ------------------
  |  Branch (971:14): [True: 88, False: 34]
  ------------------
  972|     88|      m_type = TelephoneNumberRange;
  973|     88|      m_data = RangeContainer();
  974|     88|      auto& range_items = std::get<RangeContainer>(m_data);
  975|     88|      BER_Decoder outer(obj, ber.limits());
  976|     88|      BER_Decoder list = outer.start_sequence();
  977|    175|      while(list.more_items()) {
  ------------------
  |  Branch (977:13): [True: 112, False: 63]
  ------------------
  978|    112|         TelephoneNumberRangeData entry;
  979|       |
  980|    112|         list.decode(entry.start);
  981|    112|         if(!is_valid_telephone_number(entry.start)) {
  ------------------
  |  Branch (981:13): [True: 22, False: 90]
  ------------------
  982|     22|            throw Decoding_Error(fmt("Invalid TelephoneNumberRange start {}", entry.start.value()));
  983|     22|         }
  984|       |
  985|     90|         list.decode(entry.count);
  986|     90|         if(entry.count < 2) {
  ------------------
  |  Branch (986:13): [True: 3, False: 87]
  ------------------
  987|      3|            throw Decoding_Error(fmt("Invalid TelephoneNumberRange count {}", entry.count));
  988|      3|         }
  989|       |
  990|     87|         range_items.emplace_back(std::move(entry));
  991|     87|      }
  992|     63|      list.end_cons();
  993|     63|      outer.verify_end();
  994|       |
  995|     63|      if(range_items.empty()) {
  ------------------
  |  Branch (995:10): [True: 1, False: 62]
  ------------------
  996|      1|         throw Decoding_Error("TelephoneNumberRange is empty");
  997|      1|      }
  998|     63|   } else if(type_tag == TelephoneNumber) {
  ------------------
  |  Branch (998:14): [True: 21, False: 13]
  ------------------
  999|     21|      m_type = TelephoneNumber;
 1000|     21|      ASN1_String one_string;
 1001|     21|      BER_Decoder(obj, ber.limits()).decode(one_string).verify_end();
 1002|     21|      if(!is_valid_telephone_number(one_string)) {
  ------------------
  |  Branch (1002:10): [True: 4, False: 17]
  ------------------
 1003|      4|         throw Decoding_Error(fmt("Invalid TelephoneNumber {}", one_string.value()));
 1004|      4|      }
 1005|     17|      m_data = std::move(one_string);
 1006|     17|   } else {
 1007|     13|      throw Decoding_Error(fmt("Unexpected TNEntry type code {}", type_tag));
 1008|    102|   };
 1009|    102|}
_ZN5Botan14Cert_Extension10TNAuthList12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1015|    144|void TNAuthList::decode_inner(const std::vector<uint8_t>& in) {
 1016|       |   /* RFC 8226 Section 9 - TNAuthorizationList ::= SEQUENCE SIZE (1..MAX) OF TNEntry */
 1017|    144|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_tn_entries).verify_end();
 1018|    144|   if(m_tn_entries.empty()) {
  ------------------
  |  Branch (1018:7): [True: 0, False: 144]
  ------------------
 1019|      0|      throw Decoding_Error("TNAuthorizationList is empty");
 1020|      0|   }
 1021|    144|}
_ZN5Botan14Cert_Extension15IPAddressBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1044|    981|void IPAddressBlocks::decode_inner(const std::vector<uint8_t>& in) {
 1045|       |   /* RFC 3779 Section 2.2.3.1 - IPAddrBlocks ::= SEQUENCE OF IPAddressFamily */
 1046|    981|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_ip_addr_blocks).verify_end();
 1047|    981|   sort_and_merge();
 1048|    981|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamily11decode_fromERNS_11BER_DecoderE:
 1069|  1.05k|void IPAddressBlocks::IPAddressFamily::decode_from(Botan::BER_Decoder& from) {
 1070|  1.05k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1071|  1.05k|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (1071:7): [True: 54, False: 1.00k]
  ------------------
 1072|     54|      throw Decoding_Error(fmt("Unexpected type for IPAddressFamily {}", static_cast<uint32_t>(next_tag)));
 1073|     54|   }
 1074|       |
 1075|  1.00k|   BER_Decoder seq_dec = from.start_sequence();
 1076|       |
 1077|  1.00k|   std::vector<uint8_t> addr_family;
 1078|  1.00k|   seq_dec.decode(addr_family, ASN1_Type::OctetString);
 1079|  1.00k|   const size_t addr_family_length = addr_family.size();
 1080|       |
 1081|  1.00k|   if(addr_family_length != 2 && addr_family_length != 3) {
  ------------------
  |  Branch (1081:7): [True: 891, False: 110]
  |  Branch (1081:34): [True: 12, False: 879]
  ------------------
 1082|     12|      throw Decoding_Error("(S)AFI can only contain 2 or 3 bytes");
 1083|     12|   }
 1084|       |
 1085|    989|   m_afi = (addr_family[0] << 8) | addr_family[1];
 1086|       |
 1087|    989|   if(addr_family_length == 3) {
  ------------------
  |  Branch (1087:7): [True: 879, False: 110]
  ------------------
 1088|    879|      m_safi = addr_family[2];
 1089|    879|   }
 1090|       |
 1091|    989|   if(m_afi == 1) {
  ------------------
  |  Branch (1091:7): [True: 408, False: 581]
  ------------------
 1092|    408|      IPAddressChoice<Version::IPv4> addr_choice;
 1093|    408|      seq_dec.decode(addr_choice);
 1094|    408|      m_ip_addr_choice = addr_choice;
 1095|    581|   } else if(m_afi == 2) {
  ------------------
  |  Branch (1095:14): [True: 453, False: 128]
  ------------------
 1096|    453|      IPAddressChoice<Version::IPv6> addr_choice;
 1097|    453|      seq_dec.decode(addr_choice);
 1098|    453|      m_ip_addr_choice = addr_choice;
 1099|    453|   } else {
 1100|    128|      throw Decoding_Error("Only AFI IPv4 and IPv6 are supported.");
 1101|    128|   }
 1102|       |
 1103|    861|   seq_dec.end_cons();
 1104|    861|}
_ZN5Botan14Cert_Extension8ASBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1648|  1.48k|void ASBlocks::decode_inner(const std::vector<uint8_t>& in) {
 1649|       |   /* RFC 3779 Section 3.2.3.1 - ASIdentifiers ::= SEQUENCE { ... } */
 1650|  1.48k|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_as_identifiers).verify_end();
 1651|  1.48k|}
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiers11decode_fromERNS_11BER_DecoderE:
 1686|  1.48k|void ASBlocks::ASIdentifiers::decode_from(Botan::BER_Decoder& from) {
 1687|  1.48k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1688|  1.48k|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (1688:7): [True: 69, False: 1.42k]
  ------------------
 1689|     69|      throw Decoding_Error(fmt("Unexpected type for ASIdentifiers {}", static_cast<uint32_t>(next_tag)));
 1690|     69|   }
 1691|       |
 1692|  1.42k|   BER_Decoder seq_dec = from.start_sequence();
 1693|       |
 1694|  1.42k|   const BER_Object elem_obj = seq_dec.get_next_object();
 1695|  1.42k|   const uint32_t elem_type_tag = static_cast<uint32_t>(elem_obj.type_tag());
 1696|       |
 1697|       |   // asnum, potentially followed by an rdi
 1698|  1.42k|   if(elem_type_tag == 0) {
  ------------------
  |  Branch (1698:7): [True: 869, False: 551]
  ------------------
 1699|    869|      BER_Decoder as_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 1700|    869|      ASIdentifierChoice asnum;
 1701|    869|      as_obj_ber.decode(asnum).verify_end();
 1702|    869|      m_asnum = asnum;
 1703|       |
 1704|    869|      const BER_Object rdi_obj = seq_dec.get_next_object();
 1705|    869|      const ASN1_Type rdi_type_tag = rdi_obj.type_tag();
 1706|    869|      if(static_cast<uint32_t>(rdi_type_tag) == 1) {
  ------------------
  |  Branch (1706:10): [True: 11, False: 858]
  ------------------
 1707|     11|         BER_Decoder rdi_obj_ber = BER_Decoder(rdi_obj, seq_dec.limits());
 1708|     11|         ASIdentifierChoice rdi;
 1709|     11|         rdi_obj_ber.decode(rdi).verify_end();
 1710|     11|         m_rdi = rdi;
 1711|    858|      } else if(rdi_type_tag != ASN1_Type::NoObject) {
  ------------------
  |  Branch (1711:17): [True: 52, False: 806]
  ------------------
 1712|     52|         throw Decoding_Error(fmt("Unexpected type for ASIdentifiers rdi: {}", static_cast<uint32_t>(rdi_type_tag)));
 1713|     52|      }
 1714|    869|   }
 1715|       |
 1716|       |   // just an rdi
 1717|  1.36k|   if(elem_type_tag == 1) {
  ------------------
  |  Branch (1717:7): [True: 441, False: 927]
  ------------------
 1718|    441|      BER_Decoder rdi_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 1719|    441|      ASIdentifierChoice rdi;
 1720|    441|      rdi_obj_ber.decode(rdi).verify_end();
 1721|    441|      m_rdi = rdi;
 1722|    441|      const BER_Object end = seq_dec.get_next_object();
 1723|    441|      const ASN1_Type end_type_tag = end.type_tag();
 1724|    441|      if(end_type_tag != ASN1_Type::NoObject) {
  ------------------
  |  Branch (1724:10): [True: 24, False: 417]
  ------------------
 1725|     24|         throw Decoding_Error(
 1726|     24|            fmt("Unexpected element with type {} in ASIdentifiers", static_cast<uint32_t>(end_type_tag)));
 1727|     24|      }
 1728|    441|   }
 1729|       |
 1730|  1.34k|   seq_dec.end_cons();
 1731|       |
 1732|  1.34k|   if(!m_asnum.has_value() && !m_rdi.has_value()) {
  ------------------
  |  Branch (1732:7): [True: 20, False: 1.32k]
  |  Branch (1732:31): [True: 14, False: 6]
  ------------------
 1733|     14|      throw Decoding_Error("Invalid encoding for ASIdentifiers");
 1734|     14|   }
 1735|  1.34k|}
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoice11decode_fromERNS_11BER_DecoderE:
 1749|  1.32k|void ASBlocks::ASIdentifierChoice::decode_from(Botan::BER_Decoder& from) {
 1750|  1.32k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1751|       |
 1752|  1.32k|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (1752:7): [True: 19, False: 1.30k]
  ------------------
 1753|     19|      from.decode_null();
 1754|     19|      m_as_ranges = std::nullopt;
 1755|  1.30k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1755:14): [True: 1.20k, False: 99]
  ------------------
 1756|  1.20k|      std::vector<ASIdOrRange> as_ranges;
 1757|  1.20k|      from.decode_list(as_ranges);
 1758|       |
 1759|  1.20k|      m_as_ranges = sort_and_merge_ranges<ASIdOrRange>(as_ranges);
 1760|  1.20k|   } else {
 1761|     99|      throw Decoding_Error(fmt("Unexpected type for ASIdentifierChoice {}", static_cast<uint32_t>(next_tag)));
 1762|     99|   }
 1763|  1.32k|}
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRange11decode_fromERNS_11BER_DecoderE:
 1776|  4.87k|void ASBlocks::ASIdOrRange::decode_from(BER_Decoder& from) {
 1777|  4.87k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1778|       |
 1779|  4.87k|   size_t min = 0;
 1780|  4.87k|   size_t max = 0;
 1781|       |
 1782|  4.87k|   if(next_tag == ASN1_Type::Integer) {
  ------------------
  |  Branch (1782:7): [True: 4.65k, False: 222]
  ------------------
 1783|  4.65k|      from.decode(min);
 1784|  4.65k|      m_min = checked_cast_to<asnum_t>(min);
 1785|  4.65k|      m_max = m_min;
 1786|  4.65k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (1786:14): [True: 73, False: 149]
  ------------------
 1787|     73|      from.start_sequence().decode(min).decode(max).end_cons();
 1788|     73|      m_min = checked_cast_to<asnum_t>(min);
 1789|     73|      m_max = checked_cast_to<asnum_t>(max);
 1790|     73|      if(m_min >= m_max) {
  ------------------
  |  Branch (1790:10): [True: 13, False: 60]
  ------------------
 1791|     13|         throw Decoding_Error("ASIdOrRange has min greater than max");
 1792|     13|      }
 1793|    149|   } else {
 1794|    149|      throw Decoding_Error(fmt("Unexpected type for ASIdOrRange {}", static_cast<uint32_t>(next_tag)));
 1795|    149|   }
 1796|  4.87k|}
_ZN5Botan14Cert_Extension21NoRevocationAvailable12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1881|      3|void NoRevocationAvailable::decode_inner(const std::vector<uint8_t>& buf) {
 1882|       |   // RFC 9608 Section 2, it's just a NULL
 1883|      3|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_null().verify_end();
 1884|      3|}
_ZN5Botan14Cert_Extension17Unknown_Extension12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1941|  8.77k|void Unknown_Extension::decode_inner(const std::vector<uint8_t>& bytes) {
 1942|       |   // Just treat as an opaque blob at this level
 1943|  8.77k|   m_bytes = bytes;
 1944|  8.77k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_118extension_from_oidERKNS_3OIDE:
   38|  11.2k|std::unique_ptr<Certificate_Extension> extension_from_oid(const OID& oid) {
   39|  11.2k|   if(auto iso_ext = is_sub_element_of(oid, {2, 5, 29})) {
  ------------------
  |  Branch (39:12): [True: 5.12k, False: 6.14k]
  ------------------
   40|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   41|  5.12k|      switch(*iso_ext) {
  ------------------
  |  Branch (41:14): [True: 4.80k, False: 322]
  ------------------
   42|    355|         case 14:
  ------------------
  |  Branch (42:10): [True: 355, False: 4.76k]
  ------------------
   43|    355|            return make_extension<Cert_Extension::Subject_Key_ID>(oid);
   44|    932|         case 15:
  ------------------
  |  Branch (44:10): [True: 932, False: 4.19k]
  ------------------
   45|    932|            return make_extension<Cert_Extension::Key_Usage>(oid);
   46|    626|         case 17:
  ------------------
  |  Branch (46:10): [True: 626, False: 4.49k]
  ------------------
   47|    626|            return make_extension<Cert_Extension::Subject_Alternative_Name>(oid);
   48|    153|         case 18:
  ------------------
  |  Branch (48:10): [True: 153, False: 4.97k]
  ------------------
   49|    153|            return make_extension<Cert_Extension::Issuer_Alternative_Name>(oid);
   50|    709|         case 19:
  ------------------
  |  Branch (50:10): [True: 709, False: 4.41k]
  ------------------
   51|    709|            return make_extension<Cert_Extension::Basic_Constraints>(oid);
   52|     33|         case 20:
  ------------------
  |  Branch (52:10): [True: 33, False: 5.09k]
  ------------------
   53|     33|            return make_extension<Cert_Extension::CRL_Number>(oid);
   54|     32|         case 21:
  ------------------
  |  Branch (54:10): [True: 32, False: 5.09k]
  ------------------
   55|     32|            return make_extension<Cert_Extension::CRL_ReasonCode>(oid);
   56|     24|         case 28:
  ------------------
  |  Branch (56:10): [True: 24, False: 5.10k]
  ------------------
   57|     24|            return make_extension<Cert_Extension::CRL_Issuing_Distribution_Point>(oid);
   58|    302|         case 30:
  ------------------
  |  Branch (58:10): [True: 302, False: 4.82k]
  ------------------
   59|    302|            return make_extension<Cert_Extension::Name_Constraints>(oid);
   60|    626|         case 31:
  ------------------
  |  Branch (60:10): [True: 626, False: 4.49k]
  ------------------
   61|    626|            return make_extension<Cert_Extension::CRL_Distribution_Points>(oid);
   62|    127|         case 32:
  ------------------
  |  Branch (62:10): [True: 127, False: 4.99k]
  ------------------
   63|    127|            return make_extension<Cert_Extension::Certificate_Policies>(oid);
   64|    474|         case 35:
  ------------------
  |  Branch (64:10): [True: 474, False: 4.65k]
  ------------------
   65|    474|            return make_extension<Cert_Extension::Authority_Key_ID>(oid);
   66|    406|         case 37:
  ------------------
  |  Branch (66:10): [True: 406, False: 4.71k]
  ------------------
   67|    406|            return make_extension<Cert_Extension::Extended_Key_Usage>(oid);
   68|      3|         case 56:
  ------------------
  |  Branch (68:10): [True: 3, False: 5.12k]
  ------------------
   69|      3|            return make_extension<Cert_Extension::NoRevocationAvailable>(oid);
   70|  5.12k|      }
   71|  5.12k|   }
   72|       |
   73|  6.47k|   if(auto pkix_ext = is_sub_element_of(oid, {1, 3, 6, 1, 5, 5, 7, 1})) {
  ------------------
  |  Branch (73:12): [True: 2.97k, False: 3.49k]
  ------------------
   74|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   75|  2.97k|      switch(*pkix_ext) {
  ------------------
  |  Branch (75:14): [True: 2.94k, False: 29]
  ------------------
   76|    333|         case 1:
  ------------------
  |  Branch (76:10): [True: 333, False: 2.64k]
  ------------------
   77|    333|            return make_extension<Cert_Extension::Authority_Information_Access>(oid);
   78|    981|         case 7:
  ------------------
  |  Branch (78:10): [True: 981, False: 1.99k]
  ------------------
   79|    981|            return make_extension<Cert_Extension::IPAddressBlocks>(oid);
   80|  1.48k|         case 8:
  ------------------
  |  Branch (80:10): [True: 1.48k, False: 1.48k]
  ------------------
   81|  1.48k|            return make_extension<Cert_Extension::ASBlocks>(oid);
   82|    144|         case 26:
  ------------------
  |  Branch (82:10): [True: 144, False: 2.83k]
  ------------------
   83|    144|            return make_extension<Cert_Extension::TNAuthList>(oid);
   84|  2.97k|      }
   85|  2.97k|   }
   86|       |
   87|  3.52k|   if(oid == Cert_Extension::OCSP_NoCheck::static_oid()) {
  ------------------
  |  Branch (87:7): [True: 0, False: 3.52k]
  ------------------
   88|      0|      return make_extension<Cert_Extension::OCSP_NoCheck>(oid);
   89|      0|   }
   90|       |
   91|  3.52k|   return nullptr;  // unknown
   92|  3.52k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14Subject_Key_IDEEEDaRKNS_3OIDE:
   33|    355|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    355|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    355|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    355|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 355]
  |  |  ------------------
  ------------------
   35|    355|   return std::make_unique<T>();
   36|    355|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension9Key_UsageEEEDaRKNS_3OIDE:
   33|    932|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    932|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    932|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    932|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 932]
  |  |  ------------------
  ------------------
   35|    932|   return std::make_unique<T>();
   36|    932|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension24Subject_Alternative_NameEEEDaRKNS_3OIDE:
   33|    626|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    626|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    626|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    626|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 626]
  |  |  ------------------
  ------------------
   35|    626|   return std::make_unique<T>();
   36|    626|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23Issuer_Alternative_NameEEEDaRKNS_3OIDE:
   33|    153|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    153|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    153|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    153|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 153]
  |  |  ------------------
  ------------------
   35|    153|   return std::make_unique<T>();
   36|    153|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension17Basic_ConstraintsEEEDaRKNS_3OIDE:
   33|    709|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    709|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    709|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    709|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 709]
  |  |  ------------------
  ------------------
   35|    709|   return std::make_unique<T>();
   36|    709|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10CRL_NumberEEEDaRKNS_3OIDE:
   33|     33|auto make_extension([[maybe_unused]] const OID& oid) {
   34|     33|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     33|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     33|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 33]
  |  |  ------------------
  ------------------
   35|     33|   return std::make_unique<T>();
   36|     33|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14CRL_ReasonCodeEEEDaRKNS_3OIDE:
   33|     32|auto make_extension([[maybe_unused]] const OID& oid) {
   34|     32|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     32|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     32|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 32]
  |  |  ------------------
  ------------------
   35|     32|   return std::make_unique<T>();
   36|     32|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEDaRKNS_3OIDE:
   33|     24|auto make_extension([[maybe_unused]] const OID& oid) {
   34|     24|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     24|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     24|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 24]
  |  |  ------------------
  ------------------
   35|     24|   return std::make_unique<T>();
   36|     24|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Name_ConstraintsEEEDaRKNS_3OIDE:
   33|    302|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    302|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    302|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    302|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 302]
  |  |  ------------------
  ------------------
   35|    302|   return std::make_unique<T>();
   36|    302|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23CRL_Distribution_PointsEEEDaRKNS_3OIDE:
   33|    626|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    626|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    626|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    626|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 626]
  |  |  ------------------
  ------------------
   35|    626|   return std::make_unique<T>();
   36|    626|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension20Certificate_PoliciesEEEDaRKNS_3OIDE:
   33|    127|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    127|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    127|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    127|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 127]
  |  |  ------------------
  ------------------
   35|    127|   return std::make_unique<T>();
   36|    127|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Authority_Key_IDEEEDaRKNS_3OIDE:
   33|    474|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    474|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    474|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    474|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 474]
  |  |  ------------------
  ------------------
   35|    474|   return std::make_unique<T>();
   36|    474|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension18Extended_Key_UsageEEEDaRKNS_3OIDE:
   33|    406|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    406|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    406|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    406|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 406]
  |  |  ------------------
  ------------------
   35|    406|   return std::make_unique<T>();
   36|    406|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension21NoRevocationAvailableEEEDaRKNS_3OIDE:
   33|      3|auto make_extension([[maybe_unused]] const OID& oid) {
   34|      3|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      3|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      3|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3]
  |  |  ------------------
  ------------------
   35|      3|   return std::make_unique<T>();
   36|      3|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension28Authority_Information_AccessEEEDaRKNS_3OIDE:
   33|    333|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    333|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    333|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    333|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 333]
  |  |  ------------------
  ------------------
   35|    333|   return std::make_unique<T>();
   36|    333|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension15IPAddressBlocksEEEDaRKNS_3OIDE:
   33|    981|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    981|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    981|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    981|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 981]
  |  |  ------------------
  ------------------
   35|    981|   return std::make_unique<T>();
   36|    981|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension8ASBlocksEEEDaRKNS_3OIDE:
   33|  1.48k|auto make_extension([[maybe_unused]] const OID& oid) {
   34|  1.48k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.48k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.48k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.48k]
  |  |  ------------------
  ------------------
   35|  1.48k|   return std::make_unique<T>();
   36|  1.48k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10TNAuthListEEEDaRKNS_3OIDE:
   33|    144|auto make_extension([[maybe_unused]] const OID& oid) {
   34|    144|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    144|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    144|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 144]
  |  |  ------------------
  ------------------
   35|    144|   return std::make_unique<T>();
   36|    144|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension9Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_0clEv:
  419|    724|   const uint16_t usage = [&bits]() -> uint16_t {
  420|    724|      switch(bits.size()) {
  421|      0|         case 0:
  ------------------
  |  Branch (421:10): [True: 0, False: 724]
  ------------------
  422|      0|            return 0;
  423|    717|         case 1:
  ------------------
  |  Branch (423:10): [True: 717, False: 7]
  ------------------
  424|    717|            return make_uint16(bits[0], 0);
  425|      7|         case 2:
  ------------------
  |  Branch (425:10): [True: 7, False: 717]
  ------------------
  426|      7|            return make_uint16(bits[0], bits[1]);
  427|      0|         default:
  ------------------
  |  Branch (427:10): [True: 0, False: 724]
  ------------------
  428|      0|            throw Decoding_Error("Invalid KeyUsage bitstring encoding");
  429|    724|      }
  430|    724|   }();
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information11decode_fromERNS_11BER_DecoderE:
  687|    130|      void decode_from(BER_Decoder& codec) override {
  688|    130|         codec.start_sequence().decode(m_oid).discard_remaining().end_cons();
  689|    130|      }
x509_ext.cpp:_ZNK5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information3oidEv:
  683|     76|      const OID& oid() const { return m_oid; }
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_125is_valid_telephone_numberERKNS_11ASN1_StringE:
   94|     71|bool is_valid_telephone_number(const ASN1_String& tn) {
   95|       |   //TelephoneNumber ::= IA5String (SIZE (1..15)) (FROM ("0123456789#*"))
   96|     71|   const std::string valid_tn_chars("0123456789#*");
   97|       |
   98|     71|   if(tn.empty() || (tn.size() > 15)) {
  ------------------
  |  Branch (98:7): [True: 9, False: 62]
  |  Branch (98:21): [True: 6, False: 56]
  ------------------
   99|     15|      return false;
  100|     15|   }
  101|       |
  102|     56|   if(tn.value().find_first_not_of(valid_tn_chars) != std::string::npos) {
  ------------------
  |  Branch (102:7): [True: 11, False: 45]
  ------------------
  103|     11|      return false;
  104|     11|   }
  105|       |
  106|     45|   return true;
  107|     56|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_InformationC2Ev:
  679|    130|      Policy_Information() = default;
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEENSt3__18optionalINS7_6vectorIT_NS7_9allocatorISA_EEEEEENS8_INS7_4spanIKSA_Lm18446744073709551615EEEEE:
 1202|    226|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1203|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1204|       |   // cf. https://www.rfc-editor.org/rfc/rfc3779.html#section-2.2.3.6 and https://www.rfc-editor.org/rfc/rfc3779.html#section-3.2.3.4
 1205|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1206|       |
 1207|    226|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1207:7): [True: 0, False: 226]
  ------------------
 1208|      0|      return std::nullopt;
 1209|      0|   }
 1210|       |
 1211|    226|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1212|       |
 1213|    226|   if(sorted.empty()) {
  ------------------
  |  Branch (1213:7): [True: 13, False: 213]
  ------------------
 1214|     13|      return sorted;
 1215|     13|   }
 1216|       |
 1217|       |   // sort by the min value
 1218|    213|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1219|       |
 1220|       |   // Single-pass merge: extend the last merged range or start a new one
 1221|    213|   std::vector<T> merged;
 1222|    213|   merged.reserve(sorted.size());
 1223|    213|   merged.push_back(sorted[0]);
 1224|       |
 1225|  1.00k|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1225:22): [True: 787, False: 213]
  ------------------
 1226|    787|      auto& back = merged.back();
 1227|       |      // they either overlap or are adjacent
 1228|    787|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1228:10): [True: 293, False: 494]
  |  Branch (1228:10): [True: 308, False: 479]
  |  Branch (1228:43): [True: 15, False: 479]
  ------------------
 1229|    308|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1230|    479|      } else {
 1231|    479|         merged.push_back(sorted[i]);
 1232|    479|      }
 1233|    787|   }
 1234|       |
 1235|    213|   return merged;
 1236|    226|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEENSt3__18optionalINS7_6vectorIT_NS7_9allocatorISA_EEEEEENS8_INS7_4spanIKSA_Lm18446744073709551615EEEEEENKUlRS6_SJ_E_clESJ_SJ_:
 1218|  1.48k|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEENSt3__18optionalINS7_6vectorIT_NS7_9allocatorISA_EEEEEENS8_INS7_4spanIKSA_Lm18446744073709551615EEEEE:
 1202|    226|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1203|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1204|       |   // cf. https://www.rfc-editor.org/rfc/rfc3779.html#section-2.2.3.6 and https://www.rfc-editor.org/rfc/rfc3779.html#section-3.2.3.4
 1205|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1206|       |
 1207|    226|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1207:7): [True: 0, False: 226]
  ------------------
 1208|      0|      return std::nullopt;
 1209|      0|   }
 1210|       |
 1211|    226|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1212|       |
 1213|    226|   if(sorted.empty()) {
  ------------------
  |  Branch (1213:7): [True: 6, False: 220]
  ------------------
 1214|      6|      return sorted;
 1215|      6|   }
 1216|       |
 1217|       |   // sort by the min value
 1218|    220|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1219|       |
 1220|       |   // Single-pass merge: extend the last merged range or start a new one
 1221|    220|   std::vector<T> merged;
 1222|    220|   merged.reserve(sorted.size());
 1223|    220|   merged.push_back(sorted[0]);
 1224|       |
 1225|    994|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1225:22): [True: 774, False: 220]
  ------------------
 1226|    774|      auto& back = merged.back();
 1227|       |      // they either overlap or are adjacent
 1228|    774|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1228:10): [True: 264, False: 510]
  |  Branch (1228:10): [True: 269, False: 505]
  |  Branch (1228:43): [True: 5, False: 505]
  ------------------
 1229|    269|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1230|    505|      } else {
 1231|    505|         merged.push_back(sorted[i]);
 1232|    505|      }
 1233|    774|   }
 1234|       |
 1235|    220|   return merged;
 1236|    226|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEENSt3__18optionalINS7_6vectorIT_NS7_9allocatorISA_EEEEEENS8_INS7_4spanIKSA_Lm18446744073709551615EEEEEENKUlRS6_SJ_E_clESJ_SJ_:
 1218|  1.42k|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_8ASBlocks11ASIdOrRangeEEENSt3__18optionalINS5_6vectorIT_NS5_9allocatorIS8_EEEEEENS6_INS5_4spanIKS8_Lm18446744073709551615EEEEE:
 1202|    969|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1203|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1204|       |   // cf. https://www.rfc-editor.org/rfc/rfc3779.html#section-2.2.3.6 and https://www.rfc-editor.org/rfc/rfc3779.html#section-3.2.3.4
 1205|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1206|       |
 1207|    969|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1207:7): [True: 0, False: 969]
  ------------------
 1208|      0|      return std::nullopt;
 1209|      0|   }
 1210|       |
 1211|    969|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1212|       |
 1213|    969|   if(sorted.empty()) {
  ------------------
  |  Branch (1213:7): [True: 38, False: 931]
  ------------------
 1214|     38|      return sorted;
 1215|     38|   }
 1216|       |
 1217|       |   // sort by the min value
 1218|    931|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1219|       |
 1220|       |   // Single-pass merge: extend the last merged range or start a new one
 1221|    931|   std::vector<T> merged;
 1222|    931|   merged.reserve(sorted.size());
 1223|    931|   merged.push_back(sorted[0]);
 1224|       |
 1225|  4.15k|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1225:22): [True: 3.22k, False: 931]
  ------------------
 1226|  3.22k|      auto& back = merged.back();
 1227|       |      // they either overlap or are adjacent
 1228|  3.22k|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1228:10): [True: 255, False: 2.96k]
  |  Branch (1228:43): [True: 63, False: 2.90k]
  ------------------
 1229|    318|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1230|  2.90k|      } else {
 1231|  2.90k|         merged.push_back(sorted[i]);
 1232|  2.90k|      }
 1233|  3.22k|   }
 1234|       |
 1235|    931|   return merged;
 1236|    969|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_8ASBlocks11ASIdOrRangeEEENSt3__18optionalINS5_6vectorIT_NS5_9allocatorIS8_EEEEEENS6_INS5_4spanIKS8_Lm18446744073709551615EEEEEENKUlRS4_SH_E_clESH_SH_:
 1218|  6.24k|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });

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

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

