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

_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  8.30k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  8.30k|   size_t hb = 0;
   75|       |
   76|  49.8k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 41.5k, False: 8.30k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  41.5k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  41.5k|      hb += z;
   80|  41.5k|      n >>= z;
   81|  41.5k|   }
   82|       |
   83|  8.30k|   hb += n;
   84|       |
   85|  8.30k|   return hb;
   86|  8.30k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  41.5k|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|  41.5k|   const T a = ~x & (x - 1);
   51|  41.5k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  41.5k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  41.5k|   return mask & s;
   54|  41.5k|}
_ZN5Botan17significant_bytesITkNSt3__117unsigned_integralEmEEmT_:
   94|  5.39k|BOTAN_FORCE_INLINE constexpr size_t significant_bytes(T n) {
   95|  5.39k|   size_t b = 0;
   96|       |
   97|  21.5k|   for(size_t s = 8 * sizeof(T) / 2; s >= 8; s /= 2) {
  ------------------
  |  Branch (97:38): [True: 16.1k, False: 5.39k]
  ------------------
   98|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   99|  16.1k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
  100|  16.1k|      b += z / 8;
  101|  16.1k|      n >>= z;
  102|  16.1k|   }
  103|       |
  104|  5.39k|   b += (n != 0);
  105|       |
  106|  5.39k|   return b;
  107|  5.39k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|   131k|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|   131k|   const T a = ~x & (x - 1);
   51|   131k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|   131k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|   131k|   return mask & s;
   54|   131k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEjEET_S2_S2_S2_:
  216|  3.69M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  3.69M|   return (b ^ (mask & (a ^ b)));
  219|  3.69M|}
_ZN5Botan8majorityITkNSt3__117unsigned_integralEjEET_S2_S2_S2_:
  222|  1.84M|BOTAN_FORCE_INLINE constexpr T majority(T a, T b, T c) {
  223|       |   /*
  224|       |   Considering each bit of a, b, c individually
  225|       |
  226|       |   If a xor b is set, then c is the deciding vote.
  227|       |
  228|       |   If a xor b is not set then either a and b are both set or both unset.
  229|       |   In either case the value of c doesn't matter, and examining b (or a)
  230|       |   allows us to determine which case we are in.
  231|       |   */
  232|  1.84M|   return choose(a ^ b, c, b);
  233|  1.84M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|  2.58k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  2.58k|   return (b ^ (mask & (a ^ b)));
  219|  2.58k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   126k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   126k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   126k|   return static_cast<T>(0) - top;
   31|   126k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|   124k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   124k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   124k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  19.2k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  19.2k|   size_t hb = 0;
   75|       |
   76|   134k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 115k, False: 19.2k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   115k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   115k|      hb += z;
   80|   115k|      n >>= z;
   81|   115k|   }
   82|       |
   83|  19.2k|   hb += n;
   84|       |
   85|  19.2k|   return hb;
   86|  19.2k|}

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEtQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  3.59k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|  3.59k|   } else if constexpr(sizeof(T) == 2) {
   31|  3.59k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|  3.59k|      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|  3.59k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEjQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  38.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|  38.4k|   } else if constexpr(sizeof(T) == 4) {
   37|  38.4k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|  38.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|  38.4k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  44.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|       |   } 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|  44.4k|   } else if constexpr(sizeof(T) == 8) {
   45|  44.4k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|  44.4k|      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|  44.4k|   }
   57|  44.4k|}

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

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

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

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   94|  10.9k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  156|  21.9k|      static CPUID_Data& state() {
  157|  21.9k|         static CPUID::CPUID_Data g_cpuid;
  158|  21.9k|         return g_cpuid;
  159|  21.9k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  144|  21.9k|            bool has_bit(uint32_t bit) const { return (m_processor_features & bit) == bit; }
_ZN5Botan5CPUID3hasENS_10CPUFeatureES1_:
   99|  10.9k|      static bool has(CPUID::Feature feat1, CPUID::Feature feat2) {
  100|  10.9k|         return state().has_bit(feat1.as_u32() | feat2.as_u32());
  101|  10.9k|      }
_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: 4, False: 4]
  ------------------
  120|      4|            return (bit.as_u32() & allowed);
  121|      4|         } else {
  122|      4|            return 0;
  123|      4|         }
  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|  32.9k|      uint32_t as_u32() const { return static_cast<uint32_t>(m_bit); }
_ZN5Botan10CPUFeatureC2ENS0_3BitE:
   51|  32.9k|      CPUFeature(Bit b) : m_bit(b) {}  // NOLINT(*-explicit-conversions)

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

_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  12.5k|std::string fmt(std::string_view format, const T&... args) {
   54|  12.5k|   std::ostringstream oss;
   55|  12.5k|   oss.imbue(std::locale::classic());
   56|  12.5k|   fmt_detail::do_fmt(oss, format, args...);
   57|  12.5k|   return oss.str();
   58|  12.5k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  12.5k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  12.5k|   size_t i = 0;
   27|       |
   28|   108k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 108k, False: 0]
  ------------------
   29|   108k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 12.5k, False: 95.6k]
  |  Branch (29:30): [True: 12.5k, False: 0]
  |  Branch (29:59): [True: 12.5k, False: 0]
  ------------------
   30|  12.5k|         oss << val;
   31|  12.5k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  95.6k|      } else {
   33|  95.6k|         oss << format[i];
   34|  95.6k|      }
   35|       |
   36|  95.6k|      i += 1;
   37|  95.6k|   }
   38|  12.5k|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  19.5k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  19.5k|   oss << format;
   22|  19.5k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  4.99k|std::string fmt(std::string_view format, const T&... args) {
   54|  4.99k|   std::ostringstream oss;
   55|  4.99k|   oss.imbue(std::locale::classic());
   56|  4.99k|   fmt_detail::do_fmt(oss, format, args...);
   57|  4.99k|   return oss.str();
   58|  4.99k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  4.99k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.99k|   size_t i = 0;
   27|       |
   28|  4.99k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.99k, False: 0]
  ------------------
   29|  4.99k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.99k, False: 0]
  |  Branch (29:30): [True: 4.99k, False: 0]
  |  Branch (29:59): [True: 4.99k, False: 0]
  ------------------
   30|  4.99k|         oss << val;
   31|  4.99k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.99k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  4.99k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  5.09k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  5.09k|   size_t i = 0;
   27|       |
   28|  72.2k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 72.2k, False: 0]
  ------------------
   29|  72.2k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5.09k, False: 67.1k]
  |  Branch (29:30): [True: 5.09k, False: 0]
  |  Branch (29:59): [True: 5.09k, False: 0]
  ------------------
   30|  5.09k|         oss << val;
   31|  5.09k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  67.1k|      } else {
   33|  67.1k|         oss << format[i];
   34|  67.1k|      }
   35|       |
   36|  67.1k|      i += 1;
   37|  67.1k|   }
   38|  5.09k|}
_ZN5Botan10fmt_detail6do_fmtImJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     14|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     14|   size_t i = 0;
   27|       |
   28|    763|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 763, False: 0]
  ------------------
   29|    763|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 14, False: 749]
  |  Branch (29:30): [True: 14, False: 0]
  |  Branch (29:59): [True: 14, False: 0]
  ------------------
   30|     14|         oss << val;
   31|     14|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    749|      } else {
   33|    749|         oss << format[i];
   34|    749|      }
   35|       |
   36|    749|      i += 1;
   37|    749|   }
   38|     14|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|    265|std::string fmt(std::string_view format, const T&... args) {
   54|    265|   std::ostringstream oss;
   55|    265|   oss.imbue(std::locale::classic());
   56|    265|   fmt_detail::do_fmt(oss, format, args...);
   57|    265|   return oss.str();
   58|    265|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|    265|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    265|   size_t i = 0;
   27|       |
   28|    265|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 265, False: 0]
  ------------------
   29|    265|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 265, False: 0]
  |  Branch (29:30): [True: 265, False: 0]
  |  Branch (29:59): [True: 265, False: 0]
  ------------------
   30|    265|         oss << val;
   31|    265|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    265|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|    265|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|  1.42k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.42k|   size_t i = 0;
   27|       |
   28|  27.9k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 27.9k, False: 0]
  ------------------
   29|  27.9k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.42k, False: 26.5k]
  |  Branch (29:30): [True: 1.42k, False: 0]
  |  Branch (29:59): [True: 1.42k, False: 0]
  ------------------
   30|  1.42k|         oss << val;
   31|  1.42k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  26.5k|      } else {
   33|  26.5k|         oss << format[i];
   34|  26.5k|      }
   35|       |
   36|  26.5k|      i += 1;
   37|  26.5k|   }
   38|  1.42k|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    491|std::string fmt(std::string_view format, const T&... args) {
   54|    491|   std::ostringstream oss;
   55|    491|   oss.imbue(std::locale::classic());
   56|    491|   fmt_detail::do_fmt(oss, format, args...);
   57|    491|   return oss.str();
   58|    491|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    506|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    506|   size_t i = 0;
   27|       |
   28|  8.78k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 8.78k, False: 0]
  ------------------
   29|  8.78k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 506, False: 8.28k]
  |  Branch (29:30): [True: 506, False: 0]
  |  Branch (29:59): [True: 506, False: 0]
  ------------------
   30|    506|         oss << val;
   31|    506|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  8.28k|      } else {
   33|  8.28k|         oss << format[i];
   34|  8.28k|      }
   35|       |
   36|  8.28k|      i += 1;
   37|  8.28k|   }
   38|    506|}
_ZN5Botan3fmtIJjjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    476|std::string fmt(std::string_view format, const T&... args) {
   54|    476|   std::ostringstream oss;
   55|    476|   oss.imbue(std::locale::classic());
   56|    476|   fmt_detail::do_fmt(oss, format, args...);
   57|    476|   return oss.str();
   58|    476|}
_ZN5Botan10fmt_detail6do_fmtIjJjEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    476|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    476|   size_t i = 0;
   27|       |
   28|  12.7k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 12.7k, False: 0]
  ------------------
   29|  12.7k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 476, False: 12.2k]
  |  Branch (29:30): [True: 476, False: 0]
  |  Branch (29:59): [True: 476, False: 0]
  ------------------
   30|    476|         oss << val;
   31|    476|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  12.2k|      } else {
   33|  12.2k|         oss << format[i];
   34|  12.2k|      }
   35|       |
   36|  12.2k|      i += 1;
   37|  12.2k|   }
   38|    476|}
_ZN5Botan3fmtIJtttEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|      5|std::string fmt(std::string_view format, const T&... args) {
   54|      5|   std::ostringstream oss;
   55|      5|   oss.imbue(std::locale::classic());
   56|      5|   fmt_detail::do_fmt(oss, format, args...);
   57|      5|   return oss.str();
   58|      5|}
_ZN5Botan10fmt_detail6do_fmtItJttEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     80|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 80, False: 0]
  ------------------
   29|     80|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 75]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     75|      } else {
   33|     75|         oss << format[i];
   34|     75|      }
   35|       |
   36|     75|      i += 1;
   37|     75|   }
   38|      5|}
_ZN5Botan10fmt_detail6do_fmtItJtEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     95|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 95, False: 0]
  ------------------
   29|     95|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 90]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     90|      } else {
   33|     90|         oss << format[i];
   34|     90|      }
   35|       |
   36|     90|      i += 1;
   37|     90|   }
   38|      5|}
_ZN5Botan10fmt_detail6do_fmtItJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|     25|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 25, False: 0]
  ------------------
   29|     25|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 20]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     20|      } else {
   33|     20|         oss << format[i];
   34|     20|      }
   35|       |
   36|     20|      i += 1;
   37|     20|   }
   38|      5|}
_ZN5Botan3fmtIJjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    682|std::string fmt(std::string_view format, const T&... args) {
   54|    682|   std::ostringstream oss;
   55|    682|   oss.imbue(std::locale::classic());
   56|    682|   fmt_detail::do_fmt(oss, format, args...);
   57|    682|   return oss.str();
   58|    682|}
_ZN5Botan3fmtIJPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     80|std::string fmt(std::string_view format, const T&... args) {
   54|     80|   std::ostringstream oss;
   55|     80|   oss.imbue(std::locale::classic());
   56|     80|   fmt_detail::do_fmt(oss, format, args...);
   57|     80|   return oss.str();
   58|     80|}
_ZN5Botan3fmtIJmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     13|std::string fmt(std::string_view format, const T&... args) {
   54|     13|   std::ostringstream oss;
   55|     13|   oss.imbue(std::locale::classic());
   56|     13|   fmt_detail::do_fmt(oss, format, args...);
   57|     13|   return oss.str();
   58|     13|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     26|std::string fmt(std::string_view format, const T&... args) {
   54|     26|   std::ostringstream oss;
   55|     26|   oss.imbue(std::locale::classic());
   56|     26|   fmt_detail::do_fmt(oss, format, args...);
   57|     26|   return oss.str();
   58|     26|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     26|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     26|   size_t i = 0;
   27|       |
   28|     26|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 26, False: 0]
  ------------------
   29|     26|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 26, False: 0]
  |  Branch (29:30): [True: 26, False: 0]
  |  Branch (29:59): [True: 26, False: 0]
  ------------------
   30|     26|         oss << val;
   31|     26|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     26|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     26|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     26|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     26|   size_t i = 0;
   27|       |
   28|    130|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 130, False: 0]
  ------------------
   29|    130|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 26, False: 104]
  |  Branch (29:30): [True: 26, False: 0]
  |  Branch (29:59): [True: 26, False: 0]
  ------------------
   30|     26|         oss << val;
   31|     26|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    104|      } else {
   33|    104|         oss << format[i];
   34|    104|      }
   35|       |
   36|    104|      i += 1;
   37|    104|   }
   38|     26|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     15|std::string fmt(std::string_view format, const T&... args) {
   54|     15|   std::ostringstream oss;
   55|     15|   oss.imbue(std::locale::classic());
   56|     15|   fmt_detail::do_fmt(oss, format, args...);
   57|     15|   return oss.str();
   58|     15|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJS8_EEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     15|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     15|   size_t i = 0;
   27|       |
   28|     15|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 15, False: 0]
  ------------------
   29|     15|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 15, False: 0]
  |  Branch (29:30): [True: 15, False: 0]
  |  Branch (29:59): [True: 15, False: 0]
  ------------------
   30|     15|         oss << val;
   31|     15|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     15|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     15|}
_ZN5Botan3fmtIJmmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   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_fmtImJmEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_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|     45|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 45, False: 0]
  ------------------
   29|     45|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1, False: 44]
  |  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|     44|      } else {
   33|     44|         oss << format[i];
   34|     44|      }
   35|       |
   36|     44|      i += 1;
   37|     44|   }
   38|      1|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  77.5k|constexpr inline std::optional<T> checked_mul(T a, T b) {
   47|       |   // Multiplication by 1U is a hack to work around C's insane
   48|       |   // integer promotion rules.
   49|       |   // https://stackoverflow.com/questions/24795651
   50|  77.5k|   const T r = (1U * a) * b;
   51|       |   // If a == 0 then the multiply certainly did not overflow
   52|       |   // Otherwise r / a == b unless overflow occurred
   53|  77.5k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 77.5k, False: 0]
  |  Branch (53:17): [True: 0, False: 77.5k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  77.5k|   return r;
   57|  77.5k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|  21.5k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  21.5k|   const T r = a + b;
   21|  21.5k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 21.5k]
  |  Branch (21:16): [True: 0, False: 21.5k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  21.5k|   return r;
   25|  21.5k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  22.3k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  22.3k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 22.3k, False: 0]
  ------------------
   39|  22.3k|      return checked_add(r.value(), rest...);
   40|  22.3k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  22.3k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   19|  68.8k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  68.8k|   const T r = a + b;
   21|  68.8k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 68.8k]
  |  Branch (21:16): [True: 0, False: 68.8k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  68.8k|   return r;
   25|  68.8k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|  22.3k|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|  22.3k|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 22.3k, False: 0]
  ------------------
   39|  22.3k|      return checked_add(r.value(), rest...);
   40|  22.3k|   } else {
   41|      0|      return {};
   42|      0|   }
   43|  22.3k|}
_ZN5Botan7swar_ltITkNSt3__117unsigned_integralEtEET_S2_S2_:
  121|  37.8k|constexpr T swar_lt(T a, T b) {
  122|       |   // The constant 0x808080... as a T
  123|  37.8k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  124|       |   // The constant 0x7F7F7F... as a T
  125|  37.8k|   constexpr T lo7 = static_cast<T>(~hi1);
  126|  37.8k|   T r = (lo7 - a + b) & hi1;
  127|       |   // Currently the mask is 80 if lt, otherwise 00. Convert to FF/00
  128|  37.8k|   return (r << 1) - (r >> 7);
  129|  37.8k|}
_ZN5Botan12mul_or_throwITkNSt3__117unsigned_integralEmEET_S2_S2_NS1_17basic_string_viewIcNS1_11char_traitsIcEEEE:
   81|  1.45k|constexpr T mul_or_throw(T a, T b, std::string_view msg) {
   82|  1.45k|   if(auto r = checked_mul(a, b)) {
  ------------------
  |  Branch (82:12): [True: 1.45k, False: 0]
  ------------------
   83|  1.45k|      return r.value();
   84|  1.45k|   } else {
   85|      0|      throw Invalid_Argument(msg);
   86|      0|   }
   87|  1.45k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  144|  58.5k|constexpr T swar_in_range(T v, T lower, T upper) {
  145|       |   // The constant 0x808080... as a T
  146|  58.5k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  147|       |   // The constant 0x7F7F7F... as a T
  148|  58.5k|   constexpr T lo7 = ~hi1;
  149|       |
  150|  58.5k|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  151|  58.5k|   const T a_lo = sub & lo7;
  152|  58.5k|   const T a_hi = sub & hi1;
  153|  58.5k|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  154|  58.5k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    428|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    428|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 428, False: 0]
  ------------------
   39|    428|      return checked_add(r.value(), rest...);
   40|    428|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    428|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    428|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    428|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 428, False: 0]
  ------------------
   39|    428|      return checked_add(r.value(), rest...);
   40|    428|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    428|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    428|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    428|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 428, False: 0]
  ------------------
   39|    428|      return checked_add(r.value(), rest...);
   40|    428|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    428|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEmTpTkNS1_17unsigned_integralEJmmmEQ10all_same_vIT_DpT0_EEENS1_8optionalIS2_EES2_S2_S4_:
   37|    428|constexpr inline std::optional<T> checked_add(T a, T b, Ts... rest) {
   38|    428|   if(auto r = checked_add(a, b)) {
  ------------------
  |  Branch (38:12): [True: 428, False: 0]
  ------------------
   39|    428|      return checked_add(r.value(), rest...);
   40|    428|   } else {
   41|      0|      return {};
   42|      0|   }
   43|    428|}
_ZN5Botan15checked_cast_toIjmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|  3.91k|constexpr RT checked_cast_to(AT i) {
  105|  3.91k|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|  3.91k|}
_ZN5Botan24checked_cast_to_or_throwIjNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   91|  3.91k|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|  3.91k|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|  3.91k|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|  3.91k|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 3.91k]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|  3.91k|   return wrap_strong_type<RT>(unwrapped_result);
  100|  3.91k|}
_ZN5Botan15checked_cast_toItmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS2_Iu14__remove_cvrefIT0_EE4typeEEEES3_S7_:
  104|      7|constexpr RT checked_cast_to(AT i) {
  105|      7|   return checked_cast_to_or_throw<RT, Internal_Error>(i, "Error during integer conversion");
  106|      7|}
_ZN5Botan24checked_cast_to_or_throwItNS_14Internal_ErrorEmQaasr3stdE8integralINS_6detail19wrapped_type_helperIu14__remove_cvrefIT_EE4typeEEsr3stdE8integralINS3_Iu14__remove_cvrefIT1_EE4typeEEEES4_S8_NSt3__117basic_string_viewIcNSC_11char_traitsIcEEEE:
   91|      7|constexpr RT checked_cast_to_or_throw(AT i, std::string_view error_msg_on_fail) {
   92|      7|   const auto unwrapped_input = unwrap_strong_type(i);
   93|       |
   94|      7|   const auto unwrapped_result = static_cast<strong_type_wrapped_type<RT>>(unwrapped_input);
   95|      7|   if(unwrapped_input != static_cast<strong_type_wrapped_type<AT>>(unwrapped_result)) [[unlikely]] {
  ------------------
  |  Branch (95:7): [True: 0, False: 7]
  ------------------
   96|      0|      throw ExceptionType(error_msg_on_fail);
   97|      0|   }
   98|       |
   99|      7|   return wrap_strong_type<RT>(unwrapped_result);
  100|      7|}

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

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

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

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

_ZN5Botan4rotlILm5ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  1.75M|{
   26|  1.75M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  1.75M|}
_ZN5Botan4rotlILm30ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  1.75M|{
   26|  1.75M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  1.75M|}
_ZN5Botan3rhoILm6ELm11ELm25ETkNSt3__117unsigned_integralEjEET2_S2_:
   53|  1.40M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|  1.40M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|  1.40M|}
_ZN5Botan4rotrILm6ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}
_ZN5Botan4rotrILm11ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}
_ZN5Botan4rotrILm25ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}
_ZN5Botan3rhoILm2ELm13ELm22ETkNSt3__117unsigned_integralEjEET2_S2_:
   53|  1.40M|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|  1.40M|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|  1.40M|}
_ZN5Botan4rotrILm2ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}
_ZN5Botan4rotrILm13ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}
_ZN5Botan4rotrILm22ETkNSt3__117unsigned_integralEjEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|  1.40M|{
   38|  1.40M|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|  1.40M|}

_ZN5Botan8round_upEmm:
   26|  26.0k|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|  26.0k|   BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
  ------------------
  |  |   35|  26.0k|   do {                                                          \
  |  |   36|  26.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  26.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 26.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  26.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 26.0k]
  |  |  ------------------
  ------------------
   29|       |
   30|  26.0k|   if(n % align_to > 0) {
  ------------------
  |  Branch (30:7): [True: 25.2k, False: 809]
  ------------------
   31|  25.2k|      const size_t adj = align_to - (n % align_to);
   32|  25.2k|      BOTAN_ARG_CHECK(n + adj >= n, "Integer overflow during rounding");
  ------------------
  |  |   35|  25.2k|   do {                                                          \
  |  |   36|  25.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  25.2k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 25.2k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  25.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 25.2k]
  |  |  ------------------
  ------------------
   33|  25.2k|      n += adj;
   34|  25.2k|   }
   35|  26.0k|   return n;
   36|  26.0k|}

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

_ZN5Botan6SHA1_F2F1EjRjjjS1_j:
   21|   439k|inline void F1(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   22|   439k|   E += choose(B, C, D) + M + rotl<5>(A);
   23|   439k|   B = rotl<30>(B);
   24|   439k|}
_ZN5Botan6SHA1_F2F2EjRjjjS1_j:
   26|   439k|inline void F2(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   27|   439k|   E += (B ^ C ^ D) + M + rotl<5>(A);
   28|   439k|   B = rotl<30>(B);
   29|   439k|}
_ZN5Botan6SHA1_F2F3EjRjjjS1_j:
   31|   439k|inline void F3(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   32|   439k|   E += majority(B, C, D) + M + rotl<5>(A);
   33|   439k|   B = rotl<30>(B);
   34|   439k|}
_ZN5Botan6SHA1_F2F4EjRjjjS1_j:
   37|   439k|inline void F4(uint32_t A, uint32_t& B, uint32_t C, uint32_t D, uint32_t& E, uint32_t M) {
   38|   439k|   E += (B ^ C ^ D) + M + rotl<5>(A);
   39|   439k|   B = rotl<30>(B);
   40|   439k|}

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

_ZN5Botan9SHA2_32_FEjjjRjjjjS0_j:
   42|  1.40M|   uint32_t A, uint32_t B, uint32_t C, uint32_t& D, uint32_t E, uint32_t F, uint32_t G, uint32_t& H, uint32_t M) {
   43|  1.40M|   H += rho<6, 11, 25>(E) + choose(E, F, G) + M;
   44|  1.40M|   D += H;
   45|  1.40M|   H += rho<2, 13, 22>(A) + majority(A, B, C);
   46|  1.40M|}

_ZN5Botan9SIMD_4x32C2EDv2_x:
  998|   989k|      explicit BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(native_simd_type x) noexcept : m_simd(x) {}
_ZN5Botan9SIMD_4x327load_beEPKv:
  189|  17.3k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_be(const void* in) noexcept {
  190|  17.3k|#if defined(BOTAN_SIMD_USE_SSSE3) || defined(BOTAN_SIMD_USE_LSX) || defined(BOTAN_SIMD_USE_SIMD128)
  191|  17.3k|         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|  17.3k|      }
_ZN5Botan9SIMD_4x327load_leEPKv:
  162|  86.7k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_le(const void* in) noexcept {
  163|  86.7k|#if defined(BOTAN_SIMD_USE_SSSE3)
  164|  86.7k|         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|  86.7k|      }
_ZNK5Botan9SIMD_4x325bswapEv:
  576|  17.3k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32 bswap() const noexcept {
  577|  17.3k|#if defined(BOTAN_SIMD_USE_SSSE3)
  578|  17.3k|         const auto idx = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);
  579|       |
  580|  17.3k|         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|  17.3k|      }
_ZNK5Botan9SIMD_4x323rawEv:
  996|   815k|      native_simd_type BOTAN_FN_ISA_SIMD_4X32 raw() const noexcept { return m_simd; }
_ZNK5Botan9SIMD_4x32plERKS0_:
  385|  69.4k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 operator+(const SIMD_4x32& other) const noexcept {
  386|  69.4k|         SIMD_4x32 retval(*this);
  387|  69.4k|         retval += other;
  388|  69.4k|         return retval;
  389|  69.4k|      }
_ZN5Botan9SIMD_4x32pLERKS0_:
  427|   277k|      void BOTAN_FN_ISA_SIMD_4X32 operator+=(const SIMD_4x32& other) noexcept {
  428|   277k|#if defined(BOTAN_SIMD_USE_SSSE3)
  429|   277k|         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|   277k|      }
_ZNK5Botan9SIMD_4x328store_leEPj:
  219|  69.4k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint32_t out[4]) const noexcept {
  220|  69.4k|         this->store_le(reinterpret_cast<uint8_t*>(out));
  221|  69.4k|      }
_ZNK5Botan9SIMD_4x328store_leEPh:
  234|  69.4k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint8_t out[]) const noexcept {
  235|  69.4k|#if defined(BOTAN_SIMD_USE_SSSE3)
  236|       |
  237|  69.4k|         _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|  69.4k|      }
_ZN5Botan9SIMD_4x32eOERKS0_:
  455|   416k|      void BOTAN_FN_ISA_SIMD_4X32 operator^=(const SIMD_4x32& other) noexcept {
  456|   416k|#if defined(BOTAN_SIMD_USE_SSSE3)
  457|   416k|         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|   416k|      }
_ZN5Botan9SIMD_4x32C2Ev:
   86|  17.3k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32() noexcept {
   87|  17.3k|#if defined(BOTAN_SIMD_USE_SSSE3)
   88|  17.3k|         m_simd = _mm_setzero_si128();
   89|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
   90|       |         m_simd = vec_splat_u32(0);
   91|       |#elif defined(BOTAN_SIMD_USE_NEON)
   92|       |         m_simd = vdupq_n_u32(0);
   93|       |#elif defined(BOTAN_SIMD_USE_LSX)
   94|       |         m_simd = __lsx_vldi(0);
   95|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
   96|       |         m_simd = wasm_u32x4_const_splat(0);
   97|       |#endif
   98|  17.3k|      }
_ZN5Botan9SIMD_4x32C2Ejjjj:
  103|   104k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
  104|   104k|#if defined(BOTAN_SIMD_USE_SSSE3)
  105|   104k|         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|   104k|      }
_ZNK5Botan9SIMD_4x32eoERKS0_:
  403|   260k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 operator^(const SIMD_4x32& other) const noexcept {
  404|   260k|         SIMD_4x32 retval(*this);
  405|   260k|         retval ^= other;
  406|   260k|         return retval;
  407|   260k|      }
_ZN5Botan9SIMD_4x3212byte_shuffleERKS0_S2_:
  825|   104k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 byte_shuffle(const SIMD_4x32& tbl, const SIMD_4x32& idx) {
  826|   104k|#if defined(BOTAN_SIMD_USE_SSSE3)
  827|   104k|         return SIMD_4x32(_mm_shuffle_epi8(tbl.raw(), idx.raw()));
  828|       |#elif defined(BOTAN_SIMD_USE_NEON)
  829|       |         const uint8x16_t tbl8 = vreinterpretq_u8_u32(tbl.raw());
  830|       |         const uint8x16_t idx8 = vreinterpretq_u8_u32(idx.raw());
  831|       |
  832|       |   #if defined(BOTAN_TARGET_ARCH_IS_ARM32)
  833|       |         const uint8x8x2_t tbl2 = {vget_low_u8(tbl8), vget_high_u8(tbl8)};
  834|       |
  835|       |         return SIMD_4x32(
  836|       |            vreinterpretq_u32_u8(vcombine_u8(vtbl2_u8(tbl2, vget_low_u8(idx8)), vtbl2_u8(tbl2, vget_high_u8(idx8)))));
  837|       |   #else
  838|       |         return SIMD_4x32(vreinterpretq_u32_u8(vqtbl1q_u8(tbl8, idx8)));
  839|       |   #endif
  840|       |
  841|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  842|       |         const auto r = vec_perm(reinterpret_cast<__vector signed char>(tbl.raw()),
  843|       |                                 reinterpret_cast<__vector signed char>(tbl.raw()),
  844|       |                                 reinterpret_cast<__vector unsigned char>(idx.raw()));
  845|       |         return SIMD_4x32(reinterpret_cast<__vector unsigned int>(r));
  846|       |#elif defined(BOTAN_SIMD_USE_LSX)
  847|       |         return SIMD_4x32(__lsx_vshuf_b(tbl.raw(), tbl.raw(), idx.raw()));
  848|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  849|       |         return SIMD_4x32(wasm_i8x16_swizzle(tbl.raw(), idx.raw()));
  850|       |#endif
  851|   104k|      }
_ZNK5Botan9SIMD_4x323shlILi14EEES0_vQaagtT_Li0EltT_Li32E:
  502|  52.0k|      {
  503|  52.0k|#if defined(BOTAN_SIMD_USE_SSSE3)
  504|  52.0k|         return SIMD_4x32(_mm_slli_epi32(m_simd, SHIFT));
  505|       |
  506|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  507|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  508|       |         const __vector unsigned int shifts = {s, s, s, s};
  509|       |         return SIMD_4x32(vec_sl(m_simd, shifts));
  510|       |#elif defined(BOTAN_SIMD_USE_NEON)
  511|       |         return SIMD_4x32(vshlq_n_u32(m_simd, SHIFT));
  512|       |#elif defined(BOTAN_SIMD_USE_LSX)
  513|       |         return SIMD_4x32(__lsx_vslli_w(m_simd, SHIFT));
  514|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  515|       |         return SIMD_4x32(wasm_i32x4_shl(m_simd, SHIFT));
  516|       |#endif
  517|  52.0k|      }
_ZNK5Botan9SIMD_4x323shrILi7EEES0_v:
  520|  52.0k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 shr() const noexcept {
  521|  52.0k|#if defined(BOTAN_SIMD_USE_SSSE3)
  522|  52.0k|         return SIMD_4x32(_mm_srli_epi32(m_simd, SHIFT));
  523|       |
  524|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  525|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  526|       |         const __vector unsigned int shifts = {s, s, s, s};
  527|       |         return SIMD_4x32(vec_sr(m_simd, shifts));
  528|       |#elif defined(BOTAN_SIMD_USE_NEON)
  529|       |         return SIMD_4x32(vshrq_n_u32(m_simd, SHIFT));
  530|       |#elif defined(BOTAN_SIMD_USE_LSX)
  531|       |         return SIMD_4x32(__lsx_vsrli_w(m_simd, SHIFT));
  532|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  533|       |         return SIMD_4x32(wasm_u32x4_shr(m_simd, SHIFT));
  534|       |#endif
  535|  52.0k|      }
_ZNK5Botan9SIMD_4x323shrILi3EEES0_v:
  520|  52.0k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 shr() const noexcept {
  521|  52.0k|#if defined(BOTAN_SIMD_USE_SSSE3)
  522|  52.0k|         return SIMD_4x32(_mm_srli_epi32(m_simd, SHIFT));
  523|       |
  524|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  525|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  526|       |         const __vector unsigned int shifts = {s, s, s, s};
  527|       |         return SIMD_4x32(vec_sr(m_simd, shifts));
  528|       |#elif defined(BOTAN_SIMD_USE_NEON)
  529|       |         return SIMD_4x32(vshrq_n_u32(m_simd, SHIFT));
  530|       |#elif defined(BOTAN_SIMD_USE_LSX)
  531|       |         return SIMD_4x32(__lsx_vsrli_w(m_simd, SHIFT));
  532|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  533|       |         return SIMD_4x32(wasm_u32x4_shr(m_simd, SHIFT));
  534|       |#endif
  535|  52.0k|      }
_ZNK5Botan9SIMD_4x323shrILi11EEES0_v:
  520|  52.0k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 shr() const noexcept {
  521|  52.0k|#if defined(BOTAN_SIMD_USE_SSSE3)
  522|  52.0k|         return SIMD_4x32(_mm_srli_epi32(m_simd, SHIFT));
  523|       |
  524|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  525|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  526|       |         const __vector unsigned int shifts = {s, s, s, s};
  527|       |         return SIMD_4x32(vec_sr(m_simd, shifts));
  528|       |#elif defined(BOTAN_SIMD_USE_NEON)
  529|       |         return SIMD_4x32(vshrq_n_u32(m_simd, SHIFT));
  530|       |#elif defined(BOTAN_SIMD_USE_LSX)
  531|       |         return SIMD_4x32(__lsx_vsrli_w(m_simd, SHIFT));
  532|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  533|       |         return SIMD_4x32(wasm_u32x4_shr(m_simd, SHIFT));
  534|       |#endif
  535|  52.0k|      }
_ZNK5Botan9SIMD_4x323shlILi11EEES0_vQaagtT_Li0EltT_Li32E:
  502|  52.0k|      {
  503|  52.0k|#if defined(BOTAN_SIMD_USE_SSSE3)
  504|  52.0k|         return SIMD_4x32(_mm_slli_epi32(m_simd, SHIFT));
  505|       |
  506|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  507|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  508|       |         const __vector unsigned int shifts = {s, s, s, s};
  509|       |         return SIMD_4x32(vec_sl(m_simd, shifts));
  510|       |#elif defined(BOTAN_SIMD_USE_NEON)
  511|       |         return SIMD_4x32(vshlq_n_u32(m_simd, SHIFT));
  512|       |#elif defined(BOTAN_SIMD_USE_LSX)
  513|       |         return SIMD_4x32(__lsx_vslli_w(m_simd, SHIFT));
  514|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  515|       |         return SIMD_4x32(wasm_i32x4_shl(m_simd, SHIFT));
  516|       |#endif
  517|  52.0k|      }
_ZNK5Botan9SIMD_4x323shrILi10EEES0_v:
  520|   104k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 shr() const noexcept {
  521|   104k|#if defined(BOTAN_SIMD_USE_SSSE3)
  522|   104k|         return SIMD_4x32(_mm_srli_epi32(m_simd, SHIFT));
  523|       |
  524|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  525|       |         const unsigned int s = static_cast<unsigned int>(SHIFT);
  526|       |         const __vector unsigned int shifts = {s, s, s, s};
  527|       |         return SIMD_4x32(vec_sr(m_simd, shifts));
  528|       |#elif defined(BOTAN_SIMD_USE_NEON)
  529|       |         return SIMD_4x32(vshrq_n_u32(m_simd, SHIFT));
  530|       |#elif defined(BOTAN_SIMD_USE_LSX)
  531|       |         return SIMD_4x32(__lsx_vsrli_w(m_simd, SHIFT));
  532|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  533|       |         return SIMD_4x32(wasm_u32x4_shr(m_simd, SHIFT));
  534|       |#endif
  535|   104k|      }

_ZN5Botan9SIMD_8x325splatEj:
   58|   198k|      static SIMD_8x32 splat(uint32_t B) noexcept { return SIMD_8x32(_mm256_set1_epi32(B)); }
_ZN5Botan9SIMD_8x32C2EDv4_x:
  354|  3.24M|      explicit SIMD_8x32(__m256i x) noexcept : m_avx2(x) {}
_ZN5Botan9SIMD_8x32C2Ejjjjjjjj:
   46|  10.9k|                         uint32_t B7) noexcept {
   47|       |         // NOLINTNEXTLINE(*-prefer-member-initializer)
   48|  10.9k|         m_avx2 = _mm256_set_epi32(B7, B6, B5, B4, B3, B2, B1, B0);
   49|  10.9k|      }
_ZN5Botan9SIMD_8x3210load_be128EPKhS2_:
  101|  70.5k|      static SIMD_8x32 load_be128(const uint8_t in1[], const uint8_t in2[]) noexcept {
  102|  70.5k|         return SIMD_8x32(
  103|  70.5k|                   _mm256_loadu2_m128i(reinterpret_cast<const __m128i*>(in2), reinterpret_cast<const __m128i*>(in1)))
  104|  70.5k|            .bswap();
  105|  70.5k|      }
_ZNK5Botan9SIMD_8x325bswapEv:
  238|  79.2k|      SIMD_8x32 bswap() const noexcept {
  239|  79.2k|         alignas(32) const uint8_t BSWAP_TBL[32] = {3,  2,  1,  0,  7,  6,  5,  4,  11, 10, 9,  8,  15, 14, 13, 12,
  240|  79.2k|                                                    19, 18, 17, 16, 23, 22, 21, 20, 27, 26, 25, 24, 31, 30, 29, 28};
  241|       |
  242|  79.2k|         const __m256i bswap = _mm256_load_si256(reinterpret_cast<const __m256i*>(BSWAP_TBL));
  243|       |
  244|  79.2k|         const __m256i output = _mm256_shuffle_epi8(m_avx2, bswap);
  245|       |
  246|  79.2k|         return SIMD_8x32(output);
  247|  79.2k|      }
_ZNK5Botan9SIMD_8x32plERKS0_:
  164|   360k|      SIMD_8x32 operator+(const SIMD_8x32& other) const noexcept {
  165|   360k|         SIMD_8x32 retval(*this);
  166|   360k|         retval += other;
  167|   360k|         return retval;
  168|   360k|      }
_ZN5Botan9SIMD_8x32pLERKS0_:
  199|   784k|      void operator+=(const SIMD_8x32& other) { m_avx2 = _mm256_add_epi32(m_avx2, other.m_avx2); }
_ZNK5Botan9SIMD_8x3211store_le128EPjS1_:
  108|   317k|      void store_le128(uint32_t out1[], uint32_t out2[]) const noexcept {
  109|   317k|         _mm256_storeu2_m128i(reinterpret_cast<__m128i*>(out2), reinterpret_cast<__m128i*>(out1), raw());
  110|   317k|      }
_ZNK5Botan9SIMD_8x323rawEv:
  351|  2.50M|      __m256i BOTAN_FN_ISA_AVX2 raw() const noexcept { return m_avx2; }
_ZN5Botan9SIMD_8x32eOERKS0_:
  205|  1.58M|      void operator^=(const SIMD_8x32& other) { m_avx2 = _mm256_xor_si256(m_avx2, other.m_avx2); }
_ZNK5Botan9SIMD_8x324rotlILm1EEES0_vQaagtT_Li0EltT_Li32E:
  118|   210k|      {
  119|       |#if defined(__AVX512VL__)
  120|       |         return SIMD_8x32(_mm256_rol_epi32(m_avx2, ROT));
  121|       |#else
  122|       |         if constexpr(ROT == 8) {
  123|       |            const __m256i shuf_rotl_8 =
  124|       |               _mm256_set_epi64x(0x0e0d0c0f'0a09080b, 0x06050407'02010003, 0x0e0d0c0f'0a09080b, 0x06050407'02010003);
  125|       |
  126|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_8));
  127|       |         } else if constexpr(ROT == 16) {
  128|       |            const __m256i shuf_rotl_16 =
  129|       |               _mm256_set_epi64x(0x0d0c0f0e'09080b0a, 0x05040706'01000302, 0x0d0c0f0e'09080b0a, 0x05040706'01000302);
  130|       |
  131|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_16));
  132|       |         } else if constexpr(ROT == 24) {
  133|       |            const __m256i shuf_rotl_24 =
  134|       |               _mm256_set_epi64x(0x0c0f0e0d'080b0a09, 0x04070605'00030201, 0x0c0f0e0d'080b0a09, 0x04070605'00030201);
  135|       |
  136|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_24));
  137|   210k|         } else {
  138|   210k|            return SIMD_8x32(_mm256_xor_si256(_mm256_slli_epi32(m_avx2, static_cast<int>(ROT)),
  139|   210k|                                              _mm256_srli_epi32(m_avx2, static_cast<int>(32 - ROT))));
  140|   210k|         }
  141|   210k|#endif
  142|   210k|      }
_ZNK5Botan9SIMD_8x324rotlILm2EEES0_vQaagtT_Li0EltT_Li32E:
  118|   175k|      {
  119|       |#if defined(__AVX512VL__)
  120|       |         return SIMD_8x32(_mm256_rol_epi32(m_avx2, ROT));
  121|       |#else
  122|       |         if constexpr(ROT == 8) {
  123|       |            const __m256i shuf_rotl_8 =
  124|       |               _mm256_set_epi64x(0x0e0d0c0f'0a09080b, 0x06050407'02010003, 0x0e0d0c0f'0a09080b, 0x06050407'02010003);
  125|       |
  126|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_8));
  127|       |         } else if constexpr(ROT == 16) {
  128|       |            const __m256i shuf_rotl_16 =
  129|       |               _mm256_set_epi64x(0x0d0c0f0e'09080b0a, 0x05040706'01000302, 0x0d0c0f0e'09080b0a, 0x05040706'01000302);
  130|       |
  131|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_16));
  132|       |         } else if constexpr(ROT == 24) {
  133|       |            const __m256i shuf_rotl_24 =
  134|       |               _mm256_set_epi64x(0x0c0f0e0d'080b0a09, 0x04070605'00030201, 0x0c0f0e0d'080b0a09, 0x04070605'00030201);
  135|       |
  136|       |            return SIMD_8x32(_mm256_shuffle_epi8(m_avx2, shuf_rotl_24));
  137|   175k|         } else {
  138|   175k|            return SIMD_8x32(_mm256_xor_si256(_mm256_slli_epi32(m_avx2, static_cast<int>(ROT)),
  139|   175k|                                              _mm256_srli_epi32(m_avx2, static_cast<int>(32 - ROT))));
  140|   175k|         }
  141|   175k|#endif
  142|   175k|      }
_ZN5Botan9SIMD_8x327load_beEPKh:
   81|  8.67k|      static SIMD_8x32 load_be(const uint8_t* in) noexcept { return load_le(in).bswap(); }
_ZN5Botan9SIMD_8x327load_leEPKh:
   61|  8.67k|      static SIMD_8x32 load_le(const uint8_t* in) noexcept {
   62|  8.67k|         return SIMD_8x32(_mm256_loadu_si256(reinterpret_cast<const __m256i*>(in)));
   63|  8.67k|      }
_ZNK5Botan9SIMD_8x328store_leEPj:
   87|  43.3k|      void store_le(uint32_t out[]) const noexcept { _mm256_storeu_si256(reinterpret_cast<__m256i*>(out), m_avx2); }
_ZNK5Botan9SIMD_8x32eoERKS0_:
  178|   563k|      SIMD_8x32 operator^(const SIMD_8x32& other) const noexcept {
  179|   563k|         SIMD_8x32 retval(*this);
  180|   563k|         retval ^= other;
  181|   563k|         return retval;
  182|   563k|      }
_ZN5Botan9SIMD_8x32C2Ev:
   30|  35.2k|      BOTAN_FORCE_INLINE SIMD_8x32() noexcept : m_avx2(_mm256_setzero_si256()) {}
_ZN5Botan9SIMD_8x32C2Ejjjj:
   52|   211k|      explicit SIMD_8x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
   53|       |         // NOLINTNEXTLINE(*-prefer-member-initializer)
   54|   211k|         m_avx2 = _mm256_set_epi32(B3, B2, B1, B0, B3, B2, B1, B0);
   55|   211k|      }
_ZN5Botan9SIMD_8x3210load_le128EPKj:
   76|   141k|      static SIMD_8x32 load_le128(const uint32_t* in) noexcept {
   77|   141k|         return SIMD_8x32(_mm256_broadcastsi128_si256(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in))));
   78|   141k|      }
_ZN5Botan9SIMD_8x3212byte_shuffleERKS0_S2_:
  341|   211k|      static inline SIMD_8x32 BOTAN_FN_ISA_AVX2 byte_shuffle(const SIMD_8x32& tbl, const SIMD_8x32& idx) {
  342|   211k|         return SIMD_8x32(_mm256_shuffle_epi8(tbl.raw(), idx.raw()));
  343|   211k|      }
_ZNK5Botan9SIMD_8x323shlILi14EEES0_v:
  217|   105k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shl() const noexcept {
  218|   105k|         return SIMD_8x32(_mm256_slli_epi32(m_avx2, SHIFT));
  219|   105k|      }
_ZNK5Botan9SIMD_8x323shrILi7EEES0_v:
  222|   105k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shr() const noexcept {
  223|   105k|         return SIMD_8x32(_mm256_srli_epi32(m_avx2, SHIFT));
  224|   105k|      }
_ZNK5Botan9SIMD_8x323shrILi3EEES0_v:
  222|   105k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shr() const noexcept {
  223|   105k|         return SIMD_8x32(_mm256_srli_epi32(m_avx2, SHIFT));
  224|   105k|      }
_ZNK5Botan9SIMD_8x323shrILi11EEES0_v:
  222|   105k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shr() const noexcept {
  223|   105k|         return SIMD_8x32(_mm256_srli_epi32(m_avx2, SHIFT));
  224|   105k|      }
_ZNK5Botan9SIMD_8x323shlILi11EEES0_v:
  217|   105k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shl() const noexcept {
  218|   105k|         return SIMD_8x32(_mm256_slli_epi32(m_avx2, SHIFT));
  219|   105k|      }
_ZNK5Botan9SIMD_8x323shrILi10EEES0_v:
  222|   211k|      BOTAN_FN_ISA_AVX2 SIMD_8x32 shr() const noexcept {
  223|   211k|         return SIMD_8x32(_mm256_srli_epi32(m_avx2, SHIFT));
  224|   211k|      }

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

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

_ZNK5Botan14ASN1_BitString5bytesEv:
  206|  29.8k|      std::span<const uint8_t> bytes() const { return std::span{m_bytes}; }
_ZNK5Botan14ASN1_BitString11unused_bitsEv:
  211|  11.5k|      size_t unused_bits() const { return m_unused_bits; }
_ZNK5Botan10BER_Object6is_setEv:
  267|   843k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  272|   360k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  277|   373k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  282|   405k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  287|  59.4k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  292|  30.7k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  298|  6.42M|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  303|  13.3M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  308|   131k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  344|   300k|      uint8_t* mutable_bits(size_t length) {
  345|   300k|         m_value.resize(length);
  346|   300k|         return m_value.data();
  347|   300k|      }
_ZNK5Botan3OID5emptyEv:
  468|  2.19k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|  2.19k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  510|  11.8k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan3OID14get_componentsEv:
  530|   224k|      const std::vector<uint32_t>& get_components() const {
  531|   224k|         return m_id;
  532|   224k|      }
_ZNK5Botan11ASN1_String5valueEv:
  590|  21.0k|      const std::string& value() const { return m_utf8_str; }
_ZNK5Botan11ASN1_String4sizeEv:
  595|     60|      size_t size() const { return value().size(); }
_ZNK5Botan11ASN1_String5emptyEv:
  600|     64|      bool empty() const { return m_utf8_str.empty(); }
_ZN5BotanltERKNS_11ASN1_StringES2_:
  612|     67|      friend bool operator<(const ASN1_String& a, const ASN1_String& b) { return a.value() < b.value(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  688|  8.12k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  693|  8.05k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  715|  12.8k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  720|  12.8k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (720:58): [True: 2.55k, False: 10.3k]
  |  Branch (720:84): [True: 9.61k, False: 690]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   91|   166k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   92|   166k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   93|   166k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   98|   360k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   99|   360k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  100|   360k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
  105|  59.5k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
  106|  59.5k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  107|  59.5k|}
_ZN5BotanneERKNS_3OIDES2_:
  561|    269|inline bool operator!=(const OID& a, const OID& b) {
  562|    269|   return !(a == b);
  563|    269|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|      4|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectD2Ev:
  168|   374k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  146|   195k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  655|  14.7k|      AlgorithmIdentifier() = default;
_ZN5Botan3OIDC2Ev:
  423|  63.3k|      explicit OID() = default;
_ZN5Botan10BER_ObjectC2Ev:
  239|   528k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  259|   145k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan14ASN1_BitStringC2Ev:
  179|  11.6k|      ASN1_BitString() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  89.7k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  156|    257|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  98.3k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan11ASN1_ObjectaSEOS0_:
  166|  19.4k|      ASN1_Object& operator=(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  249|   165k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2ERKS0_:
  244|  1.86k|      BER_Object(const BER_Object& other) = default;

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

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

_ZN5Botan11BER_Decoder6Limits3DEREv:
   42|  30.0k|            static Limits DER() { return Limits(false, 0, false, DefaultMaxObjectSize, false); }
_ZN5Botan11BER_Decoder6LimitsC2EbmbNSt3__18optionalImEEb:
  133|  30.0k|                  m_allow_ber(allow_ber),
  134|  30.0k|                  m_max_nested_indef(max_nested_indef),
  135|  30.0k|                  m_allow_standalone_eoc(allow_standalone_eoc),
  136|  30.0k|                  m_max_object_size(max_object_size),
  137|  30.0k|                  m_reject_default_value_encoding(reject_default_value_encoding) {}
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  553|  5.83k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  554|  5.83k|         std::optional<T> optval;
  555|  5.83k|         this->decode_optional(optval, type_tag, class_tag);
  556|  5.83k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (556:16): [True: 4.44k, False: 1.39k]
  ------------------
  557|  5.83k|         return (*this);
  558|  5.83k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  827|  7.94k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  828|  7.94k|   BER_Object obj = get_next_object();
  829|       |
  830|  7.94k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (830:7): [True: 5.09k, False: 2.84k]
  ------------------
  831|  5.09k|      T out{};
  832|  5.09k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (832:10): [True: 4.43k, False: 659]
  ------------------
  833|  4.43k|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  834|  4.43k|      } else {
  835|    659|         this->push_back(std::move(obj));
  836|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  837|       |            // Object types check the tag in decode_from; a re-tagging
  838|       |            // implicit override of an object is not supported here
  839|       |            this->decode(out);
  840|    659|         } else {
  841|    659|            this->decode(out, type_tag, class_tag);
  842|    659|         }
  843|    659|      }
  844|  5.09k|      optval = std::move(out);
  845|  5.09k|   } else {
  846|  2.84k|      this->push_back(std::move(obj));
  847|  2.84k|      optval = std::nullopt;
  848|  2.84k|   }
  849|       |
  850|  7.94k|   return (*this);
  851|  7.94k|}
_ZN5Botan11BER_Decoder6decodeERm:
  363|  8.48k|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder14start_sequenceEv:
  275|  96.1k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder8get_nextERNS_10BER_ObjectE:
  210|  7.51k|      BER_Decoder& get_next(BER_Object& ber) {
  211|  7.51k|         ber = get_next_object();
  212|  7.51k|         return (*this);
  213|  7.51k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  724|  7.51k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  725|  7.51k|         BER_Object obj = get_next_object();
  726|       |
  727|  7.51k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  728|       |
  729|  7.51k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (729:13): [True: 36, False: 7.48k]
  ------------------
  730|     36|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (730:16): [True: 0, False: 36]
  ------------------
  731|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  732|     36|            } else {
  733|     36|               push_back(std::move(obj));
  734|     36|               decode(out, real_type, type_tag, class_tag);
  735|     36|            }
  736|  7.48k|         } else {
  737|  7.48k|            out.clear();
  738|  7.48k|            push_back(std::move(obj));
  739|  7.48k|         }
  740|       |
  741|  7.51k|         return (*this);
  742|  7.51k|      }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  386|  21.0k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  387|  21.0k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  388|  21.0k|      }
_ZN5Botan11BER_Decoder30decode_octet_aligned_bitstringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  464|  8.28k|                                                  ASN1_Class class_tag = ASN1_Class::Universal) {
  465|  8.28k|         ASN1_BitString bits;
  466|  8.28k|         decode_bitstring(bits, type_tag, class_tag);
  467|       |
  468|  8.28k|         if(bits.unused_bits() != 0) {
  ------------------
  |  Branch (468:13): [True: 5, False: 8.27k]
  ------------------
  469|      5|            throw Decoding_Error("Expected octet-aligned BIT STRING");
  470|      5|         }
  471|       |
  472|  8.27k|         out.assign(bits.bytes().begin(), bits.bytes().end());
  473|  8.27k|         return (*this);
  474|  8.28k|      }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
  167|  10.2k|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   56|   758k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   61|   454k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6Limits15max_object_sizeEv:
   80|   302k|            std::optional<size_t> max_object_size() const { return m_max_object_size; }
_ZNK5Botan11BER_Decoder6limitsEv:
  197|   131k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder9start_setEv:
  281|  21.5k|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder22start_context_specificEj:
  290|  1.18k|      BER_Decoder start_context_specific(uint32_t tag) {
  291|  1.18k|         return start_cons(ASN1_Type(tag), ASN1_Class::ContextSpecific);
  292|  1.18k|      }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  368|  4.65k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  338|  26.2k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  339|  26.2k|         out.clear();
  340|  5.43M|         for(;;) {
  341|  5.43M|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (341:21): [True: 5.41M, False: 26.2k]
  ------------------
  342|  5.41M|               out.push_back(*next);
  343|  5.41M|            } else {
  344|  26.2k|               break;
  345|  26.2k|            }
  346|  5.43M|         }
  347|  26.2k|         return (*this);
  348|  26.2k|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_3OIDEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|  1.86k|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|  1.86k|         obj.set_tagging(real_type, real_class);
  642|  1.86k|         push_back(std::move(obj));
  643|  1.86k|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|  1.86k|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|  1.86k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  553|  20.4k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  554|  20.4k|         std::optional<T> optval;
  555|  20.4k|         this->decode_optional(optval, type_tag, class_tag);
  556|  20.4k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (556:16): [True: 3.40k, False: 17.0k]
  ------------------
  557|  20.4k|         return (*this);
  558|  20.4k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  827|  20.4k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  828|  20.4k|   BER_Object obj = get_next_object();
  829|       |
  830|  20.4k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (830:7): [True: 3.45k, False: 17.0k]
  ------------------
  831|  3.45k|      T out{};
  832|  3.45k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (832:10): [True: 0, False: 3.45k]
  ------------------
  833|      0|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  834|  3.45k|      } else {
  835|  3.45k|         this->push_back(std::move(obj));
  836|       |         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  837|       |            // Object types check the tag in decode_from; a re-tagging
  838|       |            // implicit override of an object is not supported here
  839|       |            this->decode(out);
  840|  3.45k|         } else {
  841|  3.45k|            this->decode(out, type_tag, class_tag);
  842|  3.45k|         }
  843|  3.45k|      }
  844|  3.45k|      optval = std::move(out);
  845|  17.0k|   } else {
  846|  17.0k|      this->push_back(std::move(obj));
  847|  17.0k|      optval = std::nullopt;
  848|  17.0k|   }
  849|       |
  850|  20.4k|   return (*this);
  851|  20.4k|}
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_0EERS0_jNS_10ASN1_ClassEOT_:
  626|    672|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    672|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 330, False: 342]
  ------------------
  628|    330|            std::forward<F>(fn)(*this);
  629|    330|         }
  630|    672|         return (*this);
  631|    672|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  663|  1.11k|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  664|  1.11k|         BER_Object obj = get_next_object();
  665|  1.11k|         obj.assert_is_a(type_tag, class_tag);
  666|  1.11k|         return decode_implicit(std::move(obj), out, real_type, real_class);
  667|  1.11k|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_15AlternativeNameEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|  1.11k|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|  1.11k|         obj.set_tagging(real_type, real_class);
  642|  1.11k|         push_back(std::move(obj));
  643|  1.11k|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|  1.11k|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|  1.11k|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_1EERS0_jNS_10ASN1_ClassEOT_:
  626|    662|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    662|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 74, False: 588]
  ------------------
  628|     74|            std::forward<F>(fn)(*this);
  629|     74|         }
  630|    662|         return (*this);
  631|    662|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS4_9allocatorIhEEEEE3$_2EERS0_jNS_10ASN1_ClassEOT_:
  626|    595|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    595|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 43, False: 552]
  ------------------
  628|     43|            std::forward<F>(fn)(*this);
  629|     43|         }
  630|    595|         return (*this);
  631|    595|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_:
  663|     43|         T& out, ASN1_Type type_tag, ASN1_Class class_tag, ASN1_Type real_type, ASN1_Class real_class) {
  664|     43|         BER_Object obj = get_next_object();
  665|     43|         obj.assert_is_a(type_tag, class_tag);
  666|     43|         return decode_implicit(std::move(obj), out, real_type, real_class);
  667|     43|      }
_ZN5Botan11BER_Decoder15decode_implicitINS_18X509_Serial_NumberEEERS0_NS_10BER_ObjectERT_NS_9ASN1_TypeENS_10ASN1_ClassE:
  640|     43|      BER_Decoder& decode_implicit(BER_Object obj, T& out, ASN1_Type real_type, ASN1_Class real_class) {
  641|     43|         obj.set_tagging(real_type, real_class);
  642|     43|         push_back(std::move(obj));
  643|     43|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  644|       |            // The object was re-tagged above; decode_from checks the real tag itself
  645|     43|            return decode(out);
  646|       |         } else {
  647|       |            return decode(out, real_type, real_class);
  648|       |         }
  649|     43|      }
_ZN5Botan11BER_Decoder11decode_listINS_3OIDEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    451|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    451|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  2.31k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 1.86k, False: 451]
  ------------------
  884|  1.86k|      T value;
  885|  1.86k|      list.decode(value);
  886|  1.86k|      vec.push_back(std::move(value));
  887|  1.86k|   }
  888|       |
  889|    451|   list.end_cons();
  890|       |
  891|    451|   return (*this);
  892|    451|}
_ZN5Botan11BER_Decoder20decode_optional_listINS_14GeneralSubtreeEEEbRNSt3__16vectorIT_NS3_9allocatorIS5_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  898|    538|bool BER_Decoder::decode_optional_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  899|    538|   if(peek_next_object().is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (899:7): [True: 397, False: 141]
  ------------------
  900|    397|      decode_list(vec, type_tag, class_tag);
  901|    397|      return true;
  902|    397|   }
  903|       |
  904|    141|   return false;
  905|    538|}
_ZN5Botan11BER_Decoder11decode_listINS_14GeneralSubtreeEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    397|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    397|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  1.78k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 1.38k, False: 397]
  ------------------
  884|  1.38k|      T value;
  885|  1.38k|      list.decode(value);
  886|  1.38k|      vec.push_back(std::move(value));
  887|  1.38k|   }
  888|       |
  889|    397|   list.end_cons();
  890|       |
  891|    397|   return (*this);
  892|    397|}
x509_ext.cpp:_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension12_GLOBAL__N_118Policy_InformationEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    975|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    975|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  2.52k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 1.55k, False: 975]
  ------------------
  884|  1.55k|      T value;
  885|  1.55k|      list.decode(value);
  886|  1.55k|      vec.push_back(std::move(value));
  887|  1.55k|   }
  888|       |
  889|    975|   list.end_cons();
  890|       |
  891|    975|   return (*this);
  892|    975|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension23CRL_Distribution_Points18Distribution_PointEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|  1.39k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|  1.39k|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  2.72k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 1.32k, False: 1.39k]
  ------------------
  884|  1.32k|      T value;
  885|  1.32k|      list.decode(value);
  886|  1.32k|      vec.push_back(std::move(value));
  887|  1.32k|   }
  888|       |
  889|  1.39k|   list.end_cons();
  890|       |
  891|  1.39k|   return (*this);
  892|  1.39k|}
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_0EES5_jNS_10ASN1_ClassEOT_:
  626|  1.27k|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|  1.27k|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 1.18k, False: 90]
  ------------------
  628|  1.18k|            std::forward<F>(fn)(*this);
  629|  1.18k|         }
  630|  1.27k|         return (*this);
  631|  1.27k|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_1EES5_jNS_10ASN1_ClassEOT_:
  626|    243|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    243|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 13, False: 230]
  ------------------
  628|     13|            std::forward<F>(fn)(*this);
  629|     13|         }
  630|    243|         return (*this);
  631|    243|      }
x509_ext.cpp:_ZN5Botan11BER_Decoder21decode_optional_fieldIZNS_14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERS0_E3$_2EES5_jNS_10ASN1_ClassEOT_:
  626|    223|      BER_Decoder& decode_optional_field(uint32_t tag_no, ASN1_Class class_tag, F&& fn) {
  627|    223|         if(peek_next_object().is_a(tag_no, class_tag)) {
  ------------------
  |  Branch (627:13): [True: 13, False: 210]
  ------------------
  628|     13|            std::forward<F>(fn)(*this);
  629|     13|         }
  630|    223|         return (*this);
  631|    223|      }
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension10TNAuthList5EntryEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    113|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    113|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|    245|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 132, False: 113]
  ------------------
  884|    132|      T value;
  885|    132|      list.decode(value);
  886|    132|      vec.push_back(std::move(value));
  887|    132|   }
  888|       |
  889|    113|   list.end_cons();
  890|       |
  891|    113|   return (*this);
  892|    113|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks15IPAddressFamilyEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    853|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    853|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  1.75k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 901, False: 853]
  ------------------
  884|    901|      T value;
  885|    901|      list.decode(value);
  886|    901|      vec.push_back(std::move(value));
  887|    901|   }
  888|       |
  889|    853|   list.end_cons();
  890|       |
  891|    853|   return (*this);
  892|    853|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    260|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    260|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  1.05k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 799, False: 260]
  ------------------
  884|    799|      T value;
  885|    799|      list.decode(value);
  886|    799|      vec.push_back(std::move(value));
  887|    799|   }
  888|       |
  889|    260|   list.end_cons();
  890|       |
  891|    260|   return (*this);
  892|    260|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE16EEEEERS0_RNSt3__16vectorIT_NS8_9allocatorISA_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|    312|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|    312|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  1.39k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 1.08k, False: 312]
  ------------------
  884|  1.08k|      T value;
  885|  1.08k|      list.decode(value);
  886|  1.08k|      vec.push_back(std::move(value));
  887|  1.08k|   }
  888|       |
  889|    312|   list.end_cons();
  890|       |
  891|    312|   return (*this);
  892|    312|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension8ASBlocks11ASIdOrRangeEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  880|  1.07k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  881|  1.07k|   BER_Decoder list = start_cons(type_tag, class_tag);
  882|       |
  883|  5.09k|   while(list.more_items()) {
  ------------------
  |  Branch (883:10): [True: 4.02k, False: 1.07k]
  ------------------
  884|  4.02k|      T value;
  885|  4.02k|      list.decode(value);
  886|  4.02k|      vec.push_back(std::move(value));
  887|  4.02k|   }
  888|       |
  889|  1.07k|   list.end_cons();
  890|       |
  891|  1.07k|   return (*this);
  892|  1.07k|}

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

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

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

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

_ZNK5Botan7DNSName9to_stringEv:
   51|    447|      const std::string& to_string() const { return m_name; }
_ZN5Botan7DNSNameC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   98|  17.6k|      explicit DNSName(std::string canonical) : m_name(std::move(canonical)) {}
_ZNK5Botan7DNSNamessERKS0_:
   81|   185k|      auto operator<=>(const DNSName&) const = default;

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

_ZNK5Botan9Exception4whatEv:
   94|  5.07k|      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|}

_ZNK5Botan11IPv4AddressssERKS0_:
   61|    914|      auto operator<=>(const IPv4Address&) const = default;
_ZN5Botan11IPv4AddressC2Ej:
   29|    612|      explicit IPv4Address(uint32_t ip) : m_ip(ip) {}
_ZNK5Botan11IPv4AddressanERKS0_:
   55|     17|      IPv4Address operator&(const IPv4Address& other) const { return IPv4Address(m_ip & other.m_ip); }

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

_ZN5Botan11clear_bytesEPvm:
  101|  14.8k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  14.8k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 140, False: 14.7k]
  ------------------
  103|    140|      std::memset(ptr, 0, bytes);
  104|    140|   }
  105|  14.8k|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  6.70M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  6.70M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  6.70M|   do {                                                                                          \
  |  |  104|  6.70M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  13.3M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 6.67M, False: 35.0k]
  |  |  |  Branch (105:23): [True: 6.67M, False: 0]
  |  |  |  Branch (105:23): [True: 6.67M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  6.70M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 6.70M]
  |  |  ------------------
  ------------------
  146|       |
  147|  6.70M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 6.70M, False: 1.35k]
  |  Branch (147:24): [True: 6.70M, False: 2.71k]
  |  Branch (147:42): [True: 6.67M, False: 30.9k]
  ------------------
  148|  6.67M|      std::memmove(out, in, sizeof(T) * n);
  149|  6.67M|   }
  150|  6.70M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   695k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   695k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   695k|}
_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|  37.8k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  37.8k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  37.8k|}
_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|  37.8k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  37.8k|   ranges::assert_equal_byte_lengths(out, in);
  178|  37.8k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  37.8k|}
_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|  18.8k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  18.8k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  18.8k|}
_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|  18.8k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  18.8k|   ranges::assert_equal_byte_lengths(out, in);
  178|  18.8k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  18.8k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|    165|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|    165|   clear_bytes(ptr, sizeof(T) * n);
  120|    165|}
_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|    642|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    642|   ranges::assert_equal_byte_lengths(out, in);
  178|    642|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    642|}
_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|    642|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    642|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    642|}
_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|    642|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    642|   ToT dst;  // NOLINT(*-member-init)
  212|    642|   typecast_copy(dst, src);
  213|    642|   return dst;
  214|    642|}
_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|  13.0k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  13.0k|   ToT dst;  // NOLINT(*-member-init)
  212|  13.0k|   typecast_copy(dst, src);
  213|  13.0k|   return dst;
  214|  13.0k|}
_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|  13.0k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  13.0k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  13.0k|}
_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|  13.0k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  13.0k|   ranges::assert_equal_byte_lengths(out, in);
  178|  13.0k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  13.0k|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  14.7k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  14.7k|   clear_bytes(ptr, sizeof(T) * n);
  120|  14.7k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeENS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIST_EEEvOSB_RKSL_:
  160|  12.5k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  12.5k|   ranges::assert_equal_byte_lengths(out, in);
  162|  12.5k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 12.5k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  12.5k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 12.5k, False: 0]
  ------------------
  165|  12.5k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  12.5k|   }
  167|  12.5k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS5_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEEES5_RKSA_:
  210|  12.5k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  12.5k|   ToT dst;  // NOLINT(*-member-init)
  212|  12.5k|   typecast_copy(dst, src);
  213|  12.5k|   return dst;
  214|  12.5k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISC_EESD_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISJ_EEEvRSJ_RKS9_:
  188|  12.5k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  12.5k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  12.5k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm1EEETkNS1_16contiguous_rangeENS3_IhLm8EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS6_IXsr21__is_primary_templateINS7_Iu14__remove_cvrefIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSF_ISN_EESO_E4type10value_typeEEEEvOSK_RKSA_:
  176|  12.5k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  12.5k|   ranges::assert_equal_byte_lengths(out, in);
  178|  12.5k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  12.5k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm8EEETkNS1_16contiguous_rangeENS3_ImLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  62.3k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  62.3k|   ranges::assert_equal_byte_lengths(out, in);
  178|  62.3k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  62.3k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|  3.59k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  3.59k|   ToT dst;  // NOLINT(*-member-init)
  212|  3.59k|   typecast_copy(dst, src);
  213|  3.59k|   return dst;
  214|  3.59k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|  3.59k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  3.59k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  3.59k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanItLm1EEETkNS1_16contiguous_rangeENS3_IKhLm2EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  3.59k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  3.59k|   ranges::assert_equal_byte_lengths(out, in);
  178|  3.59k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  3.59k|}
_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:
  162|  1.48k|      Key_Constraints(Key_Constraints::Bits bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ej:
  164|  1.07k|      explicit Key_Constraints(uint32_t bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ev:
  166|  4.62k|      Key_Constraints() : m_value(0) {}
_ZNK5Botan15Key_Constraints8includesENS0_4BitsE:
  186|     72|      bool includes(Key_Constraints::Bits other) const { return (m_value & other) == other; }
_ZNK5Botan15Key_Constraints5emptyEv:
  193|    359|      bool empty() const { return m_value == 0; }
_ZN5Botan11ReasonFlagsC2Et:
  247|      7|      explicit ReasonFlags(uint16_t bits) : m_value(bits) {
  248|      7|         if((m_value & static_cast<uint16_t>(~DefinedReasonBits)) != 0) {
  ------------------
  |  Branch (248:13): [True: 3, False: 4]
  ------------------
  249|      3|            throw Decoding_Error("ReasonFlags contains undefined reason bits");
  250|      3|         }
  251|      4|         if(m_value == 0) {
  ------------------
  |  Branch (251:13): [True: 1, False: 3]
  ------------------
  252|      1|            throw Decoding_Error("ReasonFlags must have at least one defined reason");
  253|      1|         }
  254|      4|      }

_ZN5Botan18X509_Serial_NumberC2Ev:
   70|  4.67k|      X509_Serial_Number() : m_contents{0x00} {}
_ZN5Botan7X509_DNC2Ev:
  159|  9.43k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
 1029|  4.62k|      Extensions() = default;
_ZN5Botan15AlternativeNameC2Ev:
  338|  12.5k|      AlternativeName() = default;
_ZN5Botan15NameConstraintsC2Ev:
  755|  5.03k|      NameConstraints() = default;
_ZN5Botan10ExtensionsD2Ev:
 1037|  4.62k|      ~Extensions() override = default;
_ZNK5Botan7X509_DN8get_bitsEv:
  198|  7.26k|      const std::vector<uint8_t>& get_bits() const { return m_dn_bits; }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension9Key_UsageEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 393, False: 335]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    393|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 81, False: 312]
  ------------------
  888|     81|               return nullptr;
  889|    312|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 312, False: 0]
  ------------------
  890|    312|               return extn_as_T;
  891|    312|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    393|         }
  895|       |
  896|    335|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14Subject_Key_IDEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 349, False: 379]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    349|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 37, False: 312]
  ------------------
  888|     37|               return nullptr;
  889|    312|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 312, False: 0]
  ------------------
  890|    312|               return extn_as_T;
  891|    312|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    349|         }
  895|       |
  896|    379|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 290, False: 438]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    290|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 140, False: 150]
  ------------------
  888|    140|               return nullptr;
  889|    150|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 150, False: 0]
  ------------------
  890|    150|               return extn_as_T;
  891|    150|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    290|         }
  895|       |
  896|    438|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Name_ConstraintsEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 101, False: 627]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    101|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 88, False: 13]
  ------------------
  888|     88|               return nullptr;
  889|     88|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 13, False: 0]
  ------------------
  890|     13|               return extn_as_T;
  891|     13|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    101|         }
  895|       |
  896|    627|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension18Extended_Key_UsageEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 202, False: 526]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    202|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 103, False: 99]
  ------------------
  888|    103|               return nullptr;
  889|    103|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 99, False: 0]
  ------------------
  890|     99|               return extn_as_T;
  891|     99|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    202|         }
  895|       |
  896|    526|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension17Basic_ConstraintsEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 217, False: 511]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    217|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 112, False: 105]
  ------------------
  888|    112|               return nullptr;
  889|    112|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 105, False: 0]
  ------------------
  890|    105|               return extn_as_T;
  891|    105|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    217|         }
  895|       |
  896|    511|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23Issuer_Alternative_NameEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 84, False: 644]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|     84|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 54, False: 30]
  ------------------
  888|     54|               return nullptr;
  889|     54|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 30, False: 0]
  ------------------
  890|     30|               return extn_as_T;
  891|     30|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|     84|         }
  895|       |
  896|    644|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension24Subject_Alternative_NameEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 142, False: 586]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    142|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 70, False: 72]
  ------------------
  888|     70|               return nullptr;
  889|     72|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 72, False: 0]
  ------------------
  890|     72|               return extn_as_T;
  891|     72|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    142|         }
  895|       |
  896|    586|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension20Certificate_PoliciesEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 58, False: 670]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|     58|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 28, False: 30]
  ------------------
  888|     28|               return nullptr;
  889|     30|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 30, False: 0]
  ------------------
  890|     30|               return extn_as_T;
  891|     30|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|     58|         }
  895|       |
  896|    670|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension28Authority_Information_AccessEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 309, False: 419]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    309|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 224, False: 85]
  ------------------
  888|    224|               return nullptr;
  889|    224|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 85, False: 0]
  ------------------
  890|     85|               return extn_as_T;
  891|     85|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    309|         }
  895|       |
  896|    419|         return nullptr;
  897|    728|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23CRL_Distribution_PointsEEEPKT_RKNS_3OIDE:
  884|    728|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  885|    728|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (885:42): [True: 277, False: 451]
  ------------------
  886|       |            // Unknown_Extension oid_name is empty
  887|    277|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (887:16): [True: 244, False: 33]
  ------------------
  888|    244|               return nullptr;
  889|    244|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (889:32): [True: 33, False: 0]
  ------------------
  890|     33|               return extn_as_T;
  891|     33|            } else {
  892|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  893|      0|            }
  894|    277|         }
  895|       |
  896|    451|         return nullptr;
  897|    728|      }
_ZNK5Botan15AlternativeName9uri_namesEv:
  391|    100|      const std::set<URI>& uri_names() const { return m_uri; }
_ZNK5Botan15AlternativeName15directory_namesEv:
  443|    182|      const std::set<X509_DN>& directory_names() const { return m_dn_names; }
_ZNK5Botan15AlternativeName14OtherNameValue3oidEv:
  311|    898|            const OID& oid() const { return m_oid; }
_ZNK5Botan14GeneralSubtree4baseEv:
  737|    407|      const GeneralName& base() const { return m_base; }
_ZNK5Botan7X509_DN5emptyEv:
  202|      4|      bool empty() const { return m_rdn.empty(); }
_ZNK5Botan7X509_DN16_canonical_bytesEv:
  274|  1.47k|      const std::vector<uint8_t>& _canonical_bytes() const { return m_canonical_dn_bits; }
_ZNK5Botan15AlternativeName14OtherNameValueltERKS1_:
  315|    269|            bool operator<(const OtherNameValue& other) const {
  316|    269|               if(oid() != other.oid()) {
  ------------------
  |  Branch (316:19): [True: 180, False: 89]
  ------------------
  317|    180|                  return oid() < other.oid();
  318|    180|               }
  319|     89|               return m_value < other.m_value;
  320|    269|            }
_ZN5Botan15AlternativeName14OtherNameValueC2ERKNS_3OIDENSt3__16vectorIhNS5_9allocatorIhEEEE:
  325|    345|            OtherNameValue(const OID& oid, std::vector<uint8_t> value) : m_oid(oid), m_value(std::move(value)) {}
_ZN5Botan15AlternativeName16add_ipv4_addressEj:
  374|    441|      BOTAN_DEPRECATED("Use variant taking IPv4Address") void add_ipv4_address(uint32_t ipv4) {
  375|    441|         this->add_ipv4_address(IPv4Address(ipv4));
  376|    441|      }
_ZNK5Botan11GeneralName9type_codeEv:
  596|    407|      NameType type_code() const { return m_type; }
_ZN5Botan11GeneralName15EmailConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  647|    152|            explicit EmailConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan11GeneralName13DNSConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  665|    103|            explicit DNSConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan11GeneralName13URIConstraintC2ENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  683|     94|            explicit URIConstraint(std::string value) : m_value(std::move(value)) {}
_ZN5Botan10Extensions15Extensions_InfoC2EbRKNSt3__16vectorIhNS2_9allocatorIhEEEENS2_10unique_ptrINS_21Certificate_ExtensionENS2_14default_deleteISA_EEEE:
 1053|  19.3k|                  m_obj(std::move(ext)), m_bits(encoding), m_critical(critical) {}
_ZN5Botan11GeneralNameC2Ev:
  564|  1.38k|      BOTAN_DEPRECATED("Deprecated use NameConstraints") GeneralName() = default;
_ZN5Botan11GeneralName15EmailConstraintC2Ev:
  638|  1.38k|            EmailConstraint() = default;
_ZN5Botan21Certificate_ExtensionD2Ev:
  858|  28.2k|      virtual ~Certificate_Extension() = default;

_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  12.5k|{
  101|  12.5k|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|  12.5k|   } else {
  107|  12.5k|      const size_t expected_size = s0.size_bytes();
  108|  12.5k|      const bool correct_size =
  109|  12.5k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  12.5k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 12.5k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  12.5k|   }
  115|  12.5k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   695k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   695k|   return std::span{r}.size_bytes();
   61|   695k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  75.7k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  75.7k|   const std::span s{r};
   79|  75.7k|   if constexpr(statically_spanable_range<R>) {
   80|  75.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|  75.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm4EEETpTkNS0_14spanable_rangeEJNS3_IKjLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  37.8k|{
  101|  37.8k|   const std::span s0{r0};
  102|       |
  103|  37.8k|   if constexpr(statically_spanable_range<R0>) {
  104|  37.8k|      constexpr size_t expected_size = s0.size_bytes();
  105|  37.8k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  37.8k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKjLm1EEEEEvRKT0_:
   77|  37.8k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  37.8k|   const std::span s{r};
   79|  37.8k|   if constexpr(statically_spanable_range<R>) {
   80|  37.8k|      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|  37.8k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEmRKT_:
   59|  37.8k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  37.8k|   return std::span{r}.size_bytes();
   61|  37.8k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  31.3k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  31.3k|   const std::span s{r};
   79|  31.3k|   if constexpr(statically_spanable_range<R>) {
   80|  31.3k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  31.3k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  18.8k|{
  101|  18.8k|   const std::span s0{r0};
  102|       |
  103|  18.8k|   if constexpr(statically_spanable_range<R0>) {
  104|  18.8k|      constexpr size_t expected_size = s0.size_bytes();
  105|  18.8k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  18.8k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  18.8k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  18.8k|   const std::span s{r};
   79|  18.8k|   if constexpr(statically_spanable_range<R>) {
   80|  18.8k|      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.8k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  18.8k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  18.8k|   return std::span{r}.size_bytes();
   61|  18.8k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKjLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  5.82k|{
  101|  5.82k|   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|  5.82k|   } else {
  107|  5.82k|      const size_t expected_size = s0.size_bytes();
  108|  5.82k|      const bool correct_size =
  109|  5.82k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  5.82k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 5.82k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  5.82k|   }
  115|  5.82k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  25.0k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  25.0k|   return std::span{r}.size_bytes();
   61|  25.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  1.28k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.28k|   const std::span s{r};
   79|  1.28k|   if constexpr(statically_spanable_range<R>) {
   80|  1.28k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  1.28k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    642|{
  101|    642|   const std::span s0{r0};
  102|       |
  103|    642|   if constexpr(statically_spanable_range<R0>) {
  104|    642|      constexpr size_t expected_size = s0.size_bytes();
  105|    642|      (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|    642|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|    642|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    642|   return std::span{r}.size_bytes();
   61|    642|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|  26.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  26.1k|   const std::span s{r};
   79|  26.1k|   if constexpr(statically_spanable_range<R>) {
   80|  26.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|  26.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  13.0k|{
  101|  13.0k|   const std::span s0{r0};
  102|       |
  103|  13.0k|   if constexpr(statically_spanable_range<R0>) {
  104|  13.0k|      constexpr size_t expected_size = s0.size_bytes();
  105|  13.0k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  13.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  25.5k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  25.5k|   return std::span{r}.size_bytes();
   61|  25.5k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  12.5k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  12.5k|   const std::span s{r};
   79|  12.5k|   if constexpr(statically_spanable_range<R>) {
   80|  12.5k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  12.5k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  12.5k|{
  101|  12.5k|   const std::span s0{r0};
  102|       |
  103|  12.5k|   if constexpr(statically_spanable_range<R0>) {
  104|  12.5k|      constexpr size_t expected_size = s0.size_bytes();
  105|  12.5k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  12.5k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   124k|{
  101|   124k|   const std::span s0{r0};
  102|       |
  103|   124k|   if constexpr(statically_spanable_range<R0>) {
  104|   124k|      constexpr size_t expected_size = s0.size_bytes();
  105|   124k|      (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|   124k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|   124k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   124k|   const std::span s{r};
   79|   124k|   if constexpr(statically_spanable_range<R>) {
   80|   124k|      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|   124k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  62.3k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  62.3k|   return std::span{r}.size_bytes();
   61|  62.3k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|  7.18k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  7.18k|   const std::span s{r};
   79|  7.18k|   if constexpr(statically_spanable_range<R>) {
   80|  7.18k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  7.18k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  3.59k|{
  101|  3.59k|   const std::span s0{r0};
  102|       |
  103|  3.59k|   if constexpr(statically_spanable_range<R0>) {
  104|  3.59k|      constexpr size_t expected_size = s0.size_bytes();
  105|  3.59k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  3.59k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  3.59k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.59k|   return std::span{r}.size_bytes();
   61|  3.59k|}

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

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

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

_ZN5Botan14Cert_Extension9Key_Usage10static_oidEv:
   88|    728|      static OID static_oid() { return OID({2, 5, 29, 15}); }
_ZNK5Botan14Cert_Extension9Key_Usage15get_constraintsEv:
   86|    312|      Key_Constraints get_constraints() const { return m_constraints; }
_ZN5Botan14Cert_Extension14Subject_Key_ID10static_oidEv:
  133|    728|      static OID static_oid() { return OID({2, 5, 29, 14}); }
_ZNK5Botan14Cert_Extension14Subject_Key_ID10get_key_idEv:
  131|    312|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  180|    728|      static OID static_oid() { return OID({2, 5, 29, 35}); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID10get_key_idEv:
  173|    150|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension16Name_Constraints10static_oidEv:
  311|    728|      static OID static_oid() { return OID({2, 5, 29, 30}); }
_ZNK5Botan14Cert_Extension16Name_Constraints20get_name_constraintsEv:
  309|     13|      const NameConstraints& get_name_constraints() const { return m_name_constraints; }
_ZN5Botan14Cert_Extension18Extended_Key_Usage10static_oidEv:
  273|    728|      static OID static_oid() { return OID({2, 5, 29, 37}); }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage18object_identifiersEv:
  271|     99|      const std::vector<OID>& object_identifiers() const { return m_oids; }
_ZN5Botan14Cert_Extension17Basic_Constraints10static_oidEv:
   57|    728|      static OID static_oid() { return OID({2, 5, 29, 19}); }
_ZNK5Botan14Cert_Extension17Basic_Constraints5is_caEv:
   53|    105|      bool is_ca() const { return m_is_ca; }
_ZNK5Botan14Cert_Extension17Basic_Constraints22path_length_constraintEv:
   55|     44|      std::optional<size_t> path_length_constraint() const { return m_path_length_constraint; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name10static_oidEv:
  235|    728|      static OID static_oid() { return OID({2, 5, 29, 18}); }
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name12get_alt_nameEv:
  233|     30|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension24Subject_Alternative_Name10static_oidEv:
  205|    728|      static OID static_oid() { return OID({2, 5, 29, 17}); }
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name12get_alt_nameEv:
  203|     72|      const AlternativeName& get_alt_name() const { return m_alt_name; }
_ZN5Botan14Cert_Extension21NoRevocationAvailable10static_oidEv:
  834|    728|      static OID static_oid() { return OID({2, 5, 29, 56}); }
_ZN5Botan14Cert_Extension12OCSP_NoCheck10static_oidEv:
  791|  7.78k|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 5}); }
_ZN5Botan14Cert_Extension20Certificate_Policies10static_oidEv:
  343|    728|      static OID static_oid() { return OID({2, 5, 29, 32}); }
_ZNK5Botan14Cert_Extension20Certificate_Policies15get_policy_oidsEv:
  341|     30|      const std::vector<OID>& get_policy_oids() const { return m_oids; }
_ZN5Botan14Cert_Extension28Authority_Information_Access10static_oidEv:
  468|    728|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 1, 1}); }
_ZNK5Botan14Cert_Extension28Authority_Information_Access19ocsp_responder_urisEv:
  460|     85|      const std::vector<URI>& ocsp_responder_uris() const { return m_ocsp_responders; }
_ZNK5Botan14Cert_Extension28Authority_Information_Access14ca_issuer_urisEv:
  474|     85|      const std::vector<URI>& ca_issuer_uris() const { return m_ca_issuers; }
_ZN5Botan14Cert_Extension23CRL_Distribution_Points10static_oidEv:
  662|    728|      static OID static_oid() { return OID({2, 5, 29, 31}); }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points27crl_distribution_point_urisEv:
  660|     33|      const std::vector<URI>& crl_distribution_point_uris() const { return m_crl_distribution_urls; }
_ZNK5Botan14Cert_Extension17Basic_Constraints8oid_nameEv:
   62|    775|      std::string oid_name() const override { return "X509v3.BasicConstraints"; }
_ZN5Botan14Cert_Extension9Key_UsageC2Ev:
   84|  1.48k|      explicit Key_Usage() : m_constraints(Key_Constraints::None) {}
_ZNK5Botan14Cert_Extension9Key_Usage8oid_nameEv:
   93|    600|      std::string oid_name() const override { return "X509v3.KeyUsage"; }
_ZNK5Botan14Cert_Extension14Subject_Key_ID8oid_nameEv:
  138|    312|      std::string oid_name() const override { return "X509v3.SubjectKeyIdentifier"; }
_ZNK5Botan14Cert_Extension16Authority_Key_ID8oid_nameEv:
  185|    151|      std::string oid_name() const override { return "X509v3.AuthorityKeyIdentifier"; }
_ZN5Botan14Cert_Extension24Subject_Alternative_NameC2ERKNS_15AlternativeNameE:
  213|  1.08k|      explicit Subject_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name8oid_nameEv:
  216|     72|      std::string oid_name() const override { return "X509v3.SubjectAlternativeName"; }
_ZN5Botan14Cert_Extension23Issuer_Alternative_NameC2ERKNS_15AlternativeNameE:
  243|    507|      explicit Issuer_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name8oid_nameEv:
  246|     31|      std::string oid_name() const override { return "X509v3.IssuerAlternativeName"; }
_ZNK5Botan14Cert_Extension18Extended_Key_Usage8oid_nameEv:
  278|    122|      std::string oid_name() const override { return "X509v3.ExtendedKeyUsage"; }
_ZNK5Botan14Cert_Extension16Name_Constraints8oid_nameEv:
  316|     16|      std::string oid_name() const override { return "X509v3.NameConstraints"; }
_ZNK5Botan14Cert_Extension20Certificate_Policies8oid_nameEv:
  354|     30|      std::string oid_name() const override { return "X509v3.CertificatePolicies"; }
_ZN5Botan14Cert_Extension28Authority_Information_Access17AccessDescriptionC2ENS_3OIDENS_9ASN1_TypeENS_10ASN1_ClassENSt3__16vectorIhNS6_9allocatorIhEEEE:
  386|    260|                  m_method(std::move(method)),
  387|    260|                  m_location_tag(location_tag),
  388|    260|                  m_location_class(location_class),
  389|    260|                  m_location_value(std::move(location_value)) {}
_ZNK5Botan14Cert_Extension28Authority_Information_Access8oid_nameEv:
  477|     85|      std::string oid_name() const override { return "PKIX.AuthorityInformationAccess"; }
_ZN5Botan14Cert_Extension10CRL_NumberC2Ev:
  501|      1|      CRL_Number() : m_has_value(false), m_crl_number(BigInt::zero()) {}
_ZNK5Botan14Cert_Extension10CRL_Number8oid_nameEv:
  516|      1|      std::string oid_name() const override { return "X509v3.CRLNumber"; }
_ZN5Botan14Cert_Extension14CRL_ReasonCodeC2ENS_8CRL_CodeE:
  538|      1|      explicit CRL_ReasonCode(CRL_Code r = CRL_Code::Unspecified) : m_reason(r) {}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode8oid_nameEv:
  547|      1|      std::string oid_name() const override { return "X509v3.ReasonCode"; }
_ZNK5Botan14Cert_Extension21DistributionPointName9full_nameEv:
  587|    200|      const std::optional<AlternativeName>& full_name() const { return m_full_name; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point23distribution_point_nameEv:
  621|    100|            const std::optional<DistributionPointName>& distribution_point_name() const { return m_dp_name; }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points8oid_nameEv:
  667|     33|      std::string oid_name() const override { return "X509v3.CRLDistributionPoints"; }
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point8oid_nameEv:
  749|      2|      std::string oid_name() const override { return "X509v3.CRLIssuingDistributionPoint"; }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3minEv:
 1148|  13.5k|            asnum_t min() const { return m_min; }
_ZNK5Botan14Cert_Extension8ASBlocks11ASIdOrRange3maxEv:
 1150|  4.99k|            asnum_t max() const { return m_max; }
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRangeC2Ejj:
 1156|    161|            ASIdOrRange(asnum_t min, asnum_t max) : m_min(min), m_max(max) {
 1157|    161|               if(max < min) {
  ------------------
  |  Branch (1157:19): [True: 0, False: 161]
  ------------------
 1158|      0|                  throw Decoding_Error("AS range numbers must be sorted");
 1159|      0|               }
 1160|    161|            }
_ZN5Botan14Cert_Extension17Unknown_ExtensionC2ERKNS_3OIDEbb:
 1281|  15.9k|            m_oid(oid), m_critical(critical), m_failed_to_decode(failed_to_decode) {}
_ZNK5Botan14Cert_Extension17Unknown_Extension8oid_nameEv:
 1323|  2.78k|      std::string oid_name() const override { return ""; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE5valueEv:
  940|  11.4k|            std::array<uint8_t, Length> value() const { return m_value; }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EE4nextEv:
  946|    265|            void next() {
  947|    557|               for(auto it = m_value.rbegin(); it != m_value.rend(); it++) {
  ------------------
  |  Branch (947:48): [True: 557, False: 0]
  ------------------
  948|       |                  // we increment the current octet
  949|    557|                  (*it)++;
  950|       |                  // if it did not wrap around we are done, else look at the next octet
  951|    557|                  if(*it != 0) {
  ------------------
  |  Branch (951:22): [True: 265, False: 292]
  ------------------
  952|    265|                     break;
  953|    265|                  }
  954|    557|               }
  955|    265|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE5valueEv:
  940|  21.6k|            std::array<uint8_t, Length> value() const { return m_value; }
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EE4nextEv:
  946|    444|            void next() {
  947|  5.70k|               for(auto it = m_value.rbegin(); it != m_value.rend(); it++) {
  ------------------
  |  Branch (947:48): [True: 5.70k, False: 0]
  ------------------
  948|       |                  // we increment the current octet
  949|  5.70k|                  (*it)++;
  950|       |                  // if it did not wrap around we are done, else look at the next octet
  951|  5.70k|                  if(*it != 0) {
  ------------------
  |  Branch (951:22): [True: 444, False: 5.26k]
  ------------------
  952|    444|                     break;
  953|    444|                  }
  954|  5.70k|               }
  955|    444|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EEC2ERKNS1_9IPAddressILS3_4EEES8_:
  993|    185|            IPAddressOrRange(const IPAddress<V>& min, const IPAddress<V>& max) : m_min(min), m_max(max) {
  994|    185|               if(max < min) {
  ------------------
  |  Branch (994:19): [True: 0, False: 185]
  ------------------
  995|      0|                  throw Decoding_Error("IP address ranges must be sorted");
  996|      0|               }
  997|    185|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3minEv:
  999|  2.35k|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE3maxEv:
 1001|  1.06k|            IPAddress<V> max() const { return m_max; }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EEC2ERKNS1_9IPAddressILS3_16EEES8_:
  993|    200|            IPAddressOrRange(const IPAddress<V>& min, const IPAddress<V>& max) : m_min(min), m_max(max) {
  994|    200|               if(max < min) {
  ------------------
  |  Branch (994:19): [True: 0, False: 200]
  ------------------
  995|      0|                  throw Decoding_Error("IP address ranges must be sorted");
  996|      0|               }
  997|    200|            }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3minEv:
  999|  3.66k|            IPAddress<V> min() const { return m_min; }
_ZNK5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE3maxEv:
 1001|  1.47k|            IPAddress<V> max() const { return m_max; }
_ZN5Botan14Cert_Extension14Subject_Key_IDC2Ev:
  110|    794|      Subject_Key_ID() = default;
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_PointC2Ev:
  693|      2|      CRL_Issuing_Distribution_Point() = default;
_ZN5Botan14Cert_Extension16Name_ConstraintsC2Ev:
  299|    412|      Name_Constraints() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_PointsC2Ev:
  652|  1.39k|      CRL_Distribution_Points() = default;
_ZN5Botan14Cert_Extension20Certificate_PoliciesC2Ev:
  337|    975|      Certificate_Policies() = default;
_ZN5Botan14Cert_Extension16Authority_Key_IDC2Ev:
  157|  1.07k|      Authority_Key_ID() = default;
_ZN5Botan14Cert_Extension18Extended_Key_UsageC2Ev:
  267|    451|      Extended_Key_Usage() = default;
_ZN5Botan14Cert_Extension21NoRevocationAvailableC2Ev:
  830|     18|      NoRevocationAvailable() = default;
_ZN5Botan14Cert_Extension28Authority_Information_AccessC2Ev:
  422|    537|      Authority_Information_Access() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocksC2Ev:
 1056|    853|      IPAddressBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocksC2Ev:
 1207|  1.33k|      ASBlocks() = default;
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiersC2Ev:
 1201|  1.33k|            ASIdentifiers() = default;
_ZN5Botan14Cert_Extension10TNAuthListC2Ev:
  897|    113|      TNAuthList() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EEC2Ev:
 1018|  1.21k|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EEC2Ev:
 1018|    357|            IPAddressChoice() = default;
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoiceC2Ev:
 1172|  1.18k|            ASIdentifierChoice() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_PointC2Ev:
  609|  1.32k|            Distribution_Point() = default;
_ZN5Botan14Cert_Extension21DistributionPointNameC2Ev:
  572|  1.18k|      DistributionPointName() = default;
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamilyC2Ev:
 1033|    901|            IPAddressFamily() = default;
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEERKS4_:
  965|  1.60k|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
  966|  3.12k|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (966:34): [True: 3.05k, False: 69]
  ------------------
  967|  3.05k|                  if(lhs.value()[i] < rhs.value()[i]) {
  ------------------
  |  Branch (967:22): [True: 678, False: 2.38k]
  ------------------
  968|    678|                     return std::strong_ordering::less;
  969|  2.38k|                  } else if(lhs.value()[i] > rhs.value()[i]) {
  ------------------
  |  Branch (969:29): [True: 858, False: 1.52k]
  ------------------
  970|    858|                     return std::strong_ordering::greater;
  971|    858|                  }
  972|  3.05k|               }
  973|     69|               return std::strong_ordering::equal;
  974|  1.60k|            }
_ZN5Botan14Cert_ExtensionssENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEERKS4_:
  965|  2.25k|            friend std::strong_ordering operator<=>(const IPAddress<V> lhs, const IPAddress<V>& rhs) {
  966|  5.78k|               for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (966:34): [True: 5.65k, False: 131]
  ------------------
  967|  5.65k|                  if(lhs.value()[i] < rhs.value()[i]) {
  ------------------
  |  Branch (967:22): [True: 947, False: 4.70k]
  ------------------
  968|    947|                     return std::strong_ordering::less;
  969|  4.70k|                  } else if(lhs.value()[i] > rhs.value()[i]) {
  ------------------
  |  Branch (969:29): [True: 1.17k, False: 3.52k]
  ------------------
  970|  1.17k|                     return std::strong_ordering::greater;
  971|  1.17k|                  }
  972|  5.65k|               }
  973|    131|               return std::strong_ordering::equal;
  974|  2.25k|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EEC2Ev:
  989|    799|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEES6_:
  976|    265|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
  977|    265|               return lhs.value() == rhs.value();
  978|    265|            }
_ZN5Botan14Cert_ExtensionplENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE4EEEm:
  957|    265|            friend IPAddress<V> operator+(IPAddress<V> lhs, size_t rhs) {
  958|       |               // we only really need to be able to compute +1, so this is fine
  959|    530|               for(size_t i = 0; i < rhs; i++) {
  ------------------
  |  Branch (959:34): [True: 265, False: 265]
  ------------------
  960|    265|                  lhs.next();
  961|    265|               }
  962|    265|               return IPAddress<V>(lhs);
  963|    265|            }
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EEC2Ev:
  989|  1.08k|            IPAddressOrRange() = default;
_ZN5Botan14Cert_ExtensioneqERKNS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEES6_:
  976|    444|            friend bool operator==(const IPAddress<V>& lhs, const IPAddress<V>& rhs) {
  977|    444|               return lhs.value() == rhs.value();
  978|    444|            }
_ZN5Botan14Cert_ExtensionplENS0_15IPAddressBlocks9IPAddressILNS1_7VersionE16EEEm:
  957|    444|            friend IPAddress<V> operator+(IPAddress<V> lhs, size_t rhs) {
  958|       |               // we only really need to be able to compute +1, so this is fine
  959|    888|               for(size_t i = 0; i < rhs; i++) {
  ------------------
  |  Branch (959:34): [True: 444, False: 444]
  ------------------
  960|    444|                  lhs.next();
  961|    444|               }
  962|    444|               return IPAddress<V>(lhs);
  963|    444|            }
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRangeC2Ev:
 1152|  4.02k|            ASIdOrRange() = default;

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

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

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

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   50|  10.3k|bool AlgorithmIdentifier::parameters_are_null() const {
   51|  10.3k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (51:12): [True: 9.74k, False: 564]
  |  Branch (51:40): [True: 9.62k, False: 117]
  |  Branch (51:69): [True: 9.61k, False: 9]
  ------------------
   52|  10.3k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   54|  3.69k|bool operator==(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   55|  3.69k|   return (x.oid() == y.oid() && x.parameters() == y.parameters());
  ------------------
  |  Branch (55:12): [True: 3.66k, False: 37]
  |  Branch (55:34): [True: 3.63k, False: 22]
  ------------------
   56|  3.69k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   58|  3.69k|bool operator!=(const AlgorithmIdentifier& x, const AlgorithmIdentifier& y) {
   59|  3.69k|   return !(x == y);
   60|  3.69k|}
_ZNK5Botan19AlgorithmIdentifier11encode_intoERNS_11DER_EncoderE:
   65|    728|void AlgorithmIdentifier::encode_into(DER_Encoder& codec) const {
   66|    728|   codec.start_sequence().encode(oid()).raw_bytes(parameters()).end_cons();
   67|    728|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   72|  13.1k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   73|  13.1k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   74|       |
   75|       |   /*
   76|       |   * The parameters field is OPTIONAL ANY but in practice it is one of
   77|       |   * - empty
   78|       |   * - NULL
   79|       |   * - SEQUENCE
   80|       |   * - OBJECT IDENTIFIER (namedCurve)
   81|       |   * - OCTET STRING (CBC IV in PBES2)
   82|       |   *
   83|       |   * So require it be exactly one of these values. In particular this ensures that
   84|       |   * there is not any additional trailing data (eg after the SEQUENCE encoding)
   85|       |   * that might be otherwise skipped over by a reader.
   86|       |   */
   87|       |
   88|  13.1k|   const bool acceptable_parameters = [&]() {
   89|  13.1k|      if(this->parameters_are_null_or_empty()) {
   90|  13.1k|         return true;
   91|  13.1k|      }
   92|  13.1k|      if(ASN1::is_der_sequence_header(m_parameters)) {
   93|  13.1k|         return true;
   94|  13.1k|      }
   95|  13.1k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
   96|  13.1k|         return true;
   97|  13.1k|      }
   98|  13.1k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
   99|  13.1k|         return true;
  100|  13.1k|      }
  101|  13.1k|      return false;
  102|  13.1k|   }();
  103|       |
  104|  13.1k|   if(!acceptable_parameters) {
  ------------------
  |  Branch (104:7): [True: 195, False: 12.9k]
  ------------------
  105|    195|      throw Decoding_Error("AlgorithmIdentifier parameters were not NULL, a SEQUENCE, an OID, or an OCTET STRING");
  106|    195|   }
  107|  13.1k|}
alg_id.cpp:_ZZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderEENK3$_0clEv:
   88|  12.8k|   const bool acceptable_parameters = [&]() {
   89|  12.8k|      if(this->parameters_are_null_or_empty()) {
  ------------------
  |  Branch (89:10): [True: 12.1k, False: 690]
  ------------------
   90|  12.1k|         return true;
   91|  12.1k|      }
   92|    690|      if(ASN1::is_der_sequence_header(m_parameters)) {
  ------------------
  |  Branch (92:10): [True: 386, False: 304]
  ------------------
   93|    386|         return true;
   94|    386|      }
   95|    304|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
  ------------------
  |  Branch (95:10): [True: 37, False: 267]
  ------------------
   96|     37|         return true;
   97|     37|      }
   98|    267|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
  ------------------
  |  Branch (98:10): [True: 72, False: 195]
  ------------------
   99|     72|         return true;
  100|     72|      }
  101|    195|      return false;
  102|    267|   }();

_ZNK5Botan11ASN1_Object10BER_encodeEv:
   21|  21.5k|std::vector<uint8_t> ASN1_Object::BER_encode() const {
   22|  21.5k|   std::vector<uint8_t> output;
   23|  21.5k|   DER_Encoder der(output);
   24|  21.5k|   this->encode_into(der);
   25|  21.5k|   return output;
   26|  21.5k|}
_ZN5Botan14ASN1_BitStringC2ENSt3__16vectorIhNS1_9allocatorIhEEEEm:
   29|  11.2k|      m_bytes(std::move(bytes)), m_unused_bits(unused_bits) {
   30|  11.2k|   if(m_unused_bits >= 8) {
  ------------------
  |  Branch (30:7): [True: 0, False: 11.2k]
  ------------------
   31|      0|      throw Invalid_Argument("ASN1_BitString: Invalid unused bit count");
   32|      0|   }
   33|       |
   34|  11.2k|   if(m_bytes.empty() && m_unused_bits != 0) {
  ------------------
  |  Branch (34:7): [True: 524, False: 10.6k]
  |  Branch (34:26): [True: 0, False: 524]
  ------------------
   35|      0|      throw Invalid_Argument("ASN1_BitString: Empty BIT STRING cannot have unused bits");
   36|      0|   }
   37|       |
   38|  11.2k|   if(m_unused_bits > 0 && (m_bytes.back() & ((1U << m_unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (38:7): [True: 2.25k, False: 8.95k]
  |  Branch (38:28): [True: 0, False: 2.25k]
  ------------------
   39|      0|      throw Invalid_Argument("ASN1_BitString: Unused bits must be zero");
   40|      0|   }
   41|  11.2k|}
_ZNK5Botan14ASN1_BitString10bit_lengthEv:
   46|  19.1k|size_t ASN1_BitString::bit_length() const {
   47|  19.1k|   return 8 * m_bytes.size() - m_unused_bits;
   48|  19.1k|}
_ZNK5Botan14ASN1_BitString6bit_atEm:
   50|  7.86k|bool ASN1_BitString::bit_at(size_t bit) const {
   51|  7.86k|   if(bit >= bit_length()) {
  ------------------
  |  Branch (51:7): [True: 0, False: 7.86k]
  ------------------
   52|      0|      throw Invalid_Argument("ASN1_BitString: Bit index out of range");
   53|      0|   }
   54|       |
   55|  7.86k|   return (m_bytes[bit / 8] & (0x80 >> (bit % 8))) != 0;
   56|  7.86k|}
_ZN5Botan10BER_ObjectD2Ev:
   58|   695k|BER_Object::~BER_Object() {
   59|   695k|   secure_scrub_memory(m_value);
   60|   695k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   65|   177k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   66|   177k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (66:7): [True: 2.61k, False: 174k]
  ------------------
   67|  2.61k|      std::stringstream msg;
   68|       |
   69|  2.61k|      msg << "Tag mismatch when decoding " << descr << " got ";
   70|       |
   71|  2.61k|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (71:10): [True: 66, False: 2.55k]
  |  Branch (71:49): [True: 66, False: 0]
  ------------------
   72|     66|         msg << "EOF";
   73|  2.55k|      } else {
   74|  2.55k|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (74:13): [True: 557, False: 1.99k]
  |  Branch (74:53): [True: 1.18k, False: 809]
  ------------------
   75|  1.74k|            msg << asn1_tag_to_string(m_type_tag);
   76|  1.74k|         } else {
   77|    809|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   78|    809|         }
   79|       |
   80|  2.55k|         msg << "/" << asn1_class_to_string(m_class_tag);
   81|  2.55k|      }
   82|       |
   83|  2.61k|      msg << " expected ";
   84|       |
   85|  2.61k|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (85:10): [True: 325, False: 2.29k]
  |  Branch (85:57): [True: 2.29k, False: 0]
  ------------------
   86|  2.61k|         msg << asn1_tag_to_string(expected_type_tag);
   87|  2.61k|      } else {
   88|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   89|      0|      }
   90|       |
   91|  2.61k|      msg << "/" << asn1_class_to_string(expected_class_tag);
   92|       |
   93|  2.61k|      throw BER_Decoding_Error(msg.str());
   94|  2.61k|   }
   95|   177k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   97|   339k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   98|   339k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (98:12): [True: 215k, False: 124k]
  |  Branch (98:47): [True: 215k, False: 459]
  ------------------
   99|   339k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
  101|   125k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
  102|   125k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
  103|   125k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
  105|   311k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
  106|   311k|   m_type_tag = type_tag;
  107|   311k|   m_class_tag = class_tag;
  108|   311k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
  110|  5.16k|std::string asn1_class_to_string(ASN1_Class type) {
  111|  5.16k|   switch(type) {
  112|    882|      case ASN1_Class::Universal:
  ------------------
  |  Branch (112:7): [True: 882, False: 4.28k]
  ------------------
  113|    882|         return "UNIVERSAL";
  114|  3.47k|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (114:7): [True: 3.47k, False: 1.69k]
  ------------------
  115|  3.47k|         return "CONSTRUCTED";
  116|    234|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (116:7): [True: 234, False: 4.93k]
  ------------------
  117|    234|         return "CONTEXT_SPECIFIC";
  118|     86|      case ASN1_Class::Application:
  ------------------
  |  Branch (118:7): [True: 86, False: 5.08k]
  ------------------
  119|     86|         return "APPLICATION";
  120|     46|      case ASN1_Class::Private:
  ------------------
  |  Branch (120:7): [True: 46, False: 5.12k]
  ------------------
  121|     46|         return "PRIVATE";
  122|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (122:7): [True: 0, False: 5.16k]
  ------------------
  123|      0|         return "NO_OBJECT";
  124|    443|      default:
  ------------------
  |  Branch (124:7): [True: 443, False: 4.72k]
  ------------------
  125|    443|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
  126|  5.16k|   }
  127|  5.16k|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
  129|  4.51k|std::string asn1_tag_to_string(ASN1_Type type) {
  130|  4.51k|   switch(type) {
  131|  2.18k|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (131:7): [True: 2.18k, False: 2.33k]
  ------------------
  132|  2.18k|         return "SEQUENCE";
  133|       |
  134|    321|      case ASN1_Type::Set:
  ------------------
  |  Branch (134:7): [True: 321, False: 4.19k]
  ------------------
  135|    321|         return "SET";
  136|       |
  137|     62|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (137:7): [True: 62, False: 4.45k]
  ------------------
  138|     62|         return "PRINTABLE STRING";
  139|       |
  140|     89|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (140:7): [True: 89, False: 4.42k]
  ------------------
  141|     89|         return "NUMERIC STRING";
  142|       |
  143|     35|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (143:7): [True: 35, False: 4.48k]
  ------------------
  144|     35|         return "IA5 STRING";
  145|       |
  146|     33|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (146:7): [True: 33, False: 4.48k]
  ------------------
  147|     33|         return "T61 STRING";
  148|       |
  149|    151|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (149:7): [True: 151, False: 4.36k]
  ------------------
  150|    151|         return "UTF8 STRING";
  151|       |
  152|     17|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (152:7): [True: 17, False: 4.50k]
  ------------------
  153|     17|         return "VISIBLE STRING";
  154|       |
  155|     11|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (155:7): [True: 11, False: 4.50k]
  ------------------
  156|     11|         return "BMP STRING";
  157|       |
  158|      6|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (158:7): [True: 6, False: 4.51k]
  ------------------
  159|      6|         return "UNIVERSAL STRING";
  160|       |
  161|     15|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (161:7): [True: 15, False: 4.50k]
  ------------------
  162|     15|         return "UTC TIME";
  163|       |
  164|     18|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (164:7): [True: 18, False: 4.49k]
  ------------------
  165|     18|         return "GENERALIZED TIME";
  166|       |
  167|    260|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (167:7): [True: 260, False: 4.25k]
  ------------------
  168|    260|         return "OCTET STRING";
  169|       |
  170|    247|      case ASN1_Type::BitString:
  ------------------
  |  Branch (170:7): [True: 247, False: 4.27k]
  ------------------
  171|    247|         return "BIT STRING";
  172|       |
  173|      9|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (173:7): [True: 9, False: 4.50k]
  ------------------
  174|      9|         return "ENUMERATED";
  175|       |
  176|     90|      case ASN1_Type::Integer:
  ------------------
  |  Branch (176:7): [True: 90, False: 4.42k]
  ------------------
  177|     90|         return "INTEGER";
  178|       |
  179|     62|      case ASN1_Type::Null:
  ------------------
  |  Branch (179:7): [True: 62, False: 4.45k]
  ------------------
  180|     62|         return "NULL";
  181|       |
  182|    149|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (182:7): [True: 149, False: 4.36k]
  ------------------
  183|    149|         return "OBJECT";
  184|       |
  185|     69|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (185:7): [True: 69, False: 4.44k]
  ------------------
  186|     69|         return "BOOLEAN";
  187|       |
  188|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (188:7): [True: 0, False: 4.51k]
  ------------------
  189|      0|         return "NO_OBJECT";
  190|       |
  191|    686|      default:
  ------------------
  |  Branch (191:7): [True: 686, False: 3.83k]
  ------------------
  192|    686|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  193|  4.51k|   }
  194|  4.51k|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  199|  7.01k|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  201|    265|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN115put_in_sequenceERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  208|  10.8k|std::vector<uint8_t> put_in_sequence(const std::vector<uint8_t>& contents) {
  209|  10.8k|   return ASN1::put_in_sequence(contents.data(), contents.size());
  210|  10.8k|}
_ZN5Botan4ASN115put_in_sequenceEPKhm:
  212|  10.8k|std::vector<uint8_t> put_in_sequence(const uint8_t bits[], size_t len) {
  213|  10.8k|   std::vector<uint8_t> output = der_sequence_header(len);
  214|  10.8k|   output.reserve(output.size() + len);
  215|  10.8k|   if(len > 0) {
  ------------------
  |  Branch (215:7): [True: 10.8k, False: 13]
  ------------------
  216|  10.8k|      output.insert(output.end(), bits, bits + len);
  217|  10.8k|   }
  218|  10.8k|   return output;
  219|  10.8k|}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  224|  47.0k|std::string to_string(const BER_Object& obj) {
  225|  47.0k|   return bytes_to_string(obj.data());
  226|  47.0k|}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  231|  5.79k|bool maybe_BER(DataSource& source) {
  232|  5.79k|   uint8_t first_u8 = 0;
  233|  5.79k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (233:7): [True: 0, False: 5.79k]
  ------------------
  234|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   90|      0|   do {                                                                                                \
  |  |   91|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|      0|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  235|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  236|      0|   }
  237|       |
  238|  5.79k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  239|  5.79k|   return first_u8 == cons_seq;
  240|  5.79k|}

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

_ZN5Botan11ASN1_String14is_string_typeENS_9ASN1_TypeE:
  131|    345|bool ASN1_String::is_string_type(ASN1_Type tag) {
  132|    345|   return is_asn1_string_type(tag);
  133|    345|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  135|  21.8k|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
  136|  21.8k|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (136:7): [True: 48, False: 21.7k]
  ------------------
  137|     48|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
  138|     48|   }
  139|       |
  140|  21.7k|   if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (140:7): [True: 81, False: 21.7k]
  ------------------
  141|     81|      throw Invalid_Argument(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  142|     81|   }
  143|  21.7k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  145|  21.6k|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
  162|  21.4k|void ASN1_String::decode_from(BER_Decoder& source) {
  163|  21.4k|   const BER_Object obj = source.get_next_object();
  164|       |
  165|  21.4k|   if(obj.get_class() != ASN1_Class::Universal || !is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (165:7): [True: 58, False: 21.3k]
  |  Branch (165:51): [True: 70, False: 21.3k]
  ------------------
  166|     87|      auto typ = static_cast<uint32_t>(obj.type());
  167|     87|      auto cls = static_cast<uint32_t>(obj.get_class());
  168|     87|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}/{}", typ, cls));
  169|     87|   }
  170|       |
  171|  21.3k|   m_tag = obj.type();
  172|  21.3k|   m_data.assign(obj.bits(), obj.bits() + obj.length());
  173|       |
  174|  21.3k|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (174:7): [True: 2.11k, False: 19.2k]
  ------------------
  175|  2.11k|      m_utf8_str = ucs2_to_utf8(m_data);
  176|  19.2k|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (176:14): [True: 68, False: 19.1k]
  ------------------
  177|     68|      m_utf8_str = ucs4_to_utf8(m_data);
  178|  19.1k|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (178:14): [True: 595, False: 18.5k]
  ------------------
  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|    595|      m_utf8_str = latin1_to_utf8(m_data);
  184|  18.5k|   } else {
  185|       |      // All other supported string types are UTF-8 or some subset thereof
  186|  18.5k|      m_utf8_str = ASN1::to_string(obj);
  187|       |
  188|  18.5k|      if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (188:10): [True: 79, False: 18.5k]
  ------------------
  189|     79|         throw Decoding_Error(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  190|     79|      }
  191|  18.5k|   }
  192|  21.3k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   99|  21.7k|bool is_asn1_string_type(ASN1_Type tag) {
  100|  21.7k|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (100:12): [True: 18.7k, False: 2.99k]
  |  Branch (100:47): [True: 636, False: 2.35k]
  |  Branch (100:82): [True: 2.12k, False: 230]
  ------------------
  101|    230|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (101:12): [True: 74, False: 156]
  ------------------
  102|  21.7k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   94|  83.9k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   95|  83.9k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (95:12): [True: 525, False: 83.3k]
  |  Branch (95:47): [True: 65.5k, False: 17.8k]
  |  Branch (95:84): [True: 135, False: 17.7k]
  ------------------
   96|  17.7k|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (96:12): [True: 5.34k, False: 12.4k]
  |  Branch (96:43): [True: 9.37k, False: 3.03k]
  ------------------
   97|  83.9k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_128is_valid_asn1_string_contentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_9ASN1_TypeE:
  104|  40.3k|bool is_valid_asn1_string_content(const std::string& str, ASN1_Type tag) {
  105|  40.3k|   BOTAN_ASSERT_NOMSG(is_utf8_subset_string_type(tag));
  ------------------
  |  |   77|  40.3k|   do {                                                                     \
  |  |   78|  40.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  40.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 40.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  40.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 40.3k]
  |  |  ------------------
  ------------------
  106|       |
  107|  40.3k|   switch(tag) {
  108|  4.61k|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (108:7): [True: 4.61k, False: 35.7k]
  ------------------
  109|  4.61k|         return is_valid_utf8(str);
  110|    255|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (110:7): [True: 255, False: 40.0k]
  ------------------
  111|  33.0k|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (111:7): [True: 32.7k, False: 7.59k]
  ------------------
  112|  35.6k|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 2.66k, False: 37.6k]
  ------------------
  113|  35.7k|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (113:7): [True: 65, False: 40.2k]
  ------------------
  114|  35.7k|         return g_char_validator.valid_encoding(str, tag);
  115|      0|      default:
  ------------------
  |  Branch (115:7): [True: 0, False: 40.3k]
  ------------------
  116|      0|         return false;
  117|  40.3k|   }
  118|  40.3k|}
asn1_str.cpp:_ZNK5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator14valid_encodingENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_9ASN1_TypeE:
   25|  57.3k|      constexpr bool valid_encoding(std::string_view str, ASN1_Type tag) const {
   26|  57.3k|         const uint8_t mask = mask_for(tag);
   27|   161k|         for(const char c : str) {
  ------------------
  |  Branch (27:27): [True: 161k, False: 57.2k]
  ------------------
   28|   161k|            const uint8_t codepoint = static_cast<uint8_t>(c);
   29|   161k|            const bool is_valid = (m_table[codepoint] & mask) != 0;
   30|       |
   31|   161k|            if(!is_valid) {
  ------------------
  |  Branch (31:16): [True: 50, False: 161k]
  ------------------
   32|     50|               return false;
   33|     50|            }
   34|   161k|         }
   35|       |
   36|  57.2k|         return true;
   37|  57.3k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator8mask_forENS_9ASN1_TypeE:
   45|  57.3k|      static constexpr uint8_t mask_for(ASN1_Type tag) {
   46|  57.3k|         switch(tag) {
   47|    255|            case ASN1_Type::NumericString:
  ------------------
  |  Branch (47:13): [True: 255, False: 57.0k]
  ------------------
   48|    255|               return Numeric_String;
   49|  54.3k|            case ASN1_Type::PrintableString:
  ------------------
  |  Branch (49:13): [True: 54.3k, False: 2.98k]
  ------------------
   50|  54.3k|               return Printable_String;
   51|  2.66k|            case ASN1_Type::Ia5String:
  ------------------
  |  Branch (51:13): [True: 2.66k, False: 54.6k]
  ------------------
   52|  2.66k|               return IA5_String;
   53|     65|            case ASN1_Type::VisibleString:
  ------------------
  |  Branch (53:13): [True: 65, False: 57.2k]
  ------------------
   54|     65|               return Visible_String;
   55|      0|            default:
  ------------------
  |  Branch (55:13): [True: 0, False: 57.3k]
  ------------------
   56|      0|               return 0;
   57|  57.3k|         }
   58|  57.3k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  120|  21.6k|ASN1_Type choose_encoding(std::string_view str) {
  121|  21.6k|   if(g_char_validator.valid_encoding(str, ASN1_Type::PrintableString)) {
  ------------------
  |  Branch (121:7): [True: 21.6k, False: 0]
  ------------------
  122|  21.6k|      return ASN1_Type::PrintableString;
  123|  21.6k|   } else {
  124|      0|      return ASN1_Type::Utf8String;
  125|      0|   }
  126|  21.6k|}

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

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

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

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

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

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

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

_ZN5Botan10hex_encodeEPcPKhmb:
   34|  1.45k|void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase) {
   35|  39.3k|   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|   const size_t output_length = mul_or_throw<size_t>(2, input_length, "Input too large to hex encode");
   44|  1.45k|   std::string output(output_length, 0);
   45|       |
   46|  1.45k|   if(input_length > 0) {
  ------------------
  |  Branch (46:7): [True: 1.45k, False: 0]
  ------------------
   47|  1.45k|      hex_encode(&output.front(), input, input_length, uppercase);
   48|  1.45k|   }
   49|       |
   50|  1.45k|   return output;
   51|  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: 728, False: 728]
  ------------------
  128|    728|      return std::make_unique<SHA_1>();
  129|    728|   }
  130|    728|#endif
  131|       |
  132|    728|#if defined(BOTAN_HAS_SHA2_32)
  133|    728|   if(algo_spec == "SHA-224") {
  ------------------
  |  Branch (133:7): [True: 0, False: 728]
  ------------------
  134|      0|      return std::make_unique<SHA_224>();
  135|      0|   }
  136|       |
  137|    728|   if(algo_spec == "SHA-256") {
  ------------------
  |  Branch (137:7): [True: 728, False: 0]
  ------------------
  138|    728|      return std::make_unique<SHA_256>();
  139|    728|   }
  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|    728|std::unique_ptr<HashFunction> HashFunction::create_or_throw(std::string_view algo, std::string_view provider) {
  309|    728|   if(auto hash = HashFunction::create(algo, provider)) {
  ------------------
  |  Branch (309:12): [True: 728, False: 0]
  ------------------
  310|    728|      return hash;
  311|    728|   }
  312|      0|   throw Lookup_Error("Hash", algo, provider);
  313|    728|}

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

_ZN5Botan5SHA_115avx2_compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
  144|  5.48k|void BOTAN_FN_ISA_AVX2_BMI2 SHA_1::avx2_compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  145|  5.48k|   using namespace SHA1_F;
  146|       |
  147|  5.48k|   const SIMD_8x32 K11 = SIMD_8x32::splat(K1);
  148|  5.48k|   const SIMD_8x32 K22 = SIMD_8x32::splat(K2);
  149|  5.48k|   const SIMD_8x32 K33 = SIMD_8x32::splat(K3);
  150|  5.48k|   const SIMD_8x32 K44 = SIMD_8x32::splat(K4);
  151|       |
  152|  5.48k|   const SIMD_8x32 K12(K1, K1, K1, K1, K2, K2, K2, K2);
  153|  5.48k|   const SIMD_8x32 K34(K3, K3, K3, K3, K4, K4, K4, K4);
  154|       |
  155|  5.48k|   uint32_t A = digest[0];
  156|  5.48k|   uint32_t B = digest[1];
  157|  5.48k|   uint32_t C = digest[2];
  158|  5.48k|   uint32_t D = digest[3];
  159|  5.48k|   uint32_t E = digest[4];
  160|       |
  161|  5.48k|   BufferSlicer in(input);
  162|       |
  163|  14.3k|   while(blocks >= 2) {
  ------------------
  |  Branch (163:10): [True: 8.82k, False: 5.48k]
  ------------------
  164|  8.82k|      const auto block = in.take(2 * block_bytes);
  165|  8.82k|      blocks -= 2;
  166|       |
  167|  8.82k|      uint32_t W2[80] = {0};
  168|       |
  169|  8.82k|      uint32_t PT[4];
  170|       |
  171|       |      // NOLINTNEXTLINE(*-container-data-pointer)
  172|  8.82k|      SIMD_8x32 XW0 = SIMD_8x32::load_be128(&block[0], &block[64]);
  173|  8.82k|      SIMD_8x32 XW1 = SIMD_8x32::load_be128(&block[16], &block[80]);
  174|  8.82k|      SIMD_8x32 XW2 = SIMD_8x32::load_be128(&block[32], &block[96]);
  175|  8.82k|      SIMD_8x32 XW3 = SIMD_8x32::load_be128(&block[48], &block[112]);
  176|       |
  177|  8.82k|      SIMD_8x32 P0 = XW0 + SIMD_8x32::splat(K1);
  178|  8.82k|      SIMD_8x32 P1 = XW1 + SIMD_8x32::splat(K1);
  179|  8.82k|      SIMD_8x32 P2 = XW2 + SIMD_8x32::splat(K1);
  180|  8.82k|      SIMD_8x32 P3 = XW3 + SIMD_8x32::splat(K1);
  181|       |
  182|       |      // NOLINTBEGIN(readability-suspicious-call-argument) XW rotation
  183|       |
  184|  8.82k|      P0.store_le128(PT, &W2[0]);
  185|  8.82k|      P0 = sha1_avx2_next_w(XW0, XW1, XW2, XW3) + SIMD_8x32::splat(K1);
  186|  8.82k|      F1(A, B, C, D, E, PT[0]);
  187|  8.82k|      F1(E, A, B, C, D, PT[1]);
  188|  8.82k|      F1(D, E, A, B, C, PT[2]);
  189|  8.82k|      F1(C, D, E, A, B, PT[3]);
  190|       |
  191|  8.82k|      P1.store_le128(PT, &W2[4]);
  192|  8.82k|      P1 = sha1_avx2_next_w(XW1, XW2, XW3, XW0) + SIMD_8x32::splat(K2);
  193|  8.82k|      F1(B, C, D, E, A, PT[0]);
  194|  8.82k|      F1(A, B, C, D, E, PT[1]);
  195|  8.82k|      F1(E, A, B, C, D, PT[2]);
  196|  8.82k|      F1(D, E, A, B, C, PT[3]);
  197|       |
  198|  8.82k|      P2.store_le128(PT, &W2[8]);
  199|  8.82k|      P2 = sha1_avx2_next_w(XW2, XW3, XW0, XW1) + SIMD_8x32::splat(K2);
  200|  8.82k|      F1(C, D, E, A, B, PT[0]);
  201|  8.82k|      F1(B, C, D, E, A, PT[1]);
  202|  8.82k|      F1(A, B, C, D, E, PT[2]);
  203|  8.82k|      F1(E, A, B, C, D, PT[3]);
  204|       |
  205|  8.82k|      P3.store_le128(PT, &W2[12]);
  206|  8.82k|      P3 = sha1_avx2_next_w(XW3, XW0, XW1, XW2) + SIMD_8x32::splat(K2);
  207|  8.82k|      F1(D, E, A, B, C, PT[0]);
  208|  8.82k|      F1(C, D, E, A, B, PT[1]);
  209|  8.82k|      F1(B, C, D, E, A, PT[2]);
  210|  8.82k|      F1(A, B, C, D, E, PT[3]);
  211|       |
  212|  8.82k|      P0.store_le128(PT, &W2[16]);
  213|  8.82k|      P0 = sha1_avx2_next_w(XW0, XW1, XW2, XW3) + SIMD_8x32::splat(K2);
  214|  8.82k|      F1(E, A, B, C, D, PT[0]);
  215|  8.82k|      F1(D, E, A, B, C, PT[1]);
  216|  8.82k|      F1(C, D, E, A, B, PT[2]);
  217|  8.82k|      F1(B, C, D, E, A, PT[3]);
  218|       |
  219|  8.82k|      P1.store_le128(PT, &W2[20]);
  220|  8.82k|      P1 = sha1_avx2_next_w(XW1, XW2, XW3, XW0) + SIMD_8x32::splat(K2);
  221|  8.82k|      F2(A, B, C, D, E, PT[0]);
  222|  8.82k|      F2(E, A, B, C, D, PT[1]);
  223|  8.82k|      F2(D, E, A, B, C, PT[2]);
  224|  8.82k|      F2(C, D, E, A, B, PT[3]);
  225|       |
  226|  8.82k|      P2.store_le128(PT, &W2[24]);
  227|  8.82k|      P2 = sha1_avx2_next_w(XW2, XW3, XW0, XW1) + SIMD_8x32::splat(K3);
  228|  8.82k|      F2(B, C, D, E, A, PT[0]);
  229|  8.82k|      F2(A, B, C, D, E, PT[1]);
  230|  8.82k|      F2(E, A, B, C, D, PT[2]);
  231|  8.82k|      F2(D, E, A, B, C, PT[3]);
  232|       |
  233|  8.82k|      P3.store_le128(PT, &W2[28]);
  234|  8.82k|      P3 = sha1_avx2_next_w(XW3, XW0, XW1, XW2) + SIMD_8x32::splat(K3);
  235|  8.82k|      F2(C, D, E, A, B, PT[0]);
  236|  8.82k|      F2(B, C, D, E, A, PT[1]);
  237|  8.82k|      F2(A, B, C, D, E, PT[2]);
  238|  8.82k|      F2(E, A, B, C, D, PT[3]);
  239|       |
  240|  8.82k|      P0.store_le128(PT, &W2[32]);
  241|  8.82k|      P0 = sha1_avx2_next_w(XW0, XW1, XW2, XW3) + SIMD_8x32::splat(K3);
  242|  8.82k|      F2(D, E, A, B, C, PT[0]);
  243|  8.82k|      F2(C, D, E, A, B, PT[1]);
  244|  8.82k|      F2(B, C, D, E, A, PT[2]);
  245|  8.82k|      F2(A, B, C, D, E, PT[3]);
  246|       |
  247|  8.82k|      P1.store_le128(PT, &W2[36]);
  248|  8.82k|      P1 = sha1_avx2_next_w(XW1, XW2, XW3, XW0) + SIMD_8x32::splat(K3);
  249|  8.82k|      F2(E, A, B, C, D, PT[0]);
  250|  8.82k|      F2(D, E, A, B, C, PT[1]);
  251|  8.82k|      F2(C, D, E, A, B, PT[2]);
  252|  8.82k|      F2(B, C, D, E, A, PT[3]);
  253|       |
  254|  8.82k|      P2.store_le128(PT, &W2[40]);
  255|  8.82k|      P2 = sha1_avx2_next_w(XW2, XW3, XW0, XW1) + SIMD_8x32::splat(K3);
  256|  8.82k|      F3(A, B, C, D, E, PT[0]);
  257|  8.82k|      F3(E, A, B, C, D, PT[1]);
  258|  8.82k|      F3(D, E, A, B, C, PT[2]);
  259|  8.82k|      F3(C, D, E, A, B, PT[3]);
  260|       |
  261|  8.82k|      P3.store_le128(PT, &W2[44]);
  262|  8.82k|      P3 = sha1_avx2_next_w(XW3, XW0, XW1, XW2) + SIMD_8x32::splat(K4);
  263|  8.82k|      F3(B, C, D, E, A, PT[0]);
  264|  8.82k|      F3(A, B, C, D, E, PT[1]);
  265|  8.82k|      F3(E, A, B, C, D, PT[2]);
  266|  8.82k|      F3(D, E, A, B, C, PT[3]);
  267|       |
  268|  8.82k|      P0.store_le128(PT, &W2[48]);
  269|  8.82k|      P0 = sha1_avx2_next_w(XW0, XW1, XW2, XW3) + SIMD_8x32::splat(K4);
  270|  8.82k|      F3(C, D, E, A, B, PT[0]);
  271|  8.82k|      F3(B, C, D, E, A, PT[1]);
  272|  8.82k|      F3(A, B, C, D, E, PT[2]);
  273|  8.82k|      F3(E, A, B, C, D, PT[3]);
  274|       |
  275|  8.82k|      P1.store_le128(PT, &W2[52]);
  276|  8.82k|      P1 = sha1_avx2_next_w(XW1, XW2, XW3, XW0) + SIMD_8x32::splat(K4);
  277|  8.82k|      F3(D, E, A, B, C, PT[0]);
  278|  8.82k|      F3(C, D, E, A, B, PT[1]);
  279|  8.82k|      F3(B, C, D, E, A, PT[2]);
  280|  8.82k|      F3(A, B, C, D, E, PT[3]);
  281|       |
  282|  8.82k|      P2.store_le128(PT, &W2[56]);
  283|  8.82k|      P2 = sha1_avx2_next_w(XW2, XW3, XW0, XW1) + SIMD_8x32::splat(K4);
  284|  8.82k|      F3(E, A, B, C, D, PT[0]);
  285|  8.82k|      F3(D, E, A, B, C, PT[1]);
  286|  8.82k|      F3(C, D, E, A, B, PT[2]);
  287|  8.82k|      F3(B, C, D, E, A, PT[3]);
  288|       |
  289|  8.82k|      P3.store_le128(PT, &W2[60]);
  290|  8.82k|      P3 = sha1_avx2_next_w(XW3, XW0, XW1, XW2) + SIMD_8x32::splat(K4);
  291|  8.82k|      F4(A, B, C, D, E, PT[0]);
  292|  8.82k|      F4(E, A, B, C, D, PT[1]);
  293|  8.82k|      F4(D, E, A, B, C, PT[2]);
  294|  8.82k|      F4(C, D, E, A, B, PT[3]);
  295|       |
  296|  8.82k|      P0.store_le128(PT, &W2[64]);
  297|  8.82k|      F4(B, C, D, E, A, PT[0]);
  298|  8.82k|      F4(A, B, C, D, E, PT[1]);
  299|  8.82k|      F4(E, A, B, C, D, PT[2]);
  300|  8.82k|      F4(D, E, A, B, C, PT[3]);
  301|       |
  302|  8.82k|      P1.store_le128(PT, &W2[68]);
  303|  8.82k|      F4(C, D, E, A, B, PT[0]);
  304|  8.82k|      F4(B, C, D, E, A, PT[1]);
  305|  8.82k|      F4(A, B, C, D, E, PT[2]);
  306|  8.82k|      F4(E, A, B, C, D, PT[3]);
  307|       |
  308|  8.82k|      P2.store_le128(PT, &W2[72]);
  309|  8.82k|      F4(D, E, A, B, C, PT[0]);
  310|  8.82k|      F4(C, D, E, A, B, PT[1]);
  311|  8.82k|      F4(B, C, D, E, A, PT[2]);
  312|  8.82k|      F4(A, B, C, D, E, PT[3]);
  313|       |
  314|  8.82k|      P3.store_le128(PT, &W2[76]);
  315|  8.82k|      F4(E, A, B, C, D, PT[0]);
  316|  8.82k|      F4(D, E, A, B, C, PT[1]);
  317|  8.82k|      F4(C, D, E, A, B, PT[2]);
  318|  8.82k|      F4(B, C, D, E, A, PT[3]);
  319|       |
  320|       |      // NOLINTEND(readability-suspicious-call-argument)
  321|       |
  322|  8.82k|      A = (digest[0] += A);
  323|  8.82k|      B = (digest[1] += B);
  324|  8.82k|      C = (digest[2] += C);
  325|  8.82k|      D = (digest[3] += D);
  326|  8.82k|      E = (digest[4] += E);
  327|       |
  328|       |      // Second block with pre-expanded message
  329|  8.82k|      F1(A, B, C, D, E, W2[0]);
  330|  8.82k|      F1(E, A, B, C, D, W2[1]);
  331|  8.82k|      F1(D, E, A, B, C, W2[2]);
  332|  8.82k|      F1(C, D, E, A, B, W2[3]);
  333|  8.82k|      F1(B, C, D, E, A, W2[4]);
  334|  8.82k|      F1(A, B, C, D, E, W2[5]);
  335|  8.82k|      F1(E, A, B, C, D, W2[6]);
  336|  8.82k|      F1(D, E, A, B, C, W2[7]);
  337|  8.82k|      F1(C, D, E, A, B, W2[8]);
  338|  8.82k|      F1(B, C, D, E, A, W2[9]);
  339|  8.82k|      F1(A, B, C, D, E, W2[10]);
  340|  8.82k|      F1(E, A, B, C, D, W2[11]);
  341|  8.82k|      F1(D, E, A, B, C, W2[12]);
  342|  8.82k|      F1(C, D, E, A, B, W2[13]);
  343|  8.82k|      F1(B, C, D, E, A, W2[14]);
  344|  8.82k|      F1(A, B, C, D, E, W2[15]);
  345|  8.82k|      F1(E, A, B, C, D, W2[16]);
  346|  8.82k|      F1(D, E, A, B, C, W2[17]);
  347|  8.82k|      F1(C, D, E, A, B, W2[18]);
  348|  8.82k|      F1(B, C, D, E, A, W2[19]);
  349|  8.82k|      F2(A, B, C, D, E, W2[20]);
  350|  8.82k|      F2(E, A, B, C, D, W2[21]);
  351|  8.82k|      F2(D, E, A, B, C, W2[22]);
  352|  8.82k|      F2(C, D, E, A, B, W2[23]);
  353|  8.82k|      F2(B, C, D, E, A, W2[24]);
  354|  8.82k|      F2(A, B, C, D, E, W2[25]);
  355|  8.82k|      F2(E, A, B, C, D, W2[26]);
  356|  8.82k|      F2(D, E, A, B, C, W2[27]);
  357|  8.82k|      F2(C, D, E, A, B, W2[28]);
  358|  8.82k|      F2(B, C, D, E, A, W2[29]);
  359|  8.82k|      F2(A, B, C, D, E, W2[30]);
  360|  8.82k|      F2(E, A, B, C, D, W2[31]);
  361|  8.82k|      F2(D, E, A, B, C, W2[32]);
  362|  8.82k|      F2(C, D, E, A, B, W2[33]);
  363|  8.82k|      F2(B, C, D, E, A, W2[34]);
  364|  8.82k|      F2(A, B, C, D, E, W2[35]);
  365|  8.82k|      F2(E, A, B, C, D, W2[36]);
  366|  8.82k|      F2(D, E, A, B, C, W2[37]);
  367|  8.82k|      F2(C, D, E, A, B, W2[38]);
  368|  8.82k|      F2(B, C, D, E, A, W2[39]);
  369|  8.82k|      F3(A, B, C, D, E, W2[40]);
  370|  8.82k|      F3(E, A, B, C, D, W2[41]);
  371|  8.82k|      F3(D, E, A, B, C, W2[42]);
  372|  8.82k|      F3(C, D, E, A, B, W2[43]);
  373|  8.82k|      F3(B, C, D, E, A, W2[44]);
  374|  8.82k|      F3(A, B, C, D, E, W2[45]);
  375|  8.82k|      F3(E, A, B, C, D, W2[46]);
  376|  8.82k|      F3(D, E, A, B, C, W2[47]);
  377|  8.82k|      F3(C, D, E, A, B, W2[48]);
  378|  8.82k|      F3(B, C, D, E, A, W2[49]);
  379|  8.82k|      F3(A, B, C, D, E, W2[50]);
  380|  8.82k|      F3(E, A, B, C, D, W2[51]);
  381|  8.82k|      F3(D, E, A, B, C, W2[52]);
  382|  8.82k|      F3(C, D, E, A, B, W2[53]);
  383|  8.82k|      F3(B, C, D, E, A, W2[54]);
  384|  8.82k|      F3(A, B, C, D, E, W2[55]);
  385|  8.82k|      F3(E, A, B, C, D, W2[56]);
  386|  8.82k|      F3(D, E, A, B, C, W2[57]);
  387|  8.82k|      F3(C, D, E, A, B, W2[58]);
  388|  8.82k|      F3(B, C, D, E, A, W2[59]);
  389|  8.82k|      F4(A, B, C, D, E, W2[60]);
  390|  8.82k|      F4(E, A, B, C, D, W2[61]);
  391|  8.82k|      F4(D, E, A, B, C, W2[62]);
  392|  8.82k|      F4(C, D, E, A, B, W2[63]);
  393|  8.82k|      F4(B, C, D, E, A, W2[64]);
  394|  8.82k|      F4(A, B, C, D, E, W2[65]);
  395|  8.82k|      F4(E, A, B, C, D, W2[66]);
  396|  8.82k|      F4(D, E, A, B, C, W2[67]);
  397|  8.82k|      F4(C, D, E, A, B, W2[68]);
  398|  8.82k|      F4(B, C, D, E, A, W2[69]);
  399|  8.82k|      F4(A, B, C, D, E, W2[70]);
  400|  8.82k|      F4(E, A, B, C, D, W2[71]);
  401|  8.82k|      F4(D, E, A, B, C, W2[72]);
  402|  8.82k|      F4(C, D, E, A, B, W2[73]);
  403|  8.82k|      F4(B, C, D, E, A, W2[74]);
  404|  8.82k|      F4(A, B, C, D, E, W2[75]);
  405|  8.82k|      F4(E, A, B, C, D, W2[76]);
  406|  8.82k|      F4(D, E, A, B, C, W2[77]);
  407|  8.82k|      F4(C, D, E, A, B, W2[78]);
  408|  8.82k|      F4(B, C, D, E, A, W2[79]);
  409|       |
  410|  8.82k|      A = (digest[0] += A);
  411|  8.82k|      B = (digest[1] += B);
  412|  8.82k|      C = (digest[2] += C);
  413|  8.82k|      D = (digest[3] += D);
  414|  8.82k|      E = (digest[4] += E);
  415|  8.82k|   }
  416|       |
  417|  9.82k|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (417:22): [True: 4.33k, False: 5.48k]
  ------------------
  418|  4.33k|      uint32_t PT[8];
  419|       |
  420|  4.33k|      const auto block = in.take(block_bytes);
  421|       |
  422|  4.33k|      SIMD_8x32 W0 = SIMD_8x32::load_be(&block[0]);  // NOLINT(*-container-data-pointer)
  423|  4.33k|      SIMD_8x32 W2 = SIMD_8x32::load_be(&block[32]);
  424|       |
  425|  4.33k|      SIMD_8x32 P0 = W0 + K11;
  426|  4.33k|      SIMD_8x32 P2 = W2 + K11;
  427|       |
  428|  4.33k|      P0.store_le(PT);
  429|  4.33k|      P0 = sha1_avx2_next_w2(W0, W2) + K12;
  430|       |
  431|  4.33k|      F1(A, B, C, D, E, PT[0]);
  432|  4.33k|      F1(E, A, B, C, D, PT[1]);
  433|  4.33k|      F1(D, E, A, B, C, PT[2]);
  434|  4.33k|      F1(C, D, E, A, B, PT[3]);
  435|  4.33k|      F1(B, C, D, E, A, PT[4]);
  436|  4.33k|      F1(A, B, C, D, E, PT[5]);
  437|  4.33k|      F1(E, A, B, C, D, PT[6]);
  438|  4.33k|      F1(D, E, A, B, C, PT[7]);
  439|       |
  440|  4.33k|      P2.store_le(PT);
  441|  4.33k|      P2 = sha1_avx2_next_w2(W2, W0) + K22;
  442|       |
  443|  4.33k|      F1(C, D, E, A, B, PT[0]);
  444|  4.33k|      F1(B, C, D, E, A, PT[1]);
  445|  4.33k|      F1(A, B, C, D, E, PT[2]);
  446|  4.33k|      F1(E, A, B, C, D, PT[3]);
  447|  4.33k|      F1(D, E, A, B, C, PT[4]);
  448|  4.33k|      F1(C, D, E, A, B, PT[5]);
  449|  4.33k|      F1(B, C, D, E, A, PT[6]);
  450|  4.33k|      F1(A, B, C, D, E, PT[7]);
  451|       |
  452|  4.33k|      P0.store_le(PT);
  453|  4.33k|      P0 = sha1_avx2_next_w2(W0, W2) + K22;
  454|       |
  455|  4.33k|      F1(E, A, B, C, D, PT[0]);
  456|  4.33k|      F1(D, E, A, B, C, PT[1]);
  457|  4.33k|      F1(C, D, E, A, B, PT[2]);
  458|  4.33k|      F1(B, C, D, E, A, PT[3]);
  459|  4.33k|      F2(A, B, C, D, E, PT[4]);
  460|  4.33k|      F2(E, A, B, C, D, PT[5]);
  461|  4.33k|      F2(D, E, A, B, C, PT[6]);
  462|  4.33k|      F2(C, D, E, A, B, PT[7]);
  463|       |
  464|  4.33k|      P2.store_le(PT);
  465|  4.33k|      P2 = sha1_avx2_next_w2(W2, W0) + K33;
  466|       |
  467|  4.33k|      F2(B, C, D, E, A, PT[0]);
  468|  4.33k|      F2(A, B, C, D, E, PT[1]);
  469|  4.33k|      F2(E, A, B, C, D, PT[2]);
  470|  4.33k|      F2(D, E, A, B, C, PT[3]);
  471|  4.33k|      F2(C, D, E, A, B, PT[4]);
  472|  4.33k|      F2(B, C, D, E, A, PT[5]);
  473|  4.33k|      F2(A, B, C, D, E, PT[6]);
  474|  4.33k|      F2(E, A, B, C, D, PT[7]);
  475|       |
  476|  4.33k|      P0.store_le(PT);
  477|  4.33k|      P0 = sha1_avx2_next_w2(W0, W2) + K33;
  478|       |
  479|  4.33k|      F2(D, E, A, B, C, PT[0]);
  480|  4.33k|      F2(C, D, E, A, B, PT[1]);
  481|  4.33k|      F2(B, C, D, E, A, PT[2]);
  482|  4.33k|      F2(A, B, C, D, E, PT[3]);
  483|  4.33k|      F2(E, A, B, C, D, PT[4]);
  484|  4.33k|      F2(D, E, A, B, C, PT[5]);
  485|  4.33k|      F2(C, D, E, A, B, PT[6]);
  486|  4.33k|      F2(B, C, D, E, A, PT[7]);
  487|       |
  488|  4.33k|      P2.store_le(PT);
  489|  4.33k|      P2 = sha1_avx2_next_w2(W2, W0) + K34;
  490|       |
  491|  4.33k|      F3(A, B, C, D, E, PT[0]);
  492|  4.33k|      F3(E, A, B, C, D, PT[1]);
  493|  4.33k|      F3(D, E, A, B, C, PT[2]);
  494|  4.33k|      F3(C, D, E, A, B, PT[3]);
  495|  4.33k|      F3(B, C, D, E, A, PT[4]);
  496|  4.33k|      F3(A, B, C, D, E, PT[5]);
  497|  4.33k|      F3(E, A, B, C, D, PT[6]);
  498|  4.33k|      F3(D, E, A, B, C, PT[7]);
  499|       |
  500|  4.33k|      P0.store_le(PT);
  501|  4.33k|      P0 = sha1_avx2_next_w2(W0, W2) + K44;
  502|       |
  503|  4.33k|      F3(C, D, E, A, B, PT[0]);
  504|  4.33k|      F3(B, C, D, E, A, PT[1]);
  505|  4.33k|      F3(A, B, C, D, E, PT[2]);
  506|  4.33k|      F3(E, A, B, C, D, PT[3]);
  507|  4.33k|      F3(D, E, A, B, C, PT[4]);
  508|  4.33k|      F3(C, D, E, A, B, PT[5]);
  509|  4.33k|      F3(B, C, D, E, A, PT[6]);
  510|  4.33k|      F3(A, B, C, D, E, PT[7]);
  511|       |
  512|  4.33k|      P2.store_le(PT);
  513|  4.33k|      P2 = sha1_avx2_next_w2(W2, W0) + K44;
  514|       |
  515|  4.33k|      F3(E, A, B, C, D, PT[0]);
  516|  4.33k|      F3(D, E, A, B, C, PT[1]);
  517|  4.33k|      F3(C, D, E, A, B, PT[2]);
  518|  4.33k|      F3(B, C, D, E, A, PT[3]);
  519|  4.33k|      F4(A, B, C, D, E, PT[4]);
  520|  4.33k|      F4(E, A, B, C, D, PT[5]);
  521|  4.33k|      F4(D, E, A, B, C, PT[6]);
  522|  4.33k|      F4(C, D, E, A, B, PT[7]);
  523|       |
  524|  4.33k|      P0.store_le(PT);
  525|       |
  526|  4.33k|      F4(B, C, D, E, A, PT[0]);
  527|  4.33k|      F4(A, B, C, D, E, PT[1]);
  528|  4.33k|      F4(E, A, B, C, D, PT[2]);
  529|  4.33k|      F4(D, E, A, B, C, PT[3]);
  530|  4.33k|      F4(C, D, E, A, B, PT[4]);
  531|  4.33k|      F4(B, C, D, E, A, PT[5]);
  532|  4.33k|      F4(A, B, C, D, E, PT[6]);
  533|  4.33k|      F4(E, A, B, C, D, PT[7]);
  534|       |
  535|  4.33k|      P2.store_le(PT);
  536|       |
  537|  4.33k|      F4(D, E, A, B, C, PT[0]);
  538|  4.33k|      F4(C, D, E, A, B, PT[1]);
  539|  4.33k|      F4(B, C, D, E, A, PT[2]);
  540|  4.33k|      F4(A, B, C, D, E, PT[3]);
  541|  4.33k|      F4(E, A, B, C, D, PT[4]);
  542|  4.33k|      F4(D, E, A, B, C, PT[5]);
  543|  4.33k|      F4(C, D, E, A, B, PT[6]);
  544|  4.33k|      F4(B, C, D, E, A, PT[7]);
  545|       |
  546|  4.33k|      A = (digest[0] += A);
  547|  4.33k|      B = (digest[1] += B);
  548|  4.33k|      C = (digest[2] += C);
  549|  4.33k|      D = (digest[3] += D);
  550|  4.33k|      E = (digest[4] += E);
  551|  4.33k|   }
  552|  5.48k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_116sha1_avx2_next_wERNS_9SIMD_8x32ES1_S1_S1_:
   27|   141k|                                                                     SIMD_8x32 XW3) {
   28|   141k|   SIMD_8x32 T0 = XW0;  // W[t-16..t-13]
   29|   141k|   T0 ^= SIMD_8x32(_mm256_alignr_epi8(XW1.raw(), XW0.raw(), 8));
   30|   141k|   T0 ^= XW2;                                         // W[t-8..t-5]
   31|   141k|   T0 ^= SIMD_8x32(_mm256_srli_si256(XW3.raw(), 4));  // W[t-3..t-1] || 0
   32|       |
   33|       |   /* unrotated W[t]..W[t+2] in T0 ... still need W[t+3] */
   34|       |
   35|       |   // Extract w[t+0] into T2
   36|   141k|   auto T2 = SIMD_8x32(_mm256_slli_si256(T0.raw(), 3 * 4));
   37|       |
   38|       |   // Main rotation
   39|   141k|   T0 = T0.rotl<1>();
   40|       |
   41|       |   // Rotation of W[t+3] has rot by 2 to account for us working on non-rotated words
   42|   141k|   T2 = T2.rotl<2>();
   43|       |
   44|       |   // Merge rol(W[t+0], 1) into W[t+3]
   45|   141k|   T0 ^= T2;
   46|       |
   47|   141k|   XW0 = T0;
   48|   141k|   return T0;
   49|   141k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_117sha1_avx2_next_w2ERNS_9SIMD_8x32ES1_:
  115|  34.7k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_8x32 sha1_avx2_next_w2(SIMD_8x32& W0, SIMD_8x32 W2) {
  116|       |   // W[j-16..j-9] ^ W[j-8...j-1]
  117|  34.7k|   auto WN = W0 ^ W2;
  118|       |
  119|       |   // XOR in W[j-3..j-1] || 0 || 0 || 0 || W[j-8...j-7]
  120|  34.7k|   WN ^= permute_words<5, 6, 7, -1, -1, -1, 0, 1>(W2);
  121|       |
  122|       |   // XOR in W[j-14...j-9] || 0 || 0
  123|  34.7k|   WN ^= permute_words<2, 3, 4, 5, 6, 7, -1, -1>(W0);
  124|       |
  125|       |   // Extract W[j...j+2], rotate, and XOR into W[j+3...j+5]
  126|  34.7k|   auto T0 = permute_words<-1, -1, -1, 0, 1, 2, -1, -1>(WN).rotl<2>();
  127|  34.7k|   WN = WN.rotl<1>();  // main block rotation
  128|       |
  129|  34.7k|   WN ^= T0;
  130|       |
  131|       |   // Extract W[j+3...j+4], rotate, and XOR into W[j+6...j+7]
  132|  34.7k|   WN ^= permute_words<-1, -1, -1, -1, -1, -1, 3, 4>(WN).rotl<1>();
  133|       |
  134|  34.7k|   W0 = WN;
  135|  34.7k|   return WN;
  136|  34.7k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_113permute_wordsILi5ELi6ELi7ELin1ELin1ELin1ELi0ELi1EEENS_9SIMD_8x32ES2_:
   58|  34.7k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_8x32 permute_words(SIMD_8x32 v) {
   59|  34.7k|   const __m256i tbl = _mm256_setr_epi32(I0, I1, I2, I3, I4, I5, I6, I7);
   60|  34.7k|   const __m256i mask = _mm256_setr_epi32(I0 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (60:43): [True: 34.7k, Folded]
  ------------------
   61|  34.7k|                                          I1 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (61:43): [True: 34.7k, Folded]
  ------------------
   62|  34.7k|                                          I2 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (62:43): [True: 34.7k, Folded]
  ------------------
   63|  34.7k|                                          I3 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (63:43): [Folded, False: 34.7k]
  ------------------
   64|  34.7k|                                          I4 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (64:43): [Folded, False: 34.7k]
  ------------------
   65|  34.7k|                                          I5 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (65:43): [Folded, False: 34.7k]
  ------------------
   66|  34.7k|                                          I6 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (66:43): [True: 34.7k, Folded]
  ------------------
   67|  34.7k|                                          I7 >= 0 ? 0xFFFFFFFF : 0);
  ------------------
  |  Branch (67:43): [True: 34.7k, Folded]
  ------------------
   68|       |
   69|  34.7k|   return SIMD_8x32(_mm256_and_si256(mask, _mm256_permutevar8x32_epi32(v.raw(), tbl)));
   70|  34.7k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_113permute_wordsILi2ELi3ELi4ELi5ELi6ELi7ELin1ELin1EEENS_9SIMD_8x32ES2_:
   58|  34.7k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_8x32 permute_words(SIMD_8x32 v) {
   59|  34.7k|   const __m256i tbl = _mm256_setr_epi32(I0, I1, I2, I3, I4, I5, I6, I7);
   60|  34.7k|   const __m256i mask = _mm256_setr_epi32(I0 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (60:43): [True: 34.7k, Folded]
  ------------------
   61|  34.7k|                                          I1 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (61:43): [True: 34.7k, Folded]
  ------------------
   62|  34.7k|                                          I2 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (62:43): [True: 34.7k, Folded]
  ------------------
   63|  34.7k|                                          I3 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (63:43): [True: 34.7k, Folded]
  ------------------
   64|  34.7k|                                          I4 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (64:43): [True: 34.7k, Folded]
  ------------------
   65|  34.7k|                                          I5 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (65:43): [True: 34.7k, Folded]
  ------------------
   66|  34.7k|                                          I6 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (66:43): [Folded, False: 34.7k]
  ------------------
   67|  34.7k|                                          I7 >= 0 ? 0xFFFFFFFF : 0);
  ------------------
  |  Branch (67:43): [Folded, False: 34.7k]
  ------------------
   68|       |
   69|  34.7k|   return SIMD_8x32(_mm256_and_si256(mask, _mm256_permutevar8x32_epi32(v.raw(), tbl)));
   70|  34.7k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_113permute_wordsILin1ELin1ELin1ELi0ELi1ELi2ELin1ELin1EEENS_9SIMD_8x32ES2_:
   58|  34.7k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_8x32 permute_words(SIMD_8x32 v) {
   59|  34.7k|   const __m256i tbl = _mm256_setr_epi32(I0, I1, I2, I3, I4, I5, I6, I7);
   60|  34.7k|   const __m256i mask = _mm256_setr_epi32(I0 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (60:43): [Folded, False: 34.7k]
  ------------------
   61|  34.7k|                                          I1 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (61:43): [Folded, False: 34.7k]
  ------------------
   62|  34.7k|                                          I2 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (62:43): [Folded, False: 34.7k]
  ------------------
   63|  34.7k|                                          I3 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (63:43): [True: 34.7k, Folded]
  ------------------
   64|  34.7k|                                          I4 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (64:43): [True: 34.7k, Folded]
  ------------------
   65|  34.7k|                                          I5 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (65:43): [True: 34.7k, Folded]
  ------------------
   66|  34.7k|                                          I6 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (66:43): [Folded, False: 34.7k]
  ------------------
   67|  34.7k|                                          I7 >= 0 ? 0xFFFFFFFF : 0);
  ------------------
  |  Branch (67:43): [Folded, False: 34.7k]
  ------------------
   68|       |
   69|  34.7k|   return SIMD_8x32(_mm256_and_si256(mask, _mm256_permutevar8x32_epi32(v.raw(), tbl)));
   70|  34.7k|}
sha1_avx2.cpp:_ZN5Botan12_GLOBAL__N_113permute_wordsILin1ELin1ELin1ELin1ELin1ELin1ELi3ELi4EEENS_9SIMD_8x32ES2_:
   58|  34.7k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_8x32 permute_words(SIMD_8x32 v) {
   59|  34.7k|   const __m256i tbl = _mm256_setr_epi32(I0, I1, I2, I3, I4, I5, I6, I7);
   60|  34.7k|   const __m256i mask = _mm256_setr_epi32(I0 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (60:43): [Folded, False: 34.7k]
  ------------------
   61|  34.7k|                                          I1 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (61:43): [Folded, False: 34.7k]
  ------------------
   62|  34.7k|                                          I2 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (62:43): [Folded, False: 34.7k]
  ------------------
   63|  34.7k|                                          I3 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (63:43): [Folded, False: 34.7k]
  ------------------
   64|  34.7k|                                          I4 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (64:43): [Folded, False: 34.7k]
  ------------------
   65|  34.7k|                                          I5 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (65:43): [Folded, False: 34.7k]
  ------------------
   66|  34.7k|                                          I6 >= 0 ? 0xFFFFFFFF : 0,
  ------------------
  |  Branch (66:43): [True: 34.7k, Folded]
  ------------------
   67|  34.7k|                                          I7 >= 0 ? 0xFFFFFFFF : 0);
  ------------------
  |  Branch (67:43): [True: 34.7k, Folded]
  ------------------
   68|       |
   69|  34.7k|   return SIMD_8x32(_mm256_and_si256(mask, _mm256_permutevar8x32_epi32(v.raw(), tbl)));
   70|  34.7k|}

_ZN5Botan7SHA_25615compress_digestERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   59|  5.48k|                                                             size_t blocks) {
   60|  5.48k|#if defined(BOTAN_HAS_SHA2_32_X86)
   61|  5.48k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (61:7): [True: 0, False: 5.48k]
  ------------------
   62|      0|      return SHA_256::compress_digest_x86(digest, input, blocks);
   63|      0|   }
   64|  5.48k|#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|  5.48k|#if defined(BOTAN_HAS_SHA2_32_X86_AVX2)
   73|  5.48k|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (73:7): [True: 5.48k, False: 0]
  ------------------
   74|  5.48k|      return SHA_256::compress_digest_x86_avx2(digest, input, blocks);
   75|  5.48k|   }
   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|  5.48k|void SHA_256::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  216|  5.48k|   SHA_256::compress_digest(digest, input, blocks);
  217|  5.48k|}
_ZN5Botan7SHA_2564initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  219|  3.64k|void SHA_256::init(digest_type& digest) {
  220|  3.64k|   digest.assign({0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19});
  221|  3.64k|}
_ZN5Botan7SHA_2568add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  231|  2.91k|void SHA_256::add_data(std::span<const uint8_t> input) {
  232|  2.91k|   m_md.update(input);
  233|  2.91k|}
_ZN5Botan7SHA_25612final_resultENSt3__14spanIhLm18446744073709551615EEE:
  235|  2.91k|void SHA_256::final_result(std::span<uint8_t> output) {
  236|  2.91k|   m_md.final(output);
  237|  2.91k|}

_ZN5Botan7SHA_25624compress_digest_x86_avx2ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
  100|  5.48k|   digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  101|       |   // clang-format off
  102|       |
  103|  5.48k|   alignas(64) const uint32_t K[64] = {
  104|  5.48k|      0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
  105|  5.48k|      0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
  106|  5.48k|      0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
  107|  5.48k|      0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
  108|  5.48k|      0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
  109|  5.48k|      0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
  110|  5.48k|      0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
  111|  5.48k|      0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2};
  112|       |
  113|       |   // clang-format on
  114|       |
  115|  5.48k|   alignas(64) uint32_t W[16];
  116|  5.48k|   alignas(64) uint32_t W2[64];
  117|       |
  118|  5.48k|   uint32_t A = digest[0];
  119|  5.48k|   uint32_t B = digest[1];
  120|  5.48k|   uint32_t C = digest[2];
  121|  5.48k|   uint32_t D = digest[3];
  122|  5.48k|   uint32_t E = digest[4];
  123|  5.48k|   uint32_t F = digest[5];
  124|  5.48k|   uint32_t G = digest[6];
  125|  5.48k|   uint32_t H = digest[7];
  126|       |
  127|  5.48k|   const uint8_t* data = input.data();
  128|       |
  129|  14.3k|   while(blocks >= 2) {
  ------------------
  |  Branch (129:10): [True: 8.82k, False: 5.48k]
  ------------------
  130|  8.82k|      SIMD_8x32 WS[4];
  131|       |
  132|  44.1k|      for(size_t i = 0; i < 4; i++) {
  ------------------
  |  Branch (132:25): [True: 35.2k, False: 8.82k]
  ------------------
  133|  35.2k|         WS[i] = SIMD_8x32::load_be128(&data[16 * i], &data[64 + 16 * i]);
  134|  35.2k|         auto WK = WS[i] + SIMD_8x32::load_le128(&K[4 * i]);
  135|  35.2k|         WK.store_le128(&W[4 * i], &W2[4 * i]);
  136|  35.2k|      }
  137|       |
  138|  8.82k|      data += 2 * 64;
  139|  8.82k|      blocks -= 2;
  140|       |
  141|  35.2k|      for(size_t r = 0; r != 48; r += 16) {
  ------------------
  |  Branch (141:25): [True: 26.4k, False: 8.82k]
  ------------------
  142|  26.4k|         auto w = next_w(WS) + SIMD_8x32::load_le128(&K[r + 16]);
  143|       |
  144|  26.4k|         SHA2_32_F(A, B, C, D, E, F, G, H, W[0]);
  145|  26.4k|         SHA2_32_F(H, A, B, C, D, E, F, G, W[1]);
  146|  26.4k|         SHA2_32_F(G, H, A, B, C, D, E, F, W[2]);
  147|  26.4k|         SHA2_32_F(F, G, H, A, B, C, D, E, W[3]);
  148|       |
  149|  26.4k|         w.store_le128(&W[0], &W2[r + 16]);
  150|       |
  151|  26.4k|         w = next_w(WS) + SIMD_8x32::load_le128(&K[r + 20]);
  152|       |
  153|  26.4k|         SHA2_32_F(E, F, G, H, A, B, C, D, W[4]);
  154|  26.4k|         SHA2_32_F(D, E, F, G, H, A, B, C, W[5]);
  155|  26.4k|         SHA2_32_F(C, D, E, F, G, H, A, B, W[6]);
  156|  26.4k|         SHA2_32_F(B, C, D, E, F, G, H, A, W[7]);
  157|       |
  158|  26.4k|         w.store_le128(&W[4], &W2[r + 20]);
  159|       |
  160|  26.4k|         w = next_w(WS) + SIMD_8x32::load_le128(&K[r + 24]);
  161|       |
  162|  26.4k|         SHA2_32_F(A, B, C, D, E, F, G, H, W[8]);
  163|  26.4k|         SHA2_32_F(H, A, B, C, D, E, F, G, W[9]);
  164|  26.4k|         SHA2_32_F(G, H, A, B, C, D, E, F, W[10]);
  165|  26.4k|         SHA2_32_F(F, G, H, A, B, C, D, E, W[11]);
  166|       |
  167|  26.4k|         w.store_le128(&W[8], &W2[r + 24]);
  168|       |
  169|  26.4k|         w = next_w(WS) + SIMD_8x32::load_le128(&K[r + 28]);
  170|       |
  171|  26.4k|         SHA2_32_F(E, F, G, H, A, B, C, D, W[12]);
  172|  26.4k|         SHA2_32_F(D, E, F, G, H, A, B, C, W[13]);
  173|  26.4k|         SHA2_32_F(C, D, E, F, G, H, A, B, W[14]);
  174|  26.4k|         SHA2_32_F(B, C, D, E, F, G, H, A, W[15]);
  175|       |
  176|  26.4k|         w.store_le128(&W[12], &W2[r + 28]);
  177|  26.4k|      }
  178|       |
  179|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W[0]);
  180|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W[1]);
  181|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W[2]);
  182|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W[3]);
  183|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W[4]);
  184|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W[5]);
  185|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W[6]);
  186|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W[7]);
  187|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W[8]);
  188|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W[9]);
  189|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10]);
  190|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11]);
  191|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12]);
  192|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13]);
  193|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14]);
  194|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15]);
  195|       |
  196|  8.82k|      A = (digest[0] += A);
  197|  8.82k|      B = (digest[1] += B);
  198|  8.82k|      C = (digest[2] += C);
  199|  8.82k|      D = (digest[3] += D);
  200|  8.82k|      E = (digest[4] += E);
  201|  8.82k|      F = (digest[5] += F);
  202|  8.82k|      G = (digest[6] += G);
  203|  8.82k|      H = (digest[7] += H);
  204|       |
  205|       |      // Now the second block, with already expanded message
  206|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[0]);
  207|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[1]);
  208|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[2]);
  209|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[3]);
  210|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[4]);
  211|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[5]);
  212|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[6]);
  213|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[7]);
  214|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[8]);
  215|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[9]);
  216|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[10]);
  217|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[11]);
  218|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[12]);
  219|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[13]);
  220|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[14]);
  221|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[15]);
  222|       |
  223|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[16]);
  224|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[17]);
  225|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[18]);
  226|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[19]);
  227|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[20]);
  228|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[21]);
  229|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[22]);
  230|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[23]);
  231|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[24]);
  232|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[25]);
  233|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[26]);
  234|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[27]);
  235|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[28]);
  236|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[29]);
  237|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[30]);
  238|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[31]);
  239|       |
  240|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[32]);
  241|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[33]);
  242|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[34]);
  243|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[35]);
  244|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[36]);
  245|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[37]);
  246|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[38]);
  247|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[39]);
  248|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[40]);
  249|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[41]);
  250|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[42]);
  251|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[43]);
  252|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[44]);
  253|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[45]);
  254|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[46]);
  255|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[47]);
  256|       |
  257|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[48]);
  258|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[49]);
  259|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[50]);
  260|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[51]);
  261|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[52]);
  262|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[53]);
  263|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[54]);
  264|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[55]);
  265|  8.82k|      SHA2_32_F(A, B, C, D, E, F, G, H, W2[56]);
  266|  8.82k|      SHA2_32_F(H, A, B, C, D, E, F, G, W2[57]);
  267|  8.82k|      SHA2_32_F(G, H, A, B, C, D, E, F, W2[58]);
  268|  8.82k|      SHA2_32_F(F, G, H, A, B, C, D, E, W2[59]);
  269|  8.82k|      SHA2_32_F(E, F, G, H, A, B, C, D, W2[60]);
  270|  8.82k|      SHA2_32_F(D, E, F, G, H, A, B, C, W2[61]);
  271|  8.82k|      SHA2_32_F(C, D, E, F, G, H, A, B, W2[62]);
  272|  8.82k|      SHA2_32_F(B, C, D, E, F, G, H, A, W2[63]);
  273|       |
  274|  8.82k|      A = (digest[0] += A);
  275|  8.82k|      B = (digest[1] += B);
  276|  8.82k|      C = (digest[2] += C);
  277|  8.82k|      D = (digest[3] += D);
  278|  8.82k|      E = (digest[4] += E);
  279|  8.82k|      F = (digest[5] += F);
  280|  8.82k|      G = (digest[6] += G);
  281|  8.82k|      H = (digest[7] += H);
  282|  8.82k|   }
  283|       |
  284|  9.82k|   while(blocks > 0) {
  ------------------
  |  Branch (284:10): [True: 4.33k, False: 5.48k]
  ------------------
  285|  4.33k|      SIMD_4x32 WS[4];
  286|       |
  287|  21.6k|      for(size_t i = 0; i < 4; i++) {
  ------------------
  |  Branch (287:25): [True: 17.3k, False: 4.33k]
  ------------------
  288|  17.3k|         WS[i] = SIMD_4x32::load_be(&data[16 * i]);
  289|  17.3k|         auto WK = WS[i] + SIMD_4x32::load_le(&K[4 * i]);
  290|  17.3k|         WK.store_le(&W[4 * i]);
  291|  17.3k|      }
  292|       |
  293|  4.33k|      data += 64;
  294|  4.33k|      blocks -= 1;
  295|       |
  296|  17.3k|      for(size_t r = 0; r != 48; r += 16) {
  ------------------
  |  Branch (296:25): [True: 13.0k, False: 4.33k]
  ------------------
  297|  13.0k|         auto w = next_w(WS) + SIMD_4x32::load_le(&K[r + 16]);
  298|       |
  299|  13.0k|         SHA2_32_F(A, B, C, D, E, F, G, H, W[0]);
  300|  13.0k|         SHA2_32_F(H, A, B, C, D, E, F, G, W[1]);
  301|  13.0k|         SHA2_32_F(G, H, A, B, C, D, E, F, W[2]);
  302|  13.0k|         SHA2_32_F(F, G, H, A, B, C, D, E, W[3]);
  303|       |
  304|  13.0k|         w.store_le(&W[0]);
  305|       |
  306|  13.0k|         w = next_w(WS) + SIMD_4x32::load_le(&K[r + 20]);
  307|       |
  308|  13.0k|         SHA2_32_F(E, F, G, H, A, B, C, D, W[4]);
  309|  13.0k|         SHA2_32_F(D, E, F, G, H, A, B, C, W[5]);
  310|  13.0k|         SHA2_32_F(C, D, E, F, G, H, A, B, W[6]);
  311|  13.0k|         SHA2_32_F(B, C, D, E, F, G, H, A, W[7]);
  312|       |
  313|  13.0k|         w.store_le(&W[4]);
  314|       |
  315|  13.0k|         w = next_w(WS) + SIMD_4x32::load_le(&K[r + 24]);
  316|       |
  317|  13.0k|         SHA2_32_F(A, B, C, D, E, F, G, H, W[8]);
  318|  13.0k|         SHA2_32_F(H, A, B, C, D, E, F, G, W[9]);
  319|  13.0k|         SHA2_32_F(G, H, A, B, C, D, E, F, W[10]);
  320|  13.0k|         SHA2_32_F(F, G, H, A, B, C, D, E, W[11]);
  321|       |
  322|  13.0k|         w.store_le(&W[8]);
  323|       |
  324|  13.0k|         w = next_w(WS) + SIMD_4x32::load_le(&K[r + 28]);
  325|       |
  326|  13.0k|         SHA2_32_F(E, F, G, H, A, B, C, D, W[12]);
  327|  13.0k|         SHA2_32_F(D, E, F, G, H, A, B, C, W[13]);
  328|  13.0k|         SHA2_32_F(C, D, E, F, G, H, A, B, W[14]);
  329|  13.0k|         SHA2_32_F(B, C, D, E, F, G, H, A, W[15]);
  330|       |
  331|  13.0k|         w.store_le(&W[12]);
  332|  13.0k|      }
  333|       |
  334|  4.33k|      SHA2_32_F(A, B, C, D, E, F, G, H, W[0]);
  335|  4.33k|      SHA2_32_F(H, A, B, C, D, E, F, G, W[1]);
  336|  4.33k|      SHA2_32_F(G, H, A, B, C, D, E, F, W[2]);
  337|  4.33k|      SHA2_32_F(F, G, H, A, B, C, D, E, W[3]);
  338|  4.33k|      SHA2_32_F(E, F, G, H, A, B, C, D, W[4]);
  339|  4.33k|      SHA2_32_F(D, E, F, G, H, A, B, C, W[5]);
  340|  4.33k|      SHA2_32_F(C, D, E, F, G, H, A, B, W[6]);
  341|  4.33k|      SHA2_32_F(B, C, D, E, F, G, H, A, W[7]);
  342|  4.33k|      SHA2_32_F(A, B, C, D, E, F, G, H, W[8]);
  343|  4.33k|      SHA2_32_F(H, A, B, C, D, E, F, G, W[9]);
  344|  4.33k|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10]);
  345|  4.33k|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11]);
  346|  4.33k|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12]);
  347|  4.33k|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13]);
  348|  4.33k|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14]);
  349|  4.33k|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15]);
  350|       |
  351|  4.33k|      A = (digest[0] += A);
  352|  4.33k|      B = (digest[1] += B);
  353|  4.33k|      C = (digest[2] += C);
  354|  4.33k|      D = (digest[3] += D);
  355|  4.33k|      E = (digest[4] += E);
  356|  4.33k|      F = (digest[5] += F);
  357|  4.33k|      G = (digest[6] += G);
  358|  4.33k|      H = (digest[7] += H);
  359|  4.33k|   }
  360|  5.48k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_16next_wINS_9SIMD_8x32EEET_PS3_:
   50|   105k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_T next_w(SIMD_T x[4]) {
   51|   105k|   constexpr size_t sigma0_0 = 7;
   52|   105k|   constexpr size_t sigma0_1 = 18;
   53|   105k|   constexpr size_t sigma0_2 = 3;
   54|   105k|   constexpr size_t sigma1_0 = 17;
   55|   105k|   constexpr size_t sigma1_1 = 19;
   56|   105k|   constexpr size_t sigma1_2 = 10;
   57|       |
   58|   105k|   const SIMD_T lo_mask = SIMD_T(0x03020100, 0x0b0a0908, 0x80808080, 0x80808080);
   59|   105k|   const SIMD_T hi_mask = SIMD_T(0x80808080, 0x80808080, 0x03020100, 0x0b0a0908);
   60|       |
   61|   105k|   auto t0 = alignr4(x[1], x[0]);
   62|   105k|   x[0] += alignr4(x[3], x[2]);
   63|       |
   64|   105k|   auto t1 = t0.template shl<32 - sigma0_1>();
   65|   105k|   auto t2 = t0.template shr<sigma0_0>();
   66|   105k|   auto t3 = t0.template shr<sigma0_2>();
   67|   105k|   t0 = t3 ^ t2;
   68|       |
   69|   105k|   t3 = shuffle_32<0b11111010>(x[3]);
   70|   105k|   t2 = t2.template shr<sigma0_1 - sigma0_0>();
   71|   105k|   t0 ^= t1 ^ t2;
   72|   105k|   t1 = t1.template shl<sigma0_1 - sigma0_0>();
   73|   105k|   t2 = t3.template shr<sigma1_2>();
   74|   105k|   t3 = shr64<sigma1_0>(t3);
   75|   105k|   x[0] += t0 ^ t1;
   76|       |
   77|   105k|   t2 ^= t3;
   78|   105k|   t3 = shr64<sigma1_1 - sigma1_0>(t3);
   79|   105k|   x[0] += SIMD_T::byte_shuffle(t2 ^ t3, lo_mask);
   80|       |
   81|   105k|   t3 = shuffle_32<0b01010000>(x[0]);
   82|   105k|   t2 = t3.template shr<sigma1_2>();
   83|   105k|   t3 = shr64<sigma1_0>(t3);
   84|   105k|   t2 ^= t3;
   85|   105k|   t3 = shr64<sigma1_1 - sigma1_0>(t3);
   86|   105k|   x[0] += SIMD_T::byte_shuffle(t2 ^ t3, hi_mask);
   87|       |
   88|   105k|   const auto tmp = x[0];
   89|   105k|   x[0] = x[1];
   90|   105k|   x[1] = x[2];
   91|   105k|   x[2] = x[3];
   92|   105k|   x[3] = tmp;
   93|       |
   94|   105k|   return x[3];
   95|   105k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_17alignr4ERKNS_9SIMD_8x32ES3_:
   35|   211k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_8x32 alignr4(const SIMD_8x32& a, const SIMD_8x32& b) {
   36|       |   return SIMD_8x32(_mm256_alignr_epi8(a.raw(), b.raw(), 4));
   37|   211k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_110shuffle_32ILh250EEENS_9SIMD_8x32ERKS2_:
   45|   105k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_8x32 shuffle_32(const SIMD_8x32& a) {
   46|       |   return SIMD_8x32(_mm256_shuffle_epi32(a.raw(), S));
   47|   105k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_15shr64ILm17EEENS_9SIMD_8x32ERKS2_:
   40|   211k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_8x32 shr64(const SIMD_8x32& a) {
   41|   211k|   return SIMD_8x32(_mm256_srli_epi64(a.raw(), S));
   42|   211k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_15shr64ILm2EEENS_9SIMD_8x32ERKS2_:
   40|   211k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_8x32 shr64(const SIMD_8x32& a) {
   41|   211k|   return SIMD_8x32(_mm256_srli_epi64(a.raw(), S));
   42|   211k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_110shuffle_32ILh80EEENS_9SIMD_8x32ERKS2_:
   45|   105k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_8x32 shuffle_32(const SIMD_8x32& a) {
   46|       |   return SIMD_8x32(_mm256_shuffle_epi32(a.raw(), S));
   47|   105k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_16next_wINS_9SIMD_4x32EEET_PS3_:
   50|  52.0k|BOTAN_FN_ISA_AVX2_BMI2 BOTAN_FORCE_INLINE SIMD_T next_w(SIMD_T x[4]) {
   51|  52.0k|   constexpr size_t sigma0_0 = 7;
   52|  52.0k|   constexpr size_t sigma0_1 = 18;
   53|  52.0k|   constexpr size_t sigma0_2 = 3;
   54|  52.0k|   constexpr size_t sigma1_0 = 17;
   55|  52.0k|   constexpr size_t sigma1_1 = 19;
   56|  52.0k|   constexpr size_t sigma1_2 = 10;
   57|       |
   58|  52.0k|   const SIMD_T lo_mask = SIMD_T(0x03020100, 0x0b0a0908, 0x80808080, 0x80808080);
   59|  52.0k|   const SIMD_T hi_mask = SIMD_T(0x80808080, 0x80808080, 0x03020100, 0x0b0a0908);
   60|       |
   61|  52.0k|   auto t0 = alignr4(x[1], x[0]);
   62|  52.0k|   x[0] += alignr4(x[3], x[2]);
   63|       |
   64|  52.0k|   auto t1 = t0.template shl<32 - sigma0_1>();
   65|  52.0k|   auto t2 = t0.template shr<sigma0_0>();
   66|  52.0k|   auto t3 = t0.template shr<sigma0_2>();
   67|  52.0k|   t0 = t3 ^ t2;
   68|       |
   69|  52.0k|   t3 = shuffle_32<0b11111010>(x[3]);
   70|  52.0k|   t2 = t2.template shr<sigma0_1 - sigma0_0>();
   71|  52.0k|   t0 ^= t1 ^ t2;
   72|  52.0k|   t1 = t1.template shl<sigma0_1 - sigma0_0>();
   73|  52.0k|   t2 = t3.template shr<sigma1_2>();
   74|  52.0k|   t3 = shr64<sigma1_0>(t3);
   75|  52.0k|   x[0] += t0 ^ t1;
   76|       |
   77|  52.0k|   t2 ^= t3;
   78|  52.0k|   t3 = shr64<sigma1_1 - sigma1_0>(t3);
   79|  52.0k|   x[0] += SIMD_T::byte_shuffle(t2 ^ t3, lo_mask);
   80|       |
   81|  52.0k|   t3 = shuffle_32<0b01010000>(x[0]);
   82|  52.0k|   t2 = t3.template shr<sigma1_2>();
   83|  52.0k|   t3 = shr64<sigma1_0>(t3);
   84|  52.0k|   t2 ^= t3;
   85|  52.0k|   t3 = shr64<sigma1_1 - sigma1_0>(t3);
   86|  52.0k|   x[0] += SIMD_T::byte_shuffle(t2 ^ t3, hi_mask);
   87|       |
   88|  52.0k|   const auto tmp = x[0];
   89|  52.0k|   x[0] = x[1];
   90|  52.0k|   x[1] = x[2];
   91|  52.0k|   x[2] = x[3];
   92|  52.0k|   x[3] = tmp;
   93|       |
   94|  52.0k|   return x[3];
   95|  52.0k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_17alignr4ERKNS_9SIMD_4x32ES3_:
   21|   104k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_4x32 alignr4(const SIMD_4x32& a, const SIMD_4x32& b) {
   22|       |   return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 4));
   23|   104k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_110shuffle_32ILh250EEENS_9SIMD_4x32ERKS2_:
   31|  52.0k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_4x32 shuffle_32(const SIMD_4x32& a) {
   32|       |   return SIMD_4x32(_mm_shuffle_epi32(a.raw(), S));
   33|  52.0k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_15shr64ILm17EEENS_9SIMD_4x32ERKS2_:
   26|   104k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_4x32 shr64(const SIMD_4x32& a) {
   27|   104k|   return SIMD_4x32(_mm_srli_epi64(a.raw(), S));
   28|   104k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_15shr64ILm2EEENS_9SIMD_4x32ERKS2_:
   26|   104k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_4x32 shr64(const SIMD_4x32& a) {
   27|   104k|   return SIMD_4x32(_mm_srli_epi64(a.raw(), S));
   28|   104k|}
sha2_32_avx2.cpp:_ZN5Botan12_GLOBAL__N_110shuffle_32ILh80EEENS_9SIMD_4x32ERKS2_:
   31|  52.0k|BOTAN_FN_ISA_AVX2_BMI2 inline SIMD_4x32 shuffle_32(const SIMD_4x32& a) {
   32|       |   return SIMD_4x32(_mm_shuffle_epi32(a.raw(), S));
   33|  52.0k|}

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

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    340|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    340|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    340|   label.clear();
   66|       |
   67|    340|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    340|   const std::string PEM_HEADER2 = "-----";
   69|    340|   size_t position = 0;
   70|       |
   71|  7.12k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 6.82k, False: 295]
  ------------------
   72|  6.82k|      auto b = source.read_byte();
   73|       |
   74|  6.82k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 44, False: 6.78k]
  ------------------
   75|     44|         throw Decoding_Error("PEM: No PEM header found");
   76|     44|      }
   77|  6.78k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 3.66k, False: 3.11k]
  ------------------
   78|  3.66k|         ++position;
   79|  3.66k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 3.11k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  3.11k|      } else {
   82|  3.11k|         position = 0;
   83|  3.11k|      }
   84|  6.78k|   }
   85|    295|   position = 0;
   86|  4.54k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 4.29k, False: 248]
  ------------------
   87|  4.29k|      auto b = source.read_byte();
   88|       |
   89|  4.29k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 43, False: 4.25k]
  ------------------
   90|     43|         throw Decoding_Error("PEM: No PEM header found");
   91|     43|      }
   92|  4.25k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 1.25k, False: 2.99k]
  ------------------
   93|  1.25k|         ++position;
   94|  2.99k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 3, False: 2.98k]
  ------------------
   95|      3|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      3|      }
   97|       |
   98|  4.24k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 2.98k, False: 1.25k]
  ------------------
   99|  2.98k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 2.98k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  2.98k|         label += static_cast<char>(*b);
  103|  2.98k|      }
  104|  4.24k|   }
  105|       |
  106|    248|   std::vector<char> b64;
  107|       |
  108|    248|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    248|   position = 0;
  110|  79.7k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 79.6k, False: 165]
  ------------------
  111|  79.6k|      auto b = source.read_byte();
  112|       |
  113|  79.6k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 73, False: 79.5k]
  ------------------
  114|     73|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     73|      }
  116|  79.5k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 3.24k, False: 76.2k]
  ------------------
  117|  3.24k|         ++position;
  118|  76.2k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 10, False: 76.2k]
  ------------------
  119|     10|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|     10|      }
  121|       |
  122|  79.5k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 76.2k, False: 3.24k]
  ------------------
  123|  76.2k|         b64.push_back(*b);
  124|  76.2k|      }
  125|  79.5k|   }
  126|       |
  127|    165|   return base64_decode(b64.data(), b64.size());
  128|    248|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  5.46k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  5.46k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  5.46k|   secure_vector<uint8_t> search_buf(search_range);
  147|  5.46k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  5.46k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 435, False: 5.03k]
  ------------------
  150|    435|      return false;
  151|    435|   }
  152|       |
  153|  5.03k|   size_t index = 0;
  154|       |
  155|  5.78M|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 5.77M, False: 5.02k]
  ------------------
  156|  5.77M|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 60.5k, False: 5.71M]
  ------------------
  157|  60.5k|         ++index;
  158|  5.71M|      } else {
  159|  5.71M|         index = 0;
  160|  5.71M|      }
  161|       |
  162|  5.77M|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 11, False: 5.77M]
  ------------------
  163|     11|         return true;
  164|     11|      }
  165|  5.77M|   }
  166|       |
  167|  5.02k|   return false;
  168|  5.03k|}

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

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

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

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

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

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

_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.99k|Exception::Exception(std::string_view msg, const std::exception& e) : m_msg(fmt("{} failed with {}", msg, e.what())) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|    287|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  14.2k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  4.99k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan11IPv4Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   90|  3.32k|std::optional<IPv4Address> IPv4Address::from_string(std::string_view str) {
   91|  3.32k|   if(auto ipv4 = string_to_ipv4(str)) {
  ------------------
  |  Branch (91:12): [True: 13, False: 3.31k]
  ------------------
   92|     13|      return IPv4Address(*ipv4);
   93|  3.31k|   } else {
   94|  3.31k|      return {};
   95|  3.31k|   }
   96|  3.32k|}
_ZN5Botan11IPv4Address7netmaskEm:
   99|     17|IPv4Address IPv4Address::netmask(size_t bits) {
  100|     17|   BOTAN_ARG_CHECK(bits <= 32, "IPv4 netmask prefix length must be at most 32");
  ------------------
  |  |   35|     17|   do {                                                          \
  |  |   36|     17|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     17|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 17]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     17|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 17]
  |  |  ------------------
  ------------------
  101|     17|   if(bits == 0) {
  ------------------
  |  Branch (101:7): [True: 2, False: 15]
  ------------------
  102|      2|      return IPv4Address(0);
  103|      2|   }
  104|     15|   return IPv4Address(0xFFFFFFFF << (32 - bits));
  105|     17|}
_ZNK5Botan11IPv4Address13prefix_lengthEv:
  129|     62|std::optional<size_t> IPv4Address::prefix_length() const {
  130|       |   // A 32-bit mask m is a CIDR prefix iff (~m) + 1 is a power of two or zero,
  131|       |   // i.e. (~m) & (~m + 1) == 0. If so, the prefix length is the leading-one count.
  132|     62|   const uint32_t inv = ~m_ip;
  133|     62|   if((inv & (inv + 1)) != 0) {
  ------------------
  |  Branch (133:7): [True: 45, False: 17]
  ------------------
  134|     45|      return std::nullopt;
  135|     45|   }
  136|     17|   return std::countl_one(m_ip);
  137|     62|}
_ZN5Botan10IPv4SubnetC2ENS_11IPv4AddressEm:
  140|     17|      m_address(address & IPv4Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
  141|       |   // IPv4Address::netmask validates prefix_length <= 32, so by this point
  142|       |   // the static_cast is in range.
  143|     17|}
_ZN5Botan10IPv4Subnet21from_address_and_maskENSt3__14spanIKhLm8EEE:
  154|     62|std::optional<IPv4Subnet> IPv4Subnet::from_address_and_mask(std::span<const uint8_t, 8> addr_and_mask) {
  155|     62|   const IPv4Address addr(load_be<uint32_t>(addr_and_mask.data(), 0));
  156|     62|   const IPv4Address mask(load_be<uint32_t>(addr_and_mask.data(), 1));
  157|       |
  158|     62|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (158:18): [True: 17, False: 45]
  ------------------
  159|     17|      return IPv4Subnet(addr, *plen);
  160|     45|   } else {
  161|     45|      return {};
  162|     45|   }
  163|     62|}
ipv4_address.cpp:_ZN5Botan12_GLOBAL__N_114string_to_ipv4ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   21|  3.32k|std::optional<uint32_t> string_to_ipv4(std::string_view str) {
   22|       |   // At least 3 dots + 4 1-digit integers
   23|       |   // At most 3 dots + 4 3-digit integers
   24|  3.32k|   if(str.size() < 3 + 4 * 1 || str.size() > 3 + 4 * 3) {
  ------------------
  |  Branch (24:7): [True: 738, False: 2.58k]
  |  Branch (24:33): [True: 561, False: 2.02k]
  ------------------
   25|  1.29k|      return {};
   26|  1.29k|   }
   27|       |
   28|       |   // the final result
   29|  2.02k|   uint32_t ip = 0;
   30|       |   // the number of '.' seen so far
   31|  2.02k|   size_t dots = 0;
   32|       |   // accumulates one quad (range 0-255)
   33|  2.02k|   uint32_t accum = 0;
   34|       |   // # of digits pushed to accum since last dot
   35|  2.02k|   size_t cur_digits = 0;
   36|       |
   37|  2.48k|   for(const char c : str) {
  ------------------
  |  Branch (37:21): [True: 2.48k, False: 15]
  ------------------
   38|  2.48k|      if(c == '.') {
  ------------------
  |  Branch (38:10): [True: 177, False: 2.30k]
  ------------------
   39|       |         // . without preceding digit is invalid
   40|    177|         if(cur_digits == 0) {
  ------------------
  |  Branch (40:13): [True: 14, False: 163]
  ------------------
   41|     14|            return {};
   42|     14|         }
   43|    163|         dots += 1;
   44|       |         // too many dots
   45|    163|         if(dots > 3) {
  ------------------
  |  Branch (45:13): [True: 8, False: 155]
  ------------------
   46|      8|            return {};
   47|      8|         }
   48|       |
   49|    155|         cur_digits = 0;
   50|    155|         ip = (ip << 8) | accum;
   51|    155|         accum = 0;
   52|  2.30k|      } else if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (52:17): [True: 2.28k, False: 26]
  |  Branch (52:29): [True: 351, False: 1.93k]
  ------------------
   53|    351|         const auto d = static_cast<uint8_t>(c - '0');
   54|       |
   55|       |         // prohibit leading zero in quad (used for octal)
   56|    351|         if(cur_digits > 0 && accum == 0) {
  ------------------
  |  Branch (56:13): [True: 110, False: 241]
  |  Branch (56:31): [True: 13, False: 97]
  ------------------
   57|     13|            return {};
   58|     13|         }
   59|    338|         accum = (accum * 10) + d;
   60|       |
   61|    338|         if(accum > 255) {
  ------------------
  |  Branch (61:13): [True: 17, False: 321]
  ------------------
   62|     17|            return {};
   63|     17|         }
   64|       |
   65|    321|         cur_digits++;
   66|    321|         BOTAN_ASSERT_NOMSG(cur_digits <= 3);
  ------------------
  |  |   77|    321|   do {                                                                     \
  |  |   78|    321|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    321|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 321]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    321|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 321]
  |  |  ------------------
  ------------------
   67|  1.95k|      } else {
   68|  1.95k|         return {};
   69|  1.95k|      }
   70|  2.48k|   }
   71|       |
   72|       |   // no trailing digits?
   73|     15|   if(cur_digits == 0) {
  ------------------
  |  Branch (73:7): [True: 0, False: 15]
  ------------------
   74|      0|      return {};
   75|      0|   }
   76|       |
   77|       |   // insufficient # of dots
   78|     15|   if(dots != 3) {
  ------------------
  |  Branch (78:7): [True: 2, False: 13]
  ------------------
   79|      2|      return {};
   80|      2|   }
   81|       |
   82|     13|   ip = (ip << 8) | accum;
   83|       |
   84|     13|   return ip;
   85|     15|}

_ZN5Botan11IPv6AddressC2ENSt3__14spanIKhLm16EEE:
   17|    685|IPv6Address::IPv6Address(std::span<const uint8_t, 16> ip) : m_ip{} {
   18|  11.6k|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (18:22): [True: 10.9k, False: 685]
  ------------------
   19|  10.9k|      m_ip[i] = ip[i];
   20|  10.9k|   }
   21|    685|}
_ZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   24|     57|std::optional<IPv6Address> IPv6Address::from_string(std::string_view str) {
   25|     57|   if(str.empty()) {
  ------------------
  |  Branch (25:7): [True: 0, False: 57]
  ------------------
   26|      0|      return {};
   27|      0|   }
   28|       |
   29|       |   // Parsed hex groups, split by whether they appeared before or after a "::".
   30|       |   // If no "::" appears, only `pre` is populated and must reach exactly 8 groups.
   31|     57|   std::array<uint16_t, 8> pre{};
   32|     57|   std::array<uint16_t, 8> post{};
   33|     57|   size_t pre_count = 0;
   34|     57|   size_t post_count = 0;
   35|     57|   bool seen_double_colon = false;
   36|       |
   37|     57|   auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|     57|      if(c >= '0' && c <= '9') {
   39|     57|         return c - '0';
   40|     57|      } else if(c >= 'a' && c <= 'f') {
   41|     57|         return 10 + (c - 'a');
   42|     57|      } else if(c >= 'A' && c <= 'F') {
   43|     57|         return 10 + (c - 'A');
   44|     57|      } else {
   45|     57|         return {};
   46|     57|      }
   47|     57|   };
   48|       |
   49|     57|   size_t idx = 0;
   50|     57|   bool expect_group = true;  // set after any separator, cleared after a group
   51|       |
   52|    154|   while(idx < str.size()) {
  ------------------
  |  Branch (52:10): [True: 140, False: 14]
  ------------------
   53|    140|      if(str[idx] == ':') {
  ------------------
  |  Branch (53:10): [True: 35, False: 105]
  ------------------
   54|     35|         if(idx + 1 < str.size() && str[idx + 1] == ':') {
  ------------------
  |  Branch (54:13): [True: 34, False: 1]
  |  Branch (54:37): [True: 11, False: 23]
  ------------------
   55|     11|            if(seen_double_colon) {
  ------------------
  |  Branch (55:16): [True: 1, False: 10]
  ------------------
   56|      1|               return {};  // at most one "::"
   57|      1|            }
   58|     10|            seen_double_colon = true;
   59|     10|            idx += 2;
   60|     10|            expect_group = (idx < str.size());
   61|     10|            continue;
   62|     11|         }
   63|       |         // single ':' separator between groups, only valid after a group
   64|     24|         if(expect_group) {
  ------------------
  |  Branch (64:13): [True: 1, False: 23]
  ------------------
   65|      1|            return {};
   66|      1|         }
   67|     23|         expect_group = true;
   68|     23|         idx += 1;
   69|     23|         continue;
   70|     24|      }
   71|       |
   72|       |      // Parse a hex group of 1..4 digits
   73|    105|      const size_t group_start = idx;
   74|    105|      uint32_t group = 0;
   75|    105|      size_t hex_chars = 0;
   76|    297|      while(idx < str.size() && hex_chars < 4) {
  ------------------
  |  Branch (76:13): [True: 285, False: 12]
  |  Branch (76:33): [True: 262, False: 23]
  ------------------
   77|    262|         const auto digit = hex_value(str[idx]);
   78|    262|         if(digit.has_value() == false) {
  ------------------
  |  Branch (78:13): [True: 70, False: 192]
  ------------------
   79|     70|            break;
   80|     70|         }
   81|    192|         group = (group << 4) | static_cast<uint32_t>(digit.value());
   82|    192|         idx += 1;
   83|    192|         hex_chars += 1;
   84|    192|      }
   85|    105|      if(hex_chars == 0) {
  ------------------
  |  Branch (85:10): [True: 28, False: 77]
  ------------------
   86|     28|         return {};
   87|     28|      }
   88|       |      // If a 5th hex digit follows, the group is oversized.
   89|     77|      if(hex_chars == 4 && idx < str.size() && hex_value(str[idx]).has_value()) {
  ------------------
  |  Branch (89:10): [True: 28, False: 49]
  |  Branch (89:10): [True: 10, False: 67]
  |  Branch (89:28): [True: 23, False: 5]
  |  Branch (89:48): [True: 10, False: 13]
  ------------------
   90|     10|         return {};
   91|     10|      }
   92|       |
   93|       |      /*
   94|       |      RFC 4291 2.2 allows the final 32 bits in dotted decimal, eg
   95|       |      "::ffff:1.2.3.4". The dotted quad must consume the remainder of the
   96|       |      input, and accounts for two 16-bit groups.
   97|       |      */
   98|     67|      if(idx < str.size() && str[idx] == '.') {
  ------------------
  |  Branch (98:10): [True: 55, False: 12]
  |  Branch (98:30): [True: 3, False: 52]
  ------------------
   99|      3|         const auto ipv4 = IPv4Address::from_string(str.substr(group_start));
  100|      3|         if(!ipv4.has_value()) {
  ------------------
  |  Branch (100:13): [True: 3, False: 0]
  ------------------
  101|      3|            return {};
  102|      3|         }
  103|      0|         const uint32_t v4 = ipv4->address();
  104|      0|         const std::array<uint16_t, 2> v4_groups{static_cast<uint16_t>(v4 >> 16), static_cast<uint16_t>(v4 & 0xFFFF)};
  105|      0|         for(const auto g : v4_groups) {
  ------------------
  |  Branch (105:27): [True: 0, False: 0]
  ------------------
  106|      0|            if(seen_double_colon) {
  ------------------
  |  Branch (106:16): [True: 0, False: 0]
  ------------------
  107|      0|               if(post_count >= 8) {
  ------------------
  |  Branch (107:19): [True: 0, False: 0]
  ------------------
  108|      0|                  return {};
  109|      0|               }
  110|      0|               post[post_count++] = g;
  111|      0|            } else {
  112|      0|               if(pre_count >= 8) {
  ------------------
  |  Branch (112:19): [True: 0, False: 0]
  ------------------
  113|      0|                  return {};
  114|      0|               }
  115|      0|               pre[pre_count++] = g;
  116|      0|            }
  117|      0|         }
  118|      0|         idx = str.size();
  119|      0|         expect_group = false;
  120|      0|         continue;
  121|      0|      }
  122|       |
  123|     64|      if(seen_double_colon) {
  ------------------
  |  Branch (123:10): [True: 6, False: 58]
  ------------------
  124|      6|         if(post_count >= 8) {
  ------------------
  |  Branch (124:13): [True: 0, False: 6]
  ------------------
  125|      0|            return {};
  126|      0|         }
  127|      6|         post[post_count++] = static_cast<uint16_t>(group);
  128|     58|      } else {
  129|     58|         if(pre_count >= 8) {
  ------------------
  |  Branch (129:13): [True: 0, False: 58]
  ------------------
  130|      0|            return {};
  131|      0|         }
  132|     58|         pre[pre_count++] = static_cast<uint16_t>(group);
  133|     58|      }
  134|     64|      expect_group = false;
  135|     64|   }
  136|       |
  137|       |   // Trailing single ':' is invalid
  138|     14|   if(expect_group) {
  ------------------
  |  Branch (138:7): [True: 1, False: 13]
  ------------------
  139|      1|      return {};
  140|      1|   }
  141|       |
  142|     13|   const size_t total_groups = pre_count + post_count;
  143|     13|   if(seen_double_colon) {
  ------------------
  |  Branch (143:7): [True: 6, False: 7]
  ------------------
  144|       |      // "::" has to cover at least one zero group
  145|      6|      if(total_groups > 7) {
  ------------------
  |  Branch (145:10): [True: 0, False: 6]
  ------------------
  146|      0|         return {};
  147|      0|      }
  148|      7|   } else {
  149|      7|      if(total_groups != 8) {
  ------------------
  |  Branch (149:10): [True: 7, False: 0]
  ------------------
  150|      7|         return {};
  151|      7|      }
  152|      7|   }
  153|       |
  154|      6|   std::array<uint8_t, 16> out{};
  155|     12|   for(size_t i = 0; i != pre_count; ++i) {
  ------------------
  |  Branch (155:22): [True: 6, False: 6]
  ------------------
  156|      6|      out[2 * i] = get_byte<0>(pre[i]);
  157|      6|      out[2 * i + 1] = get_byte<1>(pre[i]);
  158|      6|   }
  159|      6|   const size_t gap = 8 - total_groups;
  160|     11|   for(size_t i = 0; i != post_count; ++i) {
  ------------------
  |  Branch (160:22): [True: 5, False: 6]
  ------------------
  161|      5|      const size_t target = pre_count + gap + i;
  162|      5|      out[2 * target] = get_byte<0>(post[i]);
  163|      5|      out[2 * target + 1] = get_byte<1>(post[i]);
  164|      5|   }
  165|      6|   return IPv6Address(out);
  166|     13|}
_ZN5Botan11IPv6Address7netmaskEm:
  169|     35|IPv6Address IPv6Address::netmask(size_t bits) {
  170|     35|   BOTAN_ARG_CHECK(bits <= 128, "IPv6 netmask prefix length must be at most 128");
  ------------------
  |  |   35|     35|   do {                                                          \
  |  |   36|     35|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     35|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 35]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     35|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 35]
  |  |  ------------------
  ------------------
  171|       |
  172|     35|   const size_t full_bytes = bits / 8;
  173|     35|   const size_t leftover = bits % 8;
  174|       |
  175|     35|   std::array<uint8_t, 16> m{};
  176|    303|   for(size_t i = 0; i != full_bytes; ++i) {
  ------------------
  |  Branch (176:22): [True: 268, False: 35]
  ------------------
  177|    268|      m[i] = 0xFF;
  178|    268|   }
  179|       |
  180|     35|   if(leftover > 0) {
  ------------------
  |  Branch (180:7): [True: 16, False: 19]
  ------------------
  181|     16|      m[full_bytes] = static_cast<uint8_t>(0xFF << (8 - leftover));
  182|     16|   }
  183|       |
  184|     35|   return IPv6Address(m);
  185|     35|}
_ZNK5Botan11IPv6AddressanERKS0_:
  257|     12|IPv6Address IPv6Address::operator&(const IPv6Address& other) const {
  258|     12|   std::array<uint8_t, 16> masked{};
  259|    204|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (259:22): [True: 192, False: 12]
  ------------------
  260|    192|      masked[i] = m_ip[i] & other.m_ip[i];
  261|    192|   }
  262|     12|   return IPv6Address(masked);
  263|     12|}
_ZNK5Botan11IPv6Address13prefix_lengthEv:
  265|     23|std::optional<size_t> IPv6Address::prefix_length() const {
  266|       |   // Count leading one bits, stopping at the first byte that isn't fully set.
  267|     23|   size_t leading = 0;
  268|    178|   for(size_t i = 0; i != 16; ++i) {
  ------------------
  |  Branch (268:22): [True: 177, False: 1]
  ------------------
  269|    177|      const size_t hw = (m_ip[i] == 0xFF) ? 8 : std::countl_one(m_ip[i]);
  ------------------
  |  Branch (269:25): [True: 155, False: 22]
  ------------------
  270|    177|      leading += hw;
  271|    177|      if(hw != 8) {
  ------------------
  |  Branch (271:10): [True: 22, False: 155]
  ------------------
  272|     22|         break;
  273|     22|      }
  274|    177|   }
  275|       |
  276|       |   // Verify this is exactly equal to a netmask of that size
  277|     23|   if(*this != netmask(leading)) {
  ------------------
  |  Branch (277:7): [True: 11, False: 12]
  ------------------
  278|     11|      return std::nullopt;
  279|     11|   }
  280|     12|   return leading;
  281|     23|}
_ZN5Botan10IPv6SubnetC2ENS_11IPv6AddressEm:
  297|     12|      m_address(address & IPv6Address::netmask(prefix_length)), m_prefix_length(static_cast<uint8_t>(prefix_length)) {
  298|       |   // IPv6Address::netmask validates prefix_length <= 128, so by this point
  299|       |   // the static_cast is in range.
  300|     12|}
_ZN5Botan10IPv6Subnet21from_address_and_maskENSt3__14spanIKhLm32EEE:
  303|     23|std::optional<IPv6Subnet> IPv6Subnet::from_address_and_mask(std::span<const uint8_t, 32> addr_and_mask) {
  304|     23|   const auto addr = IPv6Address(addr_and_mask.first<16>());
  305|     23|   const auto mask = IPv6Address(addr_and_mask.last<16>());
  306|       |
  307|     23|   if(const auto plen = mask.prefix_length()) {
  ------------------
  |  Branch (307:18): [True: 12, False: 11]
  ------------------
  308|     12|      return IPv6Subnet(addr, *plen);
  309|     12|   } else {
  310|     11|      return {};
  311|     11|   }
  312|     23|}
ipv6_address.cpp:_ZZN5Botan11IPv6Address11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEENK3$_0clEc:
   37|    285|   auto hex_value = [](char c) -> std::optional<uint8_t> {
   38|    285|      if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (38:10): [True: 249, False: 36]
  |  Branch (38:22): [True: 72, False: 177]
  ------------------
   39|     72|         return c - '0';
   40|    213|      } else if(c >= 'a' && c <= 'f') {
  ------------------
  |  Branch (40:17): [True: 81, False: 132]
  |  Branch (40:29): [True: 71, False: 10]
  ------------------
   41|     71|         return 10 + (c - 'a');
   42|    142|      } else if(c >= 'A' && c <= 'F') {
  ------------------
  |  Branch (42:17): [True: 74, False: 68]
  |  Branch (42:29): [True: 59, False: 15]
  ------------------
   43|     59|         return 10 + (c - 'A');
   44|     83|      } else {
   45|     83|         return {};
   46|     83|      }
   47|    285|   };

_ZN5Botan19secure_scrub_memoryEPvm:
   25|   771k|void secure_scrub_memory(void* ptr, size_t n) {
   26|   771k|   return secure_zeroize_buffer(ptr, n);
   27|   771k|}
_ZN5Botan21secure_zeroize_bufferEPvm:
   29|   773k|void secure_zeroize_buffer(void* ptr, size_t n) {
   30|   773k|   if(n == 0) {
  ------------------
  |  Branch (30:7): [True: 396k, False: 377k]
  ------------------
   31|   396k|      return;
   32|   396k|   }
   33|       |
   34|       |#if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY)
   35|       |   ::RtlSecureZeroMemory(ptr, n);
   36|       |
   37|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_BZERO)
   38|   377k|   ::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|   377k|}

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

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

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

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

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

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

_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE4EEC2ENSt3__14spanIKhLm18446744073709551615EEE:
 2189|  1.40k|IPAddressBlocks::IPAddress<V>::IPAddress(std::span<const uint8_t> v) {
 2190|  1.40k|   if(v.size() != Length) {
  ------------------
  |  Branch (2190:7): [True: 0, False: 1.40k]
  ------------------
 2191|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 2192|      0|   }
 2193|       |
 2194|  7.01k|   for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (2194:22): [True: 5.60k, False: 1.40k]
  ------------------
 2195|  5.60k|      m_value[i] = v[i];
 2196|  5.60k|   }
 2197|  1.40k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks9IPAddressILNS1_7VersionE16EEC2ENSt3__14spanIKhLm18446744073709551615EEE:
 2189|  1.93k|IPAddressBlocks::IPAddress<V>::IPAddress(std::span<const uint8_t> v) {
 2190|  1.93k|   if(v.size() != Length) {
  ------------------
  |  Branch (2190:7): [True: 0, False: 1.93k]
  ------------------
 2191|      0|      throw Decoding_Error("number of bytes does not match IP version used");
 2192|      0|   }
 2193|       |
 2194|  32.9k|   for(size_t i = 0; i < Length; i++) {
  ------------------
  |  Branch (2194:22): [True: 30.9k, False: 1.93k]
  ------------------
 2195|  30.9k|      m_value[i] = v[i];
 2196|  30.9k|   }
 2197|  1.93k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 2116|    799|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 2117|    799|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2118|       |
 2119|       |   // this can either be a prefix or a single address
 2120|    799|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (2120:7): [True: 655, False: 144]
  ------------------
 2121|       |      // construct a min and a max address from the prefix
 2122|       |
 2123|    655|      ASN1_BitString prefix;
 2124|    655|      from.decode_bitstring(prefix);
 2125|       |
 2126|       |      // min address gets filled with 0's
 2127|    655|      m_min = decode_single_address(prefix, true);
 2128|       |      // max address with 1's
 2129|    655|      m_max = decode_single_address(prefix, false);
 2130|    655|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2130:14): [True: 91, False: 53]
  ------------------
 2131|       |      // this is a range
 2132|       |
 2133|     91|      ASN1_BitString addr_min;
 2134|     91|      ASN1_BitString addr_max;
 2135|       |
 2136|     91|      from.start_sequence().decode_bitstring(addr_min).decode_bitstring(addr_max).end_cons();
 2137|       |
 2138|     91|      m_min = decode_single_address(addr_min, true);
 2139|     91|      m_max = decode_single_address(addr_max, false);
 2140|       |
 2141|     91|      if(m_min > m_max) {
  ------------------
  |  Branch (2141:10): [True: 11, False: 80]
  ------------------
 2142|     11|         throw Decoding_Error("IP address ranges must be sorted.");
 2143|     11|      }
 2144|     91|   } else {
 2145|     53|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 2146|     53|   }
 2147|    799|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE4EE21decode_single_addressERKNS_14ASN1_BitStringEb:
 2151|  1.40k|                                                                                          bool min) {
 2152|  1.40k|   const size_t version_octets = static_cast<size_t>(V);
 2153|       |
 2154|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 2155|       |
 2156|  1.40k|   if(decoded.bytes().size() > version_octets) {
  ------------------
  |  Branch (2156:7): [True: 5, False: 1.40k]
  ------------------
 2157|      5|      throw Decoding_Error(fmt("IP address range entries must have a length between 0 and {} bytes.", version_octets));
 2158|      5|   }
 2159|       |
 2160|  1.40k|   const uint8_t unused = static_cast<uint8_t>(decoded.unused_bits());
 2161|  1.40k|   const uint8_t discarded_octets = version_octets - static_cast<uint8_t>(decoded.bytes().size());
 2162|       |
 2163|  1.40k|   std::vector<uint8_t> address(decoded.bytes().begin(), decoded.bytes().end());
 2164|       |
 2165|  1.40k|   if(address.empty() && unused != 0) {
  ------------------
  |  Branch (2165:7): [True: 10, False: 1.39k]
  |  Branch (2165:26): [True: 0, False: 10]
  ------------------
 2166|      0|      throw Decoding_Error("IP address range entry specified unused bits, but did not provide any octets.");
 2167|      0|   }
 2168|       |
 2169|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 2170|  1.40k|   const uint8_t fill_discarded = min ? 0 : 0xff;
  ------------------
  |  Branch (2170:35): [True: 701, False: 701]
  ------------------
 2171|  2.62k|   for(size_t i = 0; i < discarded_octets; i++) {
  ------------------
  |  Branch (2171:22): [True: 1.22k, False: 1.40k]
  ------------------
 2172|  1.22k|      address.push_back(fill_discarded);
 2173|  1.22k|   }
 2174|       |
 2175|       |   // for min addresses they should already be 0, but we set them to zero regardless
 2176|       |   // for max addresses this turns the unused bits to 1
 2177|  4.49k|   for(size_t i = 0; i < unused; i++) {
  ------------------
  |  Branch (2177:22): [True: 3.09k, False: 1.40k]
  ------------------
 2178|  3.09k|      if(min) {
  ------------------
  |  Branch (2178:10): [True: 1.49k, False: 1.60k]
  ------------------
 2179|  1.49k|         address[version_octets - 1 - discarded_octets] &= ~(1 << i);
 2180|  1.60k|      } else {
 2181|  1.60k|         address[version_octets - 1 - discarded_octets] |= (1 << i);
 2182|  1.60k|      }
 2183|  3.09k|   }
 2184|       |
 2185|  1.40k|   return IPAddressBlocks::IPAddress<V>(address);
 2186|  1.40k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 2116|  1.08k|void IPAddressBlocks::IPAddressOrRange<V>::decode_from(Botan::BER_Decoder& from) {
 2117|  1.08k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2118|       |
 2119|       |   // this can either be a prefix or a single address
 2120|  1.08k|   if(next_tag == ASN1_Type::BitString) {
  ------------------
  |  Branch (2120:7): [True: 977, False: 106]
  ------------------
 2121|       |      // construct a min and a max address from the prefix
 2122|       |
 2123|    977|      ASN1_BitString prefix;
 2124|    977|      from.decode_bitstring(prefix);
 2125|       |
 2126|       |      // min address gets filled with 0's
 2127|    977|      m_min = decode_single_address(prefix, true);
 2128|       |      // max address with 1's
 2129|    977|      m_max = decode_single_address(prefix, false);
 2130|    977|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2130:14): [True: 40, False: 66]
  ------------------
 2131|       |      // this is a range
 2132|       |
 2133|     40|      ASN1_BitString addr_min;
 2134|     40|      ASN1_BitString addr_max;
 2135|       |
 2136|     40|      from.start_sequence().decode_bitstring(addr_min).decode_bitstring(addr_max).end_cons();
 2137|       |
 2138|     40|      m_min = decode_single_address(addr_min, true);
 2139|     40|      m_max = decode_single_address(addr_max, false);
 2140|       |
 2141|     40|      if(m_min > m_max) {
  ------------------
  |  Branch (2141:10): [True: 12, False: 28]
  ------------------
 2142|     12|         throw Decoding_Error("IP address ranges must be sorted.");
 2143|     12|      }
 2144|     66|   } else {
 2145|     66|      throw Decoding_Error(fmt("Unexpected type for IPAddressOrRange {}", static_cast<uint32_t>(next_tag)));
 2146|     66|   }
 2147|  1.08k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks16IPAddressOrRangeILNS1_7VersionE16EE21decode_single_addressERKNS_14ASN1_BitStringEb:
 2151|  1.94k|                                                                                          bool min) {
 2152|  1.94k|   const size_t version_octets = static_cast<size_t>(V);
 2153|       |
 2154|       |   // decode a single address according to https://datatracker.ietf.org/doc/html/rfc3779#section-2.1.1 and following
 2155|       |
 2156|  1.94k|   if(decoded.bytes().size() > version_octets) {
  ------------------
  |  Branch (2156:7): [True: 7, False: 1.93k]
  ------------------
 2157|      7|      throw Decoding_Error(fmt("IP address range entries must have a length between 0 and {} bytes.", version_octets));
 2158|      7|   }
 2159|       |
 2160|  1.93k|   const uint8_t unused = static_cast<uint8_t>(decoded.unused_bits());
 2161|  1.93k|   const uint8_t discarded_octets = version_octets - static_cast<uint8_t>(decoded.bytes().size());
 2162|       |
 2163|  1.93k|   std::vector<uint8_t> address(decoded.bytes().begin(), decoded.bytes().end());
 2164|       |
 2165|  1.93k|   if(address.empty() && unused != 0) {
  ------------------
  |  Branch (2165:7): [True: 6, False: 1.93k]
  |  Branch (2165:26): [True: 0, False: 6]
  ------------------
 2166|      0|      throw Decoding_Error("IP address range entry specified unused bits, but did not provide any octets.");
 2167|      0|   }
 2168|       |
 2169|       |   // pad to version length with 0's for min addresses, 255's (0xff) for max addresses
 2170|  1.93k|   const uint8_t fill_discarded = min ? 0 : 0xff;
  ------------------
  |  Branch (2170:35): [True: 968, False: 968]
  ------------------
 2171|  24.8k|   for(size_t i = 0; i < discarded_octets; i++) {
  ------------------
  |  Branch (2171:22): [True: 22.9k, False: 1.93k]
  ------------------
 2172|  22.9k|      address.push_back(fill_discarded);
 2173|  22.9k|   }
 2174|       |
 2175|       |   // for min addresses they should already be 0, but we set them to zero regardless
 2176|       |   // for max addresses this turns the unused bits to 1
 2177|  5.63k|   for(size_t i = 0; i < unused; i++) {
  ------------------
  |  Branch (2177:22): [True: 3.70k, False: 1.93k]
  ------------------
 2178|  3.70k|      if(min) {
  ------------------
  |  Branch (2178:10): [True: 1.83k, False: 1.86k]
  ------------------
 2179|  1.83k|         address[version_octets - 1 - discarded_octets] &= ~(1 << i);
 2180|  1.86k|      } else {
 2181|  1.86k|         address[version_octets - 1 - discarded_octets] |= (1 << i);
 2182|  1.86k|      }
 2183|  3.70k|   }
 2184|       |
 2185|  1.93k|   return IPAddressBlocks::IPAddress<V>(address);
 2186|  1.93k|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE4EE11decode_fromERNS_11BER_DecoderE:
 2001|    309|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 2002|    309|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2003|       |
 2004|    309|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2004:7): [True: 4, False: 305]
  ------------------
 2005|      4|      from.decode_null();
 2006|      4|      m_ip_addr_ranges = std::nullopt;
 2007|    305|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2007:14): [True: 260, False: 45]
  ------------------
 2008|    260|      std::vector<IPAddressOrRange<V>> ip_ranges;
 2009|    260|      from.decode_list(ip_ranges);
 2010|    260|      m_ip_addr_ranges = sort_and_merge_ranges<IPAddressOrRange<V>>(ip_ranges);
 2011|    260|   } else {
 2012|     45|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 2013|     45|   }
 2014|    309|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressChoiceILNS1_7VersionE16EE11decode_fromERNS_11BER_DecoderE:
 2001|    357|void IPAddressBlocks::IPAddressChoice<V>::decode_from(Botan::BER_Decoder& from) {
 2002|    357|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2003|       |
 2004|    357|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2004:7): [True: 10, False: 347]
  ------------------
 2005|     10|      from.decode_null();
 2006|     10|      m_ip_addr_ranges = std::nullopt;
 2007|    347|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2007:14): [True: 312, False: 35]
  ------------------
 2008|    312|      std::vector<IPAddressOrRange<V>> ip_ranges;
 2009|    312|      from.decode_list(ip_ranges);
 2010|    312|      m_ip_addr_ranges = sort_and_merge_ranges<IPAddressOrRange<V>>(ip_ranges);
 2011|    312|   } else {
 2012|     35|      throw Decoding_Error(fmt("Unexpected type for IPAddressChoice {}", static_cast<uint32_t>(next_tag)));
 2013|     35|   }
 2014|    357|}
_ZN5Botan10Extensions15create_extn_objERKNS_3OIDEbRKNSt3__16vectorIhNS4_9allocatorIhEEEENS4_8optionalINS_17Extension_ContextEEE:
  148|  19.3k|                                                                   std::optional<Extension_Context> context) {
  149|  19.3k|   auto extn = extension_from_oid(oid);
  150|       |
  151|  19.3k|   if(!extn) {
  ------------------
  |  Branch (151:7): [True: 7.05k, False: 12.2k]
  ------------------
  152|       |      // some other unknown extension type
  153|  7.05k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  154|  12.2k|   } else {
  155|  12.2k|      if(context.has_value() && !extn->is_appropriate_context(*context)) {
  ------------------
  |  Branch (155:10): [True: 12.2k, False: 0]
  |  Branch (155:33): [True: 4, False: 12.2k]
  ------------------
  156|      4|         throw Decoding_Error(fmt("Extension {} is not allowed in this context", extn->oid_name()));
  157|      4|      }
  158|       |
  159|  12.2k|      try {
  160|  12.2k|         extn->decode_inner(body);
  161|  12.2k|         return extn;
  162|  12.2k|      } catch(const Exception&) {
  163|       |         // OID was recognized but contents failed to decode
  164|  8.91k|         extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical, /*failed_to_decode=*/true);
  165|  8.91k|      }
  166|  12.2k|   }
  167|       |
  168|       |   // This is always Unknown_Extension:
  169|  15.9k|   extn->decode_inner(body);
  170|  15.9k|   return extn;
  171|  19.3k|}
_ZNK5Botan10Extensions15Extensions_Info3objEv:
  173|  2.42k|const Certificate_Extension& Extensions::Extensions_Info::obj() const {
  174|  2.42k|   BOTAN_ASSERT_NONNULL(m_obj.get());
  ------------------
  |  |  116|  2.42k|   do {                                                                                   \
  |  |  117|  2.42k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.42k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.42k]
  |  |  ------------------
  ------------------
  175|  2.42k|   return *m_obj;
  176|  2.42k|}
_ZNK5Botan10Extensions13extension_setERKNS_3OIDE:
  235|  2.17k|bool Extensions::extension_set(const OID& oid) const {
  236|  2.17k|   return m_extension_info.contains(oid);
  237|  2.17k|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  256|  8.00k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  257|  8.00k|   auto extn = m_extension_info.find(oid);
  258|  8.00k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (258:7): [True: 5.58k, False: 2.42k]
  ------------------
  259|  5.58k|      return nullptr;
  260|  5.58k|   }
  261|       |
  262|  2.42k|   return &extn->second.obj();
  263|  8.00k|}
_ZN5Botan10Extensions11decode_fromERNS_11BER_DecoderENSt3__18optionalINS_17Extension_ContextEEE:
  326|  3.53k|void Extensions::decode_from(BER_Decoder& from_source, std::optional<Extension_Context> context) {
  327|  3.53k|   m_extension_oids.clear();
  328|  3.53k|   m_extension_info.clear();
  329|  3.53k|   m_has_unknown_critical_extension = false;
  330|       |
  331|  3.53k|   BER_Decoder sequence = from_source.start_sequence();
  332|       |
  333|  23.3k|   while(sequence.more_items()) {
  ------------------
  |  Branch (333:10): [True: 20.9k, False: 2.32k]
  ------------------
  334|  20.9k|      OID oid;
  335|  20.9k|      bool critical = false;
  336|  20.9k|      std::vector<uint8_t> bits;
  337|       |
  338|  20.9k|      sequence.start_sequence()
  339|  20.9k|         .decode(oid)
  340|  20.9k|         .decode_optional(critical, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  341|  20.9k|         .decode(bits, ASN1_Type::OctetString)
  342|  20.9k|         .end_cons();
  343|       |
  344|  20.9k|      auto obj = create_extn_obj(oid, critical, bits, context);
  345|       |      // Unknown_Extension is the only Certificate_Extension with an empty oid_name
  346|  20.9k|      if(critical && obj->oid_name().empty()) {
  ------------------
  |  Branch (346:10): [True: 2.58k, False: 18.3k]
  |  Branch (346:10): [True: 1.60k, False: 19.3k]
  |  Branch (346:22): [True: 1.60k, False: 986]
  ------------------
  347|  1.60k|         m_has_unknown_critical_extension = true;
  348|  1.60k|      }
  349|  20.9k|      Extensions_Info info(critical, bits, std::move(obj));
  350|       |
  351|       |      // RFC 5280 4.2: "A certificate MUST NOT include more than one
  352|       |      // instance of a particular extension."
  353|  20.9k|      if(!m_extension_info.emplace(oid, info).second) {
  ------------------
  |  Branch (353:10): [True: 1.20k, False: 19.7k]
  ------------------
  354|  1.20k|         throw Decoding_Error("Duplicate certificate extension encountered");
  355|  1.20k|      }
  356|  19.7k|      m_extension_oids.push_back(oid);
  357|  19.7k|   }
  358|  2.32k|   sequence.verify_end();
  359|  2.32k|}
_ZNK5Botan14Cert_Extension17Basic_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  363|  1.23k|bool Basic_Constraints::is_appropriate_context(Extension_Context context) const {
  364|  1.23k|   return context == Extension_Context::Certificate;
  365|  1.23k|}
_ZNK5Botan14Cert_Extension9Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  367|  1.48k|bool Key_Usage::is_appropriate_context(Extension_Context context) const {
  368|  1.48k|   return context == Extension_Context::Certificate;
  369|  1.48k|}
_ZNK5Botan14Cert_Extension14Subject_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  371|    794|bool Subject_Key_ID::is_appropriate_context(Extension_Context context) const {
  372|    794|   return context == Extension_Context::Certificate;
  373|    794|}
_ZNK5Botan14Cert_Extension16Authority_Key_ID22is_appropriate_contextENS_17Extension_ContextE:
  375|  1.07k|bool Authority_Key_ID::is_appropriate_context(Extension_Context context) const {
  376|  1.07k|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (376:11): [True: 1.07k, False: 0]
  |  Branch (376:56): [True: 0, False: 0]
  ------------------
  377|  1.07k|}
_ZNK5Botan14Cert_Extension24Subject_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  379|  1.08k|bool Subject_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  380|  1.08k|   return context == Extension_Context::Certificate;
  381|  1.08k|}
_ZNK5Botan14Cert_Extension23Issuer_Alternative_Name22is_appropriate_contextENS_17Extension_ContextE:
  383|    507|bool Issuer_Alternative_Name::is_appropriate_context(Extension_Context context) const {
  384|    507|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (384:11): [True: 507, False: 0]
  |  Branch (384:56): [True: 0, False: 0]
  ------------------
  385|    507|}
_ZNK5Botan14Cert_Extension18Extended_Key_Usage22is_appropriate_contextENS_17Extension_ContextE:
  387|    451|bool Extended_Key_Usage::is_appropriate_context(Extension_Context context) const {
  388|    451|   return context == Extension_Context::Certificate;
  389|    451|}
_ZNK5Botan14Cert_Extension16Name_Constraints22is_appropriate_contextENS_17Extension_ContextE:
  391|    412|bool Name_Constraints::is_appropriate_context(Extension_Context context) const {
  392|    412|   return context == Extension_Context::Certificate;
  393|    412|}
_ZNK5Botan14Cert_Extension20Certificate_Policies22is_appropriate_contextENS_17Extension_ContextE:
  395|    975|bool Certificate_Policies::is_appropriate_context(Extension_Context context) const {
  396|    975|   return context == Extension_Context::Certificate;
  397|    975|}
_ZNK5Botan14Cert_Extension28Authority_Information_Access22is_appropriate_contextENS_17Extension_ContextE:
  399|    537|bool Authority_Information_Access::is_appropriate_context(Extension_Context context) const {
  400|    537|   return context == Extension_Context::Certificate || context == Extension_Context::CRL;
  ------------------
  |  Branch (400:11): [True: 537, False: 0]
  |  Branch (400:56): [True: 0, False: 0]
  ------------------
  401|    537|}
_ZNK5Botan14Cert_Extension10CRL_Number22is_appropriate_contextENS_17Extension_ContextE:
  403|      1|bool CRL_Number::is_appropriate_context(Extension_Context context) const {
  404|      1|   return context == Extension_Context::CRL;
  405|      1|}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode22is_appropriate_contextENS_17Extension_ContextE:
  407|      1|bool CRL_ReasonCode::is_appropriate_context(Extension_Context context) const {
  408|       |   // RFC 6960 4.4.5: "All the extensions specified as CRL entry extensions
  409|       |   // -- in Section 5.3 of [RFC5280] -- are also supported as singleExtensions."
  410|      1|   return context == Extension_Context::CRL_Entry || context == Extension_Context::OCSP_Response;
  ------------------
  |  Branch (410:11): [True: 0, False: 1]
  |  Branch (410:54): [True: 0, False: 1]
  ------------------
  411|      1|}
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points22is_appropriate_contextENS_17Extension_ContextE:
  413|  1.39k|bool CRL_Distribution_Points::is_appropriate_context(Extension_Context context) const {
  414|  1.39k|   return context == Extension_Context::Certificate;
  415|  1.39k|}
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point22is_appropriate_contextENS_17Extension_ContextE:
  417|      2|bool CRL_Issuing_Distribution_Point::is_appropriate_context(Extension_Context context) const {
  418|      2|   return context == Extension_Context::CRL;
  419|      2|}
_ZNK5Botan14Cert_Extension21NoRevocationAvailable22is_appropriate_contextENS_17Extension_ContextE:
  425|     18|bool NoRevocationAvailable::is_appropriate_context(Extension_Context context) const {
  426|     18|   return context == Extension_Context::Certificate;
  427|     18|}
_ZNK5Botan14Cert_Extension10TNAuthList22is_appropriate_contextENS_17Extension_ContextE:
  429|    113|bool TNAuthList::is_appropriate_context(Extension_Context context) const {
  430|    113|   return context == Extension_Context::Certificate;
  431|    113|}
_ZNK5Botan14Cert_Extension15IPAddressBlocks22is_appropriate_contextENS_17Extension_ContextE:
  433|    853|bool IPAddressBlocks::is_appropriate_context(Extension_Context context) const {
  434|    853|   return context == Extension_Context::Certificate;
  435|    853|}
_ZNK5Botan14Cert_Extension8ASBlocks22is_appropriate_contextENS_17Extension_ContextE:
  437|  1.33k|bool ASBlocks::is_appropriate_context(Extension_Context context) const {
  438|  1.33k|   return context == Extension_Context::Certificate;
  439|  1.33k|}
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2Ebm:
  446|  1.23k|      Basic_Constraints(is_ca, is_ca ? std::optional<size_t>(path_length_constraint) : std::nullopt) {}
  ------------------
  |  Branch (446:32): [True: 0, False: 1.23k]
  ------------------
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2EbNSt3__18optionalImEE:
  449|  1.23k|      m_is_ca(is_ca), m_path_length_constraint(path_length_constraint) {
  450|  1.23k|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (450:7): [True: 1.23k, False: 0]
  |  Branch (450:19): [True: 0, False: 1.23k]
  ------------------
  451|       |      // RFC 5280 Sec 4.2.1.9 "CAs MUST NOT include the pathLenConstraint field unless the cA boolean is asserted"
  452|      0|      throw Invalid_Argument(
  453|      0|         "Basic_Constraints nonsensical to set a path length constraint for a non-CA basicConstraints");
  454|      0|   }
  455|  1.23k|}
_ZN5Botan14Cert_Extension17Basic_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  486|  1.23k|void Basic_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  487|       |   /*
  488|       |   * RFC 5280 Section 4.2.1.9
  489|       |   *
  490|       |   * BasicConstraints ::= SEQUENCE {
  491|       |   *    cA                      BOOLEAN DEFAULT FALSE,
  492|       |   *    pathLenConstraint       INTEGER (0..MAX) OPTIONAL }
  493|       |   */
  494|  1.23k|   BER_Decoder(in, BER_Decoder::Limits::DER())
  495|  1.23k|      .start_sequence()
  496|  1.23k|      .decode_optional(m_is_ca, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  497|  1.23k|      .decode_optional(m_path_length_constraint, ASN1_Type::Integer, ASN1_Class::Universal)
  498|  1.23k|      .end_cons()
  499|  1.23k|      .verify_end();
  500|       |
  501|       |   /* RFC 5280 Section 4.2.1.9:
  502|       |   *  "CAs MUST NOT include the pathLenConstraint field unless the cA boolean
  503|       |   *  is asserted and the key usage extension asserts the keyCertSign bit" */
  504|  1.23k|   if(!m_is_ca && m_path_length_constraint.has_value()) {
  ------------------
  |  Branch (504:7): [True: 72, False: 1.16k]
  |  Branch (504:19): [True: 5, False: 67]
  ------------------
  505|      5|      throw Decoding_Error("BasicConstraints pathLenConstraint must not be present when cA is FALSE");
  506|      5|   }
  507|  1.23k|}
_ZN5Botan14Cert_Extension9Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  525|  1.48k|void Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  526|       |   /* RFC 5280 Section 4.2.1.3 - KeyUsage ::= BIT STRING */
  527|  1.48k|   uint64_t usage = 0;
  528|  1.48k|   BER_Decoder(in, BER_Decoder::Limits::DER())
  529|  1.48k|      .decode_named_bitstring(usage, 16, ASN1_Type::BitString, ASN1_Class::Universal)
  530|  1.48k|      .verify_end();
  531|       |
  532|       |   /* RFC 5280 Section 4.2.1.3:
  533|       |   *  "When the keyUsage extension appears in a certificate, at least one of
  534|       |   *  the bits MUST be set to 1." */
  535|  1.48k|   if(usage == 0) {
  ------------------
  |  Branch (535:7): [True: 0, False: 1.48k]
  ------------------
  536|      0|      throw Decoding_Error("KeyUsage extension must have at least one bit set");
  537|      0|   }
  538|       |
  539|  1.48k|   m_constraints = Key_Constraints(static_cast<uint32_t>(usage));
  540|  1.48k|}
_ZN5Botan14Cert_Extension14Subject_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  554|    794|void Subject_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  555|       |   /* RFC 5280 Section 4.2.1.2 - SubjectKeyIdentifier ::= KeyIdentifier */
  556|    794|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_key_id, ASN1_Type::OctetString).verify_end();
  557|       |
  558|    794|   if(m_key_id.empty()) {
  ------------------
  |  Branch (558:7): [True: 0, False: 794]
  ------------------
  559|      0|      throw Decoding_Error("SubjectKeyIdentifier must not be empty");
  560|      0|   }
  561|    794|   if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (561:7): [True: 0, False: 794]
  ------------------
  562|      0|      throw Decoding_Error(
  563|      0|         fmt("SubjectKeyIdentifier length {} exceeds limit of {} bytes", m_key_id.size(), MaximumKeyIdentifierLength));
  564|      0|   }
  565|    794|}
_ZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  624|  1.07k|void Authority_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  625|       |   /*
  626|       |   * RFC 5280 Section 4.2.1.1
  627|       |   *
  628|       |   * AuthorityKeyIdentifier ::= SEQUENCE {
  629|       |   *    keyIdentifier             [0] KeyIdentifier           OPTIONAL,
  630|       |   *    authorityCertIssuer       [1] GeneralNames            OPTIONAL,
  631|       |   *    authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
  632|       |   */
  633|  1.07k|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  634|  1.07k|   BER_Decoder seq = ber.start_sequence();
  635|       |
  636|  1.07k|   m_key_id.clear();
  637|  1.07k|   m_authority_cert.reset();
  638|       |
  639|  1.07k|   bool key_id_present = false;
  640|  1.07k|   std::optional<AlternativeName> authority_cert_issuer;
  641|  1.07k|   std::optional<X509_Serial_Number> authority_cert_serial;
  642|       |
  643|  1.07k|   seq.decode_optional_field(0,
  644|  1.07k|                             ASN1_Class::ContextSpecific,
  645|  1.07k|                             [&](BER_Decoder& d) {
  646|  1.07k|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  647|  1.07k|                                key_id_present = true;
  648|  1.07k|                             })
  649|  1.07k|      .decode_optional_field(1,
  650|  1.07k|                             ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  651|  1.07k|                             [&](BER_Decoder& d) {
  652|  1.07k|                                AlternativeName names;
  653|  1.07k|                                d.decode_implicit(names,
  654|  1.07k|                                                  ASN1_Type(1),
  655|  1.07k|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  656|  1.07k|                                                  ASN1_Type::Sequence,
  657|  1.07k|                                                  ASN1_Class::Constructed);
  658|  1.07k|                                authority_cert_issuer = std::move(names);
  659|  1.07k|                             })
  660|  1.07k|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  661|  1.07k|         X509_Serial_Number serial;
  662|  1.07k|         d.decode_implicit(
  663|  1.07k|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  664|  1.07k|         authority_cert_serial = std::move(serial);
  665|  1.07k|      });
  666|       |
  667|  1.07k|   seq.end_cons();
  668|  1.07k|   ber.verify_end();
  669|       |
  670|  1.07k|   if(key_id_present) {
  ------------------
  |  Branch (670:7): [True: 242, False: 837]
  ------------------
  671|    242|      if(m_key_id.empty()) {
  ------------------
  |  Branch (671:10): [True: 0, False: 242]
  ------------------
  672|      0|         throw Decoding_Error("AuthorityKeyIdentifier keyIdentifier must not be empty");
  673|      0|      }
  674|    242|      if(m_key_id.size() > MaximumKeyIdentifierLength) {
  ------------------
  |  Branch (674:10): [True: 1, False: 241]
  ------------------
  675|      1|         throw Decoding_Error(fmt("AuthorityKeyIdentifier keyIdentifier length {} exceeds limit of {} bytes",
  676|      1|                                  m_key_id.size(),
  677|      1|                                  MaximumKeyIdentifierLength));
  678|      1|      }
  679|    242|   }
  680|       |
  681|       |   // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
  682|  1.07k|   if(authority_cert_issuer.has_value() && authority_cert_issuer->is_empty()) {
  ------------------
  |  Branch (682:7): [True: 20, False: 1.05k]
  |  Branch (682:44): [True: 1, False: 19]
  ------------------
  683|      1|      throw Decoding_Error("AuthorityKeyIdentifier authorityCertIssuer must contain at least one GeneralName");
  684|      1|   }
  685|       |
  686|       |   /*
  687|       |   * RFC 5280 Appendix A.2:
  688|       |   *
  689|       |   *    authorityCertIssuer and authorityCertSerialNumber MUST both be
  690|       |   *    present or both be absent
  691|       |   */
  692|  1.07k|   if(authority_cert_issuer.has_value() != authority_cert_serial.has_value()) {
  ------------------
  |  Branch (692:7): [True: 10, False: 1.06k]
  ------------------
  693|     10|      throw Decoding_Error(
  694|     10|         "AuthorityKeyIdentifier authorityCertIssuer and authorityCertSerialNumber must both be present or absent");
  695|     10|   }
  696|       |
  697|  1.06k|   if(authority_cert_issuer.has_value()) {
  ------------------
  |  Branch (697:7): [True: 19, False: 1.04k]
  ------------------
  698|     19|      m_authority_cert =
  699|     19|         Authority_Cert_Identifier{std::move(*authority_cert_issuer), std::move(*authority_cert_serial)};
  700|     19|   }
  701|  1.06k|}
_ZN5Botan14Cert_Extension24Subject_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  724|  1.08k|void Subject_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  725|       |   /* RFC 5280 Section 4.2.1.6 - SubjectAltName ::= GeneralNames
  726|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  727|  1.08k|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  728|  1.08k|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (728:7): [True: 3, False: 1.07k]
  ------------------
  729|      3|      throw Decoding_Error("SubjectAlternativeName extension must contain at least one GeneralName");
  730|      3|   }
  731|  1.08k|}
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  736|    507|void Issuer_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) {
  737|       |   /* RFC 5280 Section 4.2.1.7 - IssuerAltName ::= GeneralNames
  738|       |   *  GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */
  739|    507|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_alt_name).verify_end();
  740|    507|   if(!m_alt_name.has_items()) {
  ------------------
  |  Branch (740:7): [True: 4, False: 503]
  ------------------
  741|      4|      throw Decoding_Error("IssuerAlternativeName extension must contain at least one GeneralName");
  742|      4|   }
  743|    507|}
_ZN5Botan14Cert_Extension18Extended_Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  757|    451|void Extended_Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  758|       |   /* RFC 5280 Section 4.2.1.12 - ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId */
  759|    451|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_oids).verify_end();
  760|    451|   if(m_oids.empty()) {
  ------------------
  |  Branch (760:7): [True: 1, False: 450]
  ------------------
  761|      1|      throw Decoding_Error("ExtendedKeyUsage extension must contain at least one KeyPurposeId");
  762|      1|   }
  763|    451|}
_ZN5Botan14Cert_Extension16Name_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  792|    412|void Name_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  793|       |   /*
  794|       |   * RFC 5280 Section 4.2.1.10
  795|       |   *
  796|       |   * NameConstraints ::= SEQUENCE {
  797|       |   *    permittedSubtrees       [0] GeneralSubtrees OPTIONAL,
  798|       |   *    excludedSubtrees        [1] GeneralSubtrees OPTIONAL }
  799|       |   */
  800|    412|   BER_Decoder ber(in, BER_Decoder::Limits::DER());
  801|    412|   BER_Decoder inner = ber.start_sequence();
  802|       |
  803|    412|   std::vector<GeneralSubtree> permitted;
  804|    412|   if(inner.decode_optional_list(permitted, ASN1_Type(0), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (804:7): [True: 111, False: 301]
  ------------------
  805|    111|      if(permitted.empty()) {
  ------------------
  |  Branch (805:10): [True: 9, False: 102]
  ------------------
  806|      9|         throw Decoding_Error("Empty NameConstraint permitted list");
  807|      9|      }
  808|    111|   }
  809|       |
  810|    403|   std::vector<GeneralSubtree> excluded;
  811|    403|   if(inner.decode_optional_list(excluded, ASN1_Type(1), ASN1_Class::ExplicitContextSpecific)) {
  ------------------
  |  Branch (811:7): [True: 51, False: 352]
  ------------------
  812|     51|      if(excluded.empty()) {
  ------------------
  |  Branch (812:10): [True: 6, False: 45]
  ------------------
  813|      6|         throw Decoding_Error("Empty NameConstraint excluded list");
  814|      6|      }
  815|     51|   }
  816|       |
  817|    397|   inner.end_cons();
  818|    397|   ber.verify_end();
  819|       |
  820|    397|   if(permitted.empty() && excluded.empty()) {
  ------------------
  |  Branch (820:7): [True: 13, False: 384]
  |  Branch (820:28): [True: 1, False: 12]
  ------------------
  821|      1|      throw Decoding_Error("Empty NameConstraint extension");
  822|      1|   }
  823|       |
  824|    396|   m_name_constraints = NameConstraints(std::move(permitted), std::move(excluded));
  825|    396|}
_ZN5Botan14Cert_Extension20Certificate_Policies12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  920|    975|void Certificate_Policies::decode_inner(const std::vector<uint8_t>& in) {
  921|       |   /* RFC 5280 Section 4.2.1.4 - CertificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation */
  922|    975|   std::vector<Policy_Information> policies;
  923|       |
  924|    975|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(policies).verify_end();
  925|    975|   if(policies.empty()) {
  ------------------
  |  Branch (925:7): [True: 4, False: 971]
  ------------------
  926|      4|      throw Decoding_Error("CertificatePolicies extension must contain at least one PolicyInformation");
  927|      4|   }
  928|    971|   m_oids.clear();
  929|    971|   for(const auto& policy : policies) {
  ------------------
  |  Branch (929:27): [True: 414, False: 971]
  ------------------
  930|    414|      m_oids.push_back(policy.oid());
  931|    414|   }
  932|    971|   m_has_duplicate = policy_oids_have_duplicate(m_oids);
  933|    971|}
_ZN5Botan14Cert_Extension28Authority_Information_Access12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1134|    537|void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) {
 1135|       |   /*
 1136|       |   * RFC 5280 Section 4.2.2.1
 1137|       |   *
 1138|       |   * AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription
 1139|       |   * AccessDescription ::= SEQUENCE {
 1140|       |   *    accessMethod          OBJECT IDENTIFIER,
 1141|       |   *    accessLocation        GeneralName }
 1142|       |   */
 1143|    537|   BER_Decoder outer(in, BER_Decoder::Limits::DER());
 1144|    537|   BER_Decoder ber = outer.start_sequence();
 1145|       |
 1146|    537|   const OID ocsp_responder = OID::from_string("PKIX.OCSP");
 1147|    537|   const OID ca_issuer = OID::from_string("PKIX.CertificateAuthorityIssuers");
 1148|       |
 1149|    537|   m_access_descriptions.clear();
 1150|    537|   m_ocsp_responders.clear();
 1151|    537|   m_ca_issuers.clear();
 1152|       |
 1153|  1.17k|   while(ber.more_items()) {
  ------------------
  |  Branch (1153:10): [True: 638, False: 534]
  ------------------
 1154|    638|      OID oid;
 1155|       |
 1156|    638|      BER_Decoder info = ber.start_sequence();
 1157|       |
 1158|    638|      info.decode(oid);
 1159|    638|      const BER_Object name = info.get_next_object();
 1160|       |
 1161|       |      /* RFC 5280 4.2.2.1:
 1162|       |      *    AccessDescription  ::=  SEQUENCE {
 1163|       |      *         accessMethod          OBJECT IDENTIFIER,
 1164|       |      *         accessLocation        GeneralName  }
 1165|       |      */
 1166|    638|      if(!name.is_set()) {
  ------------------
  |  Branch (1166:10): [True: 3, False: 635]
  ------------------
 1167|      3|         throw Decoding_Error("AuthorityInformationAccess AccessDescription missing accessLocation");
 1168|      3|      }
 1169|    635|      validate_general_name_encoding(name.type_tag(), name.get_class(), name.data());
 1170|    635|      info.end_cons();
 1171|       |
 1172|    635|      m_access_descriptions.emplace_back(
 1173|    635|         oid, name.type_tag(), name.get_class(), std::vector<uint8_t>(name.data().begin(), name.data().end()));
 1174|       |
 1175|    635|      if(name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (1175:10): [True: 203, False: 432]
  ------------------
 1176|    203|         if(oid == ocsp_responder) {
  ------------------
  |  Branch (1176:13): [True: 36, False: 167]
  ------------------
 1177|     36|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1177:21): [True: 36, False: 0]
  ------------------
 1178|     36|               m_ocsp_responders.push_back(std::move(*parsed));
 1179|     36|            } else {
 1180|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess OCSP responder");
 1181|      0|            }
 1182|    167|         } else if(oid == ca_issuer) {
  ------------------
  |  Branch (1182:20): [True: 37, False: 130]
  ------------------
 1183|     37|            if(auto parsed = URI::from_string(ASN1::to_string(name))) {
  ------------------
  |  Branch (1183:21): [True: 37, False: 0]
  ------------------
 1184|     37|               m_ca_issuers.push_back(std::move(*parsed));
 1185|     37|            } else {
 1186|      0|               throw Decoding_Error("Invalid URI in AuthorityInformationAccess CA issuers");
 1187|      0|            }
 1188|     37|         }
 1189|    203|      }
 1190|    635|   }
 1191|       |
 1192|    534|   ber.end_cons();
 1193|    534|   outer.verify_end();
 1194|       |
 1195|    534|   if(m_access_descriptions.empty()) {
  ------------------
  |  Branch (1195:7): [True: 0, False: 534]
  ------------------
 1196|      0|      throw Decoding_Error("AuthorityInformationAccess extension must contain at least one AccessDescription");
 1197|      0|   }
 1198|    534|}
_ZN5Botan14Cert_Extension21DistributionPointName11decode_fromERNS_11BER_DecoderE:
 1355|  1.18k|void DistributionPointName::decode_from(BER_Decoder& ber) {
 1356|  1.18k|   const BER_Object& obj = ber.peek_next_object();
 1357|  1.18k|   if(obj.is_a(0, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1357:7): [True: 1.03k, False: 151]
  ------------------
 1358|  1.03k|      AlternativeName full_name;
 1359|  1.03k|      ber.decode_implicit(full_name,
 1360|  1.03k|                          ASN1_Type(0),
 1361|  1.03k|                          ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1362|  1.03k|                          ASN1_Type::Sequence,
 1363|  1.03k|                          ASN1_Class::Constructed);
 1364|       |      // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 1365|  1.03k|      if(!full_name.has_items()) {
  ------------------
  |  Branch (1365:10): [True: 23, False: 1.00k]
  ------------------
 1366|     23|         throw Decoding_Error("DistributionPointName fullName must contain at least one GeneralName");
 1367|     23|      }
 1368|  1.00k|      if(std::ranges::any_of(full_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1368:10): [True: 0, False: 1.00k]
  ------------------
 1369|      0|         throw Decoding_Error("DistributionPointName fullName must not contain an empty directoryName");
 1370|      0|      }
 1371|  1.00k|      m_full_name = std::move(full_name);
 1372|  1.00k|   } else if(obj.is_a(1, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1372:14): [True: 4, False: 147]
  ------------------
 1373|      4|      throw Decoding_Error("nameRelativeToCrlIssuer not supported in DistributionPointName");
 1374|    147|   } else {
 1375|    147|      throw Decoding_Error("DistributionPointName CHOICE is neither fullName nor nameRelativeToCRLIssuer");
 1376|    147|   }
 1377|  1.18k|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1385|  1.39k|void CRL_Distribution_Points::decode_inner(const std::vector<uint8_t>& buf) {
 1386|       |   /*
 1387|       |   * RFC 5280 Section 4.2.1.13
 1388|       |   *
 1389|       |   * CRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint
 1390|       |   */
 1391|  1.39k|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_list(m_distribution_points).verify_end();
 1392|       |
 1393|  1.39k|   if(m_distribution_points.empty()) {
  ------------------
  |  Branch (1393:7): [True: 3, False: 1.39k]
  ------------------
 1394|      3|      throw Decoding_Error("CRLDistributionPoints extension must contain at least one DistributionPoint");
 1395|      3|   }
 1396|       |
 1397|  1.39k|   m_crl_distribution_urls = crl_distribution_point_uris_from_distribution_points(m_distribution_points);
 1398|  1.39k|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderE:
 1447|  1.32k|void CRL_Distribution_Points::Distribution_Point::decode_from(BER_Decoder& ber) {
 1448|       |   /*
 1449|       |   * DistributionPoint ::= SEQUENCE {
 1450|       |   *      distributionPoint       [0]     DistributionPointName OPTIONAL,
 1451|       |   *      reasons                 [1]     ReasonFlags OPTIONAL,
 1452|       |   *      cRLIssuer               [2]     GeneralNames OPTIONAL }
 1453|       |   */
 1454|  1.32k|   BER_Decoder dp = ber.start_sequence();
 1455|       |
 1456|  1.32k|   m_dp_name.reset();
 1457|  1.32k|   m_reasons.reset();
 1458|  1.32k|   m_crl_issuer.reset();
 1459|       |
 1460|       |   // DER: these optional fields appear at most once and in increasing tag
 1461|       |   // order. Decoding them in tag order and then rejecting anything left over
 1462|       |   // (see end_cons below) catches out-of-order, duplicate, and unknown fields.
 1463|  1.32k|   dp.decode_optional_field(0,
 1464|  1.32k|                            ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1465|  1.32k|                            [&](BER_Decoder& d) {
 1466|  1.32k|                               DistributionPointName name;
 1467|  1.32k|                               d.start_context_specific(0).decode(name).verify_end();
 1468|  1.32k|                               m_dp_name = std::move(name);
 1469|  1.32k|                            })
 1470|  1.32k|      .decode_optional_field(
 1471|  1.32k|         1, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_reasons = decode_reason_flags_implicit(d, 1); })
 1472|  1.32k|      .decode_optional_field(2, ASN1_Class::ContextSpecific | ASN1_Class::Constructed, [&](BER_Decoder& d) {
 1473|  1.32k|         AlternativeName crl_issuer;
 1474|  1.32k|         d.decode_implicit(crl_issuer,
 1475|  1.32k|                           ASN1_Type(2),
 1476|  1.32k|                           ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1477|  1.32k|                           ASN1_Type::Sequence,
 1478|  1.32k|                           ASN1_Class::Constructed);
 1479|  1.32k|         m_crl_issuer = std::move(crl_issuer);
 1480|  1.32k|      });
 1481|       |
 1482|  1.32k|   dp.end_cons();
 1483|       |
 1484|       |   // RFC 5280 4.2.1.6: GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 1485|  1.32k|   if(m_crl_issuer.has_value() && m_crl_issuer->is_empty()) {
  ------------------
  |  Branch (1485:7): [True: 2, False: 1.32k]
  |  Branch (1485:35): [True: 1, False: 1]
  ------------------
 1486|      1|      throw Decoding_Error("cRLIssuer GeneralNames must contain at least one GeneralName");
 1487|      1|   }
 1488|       |
 1489|  1.32k|   if(m_crl_issuer.has_value() && !crl_issuer_is_well_formed(*m_crl_issuer)) {
  ------------------
  |  Branch (1489:7): [True: 1, False: 1.32k]
  |  Branch (1489:35): [True: 1, False: 0]
  ------------------
 1490|       |      /* RFC 5280 4.2.1.13: "If present, the cRLIssuer MUST only contain the
 1491|       |      * distinguished name (DN) from the issuer field of the CRL". */
 1492|      1|      throw Decoding_Error("cRLIssuer must contain exactly one non-empty directoryName GeneralName");
 1493|      1|   }
 1494|       |
 1495|  1.32k|   if(!m_dp_name.has_value() && !m_crl_issuer.has_value()) {
  ------------------
  |  Branch (1495:7): [True: 3, False: 1.32k]
  |  Branch (1495:33): [True: 3, False: 0]
  ------------------
 1496|      3|      throw Decoding_Error("DistributionPoint must contain either distributionPoint or cRLIssuer");
 1497|      3|   }
 1498|  1.32k|}
_ZN5Botan14Cert_Extension10TNAuthList5Entry11decode_fromERNS_11BER_DecoderE:
 1629|    132|void TNAuthList::Entry::decode_from(class BER_Decoder& ber) {
 1630|    132|   const BER_Object obj = ber.get_next_object();
 1631|       |
 1632|    132|   if(obj.get_class() != (ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (1632:7): [True: 14, False: 118]
  ------------------
 1633|     14|      throw Decoding_Error(fmt("Unexpected TNEntry class tag {}", static_cast<uint32_t>(obj.get_class())));
 1634|     14|   }
 1635|       |
 1636|    118|   const uint32_t type_tag = static_cast<uint32_t>(obj.type_tag());
 1637|       |
 1638|    118|   if(type_tag == ServiceProviderCode) {
  ------------------
  |  Branch (1638:7): [True: 33, False: 85]
  ------------------
 1639|     33|      m_type = ServiceProviderCode;
 1640|     33|      ASN1_String spc_string;
 1641|     33|      BER_Decoder(obj, ber.limits()).decode(spc_string).verify_end();
 1642|     33|      m_data = std::move(spc_string);
 1643|     85|   } else if(type_tag == TelephoneNumberRange) {
  ------------------
  |  Branch (1643:14): [True: 62, False: 23]
  ------------------
 1644|     62|      m_type = TelephoneNumberRange;
 1645|     62|      m_data = RangeContainer();
 1646|     62|      auto& range_items = std::get<RangeContainer>(m_data);
 1647|     62|      BER_Decoder outer(obj, ber.limits());
 1648|     62|      BER_Decoder list = outer.start_sequence();
 1649|    126|      while(list.more_items()) {
  ------------------
  |  Branch (1649:13): [True: 85, False: 41]
  ------------------
 1650|     85|         TelephoneNumberRangeData entry;
 1651|       |
 1652|     85|         list.decode(entry.start);
 1653|     85|         if(!is_valid_telephone_number(entry.start)) {
  ------------------
  |  Branch (1653:13): [True: 20, False: 65]
  ------------------
 1654|     20|            throw Decoding_Error(fmt("Invalid TelephoneNumberRange start {}", entry.start.value()));
 1655|     20|         }
 1656|       |
 1657|     65|         list.decode(entry.count);
 1658|     65|         if(entry.count < 2) {
  ------------------
  |  Branch (1658:13): [True: 1, False: 64]
  ------------------
 1659|      1|            throw Decoding_Error(fmt("Invalid TelephoneNumberRange count {}", entry.count));
 1660|      1|         }
 1661|       |
 1662|     64|         range_items.emplace_back(std::move(entry));
 1663|     64|      }
 1664|     41|      list.end_cons();
 1665|     41|      outer.verify_end();
 1666|       |
 1667|     41|      if(range_items.empty()) {
  ------------------
  |  Branch (1667:10): [True: 3, False: 38]
  ------------------
 1668|      3|         throw Decoding_Error("TelephoneNumberRange is empty");
 1669|      3|      }
 1670|     41|   } else if(type_tag == TelephoneNumber) {
  ------------------
  |  Branch (1670:14): [True: 15, False: 8]
  ------------------
 1671|     15|      m_type = TelephoneNumber;
 1672|     15|      ASN1_String one_string;
 1673|     15|      BER_Decoder(obj, ber.limits()).decode(one_string).verify_end();
 1674|     15|      if(!is_valid_telephone_number(one_string)) {
  ------------------
  |  Branch (1674:10): [True: 7, False: 8]
  ------------------
 1675|      7|         throw Decoding_Error(fmt("Invalid TelephoneNumber {}", one_string.value()));
 1676|      7|      }
 1677|      8|      m_data = std::move(one_string);
 1678|      8|   } else {
 1679|      8|      throw Decoding_Error(fmt("Unexpected TNEntry type code {}", type_tag));
 1680|     79|   };
 1681|     79|}
_ZN5Botan14Cert_Extension10TNAuthList12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1687|    113|void TNAuthList::decode_inner(const std::vector<uint8_t>& in) {
 1688|       |   /* RFC 8226 Section 9 - TNAuthorizationList ::= SEQUENCE SIZE (1..MAX) OF TNEntry */
 1689|    113|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_tn_entries).verify_end();
 1690|    113|   if(m_tn_entries.empty()) {
  ------------------
  |  Branch (1690:7): [True: 0, False: 113]
  ------------------
 1691|      0|      throw Decoding_Error("TNAuthorizationList is empty");
 1692|      0|   }
 1693|    113|}
_ZN5Botan14Cert_Extension15IPAddressBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 1716|    853|void IPAddressBlocks::decode_inner(const std::vector<uint8_t>& in) {
 1717|       |   /* RFC 3779 Section 2.2.3.1 - IPAddrBlocks ::= SEQUENCE OF IPAddressFamily */
 1718|    853|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode_list(m_ip_addr_blocks).verify_end();
 1719|    853|   sort_and_merge();
 1720|    853|}
_ZN5Botan14Cert_Extension15IPAddressBlocks15IPAddressFamily11decode_fromERNS_11BER_DecoderE:
 1741|    901|void IPAddressBlocks::IPAddressFamily::decode_from(Botan::BER_Decoder& from) {
 1742|    901|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 1743|    901|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (1743:7): [True: 53, False: 848]
  ------------------
 1744|     53|      throw Decoding_Error(fmt("Unexpected type for IPAddressFamily {}", static_cast<uint32_t>(next_tag)));
 1745|     53|   }
 1746|       |
 1747|    848|   BER_Decoder seq_dec = from.start_sequence();
 1748|       |
 1749|    848|   std::vector<uint8_t> addr_family;
 1750|    848|   seq_dec.decode(addr_family, ASN1_Type::OctetString);
 1751|    848|   const size_t addr_family_length = addr_family.size();
 1752|       |
 1753|    848|   if(addr_family_length != 2 && addr_family_length != 3) {
  ------------------
  |  Branch (1753:7): [True: 715, False: 133]
  |  Branch (1753:34): [True: 14, False: 701]
  ------------------
 1754|     14|      throw Decoding_Error("(S)AFI can only contain 2 or 3 bytes");
 1755|     14|   }
 1756|       |
 1757|    834|   m_afi = (addr_family[0] << 8) | addr_family[1];
 1758|       |
 1759|    834|   if(addr_family_length == 3) {
  ------------------
  |  Branch (1759:7): [True: 701, False: 133]
  ------------------
 1760|    701|      m_safi = addr_family[2];
 1761|    701|   }
 1762|       |
 1763|    834|   if(m_afi == 1) {
  ------------------
  |  Branch (1763:7): [True: 309, False: 525]
  ------------------
 1764|    309|      IPAddressChoice<Version::IPv4> addr_choice;
 1765|    309|      seq_dec.decode(addr_choice);
 1766|    309|      m_ip_addr_choice = addr_choice;
 1767|    525|   } else if(m_afi == 2) {
  ------------------
  |  Branch (1767:14): [True: 357, False: 168]
  ------------------
 1768|    357|      IPAddressChoice<Version::IPv6> addr_choice;
 1769|    357|      seq_dec.decode(addr_choice);
 1770|    357|      m_ip_addr_choice = addr_choice;
 1771|    357|   } else {
 1772|    168|      throw Decoding_Error("Only AFI IPv4 and IPv6 are supported.");
 1773|    168|   }
 1774|       |
 1775|    666|   seq_dec.end_cons();
 1776|    666|}
_ZN5Botan14Cert_Extension8ASBlocks12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2294|  1.33k|void ASBlocks::decode_inner(const std::vector<uint8_t>& in) {
 2295|       |   /* RFC 3779 Section 3.2.3.1 - ASIdentifiers ::= SEQUENCE { ... } */
 2296|  1.33k|   BER_Decoder(in, BER_Decoder::Limits::DER()).decode(m_as_identifiers).verify_end();
 2297|  1.33k|}
_ZN5Botan14Cert_Extension8ASBlocks13ASIdentifiers11decode_fromERNS_11BER_DecoderE:
 2332|  1.33k|void ASBlocks::ASIdentifiers::decode_from(Botan::BER_Decoder& from) {
 2333|  1.33k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2334|  1.33k|   if(next_tag != ASN1_Type::Sequence) {
  ------------------
  |  Branch (2334:7): [True: 86, False: 1.25k]
  ------------------
 2335|     86|      throw Decoding_Error(fmt("Unexpected type for ASIdentifiers {}", static_cast<uint32_t>(next_tag)));
 2336|     86|   }
 2337|       |
 2338|  1.25k|   BER_Decoder seq_dec = from.start_sequence();
 2339|       |
 2340|  1.25k|   const BER_Object elem_obj = seq_dec.get_next_object();
 2341|  1.25k|   const uint32_t elem_type_tag = static_cast<uint32_t>(elem_obj.type_tag());
 2342|       |
 2343|       |   // asnum, potentially followed by an rdi
 2344|  1.25k|   if(elem_type_tag == 0) {
  ------------------
  |  Branch (2344:7): [True: 819, False: 432]
  ------------------
 2345|    819|      BER_Decoder as_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 2346|    819|      ASIdentifierChoice asnum;
 2347|    819|      as_obj_ber.decode(asnum).verify_end();
 2348|    819|      m_asnum = asnum;
 2349|       |
 2350|    819|      const BER_Object rdi_obj = seq_dec.get_next_object();
 2351|    819|      const ASN1_Type rdi_type_tag = rdi_obj.type_tag();
 2352|    819|      if(static_cast<uint32_t>(rdi_type_tag) == 1) {
  ------------------
  |  Branch (2352:10): [True: 18, False: 801]
  ------------------
 2353|     18|         BER_Decoder rdi_obj_ber = BER_Decoder(rdi_obj, seq_dec.limits());
 2354|     18|         ASIdentifierChoice rdi;
 2355|     18|         rdi_obj_ber.decode(rdi).verify_end();
 2356|     18|         m_rdi = rdi;
 2357|    801|      } else if(rdi_type_tag != ASN1_Type::NoObject) {
  ------------------
  |  Branch (2357:17): [True: 58, False: 743]
  ------------------
 2358|     58|         throw Decoding_Error(fmt("Unexpected type for ASIdentifiers rdi: {}", static_cast<uint32_t>(rdi_type_tag)));
 2359|     58|      }
 2360|    819|   }
 2361|       |
 2362|       |   // just an rdi
 2363|  1.19k|   if(elem_type_tag == 1) {
  ------------------
  |  Branch (2363:7): [True: 348, False: 845]
  ------------------
 2364|    348|      BER_Decoder rdi_obj_ber = BER_Decoder(elem_obj, seq_dec.limits());
 2365|    348|      ASIdentifierChoice rdi;
 2366|    348|      rdi_obj_ber.decode(rdi).verify_end();
 2367|    348|      m_rdi = rdi;
 2368|    348|      const BER_Object end = seq_dec.get_next_object();
 2369|    348|      const ASN1_Type end_type_tag = end.type_tag();
 2370|    348|      if(end_type_tag != ASN1_Type::NoObject) {
  ------------------
  |  Branch (2370:10): [True: 67, False: 281]
  ------------------
 2371|     67|         throw Decoding_Error(
 2372|     67|            fmt("Unexpected element with type {} in ASIdentifiers", static_cast<uint32_t>(end_type_tag)));
 2373|     67|      }
 2374|    348|   }
 2375|       |
 2376|  1.12k|   seq_dec.end_cons();
 2377|       |
 2378|  1.12k|   if(!m_asnum.has_value() && !m_rdi.has_value()) {
  ------------------
  |  Branch (2378:7): [True: 48, False: 1.07k]
  |  Branch (2378:31): [True: 45, False: 3]
  ------------------
 2379|     45|      throw Decoding_Error("Invalid encoding for ASIdentifiers");
 2380|     45|   }
 2381|  1.12k|}
_ZN5Botan14Cert_Extension8ASBlocks18ASIdentifierChoice11decode_fromERNS_11BER_DecoderE:
 2395|  1.18k|void ASBlocks::ASIdentifierChoice::decode_from(Botan::BER_Decoder& from) {
 2396|  1.18k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2397|       |
 2398|  1.18k|   if(next_tag == ASN1_Type::Null) {
  ------------------
  |  Branch (2398:7): [True: 17, False: 1.16k]
  ------------------
 2399|     17|      from.decode_null();
 2400|     17|      m_as_ranges = std::nullopt;
 2401|  1.16k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2401:14): [True: 1.07k, False: 95]
  ------------------
 2402|  1.07k|      std::vector<ASIdOrRange> as_ranges;
 2403|  1.07k|      from.decode_list(as_ranges);
 2404|       |
 2405|  1.07k|      m_as_ranges = sort_and_merge_ranges<ASIdOrRange>(as_ranges);
 2406|  1.07k|   } else {
 2407|     95|      throw Decoding_Error(fmt("Unexpected type for ASIdentifierChoice {}", static_cast<uint32_t>(next_tag)));
 2408|     95|   }
 2409|  1.18k|}
_ZN5Botan14Cert_Extension8ASBlocks11ASIdOrRange11decode_fromERNS_11BER_DecoderE:
 2422|  4.02k|void ASBlocks::ASIdOrRange::decode_from(BER_Decoder& from) {
 2423|  4.02k|   const ASN1_Type next_tag = from.peek_next_object().type_tag();
 2424|       |
 2425|  4.02k|   size_t min = 0;
 2426|  4.02k|   size_t max = 0;
 2427|       |
 2428|  4.02k|   if(next_tag == ASN1_Type::Integer) {
  ------------------
  |  Branch (2428:7): [True: 3.64k, False: 382]
  ------------------
 2429|  3.64k|      from.decode(min);
 2430|  3.64k|      m_min = checked_cast_to<asnum_t>(min);
 2431|  3.64k|      m_max = m_min;
 2432|  3.64k|   } else if(next_tag == ASN1_Type::Sequence) {
  ------------------
  |  Branch (2432:14): [True: 194, False: 188]
  ------------------
 2433|    194|      from.start_sequence().decode(min).decode(max).end_cons();
 2434|    194|      m_min = checked_cast_to<asnum_t>(min);
 2435|    194|      m_max = checked_cast_to<asnum_t>(max);
 2436|    194|      if(m_min >= m_max) {
  ------------------
  |  Branch (2436:10): [True: 27, False: 167]
  ------------------
 2437|     27|         throw Decoding_Error("ASIdOrRange has min greater than max");
 2438|     27|      }
 2439|    194|   } else {
 2440|    188|      throw Decoding_Error(fmt("Unexpected type for ASIdOrRange {}", static_cast<uint32_t>(next_tag)));
 2441|    188|   }
 2442|  4.02k|}
_ZN5Botan14Cert_Extension21NoRevocationAvailable12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2544|     18|void NoRevocationAvailable::decode_inner(const std::vector<uint8_t>& buf) {
 2545|       |   // RFC 9608 Section 2, it's just a NULL
 2546|     18|   BER_Decoder(buf, BER_Decoder::Limits::DER()).decode_null().verify_end();
 2547|     18|}
_ZN5Botan14Cert_Extension17Unknown_Extension12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
 2612|  15.9k|void Unknown_Extension::decode_inner(const std::vector<uint8_t>& bytes) {
 2613|       |   // Just treat as an opaque blob at this level
 2614|  15.9k|   m_bytes = bytes;
 2615|  15.9k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_118extension_from_oidERKNS_3OIDE:
   55|  19.3k|std::unique_ptr<Certificate_Extension> extension_from_oid(const OID& oid) {
   56|  19.3k|   if(auto iso_ext = is_sub_element_of(oid, {2, 5, 29})) {
  ------------------
  |  Branch (56:12): [True: 10.8k, False: 8.52k]
  ------------------
   57|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   58|  10.8k|      switch(*iso_ext) {
  ------------------
  |  Branch (58:14): [True: 9.43k, False: 1.37k]
  ------------------
   59|    794|         case 14:
  ------------------
  |  Branch (59:10): [True: 794, False: 10.0k]
  ------------------
   60|    794|            return make_extension<Cert_Extension::Subject_Key_ID>(oid);
   61|  1.48k|         case 15:
  ------------------
  |  Branch (61:10): [True: 1.48k, False: 9.32k]
  ------------------
   62|  1.48k|            return make_extension<Cert_Extension::Key_Usage>(oid);
   63|  1.08k|         case 17:
  ------------------
  |  Branch (63:10): [True: 1.08k, False: 9.72k]
  ------------------
   64|  1.08k|            return make_extension<Cert_Extension::Subject_Alternative_Name>(oid);
   65|    507|         case 18:
  ------------------
  |  Branch (65:10): [True: 507, False: 10.3k]
  ------------------
   66|    507|            return make_extension<Cert_Extension::Issuer_Alternative_Name>(oid);
   67|  1.23k|         case 19:
  ------------------
  |  Branch (67:10): [True: 1.23k, False: 9.57k]
  ------------------
   68|  1.23k|            return make_extension<Cert_Extension::Basic_Constraints>(oid);
   69|      1|         case 20:
  ------------------
  |  Branch (69:10): [True: 1, False: 10.8k]
  ------------------
   70|      1|            return make_extension<Cert_Extension::CRL_Number>(oid);
   71|      1|         case 21:
  ------------------
  |  Branch (71:10): [True: 1, False: 10.8k]
  ------------------
   72|      1|            return make_extension<Cert_Extension::CRL_ReasonCode>(oid);
   73|      2|         case 28:
  ------------------
  |  Branch (73:10): [True: 2, False: 10.8k]
  ------------------
   74|      2|            return make_extension<Cert_Extension::CRL_Issuing_Distribution_Point>(oid);
   75|    412|         case 30:
  ------------------
  |  Branch (75:10): [True: 412, False: 10.3k]
  ------------------
   76|    412|            return make_extension<Cert_Extension::Name_Constraints>(oid);
   77|  1.39k|         case 31:
  ------------------
  |  Branch (77:10): [True: 1.39k, False: 9.40k]
  ------------------
   78|  1.39k|            return make_extension<Cert_Extension::CRL_Distribution_Points>(oid);
   79|    975|         case 32:
  ------------------
  |  Branch (79:10): [True: 975, False: 9.83k]
  ------------------
   80|    975|            return make_extension<Cert_Extension::Certificate_Policies>(oid);
   81|  1.07k|         case 35:
  ------------------
  |  Branch (81:10): [True: 1.07k, False: 9.72k]
  ------------------
   82|  1.07k|            return make_extension<Cert_Extension::Authority_Key_ID>(oid);
   83|    451|         case 37:
  ------------------
  |  Branch (83:10): [True: 451, False: 10.3k]
  ------------------
   84|    451|            return make_extension<Cert_Extension::Extended_Key_Usage>(oid);
   85|     18|         case 56:
  ------------------
  |  Branch (85:10): [True: 18, False: 10.7k]
  ------------------
   86|     18|            return make_extension<Cert_Extension::NoRevocationAvailable>(oid);
   87|  10.8k|      }
   88|  10.8k|   }
   89|       |
   90|  9.89k|   if(auto pkix_ext = is_sub_element_of(oid, {1, 3, 6, 1, 5, 5, 7, 1})) {
  ------------------
  |  Branch (90:12): [True: 2.90k, False: 6.99k]
  ------------------
   91|       |      // NOLINTNEXTLINE(*-switch-missing-default-case)
   92|  2.90k|      switch(*pkix_ext) {
  ------------------
  |  Branch (92:14): [True: 2.84k, False: 60]
  ------------------
   93|    537|         case 1:
  ------------------
  |  Branch (93:10): [True: 537, False: 2.36k]
  ------------------
   94|    537|            return make_extension<Cert_Extension::Authority_Information_Access>(oid);
   95|    853|         case 7:
  ------------------
  |  Branch (95:10): [True: 853, False: 2.04k]
  ------------------
   96|    853|            return make_extension<Cert_Extension::IPAddressBlocks>(oid);
   97|  1.33k|         case 8:
  ------------------
  |  Branch (97:10): [True: 1.33k, False: 1.56k]
  ------------------
   98|  1.33k|            return make_extension<Cert_Extension::ASBlocks>(oid);
   99|    113|         case 26:
  ------------------
  |  Branch (99:10): [True: 113, False: 2.78k]
  ------------------
  100|    113|            return make_extension<Cert_Extension::TNAuthList>(oid);
  101|  2.90k|      }
  102|  2.90k|   }
  103|       |
  104|  7.05k|   if(oid == Cert_Extension::OCSP_NoCheck::static_oid()) {
  ------------------
  |  Branch (104:7): [True: 0, False: 7.05k]
  ------------------
  105|      0|      return make_extension<Cert_Extension::OCSP_NoCheck>(oid);
  106|      0|   }
  107|       |
  108|  7.05k|   return nullptr;  // unknown
  109|  7.05k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14Subject_Key_IDEEEDaRKNS_3OIDE:
   50|    794|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    794|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    794|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    794|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 794]
  |  |  ------------------
  ------------------
   52|    794|   return std::make_unique<T>();
   53|    794|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension9Key_UsageEEEDaRKNS_3OIDE:
   50|  1.48k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  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]
  |  |  ------------------
  ------------------
   52|  1.48k|   return std::make_unique<T>();
   53|  1.48k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension24Subject_Alternative_NameEEEDaRKNS_3OIDE:
   50|  1.08k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.08k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.08k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.08k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.08k]
  |  |  ------------------
  ------------------
   52|  1.08k|   return std::make_unique<T>();
   53|  1.08k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23Issuer_Alternative_NameEEEDaRKNS_3OIDE:
   50|    507|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    507|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    507|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    507|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 507]
  |  |  ------------------
  ------------------
   52|    507|   return std::make_unique<T>();
   53|    507|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension17Basic_ConstraintsEEEDaRKNS_3OIDE:
   50|  1.23k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.23k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.23k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.23k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
   52|  1.23k|   return std::make_unique<T>();
   53|  1.23k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10CRL_NumberEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension14CRL_ReasonCodeEEEDaRKNS_3OIDE:
   50|      1|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      1|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      1|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      1|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1]
  |  |  ------------------
  ------------------
   52|      1|   return std::make_unique<T>();
   53|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEDaRKNS_3OIDE:
   50|      2|auto make_extension([[maybe_unused]] const OID& oid) {
   51|      2|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|      2|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      2|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2]
  |  |  ------------------
  ------------------
   52|      2|   return std::make_unique<T>();
   53|      2|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Name_ConstraintsEEEDaRKNS_3OIDE:
   50|    412|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    412|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    412|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    412|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 412]
  |  |  ------------------
  ------------------
   52|    412|   return std::make_unique<T>();
   53|    412|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension23CRL_Distribution_PointsEEEDaRKNS_3OIDE:
   50|  1.39k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.39k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.39k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.39k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.39k]
  |  |  ------------------
  ------------------
   52|  1.39k|   return std::make_unique<T>();
   53|  1.39k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension20Certificate_PoliciesEEEDaRKNS_3OIDE:
   50|    975|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    975|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    975|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    975|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 975]
  |  |  ------------------
  ------------------
   52|    975|   return std::make_unique<T>();
   53|    975|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension16Authority_Key_IDEEEDaRKNS_3OIDE:
   50|  1.07k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.07k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.07k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.07k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.07k]
  |  |  ------------------
  ------------------
   52|  1.07k|   return std::make_unique<T>();
   53|  1.07k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension18Extended_Key_UsageEEEDaRKNS_3OIDE:
   50|    451|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    451|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    451|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    451|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 451]
  |  |  ------------------
  ------------------
   52|    451|   return std::make_unique<T>();
   53|    451|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension21NoRevocationAvailableEEEDaRKNS_3OIDE:
   50|     18|auto make_extension([[maybe_unused]] const OID& oid) {
   51|     18|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|     18|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     18|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 18]
  |  |  ------------------
  ------------------
   52|     18|   return std::make_unique<T>();
   53|     18|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension28Authority_Information_AccessEEEDaRKNS_3OIDE:
   50|    537|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    537|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    537|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    537|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 537]
  |  |  ------------------
  ------------------
   52|    537|   return std::make_unique<T>();
   53|    537|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension15IPAddressBlocksEEEDaRKNS_3OIDE:
   50|    853|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    853|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    853|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    853|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 853]
  |  |  ------------------
  ------------------
   52|    853|   return std::make_unique<T>();
   53|    853|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension8ASBlocksEEEDaRKNS_3OIDE:
   50|  1.33k|auto make_extension([[maybe_unused]] const OID& oid) {
   51|  1.33k|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|  1.33k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.33k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.33k]
  |  |  ------------------
  ------------------
   52|  1.33k|   return std::make_unique<T>();
   53|  1.33k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_114make_extensionITkNSt3__112derived_fromINS_21Certificate_ExtensionEEENS_14Cert_Extension10TNAuthListEEEDaRKNS_3OIDE:
   50|    113|auto make_extension([[maybe_unused]] const OID& oid) {
   51|    113|   BOTAN_DEBUG_ASSERT(oid == T::static_oid());
  ------------------
  |  |  130|    113|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    113|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 113]
  |  |  ------------------
  ------------------
   52|    113|   return std::make_unique<T>();
   53|    113|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_126policy_oids_have_duplicateERKNSt3__16vectorINS_3OIDENS2_9allocatorIS4_EEEE:
  886|     93|bool policy_oids_have_duplicate(const std::vector<OID>& oids) {
  887|     93|   std::set<OID> seen;
  888|    360|   for(const auto& oid : oids) {
  ------------------
  |  Branch (888:24): [True: 360, False: 81]
  ------------------
  889|    360|      if(!seen.insert(oid).second) {
  ------------------
  |  Branch (889:10): [True: 12, False: 348]
  ------------------
  890|     12|         return true;
  891|     12|      }
  892|    360|   }
  893|     81|   return false;
  894|     93|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information11decode_fromERNS_11BER_DecoderE:
  878|  1.55k|      void decode_from(BER_Decoder& codec) override {
  879|  1.55k|         codec.start_sequence().decode(m_oid).discard_remaining().end_cons();
  880|  1.55k|      }
x509_ext.cpp:_ZNK5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information3oidEv:
  874|    414|      const OID& oid() const { return m_oid; }
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
 1023|    547|void validate_general_name_encoding(ASN1_Type tag, ASN1_Class cls, std::span<const uint8_t> value) {
 1024|       |   // AlternativeName decodes GeneralNames; AIA accessLocation is a single GeneralName.
 1025|    547|   std::vector<uint8_t> wrapped_name;
 1026|    547|   DER_Encoder(wrapped_name).start_sequence().add_object(tag, cls, value).end_cons();
 1027|       |
 1028|    547|   AlternativeName decoded_name;
 1029|    547|   BER_Decoder(wrapped_name, BER_Decoder::Limits::DER()).decode(decoded_name).verify_end();
 1030|       |
 1031|    547|   if((tag == ASN1_Type(1) || tag == ASN1_Type(2) || tag == ASN1_Type(6)) && value.empty()) {
  ------------------
  |  Branch (1031:8): [True: 270, False: 277]
  |  Branch (1031:31): [True: 2, False: 275]
  |  Branch (1031:54): [True: 212, False: 63]
  |  Branch (1031:78): [True: 5, False: 210]
  ------------------
 1032|      5|      throw Decoding_Error("GeneralName IA5String value must not be empty");
 1033|      5|   }
 1034|    542|   if(tag == ASN1_Type(4) &&
  ------------------
  |  Branch (1034:7): [True: 1, False: 541]
  ------------------
 1035|      1|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
  ------------------
  |  Branch (1035:7): [True: 0, False: 1]
  ------------------
 1036|      0|      throw Decoding_Error("GeneralName directoryName must not be empty");
 1037|      0|   }
 1038|    542|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_130validate_general_name_encodingENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEEENK3$_0clERKNS_7X509_DNE:
 1035|      1|      std::ranges::any_of(decoded_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_152crl_distribution_point_uris_from_distribution_pointsERKNSt3__16vectorINS0_23CRL_Distribution_Points18Distribution_PointENS2_9allocatorIS5_EEEE:
 1316|     89|   const std::vector<CRL_Distribution_Points::Distribution_Point>& dps) {
 1317|     89|   std::vector<URI> out;
 1318|    100|   for(const auto& dp : dps) {
  ------------------
  |  Branch (1318:23): [True: 100, False: 89]
  ------------------
 1319|    100|      const auto& dpn = dp.distribution_point_name();
 1320|    100|      if(dpn.has_value() && dpn->full_name().has_value()) {
  ------------------
  |  Branch (1320:10): [True: 100, False: 0]
  |  Branch (1320:29): [True: 100, False: 0]
  ------------------
 1321|    281|         for(const auto& uri : dpn->full_name()->uri_names()) {
  ------------------
  |  Branch (1321:30): [True: 281, False: 100]
  ------------------
 1322|    281|            out.push_back(uri);
 1323|    281|         }
 1324|    100|      }
 1325|    100|   }
 1326|     89|   return out;
 1327|     89|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension21DistributionPointName11decode_fromERNS_11BER_DecoderEENK3$_0clERKNS_7X509_DNE:
 1368|      3|      if(std::ranges::any_of(full_name.directory_names(), [](const X509_DN& dn) { return dn.empty(); })) {
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_125crl_issuer_is_well_formedERKNS_15AlternativeNameE:
 1310|      1|bool crl_issuer_is_well_formed(const AlternativeName& crl_issuer) {
 1311|      1|   const auto& dn = crl_issuer.directory_names();
 1312|      1|   return crl_issuer.count() == 1 && dn.size() == 1 && !dn.begin()->empty();
  ------------------
  |  Branch (1312:11): [True: 1, False: 0]
  |  Branch (1312:38): [True: 0, False: 1]
  |  Branch (1312:56): [True: 0, False: 0]
  ------------------
 1313|      1|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_125is_valid_telephone_numberERKNS_11ASN1_StringE:
  111|     64|bool is_valid_telephone_number(const ASN1_String& tn) {
  112|       |   //TelephoneNumber ::= IA5String (SIZE (1..15)) (FROM ("0123456789#*"))
  113|     64|   const std::string valid_tn_chars("0123456789#*");
  114|       |
  115|     64|   if(tn.empty() || (tn.size() > 15)) {
  ------------------
  |  Branch (115:7): [True: 4, False: 60]
  |  Branch (115:21): [True: 11, False: 49]
  ------------------
  116|     15|      return false;
  117|     15|   }
  118|       |
  119|     49|   if(tn.value().find_first_not_of(valid_tn_chars) != std::string::npos) {
  ------------------
  |  Branch (119:7): [True: 12, False: 37]
  ------------------
  120|     12|      return false;
  121|     12|   }
  122|       |
  123|     37|   return true;
  124|     49|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_0clERNS_11BER_DecoderE:
  645|    330|                             [&](BER_Decoder& d) {
  646|    330|                                d.decode(m_key_id, ASN1_Type::OctetString, ASN1_Type(0), ASN1_Class::ContextSpecific);
  647|    330|                                key_id_present = true;
  648|    330|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_1clERNS_11BER_DecoderE:
  651|     74|                             [&](BER_Decoder& d) {
  652|     74|                                AlternativeName names;
  653|     74|                                d.decode_implicit(names,
  654|     74|                                                  ASN1_Type(1),
  655|     74|                                                  ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  656|     74|                                                  ASN1_Type::Sequence,
  657|     74|                                                  ASN1_Class::Constructed);
  658|     74|                                authority_cert_issuer = std::move(names);
  659|     74|                             })
x509_ext.cpp:_ZZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEEENK3$_2clERNS_11BER_DecoderE:
  660|     43|      .decode_optional_field(2, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) {
  661|     43|         X509_Serial_Number serial;
  662|     43|         d.decode_implicit(
  663|     43|            serial, ASN1_Type(2), ASN1_Class::ContextSpecific, ASN1_Type::Integer, ASN1_Class::Universal);
  664|     43|         authority_cert_serial = std::move(serial);
  665|     43|      });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_InformationC2Ev:
  870|  1.55k|      Policy_Information() = default;
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_0clES4_:
 1465|  1.18k|                            [&](BER_Decoder& d) {
 1466|  1.18k|                               DistributionPointName name;
 1467|  1.18k|                               d.start_context_specific(0).decode(name).verify_end();
 1468|  1.18k|                               m_dp_name = std::move(name);
 1469|  1.18k|                            })
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_1clES4_:
 1471|     13|         1, ASN1_Class::ContextSpecific, [&](BER_Decoder& d) { m_reasons = decode_reason_flags_implicit(d, 1); })
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_128decode_reason_flags_implicitERNS_11BER_DecoderEj:
 1296|     13|ReasonFlags decode_reason_flags_implicit(BER_Decoder& decoder, uint32_t tag) {
 1297|     13|   uint64_t bits = 0;
 1298|     13|   decoder.decode_named_bitstring(bits, ReasonFlagsNamedBitWidth, ASN1_Type(tag), ASN1_Class::ContextSpecific);
 1299|     13|   return ReasonFlags(checked_cast_to<uint16_t>(bits));
 1300|     13|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderEENK3$_2clES4_:
 1472|     13|      .decode_optional_field(2, ASN1_Class::ContextSpecific | ASN1_Class::Constructed, [&](BER_Decoder& d) {
 1473|     13|         AlternativeName crl_issuer;
 1474|     13|         d.decode_implicit(crl_issuer,
 1475|     13|                           ASN1_Type(2),
 1476|     13|                           ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
 1477|     13|                           ASN1_Type::Sequence,
 1478|     13|                           ASN1_Class::Constructed);
 1479|     13|         m_crl_issuer = std::move(crl_issuer);
 1480|     13|      });
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_15IPAddressBlocks16IPAddressOrRangeILNS3_7VersionE4EEEEENSt3__18optionalINS7_6vectorIT_NS7_9allocatorISA_EEEEEENS8_INS7_4spanIKSA_Lm18446744073709551615EEEEE:
 1881|    151|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1882|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1883|       |   // 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
 1884|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1885|       |
 1886|    151|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1886:7): [True: 0, False: 151]
  ------------------
 1887|      0|      return std::nullopt;
 1888|      0|   }
 1889|       |
 1890|    151|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1891|       |
 1892|    151|   if(sorted.empty()) {
  ------------------
  |  Branch (1892:7): [True: 5, False: 146]
  ------------------
 1893|      5|      return sorted;
 1894|      5|   }
 1895|       |
 1896|       |   // sort by the min value
 1897|    146|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1898|       |
 1899|       |   // Single-pass merge: extend the last merged range or start a new one
 1900|    146|   std::vector<T> merged;
 1901|    146|   merged.reserve(sorted.size());
 1902|    146|   merged.push_back(sorted[0]);
 1903|       |
 1904|    578|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1904:22): [True: 432, False: 146]
  ------------------
 1905|    432|      auto& back = merged.back();
 1906|       |      // they either overlap or are adjacent
 1907|    432|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1907:10): [True: 167, False: 265]
  |  Branch (1907:10): [True: 185, False: 247]
  |  Branch (1907:43): [True: 18, False: 247]
  ------------------
 1908|    185|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1909|    247|      } else {
 1910|    247|         merged.push_back(sorted[i]);
 1911|    247|      }
 1912|    432|   }
 1913|       |
 1914|    146|   return merged;
 1915|    151|}
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_:
 1897|    736|   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:
 1881|    185|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1882|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1883|       |   // 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
 1884|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1885|       |
 1886|    185|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1886:7): [True: 0, False: 185]
  ------------------
 1887|      0|      return std::nullopt;
 1888|      0|   }
 1889|       |
 1890|    185|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1891|       |
 1892|    185|   if(sorted.empty()) {
  ------------------
  |  Branch (1892:7): [True: 3, False: 182]
  ------------------
 1893|      3|      return sorted;
 1894|      3|   }
 1895|       |
 1896|       |   // sort by the min value
 1897|    182|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1898|       |
 1899|       |   // Single-pass merge: extend the last merged range or start a new one
 1900|    182|   std::vector<T> merged;
 1901|    182|   merged.reserve(sorted.size());
 1902|    182|   merged.push_back(sorted[0]);
 1903|       |
 1904|    813|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1904:22): [True: 631, False: 182]
  ------------------
 1905|    631|      auto& back = merged.back();
 1906|       |      // they either overlap or are adjacent
 1907|    631|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1907:10): [True: 187, False: 444]
  |  Branch (1907:10): [True: 200, False: 431]
  |  Branch (1907:43): [True: 13, False: 431]
  ------------------
 1908|    200|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1909|    431|      } else {
 1910|    431|         merged.push_back(sorted[i]);
 1911|    431|      }
 1912|    631|   }
 1913|       |
 1914|    182|   return merged;
 1915|    185|}
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_:
 1897|  1.19k|   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:
 1881|    778|std::optional<std::vector<T>> sort_and_merge_ranges(std::optional<std::span<const T>> ranges) {
 1882|       |   // Sort and merge overlapping/adjacent IPAddressOrRange or ASIdOrRange objects.
 1883|       |   // 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
 1884|       |   // This implementation uses only min-max ranges internally, so sorting by the prefix length is not necessary / impossible here.
 1885|       |
 1886|    778|   if(!ranges.has_value()) {
  ------------------
  |  Branch (1886:7): [True: 0, False: 778]
  ------------------
 1887|      0|      return std::nullopt;
 1888|      0|   }
 1889|       |
 1890|    778|   std::vector<T> sorted(ranges.value().begin(), ranges.value().end());
 1891|       |
 1892|    778|   if(sorted.empty()) {
  ------------------
  |  Branch (1892:7): [True: 7, False: 771]
  ------------------
 1893|      7|      return sorted;
 1894|      7|   }
 1895|       |
 1896|       |   // sort by the min value
 1897|    771|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });
 1898|       |
 1899|       |   // Single-pass merge: extend the last merged range or start a new one
 1900|    771|   std::vector<T> merged;
 1901|    771|   merged.reserve(sorted.size());
 1902|    771|   merged.push_back(sorted[0]);
 1903|       |
 1904|  3.17k|   for(size_t i = 1; i < sorted.size(); ++i) {
  ------------------
  |  Branch (1904:22): [True: 2.40k, False: 771]
  ------------------
 1905|  2.40k|      auto& back = merged.back();
 1906|       |      // they either overlap or are adjacent
 1907|  2.40k|      if(sorted[i].min() <= back.max() || sorted[i].min() == (back.max() + 1)) {
  ------------------
  |  Branch (1907:10): [True: 133, False: 2.26k]
  |  Branch (1907:43): [True: 28, False: 2.24k]
  ------------------
 1908|    161|         back = T(back.min(), std::max(back.max(), sorted[i].max()));
 1909|  2.24k|      } else {
 1910|  2.24k|         merged.push_back(sorted[i]);
 1911|  2.24k|      }
 1912|  2.40k|   }
 1913|       |
 1914|    771|   return merged;
 1915|    778|}
x509_ext.cpp:_ZZN5Botan14Cert_Extension12_GLOBAL__N_121sort_and_merge_rangesINS0_8ASBlocks11ASIdOrRangeEEENSt3__18optionalINS5_6vectorIT_NS5_9allocatorIS8_EEEEEENS6_INS5_4spanIKS8_Lm18446744073709551615EEEEEENKUlRS4_SH_E_clESH_SH_:
 1897|  4.37k|   std::sort(sorted.begin(), sorted.end(), [](T& a, T& b) { return a.min() < b.min(); });

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

_ZN5Botan18X509_Serial_NumberC2ERKNS_6BigIntE:
   20|  4.60k|X509_Serial_Number::X509_Serial_Number(const BigInt& value) : m_contents(ASN1::integer_contents(value)) {}
_ZNK5Botan18X509_Serial_Number11is_negativeEv:
   65|  3.59k|bool X509_Serial_Number::is_negative() const {
   66|  3.59k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  3.59k|   do {                                                         \
  |  |   52|  3.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  3.59k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 3.59k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  3.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 3.59k]
  |  |  ------------------
  ------------------
   67|  3.59k|   return (m_contents[0] & 0x80) == 0x80;
   68|  3.59k|}
_ZNK5Botan18X509_Serial_Number7is_zeroEv:
   70|  3.63k|bool X509_Serial_Number::is_zero() const {
   71|  3.63k|   return m_contents.size() == 1 && m_contents[0] == 0x00;
  ------------------
  |  Branch (71:11): [True: 502, False: 3.13k]
  |  Branch (71:37): [True: 39, False: 463]
  ------------------
   72|  3.63k|}
_ZNK5Botan18X509_Serial_Number9magnitudeEv:
   74|  3.63k|std::vector<uint8_t> X509_Serial_Number::magnitude() const {
   75|  3.63k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  3.63k|   do {                                                         \
  |  |   52|  3.63k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  3.63k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 3.63k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  3.63k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 3.63k]
  |  |  ------------------
  ------------------
   76|       |
   77|  3.63k|   if(is_zero()) {
  ------------------
  |  Branch (77:7): [True: 39, False: 3.59k]
  ------------------
   78|     39|      return {};
   79|  3.59k|   } else if(is_negative()) {
  ------------------
  |  Branch (79:14): [True: 1.01k, False: 2.57k]
  ------------------
   80|  1.01k|      return to_bigint().serialize();
   81|  2.57k|   } else if(m_contents[0] == 0x00) {
  ------------------
  |  Branch (81:14): [True: 178, False: 2.39k]
  ------------------
   82|       |      // Positive value whose leading magnitude bit is set; skip the sign octet
   83|    178|      return {m_contents.begin() + 1, m_contents.end()};
   84|  2.39k|   } else {
   85|  2.39k|      return m_contents;
   86|  2.39k|   }
   87|  3.63k|}
_ZNK5Botan18X509_Serial_Number9to_bigintEv:
   89|  1.01k|BigInt X509_Serial_Number::to_bigint() const {
   90|  1.01k|   BOTAN_STATE_CHECK(!m_contents.empty());
  ------------------
  |  |   51|  1.01k|   do {                                                         \
  |  |   52|  1.01k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  1.01k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 1.01k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  1.01k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 1.01k]
  |  |  ------------------
  ------------------
   91|  1.01k|   return ASN1::integer_from_contents(m_contents);
   92|  1.01k|}
_ZN5Botan18X509_Serial_Number11decode_fromERNS_11BER_DecoderE:
  108|  4.65k|void X509_Serial_Number::decode_from(BER_Decoder& from) {
  109|       |   // Decode via BigInt so the decoder's limits apply, in particular the
  110|       |   // rejection of non-minimal INTEGER encodings in DER mode
  111|  4.65k|   BigInt value;
  112|  4.65k|   from.decode(value);
  113|  4.65k|   *this = X509_Serial_Number(value);
  114|  4.65k|}

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

