_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|  5.38M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  5.38M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  5.38M|   return static_cast<T>(0) - top;
   31|  5.38M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|  26.0M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  26.0M|   return (b ^ (mask & (a ^ b)));
  219|  26.0M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|  3.73M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  3.73M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  3.73M|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  6.79k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  6.79k|   size_t hb = 0;
   75|       |
   76|  47.5k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 40.7k, False: 6.79k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  40.7k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  40.7k|      hb += z;
   80|  40.7k|      n >>= z;
   81|  40.7k|   }
   82|       |
   83|  6.79k|   hb += n;
   84|       |
   85|  6.79k|   return hb;
   86|  6.79k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|  40.7k|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|  40.7k|   const T a = ~x & (x - 1);
   51|  40.7k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  40.7k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  40.7k|   return mask & s;
   54|  40.7k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|  8.62k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  8.62k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  8.62k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|  8.62k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  8.62k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  8.62k|   return static_cast<T>(0) - top;
   31|  8.62k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEhEET_S2_S2_S2_:
  216|  8.62k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|  8.62k|   return (b ^ (mask & (a ^ b)));
  219|  8.62k|}

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  24.7k|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|  24.7k|   } else if constexpr(sizeof(T) == 8) {
   45|  24.7k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|  24.7k|      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|  24.7k|   }
   57|  24.7k|}

_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|   326k|      static constexpr Mask<T> is_equal(T x, T y) {
  443|   326k|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|   326k|         return Mask<T>::is_zero(diff);
  445|   326k|      }
_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|   992k|      static constexpr Mask<T> is_lt(T x, T y) {
  451|   992k|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|   992k|         return Mask<T>::expand_top_bit(u);
  453|   992k|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  1.65M|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZN5Botan2CT4MaskImEC2Em:
  637|  6.16M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  26.0M|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|  44.0M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  1.73M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|   774k|constexpr void unpoison(const T& p) {
  113|   774k|   unpoison(&p, 1);
  114|   774k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|   821k|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|   821k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   821k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   821k|}
_ZN5Botan2CT4MaskImE6expandEm:
  392|  1.40M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZNK5Botan2CT4MaskImEcoEv:
  533|  2.06M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskImE13if_set_returnEm:
  538|  13.8M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZNK5Botan2CT4MaskImE7as_boolEv:
  614|   677k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskImE16unpoisoned_valueEv:
  598|   677k|      constexpr T unpoisoned_value() const {
  599|   677k|         T r = value();
  600|   677k|         CT::unpoison(r);
  601|   677k|         return r;
  602|   677k|      }
_ZNK5Botan2CT4MaskImE11select_maskES2_S2_:
  559|  34.9k|      Mask<T> select_mask(Mask<T> x, Mask<T> y) const { return Mask<T>(select(x.value(), y.value())); }
_ZN5Botan2CT4MaskImEoRES2_:
  510|    142|      Mask<T>& operator|=(Mask<T> o) {
  511|    142|         m_mask |= o.value();
  512|    142|         return (*this);
  513|    142|      }
_ZN5Botan2CT4MaskImEaNES2_:
  494|    485|      Mask<T>& operator&=(Mask<T> o) {
  495|    485|         m_mask &= o.value();
  496|    485|         return (*this);
  497|    485|      }
_ZNK5Botan2CT4MaskImE8select_nEPmPKmS5_m:
  565|     14|      constexpr void select_n(T output[], const T x[], const T y[], size_t len) const {
  566|     14|         const T mask = value();
  567|    254|         for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (567:28): [True: 240, False: 14]
  ------------------
  568|    240|            output[i] = choose(mask, x[i], y[i]);
  569|    240|         }
  570|     14|      }
_ZN5Botan2CT4MaskIhE11expand_boolEb:
  397|  8.62k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE6expandEh:
  392|  8.62k|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|  8.62k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIhEC2Eh:
  637|  17.2k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhEcoEv:
  533|  8.62k|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|  17.2k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIhE6selectEhh:
  548|  8.62k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT4MaskImE6is_gteEmm:
  468|   665k|      static constexpr Mask<T> is_gte(T x, T y) { return ~Mask<T>::is_lt(x, y); }
_ZN5Botan2CTorENS0_4MaskImEES2_:
  528|   665k|      friend Mask<T> operator|(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() | y.value()); }
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES3_PS3_PKS3_S7_m:
  738|     14|constexpr inline Mask<T> conditional_copy_mem(T cnd, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  739|     14|   const auto mask = CT::Mask<T>::expand(cnd);
  740|     14|   return CT::conditional_copy_mem(mask, dest, if_set, if_unset, elems);
  741|     14|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES4_PS3_PKS3_S7_m:
  732|     14|constexpr inline Mask<T> conditional_copy_mem(Mask<T> mask, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  733|     14|   mask.select_n(dest, if_set, if_unset, elems);
  734|     14|   return mask;
  735|     14|}
_ZN5Botan2CTeoENS0_4MaskImEES2_:
  523|      7|      friend Mask<T> operator^(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() ^ y.value()); }

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  51.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|  51.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|  51.5k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 51.5k, False: 0]
  |  Branch (53:17): [True: 0, False: 51.5k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  51.5k|   return r;
   57|  51.5k|}

_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|  21.9k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  21.9k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  21.9k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  21.9k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  21.9k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  21.9k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  21.9k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  21.9k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  21.9k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  21.9k|      } else {
  289|  21.9k|         const std::span in{in_range};
  290|  21.9k|         if constexpr(sizeof(OutT) == 1) {
  291|  21.9k|            return static_cast<OutT>(in[0]);
  292|  21.9k|         } else if constexpr(endianness == std::endian::native) {
  293|  21.9k|            return typecast_copy<OutT>(in);
  294|  21.9k|         } else {
  295|  21.9k|            static_assert(opposite(endianness) == std::endian::native);
  296|  21.9k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  21.9k|         }
  298|  21.9k|      }
  299|  21.9k|   }());
  300|  21.9k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|  24.7k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  24.7k|   } else {
  204|  24.7k|      return Botan::wrap_strong_type<OutT>(t);
  205|  24.7k|   }
  206|  24.7k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  21.9k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  21.9k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 21.9k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  21.9k|      } else {
  289|  21.9k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|  21.9k|         } else {
  295|  21.9k|            static_assert(opposite(endianness) == std::endian::native);
  296|  21.9k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  21.9k|         }
  298|  21.9k|      }
  299|  21.9k|   }());
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  2.80k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  2.80k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  2.80k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  2.80k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  2.80k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  2.80k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  2.80k|   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|  2.80k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  2.80k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.80k|      } else {
  289|  2.80k|         const std::span in{in_range};
  290|  2.80k|         if constexpr(sizeof(OutT) == 1) {
  291|  2.80k|            return static_cast<OutT>(in[0]);
  292|  2.80k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.80k|            return typecast_copy<OutT>(in);
  294|  2.80k|         } else {
  295|  2.80k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.80k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.80k|         }
  298|  2.80k|      }
  299|  2.80k|   }());
  300|  2.80k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  2.80k|   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|  2.80k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 2.80k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.80k|      } else {
  289|  2.80k|         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|  2.80k|         } else {
  295|  2.80k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.80k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.80k|         }
  298|  2.80k|      }
  299|  2.80k|   }());

_ZN5Botan21unchecked_copy_memoryITkNSt3__117unsigned_integralEmEEvPT_PKS2_m:
   44|   713k|inline void unchecked_copy_memory(T* out, const T* in, size_t n) {
   45|   713k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (45:7): [True: 713k, False: 0]
  |  Branch (45:24): [True: 713k, False: 0]
  |  Branch (45:42): [True: 713k, False: 70]
  ------------------
   46|   713k|      std::memmove(out, in, sizeof(T) * n);
   47|   713k|   }
   48|   713k|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEmEEvPT_m:
   37|   717k|inline void zeroize_buffer(T buf[], size_t n) {
   38|   717k|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 22.9k, False: 694k]
  ------------------
   39|  22.9k|      std::memset(buf, 0, sizeof(T) * n);
   40|  22.9k|   }
   41|   717k|}

_ZN5Botan10word8_add3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  294|    383|inline constexpr auto word8_add3(W z[8], const W x[8], const W y[8], W carry) -> W {
  295|    383|#if defined(BOTAN_MP_USE_X86_64_ASM)
  296|    383|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (296:7): [True: 0, Folded]
  |  Branch (296:36): [True: 0, Folded]
  ------------------
  297|    383|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "adcq"))
  298|    383|                   : [carry] "=r"(carry)
  299|    383|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  300|    383|                   : "cc", "memory");
  301|    383|      return carry;
  302|    383|   }
  303|      0|#endif
  304|       |
  305|      0|   z[0] = word_add(x[0], y[0], &carry);
  306|      0|   z[1] = word_add(x[1], y[1], &carry);
  307|      0|   z[2] = word_add(x[2], y[2], &carry);
  308|      0|   z[3] = word_add(x[3], y[3], &carry);
  309|      0|   z[4] = word_add(x[4], y[4], &carry);
  310|      0|   z[5] = word_add(x[5], y[5], &carry);
  311|      0|   z[6] = word_add(x[6], y[6], &carry);
  312|      0|   z[7] = word_add(x[7], y[7], &carry);
  313|      0|   return carry;
  314|    383|}
_ZN5Botan8word_addITkNS_8WordTypeEmEET_S1_S1_PS1_:
  231|  20.7k|inline constexpr auto word_add(W x, W y, W* carry) -> W {
  232|  20.7k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_addc)
  233|  20.7k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (233:7): [True: 20.7k, Folded]
  ------------------
  234|       |      if constexpr(std::same_as<W, unsigned int>) {
  235|       |         return __builtin_addc(x, y, *carry & 1, carry);
  236|  20.7k|      } else if constexpr(std::same_as<W, unsigned long>) {
  237|  20.7k|         return __builtin_addcl(x, y, *carry & 1, carry);
  238|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  239|       |         return __builtin_addcll(x, y, *carry & 1, carry);
  240|       |      }
  241|  20.7k|   }
  242|      0|#endif
  243|       |
  244|       |   if constexpr(WordInfo<W>::dword_is_native && use_dword_for_word_add) {
  245|       |      /*
  246|       |      TODO(Botan4) this is largely a performance hack for GCCs that don't
  247|       |      support __builtin_addc, if we increase the minimum supported version of
  248|       |      GCC to GCC 14 then we can remove this and not worry about it
  249|       |      */
  250|       |      const W cb = *carry & 1;
  251|       |      const auto s = typename WordInfo<W>::dword(x) + y + cb;
  252|       |      *carry = static_cast<W>(s >> WordInfo<W>::bits);
  253|       |      return static_cast<W>(s);
  254|  20.7k|   } else {
  255|  20.7k|      const W cb = *carry & 1;
  256|  20.7k|      W z = x + y;
  257|  20.7k|      W c1 = (z < x);
  258|  20.7k|      z += cb;
  259|  20.7k|      *carry = c1 | (z < cb);
  260|  20.7k|      return z;
  261|  20.7k|   }
  262|  20.7k|}
_ZN5Botan10word8_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  371|  1.25M|inline constexpr auto word8_sub3(W z[8], const W x[8], const W y[8], W carry) -> W {
  372|  1.25M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  373|  1.25M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (373:7): [True: 0, Folded]
  |  Branch (373:36): [True: 0, Folded]
  ------------------
  374|  1.25M|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "sbbq"))
  375|  1.25M|                   : [carry] "=r"(carry)
  376|  1.25M|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  377|  1.25M|                   : "cc", "memory");
  378|  1.25M|      return carry;
  379|  1.25M|   }
  380|      0|#endif
  381|       |
  382|      0|   z[0] = word_sub(x[0], y[0], &carry);
  383|      0|   z[1] = word_sub(x[1], y[1], &carry);
  384|      0|   z[2] = word_sub(x[2], y[2], &carry);
  385|      0|   z[3] = word_sub(x[3], y[3], &carry);
  386|      0|   z[4] = word_sub(x[4], y[4], &carry);
  387|      0|   z[5] = word_sub(x[5], y[5], &carry);
  388|      0|   z[6] = word_sub(x[6], y[6], &carry);
  389|      0|   z[7] = word_sub(x[7], y[7], &carry);
  390|      0|   return carry;
  391|  1.25M|}
_ZN5Botan8word_subITkNS_8WordTypeEmEET_S1_S1_PS1_:
  320|  2.48M|inline constexpr auto word_sub(W x, W y, W* carry) -> W {
  321|  2.48M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_subc)
  322|  2.48M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (322:7): [True: 2.48M, Folded]
  ------------------
  323|       |      if constexpr(std::same_as<W, unsigned int>) {
  324|       |         return __builtin_subc(x, y, *carry & 1, carry);
  325|  2.48M|      } else if constexpr(std::same_as<W, unsigned long>) {
  326|  2.48M|         return __builtin_subcl(x, y, *carry & 1, carry);
  327|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  328|       |         return __builtin_subcll(x, y, *carry & 1, carry);
  329|       |      }
  330|  2.48M|   }
  331|      0|#endif
  332|       |
  333|      0|   const W cb = *carry & 1;
  334|  2.48M|   W t0 = x - y;
  335|  2.48M|   W c1 = (t0 > x);
  336|  2.48M|   W z = t0 - cb;
  337|  2.48M|   *carry = c1 | (z > t0);
  338|  2.48M|   return z;
  339|  2.48M|}
_ZN5Botan13word8_linmul3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  397|  28.9k|inline constexpr auto word8_linmul3(W z[8], const W x[8], W y, W carry) -> W {
  398|  28.9k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  399|  28.9k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (399:7): [True: 0, Folded]
  |  Branch (399:36): [True: 0, Folded]
  ------------------
  400|  28.9k|      asm volatile(DO_8_TIMES(LINMUL_OP, "z")
  401|  28.9k|                   : [carry] "=r"(carry)
  402|  28.9k|                   : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  403|  28.9k|                   : "cc", "%rax", "%rdx", "memory");
  404|  28.9k|      return carry;
  405|  28.9k|   }
  406|      0|#endif
  407|       |
  408|      0|   z[0] = word_madd2(x[0], y, &carry);
  409|      0|   z[1] = word_madd2(x[1], y, &carry);
  410|      0|   z[2] = word_madd2(x[2], y, &carry);
  411|      0|   z[3] = word_madd2(x[3], y, &carry);
  412|      0|   z[4] = word_madd2(x[4], y, &carry);
  413|      0|   z[5] = word_madd2(x[5], y, &carry);
  414|      0|   z[6] = word_madd2(x[6], y, &carry);
  415|      0|   z[7] = word_madd2(x[7], y, &carry);
  416|      0|   return carry;
  417|  28.9k|}
_ZN5Botan10word_madd2ITkNS_8WordTypeEmEET_S1_S1_PS1_:
   90|  87.5k|inline constexpr auto word_madd2(W a, W b, W* c) -> W {
   91|  87.5k|#if defined(BOTAN_MP_USE_X86_64_ASM)
   92|  87.5k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (92:7): [True: 0, Folded]
  |  Branch (92:36): [True: 0, Folded]
  ------------------
   93|  87.5k|      asm(R"(
   94|  87.5k|         mulq %[b]
   95|  87.5k|         addq %[c],%[a]
   96|  87.5k|         adcq $0,%[carry]
   97|  87.5k|         )"
   98|  87.5k|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*c)
   99|  87.5k|          : "0"(a), "1"(b), [c] "g"(*c)
  100|  87.5k|          : "cc");
  101|       |
  102|  87.5k|      return a;
  103|  87.5k|   }
  104|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  105|       |   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  106|       |      W lo = 0;
  107|       |      W hi = 0;
  108|       |      asm(R"(
  109|       |         mul  %[lo], %[a], %[b]
  110|       |         umulh %[hi], %[a], %[b]
  111|       |         adds %[lo], %[lo], %[c]
  112|       |         adc  %[hi], %[hi], xzr
  113|       |         )"
  114|       |          : [lo] "=&r"(lo), [hi] "=&r"(hi)
  115|       |          : [a] "r"(a), [b] "r"(b), [c] "r"(*c)
  116|       |          : "cc");
  117|       |
  118|       |      *c = hi;
  119|       |      return lo;
  120|       |   }
  121|       |#endif
  122|       |
  123|      0|   typedef typename WordInfo<W>::dword dword;
  124|      0|   const dword s = dword(a) * b + *c;
  125|      0|   *c = static_cast<W>(s >> WordInfo<W>::bits);
  126|      0|   return static_cast<W>(s);
  127|  87.5k|}
_ZN5Botan11word8_madd3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  423|  2.04k|inline constexpr auto word8_madd3(W z[8], const W x[8], W y, W carry) -> W {
  424|  2.04k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  425|  2.04k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (425:7): [True: 0, Folded]
  |  Branch (425:36): [True: 0, Folded]
  ------------------
  426|  2.04k|      asm volatile(DO_8_TIMES(MULADD_OP, "")
  427|  2.04k|                   : [carry] "=r"(carry)
  428|  2.04k|                   : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  429|  2.04k|                   : "cc", "%rax", "%rdx", "memory");
  430|  2.04k|      return carry;
  431|  2.04k|   }
  432|      0|#endif
  433|       |
  434|      0|   z[0] = word_madd3(x[0], y, z[0], &carry);
  435|      0|   z[1] = word_madd3(x[1], y, z[1], &carry);
  436|      0|   z[2] = word_madd3(x[2], y, z[2], &carry);
  437|      0|   z[3] = word_madd3(x[3], y, z[3], &carry);
  438|      0|   z[4] = word_madd3(x[4], y, z[4], &carry);
  439|      0|   z[5] = word_madd3(x[5], y, z[5], &carry);
  440|      0|   z[6] = word_madd3(x[6], y, z[6], &carry);
  441|      0|   z[7] = word_madd3(x[7], y, z[7], &carry);
  442|      0|   return carry;
  443|  2.04k|}
_ZN5Botan10word_madd3ITkNS_8WordTypeEmEET_S1_S1_S1_PS1_:
  133|  5.08k|inline constexpr auto word_madd3(W a, W b, W c, W* d) -> W {
  134|  5.08k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  135|  5.08k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (135:7): [True: 0, Folded]
  |  Branch (135:36): [True: 0, Folded]
  ------------------
  136|  5.08k|      asm(R"(
  137|  5.08k|         mulq %[b]
  138|  5.08k|
  139|  5.08k|         addq %[c],%[a]
  140|  5.08k|         adcq $0,%[carry]
  141|  5.08k|
  142|  5.08k|         addq %[d],%[a]
  143|  5.08k|         adcq $0,%[carry]
  144|  5.08k|         )"
  145|  5.08k|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*d)
  146|  5.08k|          : "0"(a), "1"(b), [c] "g"(c), [d] "g"(*d)
  147|  5.08k|          : "cc");
  148|       |
  149|  5.08k|      return a;
  150|  5.08k|   }
  151|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  152|       |   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  153|       |      W lo = 0;
  154|       |      W hi = 0;
  155|       |      asm(R"(
  156|       |         mul  %[lo], %[a], %[b]
  157|       |         umulh %[hi], %[a], %[b]
  158|       |         adds %[lo], %[lo], %[c]
  159|       |         adc  %[hi], %[hi], xzr
  160|       |         adds %[lo], %[lo], %[d]
  161|       |         adc  %[hi], %[hi], xzr
  162|       |         )"
  163|       |          : [lo] "=&r"(lo), [hi] "=&r"(hi)
  164|       |          : [a] "r"(a), [b] "r"(b), [c] "r"(c), [d] "r"(*d)
  165|       |          : "cc");
  166|       |
  167|       |      *d = hi;
  168|       |      return lo;
  169|       |   }
  170|       |#endif
  171|       |
  172|      0|   typedef typename WordInfo<W>::dword dword;
  173|      0|   const dword s = dword(a) * b + c + *d;
  174|      0|   *d = static_cast<W>(s >> WordInfo<W>::bits);
  175|      0|   return static_cast<W>(s);
  176|  5.08k|}
_ZN5Botan10word8_add2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  268|     28|inline constexpr auto word8_add2(W x[8], const W y[8], W carry) -> W {
  269|     28|#if defined(BOTAN_MP_USE_X86_64_ASM)
  270|     28|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (270:7): [True: 0, Folded]
  |  Branch (270:36): [True: 0, Folded]
  ------------------
  271|     28|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "adcq"))
  272|     28|                   : [carry] "=r"(carry)
  273|     28|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  274|     28|                   : "cc", "memory");
  275|     28|      return carry;
  276|     28|   }
  277|      0|#endif
  278|       |
  279|      0|   x[0] = word_add(x[0], y[0], &carry);
  280|      0|   x[1] = word_add(x[1], y[1], &carry);
  281|      0|   x[2] = word_add(x[2], y[2], &carry);
  282|      0|   x[3] = word_add(x[3], y[3], &carry);
  283|      0|   x[4] = word_add(x[4], y[4], &carry);
  284|      0|   x[5] = word_add(x[5], y[5], &carry);
  285|      0|   x[6] = word_add(x[6], y[6], &carry);
  286|      0|   x[7] = word_add(x[7], y[7], &carry);
  287|      0|   return carry;
  288|     28|}
_ZN5Botan10word8_sub2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  345|  28.3k|inline constexpr auto word8_sub2(W x[8], const W y[8], W carry) -> W {
  346|  28.3k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  347|  28.3k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (347:7): [True: 0, Folded]
  |  Branch (347:36): [True: 0, Folded]
  ------------------
  348|  28.3k|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "sbbq"))
  349|  28.3k|                   : [carry] "=r"(carry)
  350|  28.3k|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  351|  28.3k|                   : "cc", "memory");
  352|  28.3k|      return carry;
  353|  28.3k|   }
  354|      0|#endif
  355|       |
  356|      0|   x[0] = word_sub(x[0], y[0], &carry);
  357|      0|   x[1] = word_sub(x[1], y[1], &carry);
  358|      0|   x[2] = word_sub(x[2], y[2], &carry);
  359|      0|   x[3] = word_sub(x[3], y[3], &carry);
  360|      0|   x[4] = word_sub(x[4], y[4], &carry);
  361|      0|   x[5] = word_sub(x[5], y[5], &carry);
  362|      0|   x[6] = word_sub(x[6], y[6], &carry);
  363|      0|   x[7] = word_sub(x[7], y[7], &carry);
  364|      0|   return carry;
  365|  28.3k|}
_ZN5Botan5word3ImEC2Ev:
  458|    137|      constexpr word3() : m_w(0) {}
_ZN5Botan5word3ImE3mulEmm:
  460|  24.2k|      inline constexpr void mul(W x, W y) { m_w += static_cast<W3>(x) * y; }
_ZN5Botan5word3ImE7extractEv:
  466|  3.07k|      inline constexpr W extract() {
  467|  3.07k|         W r = static_cast<W>(m_w);
  468|  3.07k|         m_w >>= WordInfo<W>::bits;
  469|  3.07k|         return r;
  470|  3.07k|      }

_ZN5Botan11bigint_add3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  120|  4.09k|inline constexpr auto bigint_add3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  121|  4.09k|   if(x_size < y_size) {
  ------------------
  |  Branch (121:7): [True: 644, False: 3.45k]
  ------------------
  122|    644|      return bigint_add3(z, y, y_size, x, x_size);
  123|    644|   }
  124|       |
  125|  3.45k|   W carry = 0;
  126|       |
  127|  3.45k|   const size_t blocks = y_size - (y_size % 8);
  128|       |
  129|  3.83k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (129:22): [True: 383, False: 3.45k]
  ------------------
  130|    383|      carry = word8_add3(z + i, x + i, y + i, carry);
  131|    383|   }
  132|       |
  133|  6.58k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (133:27): [True: 3.13k, False: 3.45k]
  ------------------
  134|  3.13k|      z[i] = word_add(x[i], y[i], &carry);
  135|  3.13k|   }
  136|       |
  137|  20.4k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (137:27): [True: 16.9k, False: 3.45k]
  ------------------
  138|  16.9k|      z[i] = word_add(x[i], static_cast<W>(0), &carry);
  139|  16.9k|   }
  140|       |
  141|  3.45k|   return carry;
  142|  4.09k|}
_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  439|  17.8k|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  440|  17.8k|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  441|       |
  442|  17.8k|   const W LT = static_cast<W>(-1);
  443|  17.8k|   const W EQ = 0;
  444|  17.8k|   const W GT = 1;
  445|       |
  446|  17.8k|   const size_t common_elems = std::min(x_size, y_size);
  447|       |
  448|  17.8k|   W result = EQ;  // until found otherwise
  449|       |
  450|   309k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (450:22): [True: 291k, False: 17.8k]
  ------------------
  451|   291k|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  452|   291k|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  453|       |
  454|   291k|      result = is_eq.select(result, is_lt.select(LT, GT));
  455|   291k|   }
  456|       |
  457|  17.8k|   if(x_size < y_size) {
  ------------------
  |  Branch (457:7): [True: 450, False: 17.3k]
  ------------------
  458|    450|      W mask = 0;
  459|  1.08k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (459:30): [True: 635, False: 450]
  ------------------
  460|    635|         mask |= y[i];
  461|    635|      }
  462|       |
  463|       |      // If any bits were set in high part of y, then x < y
  464|    450|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  465|  17.3k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (465:14): [True: 218, False: 17.1k]
  ------------------
  466|    218|      W mask = 0;
  467|    436|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (467:30): [True: 218, False: 218]
  ------------------
  468|    218|         mask |= x[i];
  469|    218|      }
  470|       |
  471|       |      // If any bits were set in high part of x, then x > y
  472|    218|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  473|    218|   }
  474|       |
  475|  17.8k|   CT::unpoison(result);
  476|  17.8k|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  130|  17.8k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  17.8k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 17.8k]
  |  |  ------------------
  ------------------
  477|  17.8k|   return static_cast<int32_t>(result);
  478|  17.8k|}
_ZN5Botan11bigint_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  192|   689k|inline constexpr auto bigint_sub3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  193|   689k|   W borrow = 0;
  194|       |
  195|   689k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|   689k|   do {                                                                                 \
  |  |   65|   689k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   689k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 689k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   689k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 689k]
  |  |  ------------------
  ------------------
  196|       |
  197|   689k|   const size_t blocks = y_size - (y_size % 8);
  198|       |
  199|  1.93M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (199:22): [True: 1.25M, False: 689k]
  ------------------
  200|  1.25M|      borrow = word8_sub3(z + i, x + i, y + i, borrow);
  201|  1.25M|   }
  202|       |
  203|  2.42M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (203:27): [True: 1.73M, False: 689k]
  ------------------
  204|  1.73M|      z[i] = word_sub(x[i], y[i], &borrow);
  205|  1.73M|   }
  206|       |
  207|  1.37M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (207:27): [True: 689k, False: 689k]
  ------------------
  208|   689k|      z[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  209|   689k|   }
  210|       |
  211|   689k|   return borrow;
  212|   689k|}
_ZN5Botan14bigint_linmul3ITkNS_8WordTypeEmEEvPT_PKS1_mS1_:
  416|  17.2k|inline constexpr void bigint_linmul3(W z[], const W x[], size_t x_size, W y) {
  417|  17.2k|   const size_t blocks = x_size - (x_size % 8);
  418|       |
  419|  17.2k|   W carry = 0;
  420|       |
  421|  46.1k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (421:22): [True: 28.9k, False: 17.2k]
  ------------------
  422|  28.9k|      carry = word8_linmul3(z + i, x + i, y, carry);
  423|  28.9k|   }
  424|       |
  425|  69.2k|   for(size_t i = blocks; i != x_size; ++i) {
  ------------------
  |  Branch (425:27): [True: 52.0k, False: 17.2k]
  ------------------
  426|  52.0k|      z[i] = word_madd2(x[i], y, &carry);
  427|  52.0k|   }
  428|       |
  429|  17.2k|   z[x_size] = carry;
  430|  17.2k|}
_ZN5Botan14divide_precompImEC2Em:
  574|  3.44k|      explicit constexpr divide_precomp(W divisor) : m_divisor(divisor) {
  575|  3.44k|         BOTAN_ARG_CHECK(m_divisor != 0, "Division by zero");
  ------------------
  |  |   35|  3.44k|   do {                                                          \
  |  |   36|  3.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.44k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 3.44k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  576|  3.44k|      }
_ZNK5Botan14divide_precompImE16vartime_div_2to1Emm:
  581|  16.1k|      inline constexpr W vartime_div_2to1(W n1, W n0) const {
  582|  16.1k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|  16.1k|   do {                                                                     \
  |  |   78|  16.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  16.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 16.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  16.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 16.1k]
  |  |  ------------------
  ------------------
  583|       |
  584|  16.1k|         if(m_divisor == WordInfo<W>::max) {
  ------------------
  |  Branch (584:13): [True: 2.10k, False: 14.0k]
  ------------------
  585|  2.10k|            return vartime_div_2to1_max_d(n1, n0);
  586|  2.10k|         }
  587|       |
  588|  14.0k|         if(m_divisor == WordInfo<W>::top_bit) {
  ------------------
  |  Branch (588:13): [True: 3.45k, False: 10.6k]
  ------------------
  589|       |            // Simply a shift by N-1 bits
  590|  3.45k|            return (n1 << 1) | (n0 >> (WordInfo<W>::bits - 1));
  591|  3.45k|         }
  592|       |
  593|  10.6k|         if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (593:13): [True: 10.6k, Folded]
  ------------------
  594|  10.6k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  595|  10.6k|            if constexpr(std::same_as<W, uint64_t>) {
  596|  10.6k|               W quotient = 0;
  597|  10.6k|               W remainder = 0;
  598|       |               // NOLINTNEXTLINE(*-no-assembler)
  599|  10.6k|               asm("divq %[v]" : "=a"(quotient), "=d"(remainder) : [v] "r"(m_divisor), "a"(n0), "d"(n1) : "cc");
  600|  10.6k|               return quotient;
  601|  10.6k|            }
  602|      0|#endif
  603|       |
  604|      0|#if !defined(BOTAN_BUILD_COMPILER_IS_CLANGCL)
  605|       |
  606|       |            /* clang-cl has a bug where on encountering a 128/64 division it emits
  607|       |            * a call to __udivti3() but then fails to link the relevant builtin into
  608|       |            * the binary, causing a link failure. Work around this by simply omitting
  609|       |            * such code for clang-cl
  610|       |            *
  611|       |            * See https://github.com/llvm/llvm-project/issues/25679
  612|       |            */
  613|  10.6k|            if constexpr(WordInfo<W>::dword_is_native) {
  614|  10.6k|               typename WordInfo<W>::dword n = n1;
  615|  10.6k|               n <<= WordInfo<W>::bits;
  616|  10.6k|               n |= n0;
  617|  10.6k|               return static_cast<W>(n / m_divisor);
  618|  10.6k|            }
  619|  10.6k|#endif
  620|  10.6k|         }
  621|       |
  622|      0|         W high = n1;
  623|  10.6k|         W quotient = 0;
  624|       |
  625|  10.6k|         for(size_t i = 0; i != WordInfo<W>::bits; ++i) {
  ------------------
  |  Branch (625:28): [True: 0, False: 10.6k]
  ------------------
  626|      0|            const W high_top_bit = high >> (WordInfo<W>::bits - 1);
  627|       |
  628|      0|            high <<= 1;
  629|      0|            high |= (n0 >> (WordInfo<W>::bits - 1 - i)) & 1;
  630|      0|            quotient <<= 1;
  631|       |
  632|      0|            if(high_top_bit || high >= m_divisor) {
  ------------------
  |  Branch (632:16): [True: 0, False: 0]
  |  Branch (632:32): [True: 0, False: 0]
  ------------------
  633|      0|               high -= m_divisor;
  634|      0|               quotient |= 1;
  635|      0|            }
  636|      0|         }
  637|       |
  638|  10.6k|         return quotient;
  639|  14.0k|      }
_ZN5Botan14divide_precompImE22vartime_div_2to1_max_dEmm:
  657|  2.10k|      static inline constexpr W vartime_div_2to1_max_d(W n1, W n0) {
  658|       |         /*
  659|       |         Use k to refer to WordInfo<W>::bits
  660|       |
  661|       |         We are dividing n = (n1 * 2^k) + n0 by 2^k - 1
  662|       |
  663|       |         Recall that 2^k = 1 (mod 2^k - 1)
  664|       |
  665|       |         Rewrite n = n1*2^k + n0 as n1*(2^k - 1) + n1 + n0
  666|       |
  667|       |         The result of dividing n by (2^k - 1) will be equal to
  668|       |         (n1*(2^k-1) + n1 + n0) / (2^k-1) =
  669|       |         n1 + ((n1 + n0) / (2^k-1)
  670|       |
  671|       |         Use c to refer to ((n1 + n0) / (2^k-1))
  672|       |
  673|       |         If (n1 + n0) < (2^k - 1) then c is 0
  674|       |         If (n1 + n0) >= (2^k - 1) then c is 1
  675|       |
  676|       |         Since n1 < 2^k - 1 [*] and n0 <= 2^k - 1 it is impossible for (n1 + n0) / (2^k -1)
  677|       |         to be greater than 1.
  678|       |
  679|       |         [*] We require n1 be strictly less than the divisor to ensure that the
  680|       |         output fits in a single word; this is checked at the start of vartime_div_2to1.
  681|       |         */
  682|       |
  683|  2.10k|         const W s = n0 + n1;
  684|       |         // did n0 + n1 overflow? or does (n0 + n1) == 2^k - 1? if either, c == 1
  685|  2.10k|         if(s < n0 || s == WordInfo<W>::max) {
  ------------------
  |  Branch (685:13): [True: 641, False: 1.46k]
  |  Branch (685:23): [True: 109, False: 1.35k]
  ------------------
  686|    750|            n1 += 1;
  687|    750|         }
  688|       |
  689|  2.10k|         return n1;
  690|  2.10k|      }
_ZN5Botan11bigint_shl2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  355|  3.44k|inline constexpr void bigint_shl2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  356|  3.44k|   const size_t word_shift = shift / WordInfo<W>::bits;
  357|  3.44k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  358|       |
  359|  3.44k|   BOTAN_ASSERT_NOMSG(word_shift <= y_size);
  ------------------
  |  |   77|  3.44k|   do {                                                                     \
  |  |   78|  3.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.44k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.44k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  360|  3.44k|   BOTAN_ASSERT_NOMSG(x_size < y_size - word_shift);
  ------------------
  |  |   77|  3.44k|   do {                                                                     \
  |  |   78|  3.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.44k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.44k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  361|       |
  362|  3.44k|   unchecked_copy_memory(y + word_shift, x, x_size);
  363|  3.44k|   zeroize_buffer(y, word_shift);
  364|  3.44k|   zeroize_buffer(y + word_shift + x_size, y_size - word_shift - x_size);
  365|       |
  366|  3.44k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  367|  3.44k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  368|       |
  369|  3.44k|   W carry = 0;
  370|  15.7k|   for(size_t i = word_shift; i != x_size + word_shift + 1; ++i) {
  ------------------
  |  Branch (370:31): [True: 12.2k, False: 3.44k]
  ------------------
  371|  12.2k|      const W w = y[i];
  372|  12.2k|      y[i] = (w << bit_shift) | carry;
  373|  12.2k|      carry = carry_mask.if_set_return(w >> carry_shift);
  374|  12.2k|   }
  375|  3.44k|}
_ZN5Botan15bigint_ct_is_eqITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_m:
  519|  8.62k|inline constexpr auto bigint_ct_is_eq(const W x[], size_t x_size, const W y[], size_t y_size) -> CT::Mask<W> {
  520|  8.62k|   const size_t common_elems = std::min(x_size, y_size);
  521|       |
  522|  8.62k|   W diff = 0;
  523|       |
  524|   107k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (524:22): [True: 99.0k, False: 8.62k]
  ------------------
  525|  99.0k|      diff |= (x[i] ^ y[i]);
  526|  99.0k|   }
  527|       |
  528|       |   // If any bits were set in high part of x/y, then they are not equal
  529|  8.62k|   if(x_size < y_size) {
  ------------------
  |  Branch (529:7): [True: 418, False: 8.20k]
  ------------------
  530|  6.32k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (530:30): [True: 5.91k, False: 418]
  ------------------
  531|  5.91k|         diff |= y[i];
  532|  5.91k|      }
  533|  8.20k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (533:14): [True: 629, False: 7.57k]
  ------------------
  534|  8.77k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (534:30): [True: 8.14k, False: 629]
  ------------------
  535|  8.14k|         diff |= x[i];
  536|  8.14k|      }
  537|    629|   }
  538|       |
  539|  8.62k|   return CT::Mask<W>::is_zero(diff);
  540|  8.62k|}
_ZN5Botan15bigint_ct_is_ltITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_mb:
  487|  3.44k|   -> CT::Mask<W> {
  488|  3.44k|   const size_t common_elems = std::min(x_size, y_size);
  489|       |
  490|  3.44k|   auto is_lt = CT::Mask<W>::expand(lt_or_equal);
  491|       |
  492|  38.4k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (492:22): [True: 34.9k, False: 3.44k]
  ------------------
  493|  34.9k|      const auto eq = CT::Mask<W>::is_equal(x[i], y[i]);
  494|  34.9k|      const auto lt = CT::Mask<W>::is_lt(x[i], y[i]);
  495|  34.9k|      is_lt = eq.select_mask(is_lt, lt);
  496|  34.9k|   }
  497|       |
  498|  3.44k|   if(x_size < y_size) {
  ------------------
  |  Branch (498:7): [True: 142, False: 3.30k]
  ------------------
  499|    142|      W mask = 0;
  500|    908|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (500:30): [True: 766, False: 142]
  ------------------
  501|    766|         mask |= y[i];
  502|    766|      }
  503|       |      // If any bits were set in high part of y, then is_lt should be forced true
  504|    142|      is_lt |= CT::Mask<W>::expand(mask);
  505|  3.30k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (505:14): [True: 485, False: 2.81k]
  ------------------
  506|    485|      W mask = 0;
  507|  10.1k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (507:30): [True: 9.65k, False: 485]
  ------------------
  508|  9.65k|         mask |= x[i];
  509|  9.65k|      }
  510|       |
  511|       |      // If any bits were set in high part of x, then is_lt should be false
  512|    485|      is_lt &= CT::Mask<W>::is_zero(mask);
  513|    485|   }
  514|       |
  515|  3.44k|   return is_lt;
  516|  3.44k|}
_ZN5Botan15bigint_cnd_swapITkNS_8WordTypeEmEEvT_PS1_S2_m:
   29|   685k|inline constexpr void bigint_cnd_swap(W cnd, W x[], W y[], size_t size) {
   30|   685k|   const auto mask = CT::Mask<W>::expand(cnd);
   31|       |
   32|  13.0M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (32:22): [True: 12.3M, False: 685k]
  ------------------
   33|  12.3M|      const W a = x[i];
   34|  12.3M|      const W b = y[i];
   35|  12.3M|      x[i] = mask.select(b, a);
   36|  12.3M|      y[i] = mask.select(a, b);
   37|  12.3M|   }
   38|   685k|}
_ZN5Botan11bigint_shl1ITkNS_8WordTypeEmEEvPT_mmm:
  309|   690k|inline constexpr void bigint_shl1(W x[], size_t x_size, size_t x_words, size_t shift) {
  310|   690k|   const size_t word_shift = shift / WordInfo<W>::bits;
  311|   690k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  312|       |
  313|   690k|   BOTAN_ASSERT_NOMSG(word_shift <= x_size);
  ------------------
  |  |   77|   690k|   do {                                                                     \
  |  |   78|   690k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   690k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 690k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   690k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 690k]
  |  |  ------------------
  ------------------
  314|   690k|   BOTAN_ASSERT_NOMSG(x_words <= x_size - word_shift);
  ------------------
  |  |   77|   690k|   do {                                                                     \
  |  |   78|   690k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   690k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 690k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   690k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 690k]
  |  |  ------------------
  ------------------
  315|       |
  316|   690k|   unchecked_copy_memory(x + word_shift, x, x_words);
  317|   690k|   zeroize_buffer(x, word_shift);
  318|       |
  319|   690k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  320|   690k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  321|       |
  322|   690k|   W carry = 0;
  323|  13.1M|   for(size_t i = word_shift; i != x_size; ++i) {
  ------------------
  |  Branch (323:31): [True: 12.4M, False: 690k]
  ------------------
  324|  12.4M|      const W w = x[i];
  325|  12.4M|      x[i] = (w << bit_shift) | carry;
  326|  12.4M|      carry = carry_mask.if_set_return(w >> carry_shift);
  327|  12.4M|   }
  328|   690k|}
_ZN5Botan14bigint_sub_absITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPS3_PKS3_S7_mS5_:
  279|     14|inline constexpr auto bigint_sub_abs(W z[], const W x[], const W y[], size_t N, W ws[]) -> CT::Mask<W> {
  280|       |   // Subtract in both direction then conditional copy out the result
  281|       |
  282|     14|   W* ws0 = ws;
  283|     14|   W* ws1 = ws + N;
  284|       |
  285|     14|   W borrow0 = 0;
  286|     14|   W borrow1 = 0;
  287|       |
  288|     14|   const size_t blocks = N - (N % 8);
  289|       |
  290|     42|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (290:22): [True: 28, False: 14]
  ------------------
  291|     28|      borrow0 = word8_sub3(ws0 + i, x + i, y + i, borrow0);
  292|     28|      borrow1 = word8_sub3(ws1 + i, y + i, x + i, borrow1);
  293|     28|   }
  294|       |
  295|     30|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (295:27): [True: 16, False: 14]
  ------------------
  296|     16|      ws0[i] = word_sub(x[i], y[i], &borrow0);
  297|     16|      ws1[i] = word_sub(y[i], x[i], &borrow1);
  298|     16|   }
  299|       |
  300|     14|   return CT::conditional_copy_mem(borrow0, z, ws1, ws0, N);
  301|     14|}
_ZN5Botan11bigint_add2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
   94|     21|inline constexpr auto bigint_add2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
   95|     21|   W carry = 0;
   96|       |
   97|     21|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|     21|   do {                                                                                 \
  |  |   65|     21|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     21|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 21]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     21|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 21]
  |  |  ------------------
  ------------------
   98|       |
   99|     21|   const size_t blocks = y_size - (y_size % 8);
  100|       |
  101|     49|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (101:22): [True: 28, False: 21]
  ------------------
  102|     28|      carry = word8_add2(x + i, y + i, carry);
  103|     28|   }
  104|       |
  105|     51|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (105:27): [True: 30, False: 21]
  ------------------
  106|     30|      x[i] = word_add(x[i], y[i], &carry);
  107|     30|   }
  108|       |
  109|    247|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (109:27): [True: 226, False: 21]
  ------------------
  110|    226|      x[i] = word_add(x[i], static_cast<W>(0), &carry);
  111|    226|   }
  112|       |
  113|     21|   return carry;
  114|     21|}
_ZN5Botan14bigint_cnd_addITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   45|      7|inline constexpr W bigint_cnd_add(W cnd, W x[], const W y[], size_t size) {
   46|      7|   const auto mask = CT::Mask<W>::expand(cnd).value();
   47|       |
   48|      7|   W carry = 0;
   49|       |
   50|    367|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (50:22): [True: 360, False: 7]
  ------------------
   51|    360|      x[i] = word_add(x[i], y[i] & mask, &carry);
   52|    360|   }
   53|       |
   54|      7|   return (mask & carry);
   55|      7|}
_ZN5Botan14bigint_cnd_subITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   62|      7|inline constexpr auto bigint_cnd_sub(W cnd, W x[], const W y[], size_t size) -> W {
   63|      7|   const auto mask = CT::Mask<W>::expand(cnd).value();
   64|       |
   65|      7|   W carry = 0;
   66|       |
   67|    367|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (67:22): [True: 360, False: 7]
  ------------------
   68|    360|      x[i] = word_sub(x[i], y[i] & mask, &carry);
   69|    360|   }
   70|       |
   71|      7|   return (mask & carry);
   72|      7|}
_ZN5Botan11bigint_sub2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
  148|  14.4k|inline constexpr auto bigint_sub2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
  149|  14.4k|   W borrow = 0;
  150|       |
  151|  14.4k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  14.4k|   do {                                                                                 \
  |  |   65|  14.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  14.4k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 14.4k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  14.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 14.4k]
  |  |  ------------------
  ------------------
  152|       |
  153|  14.4k|   const size_t blocks = y_size - (y_size % 8);
  154|       |
  155|  42.7k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (155:22): [True: 28.3k, False: 14.4k]
  ------------------
  156|  28.3k|      borrow = word8_sub2(x + i, y + i, borrow);
  157|  28.3k|   }
  158|       |
  159|  62.9k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (159:27): [True: 48.5k, False: 14.4k]
  ------------------
  160|  48.5k|      x[i] = word_sub(x[i], y[i], &borrow);
  161|  48.5k|   }
  162|       |
  163|  14.6k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (163:27): [True: 218, False: 14.4k]
  ------------------
  164|    218|      x[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  165|    218|   }
  166|       |
  167|  14.4k|   return borrow;
  168|  14.4k|}
_ZN5Botan15bigint_sub2_revITkNS_8WordTypeEmEEvPT_PKS1_m:
  174|    836|inline constexpr void bigint_sub2_rev(W x[], const W y[], size_t y_size) {
  175|    836|   W borrow = 0;
  176|       |
  177|  15.5k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (177:22): [True: 14.7k, False: 836]
  ------------------
  178|  14.7k|      x[i] = word_sub(y[i], x[i], &borrow);
  179|  14.7k|   }
  180|       |
  181|    836|   BOTAN_ASSERT(borrow == 0, "y must be greater than x");
  ------------------
  |  |   64|    836|   do {                                                                                 \
  |  |   65|    836|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    836|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 836]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    836|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 836]
  |  |  ------------------
  ------------------
  182|    836|}
_ZN5Botan11bigint_shr1ITkNS_8WordTypeEmEEvPT_mm:
  331|  19.2k|inline constexpr void bigint_shr1(W x[], size_t x_size, size_t shift) {
  332|  19.2k|   const size_t word_shift = shift / WordInfo<W>::bits;
  333|  19.2k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  334|       |
  335|  19.2k|   const size_t top = x_size >= word_shift ? (x_size - word_shift) : 0;
  ------------------
  |  Branch (335:23): [True: 19.2k, False: 0]
  ------------------
  336|       |
  337|  19.2k|   if(top > 0) {
  ------------------
  |  Branch (337:7): [True: 19.2k, False: 0]
  ------------------
  338|  19.2k|      unchecked_copy_memory(x, x + word_shift, top);
  339|  19.2k|   }
  340|  19.2k|   zeroize_buffer(x + top, std::min(word_shift, x_size));
  341|       |
  342|  19.2k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  343|  19.2k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  344|       |
  345|  19.2k|   W carry = 0;
  346|       |
  347|   709k|   for(size_t i = 0; i != top; ++i) {
  ------------------
  |  Branch (347:22): [True: 690k, False: 19.2k]
  ------------------
  348|   690k|      const W w = x[top - i - 1];
  349|   690k|      x[top - i - 1] = (w >> bit_shift) | carry;
  350|   690k|      carry = carry_mask.if_set_return(w << carry_shift);
  351|   690k|   }
  352|  19.2k|}

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

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

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

_ZN5Botan6BigIntD2Ev:
  185|  47.6k|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  8.65k|      BigInt& operator=(BigInt&& other) noexcept {
  191|  8.65k|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 8.65k, False: 0]
  ------------------
  192|  8.65k|            this->swap(other);
  193|  8.65k|         }
  194|       |
  195|  8.65k|         return (*this);
  196|  8.65k|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  8.65k|      void swap(BigInt& other) noexcept {
  208|  8.65k|         m_data.swap(other.m_data);
  209|  8.65k|         std::swap(m_signedness, other.m_signedness);
  210|  8.65k|      }
_ZN5Botan6BigInt4Data4swapERS1_:
 1090|  8.65k|            void swap(Data& other) noexcept {
 1091|  8.65k|               m_reg.swap(other.m_reg);
 1092|  8.65k|               std::swap(m_sig_words, other.m_sig_words);
 1093|  8.65k|            }
_ZN5BotaneqERKNS_6BigIntEm:
 1186|  3.47k|inline bool operator==(const BigInt& a, word b) {
 1187|  3.47k|   return (a.cmp_word(b) == 0);
 1188|  3.47k|}
_ZN5BotanltERKNS_6BigIntES2_:
 1178|  3.44k|inline bool operator<(const BigInt& a, const BigInt& b) {
 1179|  3.44k|   return a.is_less_than(b);
 1180|  3.44k|}
_ZN5BotanplERKNS_6BigIntES2_:
 1125|  3.44k|inline BigInt operator+(const BigInt& x, const BigInt& y) {
 1126|  3.44k|   return BigInt::add2(x, y._data(), y.sig_words(), y.sign());
 1127|  3.44k|}
_ZNK5Botan6BigInt5_dataEv:
  972|  1.46M|      const word* _data() const { return m_data.const_data(); }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1027|  1.51M|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt9sig_wordsEv:
  648|   171k|      size_t sig_words() const { return m_data.sig_words(); }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1102|   171k|            size_t sig_words() const {
 1103|   171k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1103:19): [True: 72.1k, False: 99.5k]
  ------------------
 1104|  72.1k|                  m_sig_words = calc_sig_words();
 1105|  72.1k|               }
 1106|   171k|               return m_sig_words;
 1107|   171k|            }
_ZNK5Botan6BigInt4signEv:
  604|   144k|      Sign sign() const { return (m_signedness); }
_ZN5BotanneERKNS_6BigIntES2_:
 1166|  8.62k|inline bool operator!=(const BigInt& a, const BigInt& b) {
 1167|  8.62k|   return !a.is_equal(b);
 1168|  8.62k|}
_ZNK5Botan6BigInt7word_atEm:
  574|  3.45M|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1038|  3.45M|            word get_word_at(size_t n) const {
 1039|  3.45M|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1039:19): [True: 3.45M, False: 4.52k]
  ------------------
 1040|  3.45M|                  return m_reg[n];
 1041|  3.45M|               }
 1042|  4.52k|               return 0;
 1043|  3.45M|            }
_ZN5Botan6BigInt4zeroEv:
   50|  3.44k|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigInt8swap_regERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  214|    190|      BOTAN_DEPRECATED("Deprecated no replacement") void swap_reg(secure_vector<word>& reg) {
  215|    190|         m_data.swap(reg);
  216|       |         // sign left unchanged
  217|    190|      }
_ZN5Botan6BigInt3subEPKmmNS0_4SignE:
  332|  14.8k|      BigInt& sub(const word y[], size_t y_words, Sign sign) {
  333|  14.8k|         return add(y, y_words, sign == Positive ? Negative : Positive);
  ------------------
  |  Branch (333:33): [True: 14.8k, False: 0]
  ------------------
  334|  14.8k|      }
_ZN5Botan6BigInt5clearEv:
  415|  3.47k|      void clear() {
  416|  3.47k|         m_data.set_to_zero();
  417|  3.47k|         m_signedness = Positive;
  418|  3.47k|      }
_ZNK5Botan6BigInt6signumEv:
  467|  46.2k|      int signum() const {
  468|  46.2k|         if(sig_words() == 0) {
  ------------------
  |  Branch (468:13): [True: 2.00k, False: 44.2k]
  ------------------
  469|  2.00k|            return 0;
  470|  2.00k|         }
  471|  44.2k|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (471:17): [True: 418, False: 43.8k]
  ------------------
  472|  46.2k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  484|  9.04k|      bool is_zero() const { return sig_words() == 0; }
_ZN5Botan6BigInt21conditionally_set_bitEmb:
  500|  2.03M|      void conditionally_set_bit(size_t n, bool set_it) {
  501|  2.03M|         const size_t which = n / (sizeof(word) * 8);
  502|  2.03M|         const word mask = static_cast<word>(set_it) << (n % (sizeof(word) * 8));
  503|  2.03M|         m_data.set_word_at(which, word_at(which) | mask);
  504|  2.03M|      }
_ZNK5Botan6BigInt7get_bitEm:
  523|  1.35M|      bool get_bit(size_t n) const { return ((word_at(n / (sizeof(word) * 8)) >> (n % (sizeof(word) * 8))) & 1) == 1; }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  625|  38.5k|      void set_sign(Sign sign) {
  626|  38.5k|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (626:13): [True: 418, False: 38.1k]
  |  Branch (626:33): [True: 0, False: 418]
  ------------------
  627|      0|            sign = Positive;
  628|      0|         }
  629|       |
  630|  38.5k|         m_signedness = sign;
  631|  38.5k|      }
_ZNK5Botan6BigInt4sizeEv:
  642|  35.4k|      size_t size() const { return m_data.size(); }
_ZN5Botan6BigInt12mutable_dataEv:
  673|  2.78M|      BOTAN_DEPRECATED("Deprecated no replacement") word* mutable_data() { return m_data.mutable_data(); }
_ZNK5Botan6BigInt7grow_toEm:
  699|  50.8k|      BOTAN_DEPRECATED("Deprecated no replacement") void grow_to(size_t n) const { m_data.grow_to(n); }
_ZN5Botan6BigInt4Data12mutable_dataEv:
 1022|  2.81M|            word* mutable_data() {
 1023|  2.81M|               invalidate_sig_words();
 1024|  2.81M|               return m_reg.data();
 1025|  2.81M|            }
_ZN5Botan6BigInt4Data11set_word_atEmm:
 1045|  2.03M|            void set_word_at(size_t i, word w) {
 1046|  2.03M|               invalidate_sig_words();
 1047|  2.03M|               if(i >= m_reg.size()) {
  ------------------
  |  Branch (1047:19): [True: 1.73k, False: 2.03M]
  ------------------
 1048|  1.73k|                  if(w == 0) {
  ------------------
  |  Branch (1048:22): [True: 29, False: 1.70k]
  ------------------
 1049|     29|                     return;
 1050|     29|                  }
 1051|  1.70k|                  grow_to(i + 1);
 1052|  1.70k|               }
 1053|  2.03M|               m_reg[i] = w;
 1054|  2.03M|            }
_ZNK5Botan6BigInt4Data7grow_toEm:
 1065|  58.0k|            void grow_to(size_t n) const {
 1066|  58.0k|               if(n > size()) {
  ------------------
  |  Branch (1066:19): [True: 37.4k, False: 20.5k]
  ------------------
 1067|  37.4k|                  if(n <= m_reg.capacity()) {
  ------------------
  |  Branch (1067:22): [True: 0, False: 37.4k]
  ------------------
 1068|      0|                     m_reg.resize(n);
 1069|  37.4k|                  } else {
 1070|  37.4k|                     m_reg.resize(n + (8 - (n % 8)));
 1071|  37.4k|                  }
 1072|  37.4k|               }
 1073|  58.0k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1075|   160k|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1095|  3.66k|            void swap(secure_vector<word>& reg) noexcept {
 1096|  3.66k|               m_reg.swap(reg);
 1097|  3.66k|               invalidate_sig_words();
 1098|  3.66k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1100|  4.85M|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZN5BotanmlEmRKNS_6BigIntE:
 1148|  14.8k|inline BigInt operator*(word x, const BigInt& y) {
 1149|  14.8k|   return y * x;
 1150|  14.8k|}
_ZN5Botan6BigIntC2Ev:
   45|  38.9k|      BigInt() = default;
_ZN5Botan6BigIntC2ERKS0_:
   88|  6.88k|      BigInt(const BigInt& other) = default;
_ZN5Botan6BigIntaSERKS0_:
  201|  12.0k|      BigInt& operator=(const BigInt&) = default;

_ZN5Botan9clear_memImEEvPT_m:
  118|  6.92k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  6.92k|   clear_bytes(ptr, sizeof(T) * n);
  120|  6.92k|}
_ZN5Botan11clear_bytesEPvm:
  101|  6.92k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  6.92k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 3.44k, False: 3.47k]
  ------------------
  103|  3.44k|      std::memset(ptr, 0, bytes);
  104|  3.44k|   }
  105|  6.92k|}
_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|  21.9k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  21.9k|   ToT dst;  // NOLINT(*-member-init)
  212|  21.9k|   typecast_copy(dst, src);
  213|  21.9k|   return dst;
  214|  21.9k|}
_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|  21.9k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  21.9k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  21.9k|}
_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|  21.9k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  21.9k|   ranges::assert_equal_byte_lengths(out, in);
  178|  21.9k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  21.9k|}
_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|  2.80k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  2.80k|   ranges::assert_equal_byte_lengths(out, in);
  162|  2.80k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 2.80k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  2.80k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 2.80k, False: 0]
  ------------------
  165|  2.80k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  2.80k|   }
  167|  2.80k|}
_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|  2.80k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  2.80k|   ToT dst;  // NOLINT(*-member-init)
  212|  2.80k|   typecast_copy(dst, src);
  213|  2.80k|   return dst;
  214|  2.80k|}
_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|  2.80k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  2.80k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  2.80k|}
_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|  2.80k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  2.80k|   ranges::assert_equal_byte_lengths(out, in);
  178|  2.80k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  2.80k|}

_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  2.80k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.80k|   const std::span s{r};
   79|  2.80k|   if constexpr(statically_spanable_range<R>) {
   80|  2.80k|      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|  2.80k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|  43.8k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  43.8k|   const std::span s{r};
   79|  43.8k|   if constexpr(statically_spanable_range<R>) {
   80|  43.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|  43.8k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  21.9k|{
  101|  21.9k|   const std::span s0{r0};
  102|       |
  103|  21.9k|   if constexpr(statically_spanable_range<R0>) {
  104|  21.9k|      constexpr size_t expected_size = s0.size_bytes();
  105|  21.9k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  21.9k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  24.7k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  24.7k|   return std::span{r}.size_bytes();
   61|  24.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.80k|{
  101|  2.80k|   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|  2.80k|   } else {
  107|  2.80k|      const size_t expected_size = s0.size_bytes();
  108|  2.80k|      const bool correct_size =
  109|  2.80k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  2.80k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2.80k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  2.80k|   }
  115|  2.80k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  5.61k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  5.61k|   return std::span{r}.size_bytes();
   61|  5.61k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  2.80k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.80k|   const std::span s{r};
   79|  2.80k|   if constexpr(statically_spanable_range<R>) {
   80|  2.80k|      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|  2.80k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.80k|{
  101|  2.80k|   const std::span s0{r0};
  102|       |
  103|  2.80k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.80k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.80k|      (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|  2.80k|}

_ZN5Botan16secure_allocatorImE10deallocateEPmm:
   54|  51.5k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   52|  51.5k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }

_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  24.7k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  24.7k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  24.7k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  24.7k|}

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   10|  1.75k|void fuzz(std::span<const uint8_t> in) {
   11|  1.75k|   if(in.size() > 2 * 4096 / 8) {
  ------------------
  |  Branch (11:7): [True: 15, False: 1.73k]
  ------------------
   12|     15|      return;
   13|     15|   }
   14|       |
   15|       |   // Save on allocations by making these static
   16|  1.73k|   static Botan::BigInt x;
   17|  1.73k|   static Botan::BigInt y;
   18|  1.73k|   static Botan::BigInt q;
   19|  1.73k|   static Botan::BigInt r;
   20|  1.73k|   static Botan::BigInt ct_q;
   21|  1.73k|   static Botan::BigInt ct_r;
   22|  1.73k|   static Botan::BigInt z;
   23|       |
   24|  1.73k|   x = Botan::BigInt::from_bytes(in.subspan(0, in.size() / 2));
   25|  1.73k|   y = Botan::BigInt::from_bytes(in.subspan(in.size() / 2, in.size() - in.size() / 2));
   26|       |
   27|  1.73k|   if(y == 0) {
  ------------------
  |  Branch (27:7): [True: 3, False: 1.73k]
  ------------------
   28|      3|      return;
   29|      3|   }
   30|       |
   31|  1.73k|   Botan::vartime_divide(x, y, q, r);
   32|       |
   33|  1.73k|   FUZZER_ASSERT_TRUE(r < y);
  ------------------
  |  |   89|  1.73k|   do {                                                               \
  |  |   90|  1.73k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                   \
  |  |   91|  1.73k|      if(!(e)) {                                                      \
  |  |  ------------------
  |  |  |  Branch (91:10): [True: 0, False: 1.73k]
  |  |  ------------------
  |  |   92|      0|         FUZZER_WRITE_AND_CRASH("Expression " << #e << " was false"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   93|      0|      }                                                               \
  |  |   94|  1.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (94:12): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
   34|       |
   35|  1.73k|   z = q * y + r;
   36|       |
   37|  1.73k|   FUZZER_ASSERT_EQUAL(z, x);
  ------------------
  |  |   79|  1.73k|   do {                                                                                      \
  |  |   80|  1.73k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.73k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
   38|       |
   39|  1.73k|   Botan::ct_divide(x, y, ct_q, ct_r);
   40|       |
   41|  1.73k|   FUZZER_ASSERT_EQUAL(q, ct_q);
  ------------------
  |  |   79|  1.73k|   do {                                                                                      \
  |  |   80|  1.73k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.73k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
   42|  1.73k|   FUZZER_ASSERT_EQUAL(r, ct_r);
  ------------------
  |  |   79|  1.73k|   do {                                                                                      \
  |  |   80|  1.73k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.73k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
   43|       |
   44|       |   // Now divide by just low word of y
   45|       |
   46|  1.73k|   y = y.word_at(0);
   47|  1.73k|   if(y == 0) {
  ------------------
  |  Branch (47:7): [True: 29, False: 1.70k]
  ------------------
   48|     29|      return;
   49|     29|   }
   50|       |
   51|  1.70k|   Botan::vartime_divide(x, y, q, r);
   52|       |
   53|  1.70k|   FUZZER_ASSERT_TRUE(r < y);
  ------------------
  |  |   89|  1.70k|   do {                                                               \
  |  |   90|  1.70k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                   \
  |  |   91|  1.70k|      if(!(e)) {                                                      \
  |  |  ------------------
  |  |  |  Branch (91:10): [True: 0, False: 1.70k]
  |  |  ------------------
  |  |   92|      0|         FUZZER_WRITE_AND_CRASH("Expression " << #e << " was false"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   93|      0|      }                                                               \
  |  |   94|  1.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (94:12): [Folded, False: 1.70k]
  |  |  ------------------
  ------------------
   54|  1.70k|   z = q * y + r;
   55|  1.70k|   FUZZER_ASSERT_EQUAL(z, x);
  ------------------
  |  |   79|  1.70k|   do {                                                                                      \
  |  |   80|  1.70k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.70k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.70k]
  |  |  ------------------
  ------------------
   56|       |
   57|  1.70k|   Botan::word rw = 0;
   58|  1.70k|   Botan::ct_divide_word(x, y.word_at(0), ct_q, rw);
   59|  1.70k|   FUZZER_ASSERT_EQUAL(ct_q, q);
  ------------------
  |  |   79|  1.70k|   do {                                                                                      \
  |  |   80|  1.70k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.70k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.70k]
  |  |  ------------------
  ------------------
   60|  1.70k|   FUZZER_ASSERT_EQUAL(rw, r.word_at(0));
  ------------------
  |  |   79|  1.70k|   do {                                                                                      \
  |  |   80|  1.70k|      if((x) != (y)) {                                                                       \
  |  |  ------------------
  |  |  |  Branch (80:10): [True: 0, False: 1.70k]
  |  |  ------------------
  |  |   81|      0|         FUZZER_WRITE_AND_CRASH(#x << " = " << (x) << " != " << #y << " = " << (y) << "\n"); \
  |  |  ------------------
  |  |  |  |   70|      0|   do {                                                                                                       \
  |  |  |  |   71|      0|      std::cerr << expr << " @ Line " << __LINE__ << " in " << __FILE__ << "\n"; /* NOLINT(*-macro-paren*) */ \
  |  |  |  |   72|      0|      abort();                                                                                                \
  |  |  |  |   73|      0|   } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:12): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      0|      }                                                                                      \
  |  |   83|  1.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.70k]
  |  |  ------------------
  ------------------
   61|  1.70k|}

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

_ZN5Botan6BigIntpLERKS0_:
   16|    418|BigInt& BigInt::operator+=(const BigInt& y) {
   17|    418|   if(&y == this) {
  ------------------
  |  Branch (17:7): [True: 0, False: 418]
  ------------------
   18|      0|      return *this <<= 1;
   19|      0|   }
   20|    418|   return add(y._data(), y.sig_words(), y.sign());
   21|    418|}
_ZN5Botan6BigIntmIERKS0_:
   23|  14.8k|BigInt& BigInt::operator-=(const BigInt& y) {
   24|  14.8k|   if(&y == this) {
  ------------------
  |  Branch (24:7): [True: 0, False: 14.8k]
  ------------------
   25|      0|      this->clear();
   26|      0|      this->set_sign(Positive);
   27|      0|      return *this;
   28|      0|   }
   29|  14.8k|   return sub(y._data(), y.sig_words(), y.sign());
   30|  14.8k|}
_ZN5Botan6BigInt3addEPKmmNS0_4SignE:
   32|  15.2k|BigInt& BigInt::add(const word y[], size_t y_words, Sign y_sign) {
   33|  15.2k|   const size_t x_sw = sig_words();
   34|       |
   35|  15.2k|   grow_to(std::max(x_sw, y_words) + 1);
   36|       |
   37|  15.2k|   if(sign() == y_sign) {
  ------------------
  |  Branch (37:7): [True: 0, False: 15.2k]
  ------------------
   38|      0|      const word carry = bigint_add2(mutable_data(), size() - 1, y, y_words);
   39|      0|      mutable_data()[size() - 1] += carry;
   40|  15.2k|   } else {
   41|  15.2k|      const int32_t relative_size = bigint_cmp(_data(), x_sw, y, y_words);
   42|       |
   43|  15.2k|      if(relative_size >= 0) {
  ------------------
  |  Branch (43:10): [True: 14.4k, False: 836]
  ------------------
   44|       |         // *this >= y
   45|  14.4k|         bigint_sub2(mutable_data(), x_sw, y, y_words);
   46|  14.4k|      } else {
   47|       |         // *this < y: compute *this = y - *this
   48|    836|         bigint_sub2_rev(mutable_data(), y, y_words);
   49|    836|      }
   50|       |
   51|  15.2k|      if(relative_size < 0) {
  ------------------
  |  Branch (51:10): [True: 836, False: 14.4k]
  ------------------
   52|    836|         set_sign(y_sign);
   53|  14.4k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (53:17): [True: 493, False: 13.9k]
  ------------------
   54|    493|         set_sign(Positive);
   55|    493|      }
   56|  15.2k|   }
   57|       |
   58|  15.2k|   return (*this);
   59|  15.2k|}
_ZN5Botan6BigIntlSEm:
  269|  5.40k|BigInt& BigInt::operator<<=(size_t shift) {
  270|  5.40k|   if(shift >= 65536) {
  ------------------
  |  Branch (270:7): [True: 0, False: 5.40k]
  ------------------
  271|      0|      throw Invalid_Argument("BigInt left shift count too large");
  272|      0|   }
  273|       |
  274|  5.40k|   const size_t sw = sig_words();
  275|  5.40k|   const size_t new_size = sw + (shift + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
  276|       |
  277|  5.40k|   m_data.grow_to(new_size);
  278|       |
  279|  5.40k|   bigint_shl1(m_data.mutable_data(), new_size, sw, shift);
  280|       |
  281|  5.40k|   return (*this);
  282|  5.40k|}
_ZN5Botan6BigIntrSEm:
  287|  19.2k|BigInt& BigInt::operator>>=(size_t shift) {
  288|  19.2k|   bigint_shr1(m_data.mutable_data(), m_data.size(), shift);
  289|       |
  290|  19.2k|   if(sig_words() == 0 && m_signedness == Negative) {
  ------------------
  |  Branch (290:7): [True: 550, False: 18.6k]
  |  Branch (290:27): [True: 0, False: 550]
  ------------------
  291|      0|      m_signedness = Positive;
  292|      0|   }
  293|       |
  294|  19.2k|   return (*this);
  295|  19.2k|}

_ZN5Botan6BigInt4add2ERKS0_PKmmNS0_4SignE:
   20|  3.44k|BigInt BigInt::add2(const BigInt& x, const word y[], size_t y_size, BigInt::Sign y_sign) {
   21|  3.44k|   const size_t x_sw = x.sig_words();
   22|       |
   23|  3.44k|   BigInt z = BigInt::with_capacity(std::max(x_sw, y_size) + 1);
   24|       |
   25|  3.44k|   if(x.sign() == y_sign) {
  ------------------
  |  Branch (25:7): [True: 3.44k, False: 0]
  ------------------
   26|  3.44k|      const word carry = bigint_add3(z.mutable_data(), x._data(), x_sw, y, y_size);
   27|  3.44k|      z.mutable_data()[std::max(x_sw, y_size)] += carry;
   28|  3.44k|      z.set_sign(x.sign());
   29|  3.44k|   } else {
   30|      0|      const int32_t relative_size = bigint_cmp(x.data(), x_sw, y, y_size);
   31|       |
   32|      0|      if(relative_size < 0) {
  ------------------
  |  Branch (32:10): [True: 0, False: 0]
  ------------------
   33|       |         // x < y so z = abs(y - x)
   34|       |         // NOLINTNEXTLINE(*-suspicious-call-argument) intentionally swapping x and y here
   35|      0|         bigint_sub3(z.mutable_data(), y, y_size, x.data(), x_sw);
   36|      0|         z.set_sign(y_sign);
   37|      0|      } else if(relative_size == 0) {
  ------------------
  |  Branch (37:17): [True: 0, False: 0]
  ------------------
   38|       |         // Positive zero (nothing to do in this case)
   39|      0|      } else {
   40|       |         /*
   41|       |         * We know at this point that x >= y so if y_size is larger than
   42|       |         * x_sw, we are guaranteed they are just leading zeros which can
   43|       |         * be ignored
   44|       |         */
   45|      0|         y_size = std::min(x_sw, y_size);
   46|      0|         bigint_sub3(z.mutable_data(), x.data(), x_sw, y, y_size);
   47|      0|         z.set_sign(x.sign());
   48|      0|      }
   49|      0|   }
   50|       |
   51|  3.44k|   return z;
   52|  3.44k|}
_ZN5BotanmlERKNS_6BigIntES2_:
   57|  3.44k|BigInt operator*(const BigInt& x, const BigInt& y) {
   58|  3.44k|   const size_t x_sw = x.sig_words();
   59|  3.44k|   const size_t y_sw = y.sig_words();
   60|       |
   61|  3.44k|   BigInt z = BigInt::with_capacity(x.size() + y.size());
   62|       |
   63|  3.44k|   if(x_sw == 1 && y_sw > 0) {
  ------------------
  |  Branch (63:7): [True: 1.63k, False: 1.80k]
  |  Branch (63:20): [True: 1.63k, False: 0]
  ------------------
   64|  1.63k|      bigint_linmul3(z.mutable_data(), y._data(), y_sw, x.word_at(0));
   65|  1.80k|   } else if(y_sw == 1 && x_sw > 0) {
  ------------------
  |  Branch (65:14): [True: 1.36k, False: 445]
  |  Branch (65:27): [True: 830, False: 534]
  ------------------
   66|    830|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y.word_at(0));
   67|    979|   } else if(x_sw > 0 && y_sw > 0) {
  ------------------
  |  Branch (67:14): [True: 239, False: 740]
  |  Branch (67:26): [True: 239, False: 0]
  ------------------
   68|    239|      secure_vector<word> workspace(z.size());
   69|       |
   70|    239|      bigint_mul(z.mutable_data(),
   71|    239|                 z.size(),
   72|    239|                 x._data(),
   73|    239|                 x.size(),
   74|    239|                 x_sw,
   75|    239|                 y._data(),
   76|    239|                 y.size(),
   77|    239|                 y_sw,
   78|    239|                 workspace.data(),
   79|    239|                 workspace.size());
   80|    239|   }
   81|       |
   82|  3.44k|   z.cond_flip_sign(x_sw > 0 && y_sw > 0 && x.sign() != y.sign());
  ------------------
  |  Branch (82:21): [True: 2.70k, False: 740]
  |  Branch (82:33): [True: 2.70k, False: 0]
  |  Branch (82:45): [True: 0, False: 2.70k]
  ------------------
   83|       |
   84|  3.44k|   return z;
   85|  3.44k|}
_ZN5BotanmlERKNS_6BigIntEm:
   90|  14.8k|BigInt operator*(const BigInt& x, word y) {
   91|  14.8k|   const size_t x_sw = x.sig_words();
   92|       |
   93|  14.8k|   BigInt z = BigInt::with_capacity(x_sw + 1);
   94|       |
   95|  14.8k|   if(x_sw > 0 && y > 0) {
  ------------------
  |  Branch (95:7): [True: 14.8k, False: 0]
  |  Branch (95:19): [True: 14.8k, False: 0]
  ------------------
   96|  14.8k|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y);
   97|  14.8k|      z.set_sign(x.sign());
   98|  14.8k|   }
   99|       |
  100|  14.8k|   return z;
  101|  14.8k|}
_ZN5BotanlsERKNS_6BigIntEm:
  188|  3.44k|BigInt operator<<(const BigInt& x, size_t shift) {
  189|  3.44k|   if(shift >= 65536) {
  ------------------
  |  Branch (189:7): [True: 0, False: 3.44k]
  ------------------
  190|      0|      throw Invalid_Argument("BigInt left shift count too large");
  191|      0|   }
  192|       |
  193|  3.44k|   if(x.is_zero()) {
  ------------------
  |  Branch (193:7): [True: 0, False: 3.44k]
  ------------------
  194|      0|      return BigInt::zero();
  195|      0|   }
  196|       |
  197|  3.44k|   const size_t x_sw = x.sig_words();
  198|       |
  199|  3.44k|   const size_t new_size = x_sw + shift / WordInfo<word>::bits + 1;
  200|  3.44k|   BigInt y = BigInt::with_capacity(new_size);
  201|  3.44k|   bigint_shl2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  202|  3.44k|   y.set_sign(x.sign());
  203|  3.44k|   return y;
  204|  3.44k|}

_ZN5Botan6BigIntC2Em:
   20|  1.73k|BigInt::BigInt(uint64_t n) {
   21|  1.73k|   if constexpr(sizeof(word) == 8) {
   22|  1.73k|      m_data.set_word_at(0, static_cast<word>(n));
   23|       |   } else {
   24|       |      m_data.set_word_at(1, static_cast<word>(n >> 32));
   25|       |      m_data.set_word_at(0, static_cast<word>(n));
   26|       |   }
   27|  1.73k|}
_ZN5Botan6BigInt13with_capacityEm:
   51|  32.0k|BigInt BigInt::with_capacity(size_t size) {
   52|  32.0k|   BigInt bn;
   53|  32.0k|   bn.grow_to(size);
   54|  32.0k|   return bn;
   55|  32.0k|}
_ZN5Botan6BigInt10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   83|  3.47k|BigInt BigInt::from_bytes(std::span<const uint8_t> input) {
   84|  3.47k|   BigInt r;
   85|  3.47k|   r.assign_from_bytes(input);
   86|  3.47k|   return r;
   87|  3.47k|}
_ZNK5Botan6BigInt8cmp_wordEm:
  122|  3.47k|int32_t BigInt::cmp_word(word other) const {
  123|  3.47k|   if(signum() < 0) {
  ------------------
  |  Branch (123:7): [True: 0, False: 3.47k]
  ------------------
  124|      0|      return -1;  // other is positive ...
  125|      0|   }
  126|       |
  127|  3.47k|   const size_t sw = this->sig_words();
  128|  3.47k|   if(sw > 1) {
  ------------------
  |  Branch (128:7): [True: 906, False: 2.56k]
  ------------------
  129|    906|      return 1;  // must be larger since other is just one word ...
  130|    906|   }
  131|       |
  132|  2.56k|   return bigint_cmp(this->_data(), sw, &other, 1);
  133|  3.47k|}
_ZNK5Botan6BigInt8is_equalERKS0_:
  156|  8.62k|bool BigInt::is_equal(const BigInt& other) const {
  157|  8.62k|   if(this->sign() != other.sign()) {
  ------------------
  |  Branch (157:7): [True: 0, False: 8.62k]
  ------------------
  158|      0|      return false;
  159|      0|   }
  160|       |
  161|  8.62k|   return bigint_ct_is_eq(this->_data(), this->size(), other._data(), other.size()).as_bool();
  162|  8.62k|}
_ZNK5Botan6BigInt12is_less_thanERKS0_:
  164|  3.44k|bool BigInt::is_less_than(const BigInt& other) const {
  165|  3.44k|   if(this->signum() < 0 && other.signum() >= 0) {
  ------------------
  |  Branch (165:7): [True: 0, False: 3.44k]
  |  Branch (165:29): [True: 0, False: 0]
  ------------------
  166|      0|      return true;
  167|      0|   }
  168|       |
  169|  3.44k|   if(this->signum() >= 0 && other.signum() < 0) {
  ------------------
  |  Branch (169:7): [True: 3.44k, False: 0]
  |  Branch (169:30): [True: 0, False: 3.44k]
  ------------------
  170|      0|      return false;
  171|      0|   }
  172|       |
  173|  3.44k|   if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (173:7): [True: 0, False: 3.44k]
  |  Branch (173:29): [True: 0, False: 0]
  ------------------
  174|      0|      return bigint_ct_is_lt(other._data(), other.size(), this->_data(), this->size()).as_bool();
  175|      0|   }
  176|       |
  177|  3.44k|   return bigint_ct_is_lt(this->_data(), this->size(), other._data(), other.size()).as_bool();
  178|  3.44k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  3.47k|void BigInt::Data::set_to_zero() {
  192|  3.47k|   m_reg.resize(m_reg.capacity());
  193|  3.47k|   clear_mem(m_reg.data(), m_reg.size());
  194|  3.47k|   m_sig_words = 0;
  195|  3.47k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  72.1k|size_t BigInt::Data::calc_sig_words() const {
  216|  72.1k|   const size_t sz = m_reg.size();
  217|  72.1k|   size_t sig = sz;
  218|       |
  219|  72.1k|   word sub = 1;
  220|       |
  221|  2.06M|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 1.99M, False: 72.1k]
  ------------------
  222|  1.99M|      const word w = m_reg[sz - i - 1];
  223|  1.99M|      sub &= ct_is_zero(w);
  224|  1.99M|      sig -= sub;
  225|  1.99M|   }
  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|  72.1k|   CT::unpoison(sig);
  232|       |
  233|  72.1k|   return sig;
  234|  72.1k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  6.79k|size_t BigInt::top_bits_free() const {
  299|  6.79k|   const size_t words = sig_words();
  300|       |
  301|  6.79k|   const word top_word = word_at(words - 1);
  302|  6.79k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  6.79k|   CT::unpoison(bits_used);
  304|  6.79k|   return WordInfo<word>::bits - bits_used;
  305|  6.79k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  3.44k|size_t BigInt::bits() const {
  308|  3.44k|   const size_t words = sig_words();
  309|       |
  310|  3.44k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 96, False: 3.34k]
  ------------------
  311|     96|      return 0;
  312|     96|   }
  313|       |
  314|  3.34k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  3.34k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  3.34k|   return full_words + top_bits;
  318|  3.44k|}
_ZN5Botan6BigInt12reduce_belowERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  329|  3.44k|size_t BigInt::reduce_below(const BigInt& p, secure_vector<word>& ws) {
  330|  3.44k|   if(p.signum() < 0 || this->signum() < 0) {
  ------------------
  |  Branch (330:7): [True: 0, False: 3.44k]
  |  Branch (330:25): [True: 0, False: 3.44k]
  ------------------
  331|      0|      throw Invalid_Argument("BigInt::reduce_below both values must be positive");
  332|      0|   }
  333|       |
  334|  3.44k|   const size_t p_words = p.sig_words();
  335|       |
  336|  3.44k|   if(size() < p_words + 1) {
  ------------------
  |  Branch (336:7): [True: 144, False: 3.29k]
  ------------------
  337|    144|      grow_to(p_words + 1);
  338|    144|   }
  339|       |
  340|  3.44k|   if(ws.size() < p_words + 1) {
  ------------------
  |  Branch (340:7): [True: 3.44k, False: 0]
  ------------------
  341|  3.44k|      ws.resize(p_words + 1);
  342|  3.44k|   }
  343|       |
  344|  3.44k|   clear_mem(ws.data(), ws.size());
  345|       |
  346|  3.44k|   size_t reductions = 0;
  347|       |
  348|  3.63k|   for(;;) {
  349|  3.63k|      const word borrow = bigint_sub3(ws.data(), _data(), p_words + 1, p._data(), p_words);
  350|  3.63k|      if(borrow > 0) {
  ------------------
  |  Branch (350:10): [True: 3.44k, False: 190]
  ------------------
  351|  3.44k|         break;
  352|  3.44k|      }
  353|       |
  354|    190|      ++reductions;
  355|    190|      swap_reg(ws);
  356|    190|   }
  357|       |
  358|  3.44k|   return reductions;
  359|  3.44k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  3.47k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  3.47k|   clear();
  427|       |
  428|  3.47k|   const size_t length = bytes.size();
  429|  3.47k|   const size_t full_words = length / sizeof(word);
  430|  3.47k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  3.47k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 2.80k, False: 671]
  ------------------
  433|       |
  434|  25.3k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 21.9k, False: 3.47k]
  ------------------
  435|  21.9k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|  21.9k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|  21.9k|   }
  438|       |
  439|  3.47k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 2.80k, False: 671]
  ------------------
  440|  2.80k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  2.80k|   do {                                                                     \
  |  |   78|  2.80k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.80k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.80k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.80k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.80k]
  |  |  ------------------
  ------------------
  441|  2.80k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  2.80k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  2.80k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  2.80k|   }
  445|       |
  446|  3.47k|   m_data.swap(reg);
  447|  3.47k|}
_ZN5Botan6BigInt14cond_flip_signEb:
  521|  8.62k|void BigInt::cond_flip_sign(bool predicate) {
  522|       |   // This code is assuming Negative == 0, Positive == 1
  523|       |
  524|  8.62k|   const auto mask = CT::Mask<uint8_t>::expand_bool(predicate);
  525|       |
  526|  8.62k|   const uint8_t current_sign = static_cast<uint8_t>(sign());
  527|       |
  528|  8.62k|   const uint8_t new_sign = mask.select(current_sign ^ 1, current_sign);
  529|       |
  530|  8.62k|   set_sign(static_cast<Sign>(new_sign));
  531|  8.62k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  47.6k|void BigInt::_const_time_unpoison() const {
  560|  47.6k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  47.6k|}

_ZN5Botan9ct_divideERKNS_6BigIntES2_RS0_S3_:
   55|  1.73k|void ct_divide(const BigInt& x, const BigInt& y, BigInt& q_out, BigInt& r_out) {
   56|  1.73k|   if(y.is_zero()) {
  ------------------
  |  Branch (56:7): [True: 0, False: 1.73k]
  ------------------
   57|      0|      throw Invalid_Argument("ct_divide: cannot divide by zero");
   58|      0|   }
   59|       |
   60|  1.73k|   const size_t x_words = x.sig_words();
   61|  1.73k|   const size_t y_words = y.sig_words();
   62|       |
   63|  1.73k|   const size_t x_bits = x.bits();
   64|       |
   65|  1.73k|   const size_t r_words = y_words + 1;
   66|       |
   67|  1.73k|   BigInt q = BigInt::with_capacity(x_words);
   68|  1.73k|   BigInt r = BigInt::with_capacity(r_words);
   69|  1.73k|   BigInt t = BigInt::with_capacity(r_words);  // a temporary
   70|       |
   71|   687k|   for(size_t i = 0; i != x_bits; ++i) {
  ------------------
  |  Branch (71:22): [True: 685k, False: 1.73k]
  ------------------
   72|   685k|      const size_t b = x_bits - 1 - i;
   73|   685k|      const bool x_b = x.get_bit(b);
   74|       |
   75|   685k|      bigint_shl1(r.mutable_data(), r_words, r_words, 1);
   76|   685k|      r.conditionally_set_bit(0, x_b);
   77|       |
   78|   685k|      const bool r_gte_y = bigint_sub3(t.mutable_data(), r._data(), r_words, y._data(), y_words) == 0;
   79|       |
   80|   685k|      q.conditionally_set_bit(b, r_gte_y);
   81|   685k|      bigint_cnd_swap(static_cast<word>(r_gte_y), r.mutable_data(), t.mutable_data(), r_words);
   82|   685k|   }
   83|       |
   84|  1.73k|   sign_fixup(x, y, q, r);
   85|  1.73k|   r_out = r;
   86|  1.73k|   q_out = q;
   87|  1.73k|}
_ZN5Botan14ct_divide_wordERKNS_6BigIntEmRS0_Rm:
  129|  1.70k|void ct_divide_word(const BigInt& x, word y, BigInt& q_out, word& r_out) {
  130|  1.70k|   if(y == 0) {
  ------------------
  |  Branch (130:7): [True: 0, False: 1.70k]
  ------------------
  131|      0|      throw Invalid_Argument("ct_divide_word: cannot divide by zero");
  132|      0|   }
  133|       |
  134|  1.70k|   const size_t x_words = x.sig_words();
  135|  1.70k|   const size_t x_bits = x.bits();
  136|       |
  137|  1.70k|   BigInt q = BigInt::with_capacity(x_words);
  138|  1.70k|   word r = 0;
  139|       |
  140|   667k|   for(size_t i = 0; i != x_bits; ++i) {
  ------------------
  |  Branch (140:22): [True: 665k, False: 1.70k]
  ------------------
  141|   665k|      const size_t b = x_bits - 1 - i;
  142|   665k|      const bool x_b = x.get_bit(b);
  143|       |
  144|   665k|      const auto r_carry = CT::Mask<word>::expand_top_bit(r);
  145|       |
  146|   665k|      r <<= 1;
  147|   665k|      r += static_cast<word>(x_b);
  148|       |
  149|   665k|      const auto r_gte_y = CT::Mask<word>::is_gte(r, y) | r_carry;
  150|   665k|      q.conditionally_set_bit(b, r_gte_y.as_bool());
  151|   665k|      r = r_gte_y.select(r - y, r);
  152|   665k|   }
  153|       |
  154|  1.70k|   if(x.signum() < 0) {
  ------------------
  |  Branch (154:7): [True: 0, False: 1.70k]
  ------------------
  155|      0|      q.flip_sign();
  156|      0|      if(r != 0) {
  ------------------
  |  Branch (156:10): [True: 0, False: 0]
  ------------------
  157|      0|         --q;
  158|      0|         r = y - r;
  159|      0|      }
  160|      0|   }
  161|       |
  162|  1.70k|   r_out = r;
  163|  1.70k|   q_out = q;
  164|  1.70k|}
_ZN5Botan14vartime_divideERKNS_6BigIntES2_RS0_S3_:
  332|  3.44k|void vartime_divide(const BigInt& x, const BigInt& y_arg, BigInt& q_out, BigInt& r_out) {
  333|  3.44k|   constexpr size_t WB = WordInfo<word>::bits;
  334|       |
  335|  3.44k|   if(y_arg.is_zero()) {
  ------------------
  |  Branch (335:7): [True: 0, False: 3.44k]
  ------------------
  336|      0|      throw Invalid_Argument("vartime_divide: cannot divide by zero");
  337|      0|   }
  338|       |
  339|  3.44k|   const size_t y_words = y_arg.sig_words();
  340|       |
  341|  3.44k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  3.44k|   do {                                                                     \
  |  |   78|  3.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.44k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.44k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  342|       |
  343|  3.44k|   BigInt y = y_arg;
  344|       |
  345|  3.44k|   BigInt r = x;
  346|  3.44k|   BigInt q = BigInt::zero();
  347|  3.44k|   secure_vector<word> ws;
  348|       |
  349|  3.44k|   r.set_sign(BigInt::Positive);
  350|  3.44k|   y.set_sign(BigInt::Positive);
  351|       |
  352|       |   // Calculate shifts needed to normalize y with high bit set
  353|  3.44k|   const size_t shifts = y.top_bits_free();
  354|       |
  355|  3.44k|   if(shifts > 0) {
  ------------------
  |  Branch (355:7): [True: 2.70k, False: 739]
  ------------------
  356|  2.70k|      y <<= shifts;
  357|  2.70k|      r <<= shifts;
  358|  2.70k|   }
  359|       |
  360|       |   // we know y has not changed size, since we only shifted up to set high bit
  361|  3.44k|   const size_t t = y_words - 1;
  362|  3.44k|   const size_t n = std::max(y_words, r.sig_words()) - 1;  // r may have changed size however
  363|       |
  364|  3.44k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  3.44k|   do {                                                                     \
  |  |   78|  3.44k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.44k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.44k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.44k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  365|       |
  366|  3.44k|   q.grow_to(n - t + 1);
  367|       |
  368|  3.44k|   word* q_words = q.mutable_data();
  369|       |
  370|  3.44k|   BigInt shifted_y = y << (WB * (n - t));
  371|       |
  372|       |   // Set q_{n-t} to number of times r > shifted_y
  373|  3.44k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  374|       |
  375|  3.44k|   const word y_t0 = y.word_at(t);
  376|  3.44k|   const word y_t1 = y.word_at(t - 1);
  377|  3.44k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  3.44k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.44k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.44k]
  |  |  ------------------
  ------------------
  378|       |
  379|  3.44k|   const divide_precomp div_y_t0(y_t0);
  380|       |
  381|  19.9k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (381:22): [True: 16.5k, False: 3.44k]
  ------------------
  382|  16.5k|      const word x_i0 = r.word_at(i);
  383|  16.5k|      const word x_i1 = r.word_at(i - 1);
  384|  16.5k|      const word x_i2 = r.word_at(i - 2);
  385|       |
  386|  16.5k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (386:18): [True: 370, False: 16.1k]
  ------------------
  387|       |
  388|       |      // Per HAC 14.23, this operation is required at most twice
  389|  17.9k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (389:25): [True: 17.7k, False: 176]
  ------------------
  390|  17.7k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (390:13): [True: 1.42k, False: 16.3k]
  ------------------
  391|  1.42k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  1.42k|   do {                                                                     \
  |  |   78|  1.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.42k]
  |  |  ------------------
  ------------------
  392|  1.42k|            qit--;
  393|  16.3k|         } else {
  394|  16.3k|            break;
  395|  16.3k|         }
  396|  17.7k|      }
  397|       |
  398|  16.5k|      shifted_y >>= WB;
  399|       |      // Now shifted_y == y << (WB * (i-t-1))
  400|       |
  401|  16.5k|      if(qit != 0) {
  ------------------
  |  Branch (401:10): [True: 14.8k, False: 1.72k]
  ------------------
  402|  14.8k|         r -= qit * shifted_y;
  403|  14.8k|         if(r.signum() < 0) {
  ------------------
  |  Branch (403:13): [True: 418, False: 14.4k]
  ------------------
  404|    418|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|    418|   do {                                                                     \
  |  |   78|    418|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    418|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 418]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    418|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 418]
  |  |  ------------------
  ------------------
  405|    418|            qit--;
  406|    418|            r += shifted_y;
  407|    418|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|    418|   do {                                                                     \
  |  |   78|    418|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    418|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 418]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    418|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 418]
  |  |  ------------------
  ------------------
  408|    418|         }
  409|  14.8k|      }
  410|       |
  411|  16.5k|      q_words[i - t - 1] = qit;
  412|  16.5k|   }
  413|       |
  414|  3.44k|   if(shifts > 0) {
  ------------------
  |  Branch (414:7): [True: 2.70k, False: 739]
  ------------------
  415|  2.70k|      r >>= shifts;
  416|  2.70k|   }
  417|       |
  418|  3.44k|   sign_fixup(x, y_arg, q, r);
  419|       |
  420|  3.44k|   r_out = r;
  421|  3.44k|   q_out = q;
  422|  3.44k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_110sign_fixupERKNS_6BigIntES3_RS1_S4_:
   21|  5.17k|void sign_fixup(const BigInt& x, const BigInt& y, BigInt& q, BigInt& r) {
   22|  5.17k|   q.cond_flip_sign(x.sign() != y.sign());
   23|       |
   24|  5.17k|   if(x.signum() < 0 && r.signum() != 0) {
  ------------------
  |  Branch (24:7): [True: 0, False: 5.17k]
  |  Branch (24:25): [True: 0, False: 0]
  ------------------
   25|      0|      if(y.signum() > 0) {
  ------------------
  |  Branch (25:10): [True: 0, False: 0]
  ------------------
   26|      0|         q -= 1;
   27|      0|      } else {
   28|      0|         q += 1;
   29|      0|      }
   30|      0|      r = y.abs() - r;
   31|      0|   }
   32|  5.17k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_122division_check_vartimeEmmmmmm:
   34|  17.7k|inline bool division_check_vartime(word q, word y2, word y1, word x3, word x2, word x1) {
   35|       |   /*
   36|       |   Compute (y3,y2,y1) = (y2,y1) * q
   37|       |   and return true if (y3,y2,y1) > (x3,x2,x1)
   38|       |   */
   39|       |
   40|  17.7k|   word y3 = 0;
   41|  17.7k|   y1 = word_madd2(q, y1, &y3);
   42|  17.7k|   y2 = word_madd2(q, y2, &y3);
   43|       |
   44|  17.7k|   if(x3 != y3) {
  ------------------
  |  Branch (44:7): [True: 8.58k, False: 9.19k]
  ------------------
   45|  8.58k|      return (y3 > x3);
   46|  8.58k|   }
   47|  9.19k|   if(x2 != y2) {
  ------------------
  |  Branch (47:7): [True: 6.40k, False: 2.79k]
  ------------------
   48|  6.40k|      return (y2 > x2);
   49|  6.40k|   }
   50|  2.79k|   return (y1 > x1);
   51|  9.19k|}

_ZN5Botan17bigint_comba_mul4EPmPKmS2_:
   43|     37|void bigint_comba_mul4(word z[8], const word x[4], const word y[4]) {
   44|     37|   word3<word> accum;
   45|       |
   46|     37|   accum.mul(x[0], y[0]);
   47|     37|   z[0] = accum.extract();
   48|     37|   accum.mul(x[0], y[1]);
   49|     37|   accum.mul(x[1], y[0]);
   50|     37|   z[1] = accum.extract();
   51|     37|   accum.mul(x[0], y[2]);
   52|     37|   accum.mul(x[1], y[1]);
   53|     37|   accum.mul(x[2], y[0]);
   54|     37|   z[2] = accum.extract();
   55|     37|   accum.mul(x[0], y[3]);
   56|     37|   accum.mul(x[1], y[2]);
   57|     37|   accum.mul(x[2], y[1]);
   58|     37|   accum.mul(x[3], y[0]);
   59|     37|   z[3] = accum.extract();
   60|     37|   accum.mul(x[1], y[3]);
   61|     37|   accum.mul(x[2], y[2]);
   62|     37|   accum.mul(x[3], y[1]);
   63|     37|   z[4] = accum.extract();
   64|     37|   accum.mul(x[2], y[3]);
   65|     37|   accum.mul(x[3], y[2]);
   66|     37|   z[5] = accum.extract();
   67|     37|   accum.mul(x[3], y[3]);
   68|     37|   z[6] = accum.extract();
   69|     37|   z[7] = accum.extract();
   70|     37|}
_ZN5Botan17bigint_comba_mul6EPmPKmS2_:
  116|     18|void bigint_comba_mul6(word z[12], const word x[6], const word y[6]) {
  117|     18|   word3<word> accum;
  118|       |
  119|     18|   accum.mul(x[0], y[0]);
  120|     18|   z[0] = accum.extract();
  121|     18|   accum.mul(x[0], y[1]);
  122|     18|   accum.mul(x[1], y[0]);
  123|     18|   z[1] = accum.extract();
  124|     18|   accum.mul(x[0], y[2]);
  125|     18|   accum.mul(x[1], y[1]);
  126|     18|   accum.mul(x[2], y[0]);
  127|     18|   z[2] = accum.extract();
  128|     18|   accum.mul(x[0], y[3]);
  129|     18|   accum.mul(x[1], y[2]);
  130|     18|   accum.mul(x[2], y[1]);
  131|     18|   accum.mul(x[3], y[0]);
  132|     18|   z[3] = accum.extract();
  133|     18|   accum.mul(x[0], y[4]);
  134|     18|   accum.mul(x[1], y[3]);
  135|     18|   accum.mul(x[2], y[2]);
  136|     18|   accum.mul(x[3], y[1]);
  137|     18|   accum.mul(x[4], y[0]);
  138|     18|   z[4] = accum.extract();
  139|     18|   accum.mul(x[0], y[5]);
  140|     18|   accum.mul(x[1], y[4]);
  141|     18|   accum.mul(x[2], y[3]);
  142|     18|   accum.mul(x[3], y[2]);
  143|     18|   accum.mul(x[4], y[1]);
  144|     18|   accum.mul(x[5], y[0]);
  145|     18|   z[5] = accum.extract();
  146|     18|   accum.mul(x[1], y[5]);
  147|     18|   accum.mul(x[2], y[4]);
  148|     18|   accum.mul(x[3], y[3]);
  149|     18|   accum.mul(x[4], y[2]);
  150|     18|   accum.mul(x[5], y[1]);
  151|     18|   z[6] = accum.extract();
  152|     18|   accum.mul(x[2], y[5]);
  153|     18|   accum.mul(x[3], y[4]);
  154|     18|   accum.mul(x[4], y[3]);
  155|     18|   accum.mul(x[5], y[2]);
  156|     18|   z[7] = accum.extract();
  157|     18|   accum.mul(x[3], y[5]);
  158|     18|   accum.mul(x[4], y[4]);
  159|     18|   accum.mul(x[5], y[3]);
  160|     18|   z[8] = accum.extract();
  161|     18|   accum.mul(x[4], y[5]);
  162|     18|   accum.mul(x[5], y[4]);
  163|     18|   z[9] = accum.extract();
  164|     18|   accum.mul(x[5], y[5]);
  165|     18|   z[10] = accum.extract();
  166|     18|   z[11] = accum.extract();
  167|     18|}
_ZN5Botan17bigint_comba_mul8EPmPKmS2_:
  353|     17|void bigint_comba_mul8(word z[16], const word x[8], const word y[8]) {
  354|     17|   word3<word> accum;
  355|       |
  356|     17|   accum.mul(x[0], y[0]);
  357|     17|   z[0] = accum.extract();
  358|     17|   accum.mul(x[0], y[1]);
  359|     17|   accum.mul(x[1], y[0]);
  360|     17|   z[1] = accum.extract();
  361|     17|   accum.mul(x[0], y[2]);
  362|     17|   accum.mul(x[1], y[1]);
  363|     17|   accum.mul(x[2], y[0]);
  364|     17|   z[2] = accum.extract();
  365|     17|   accum.mul(x[0], y[3]);
  366|     17|   accum.mul(x[1], y[2]);
  367|     17|   accum.mul(x[2], y[1]);
  368|     17|   accum.mul(x[3], y[0]);
  369|     17|   z[3] = accum.extract();
  370|     17|   accum.mul(x[0], y[4]);
  371|     17|   accum.mul(x[1], y[3]);
  372|     17|   accum.mul(x[2], y[2]);
  373|     17|   accum.mul(x[3], y[1]);
  374|     17|   accum.mul(x[4], y[0]);
  375|     17|   z[4] = accum.extract();
  376|     17|   accum.mul(x[0], y[5]);
  377|     17|   accum.mul(x[1], y[4]);
  378|     17|   accum.mul(x[2], y[3]);
  379|     17|   accum.mul(x[3], y[2]);
  380|     17|   accum.mul(x[4], y[1]);
  381|     17|   accum.mul(x[5], y[0]);
  382|     17|   z[5] = accum.extract();
  383|     17|   accum.mul(x[0], y[6]);
  384|     17|   accum.mul(x[1], y[5]);
  385|     17|   accum.mul(x[2], y[4]);
  386|     17|   accum.mul(x[3], y[3]);
  387|     17|   accum.mul(x[4], y[2]);
  388|     17|   accum.mul(x[5], y[1]);
  389|     17|   accum.mul(x[6], y[0]);
  390|     17|   z[6] = accum.extract();
  391|     17|   accum.mul(x[0], y[7]);
  392|     17|   accum.mul(x[1], y[6]);
  393|     17|   accum.mul(x[2], y[5]);
  394|     17|   accum.mul(x[3], y[4]);
  395|     17|   accum.mul(x[4], y[3]);
  396|     17|   accum.mul(x[5], y[2]);
  397|     17|   accum.mul(x[6], y[1]);
  398|     17|   accum.mul(x[7], y[0]);
  399|     17|   z[7] = accum.extract();
  400|     17|   accum.mul(x[1], y[7]);
  401|     17|   accum.mul(x[2], y[6]);
  402|     17|   accum.mul(x[3], y[5]);
  403|     17|   accum.mul(x[4], y[4]);
  404|     17|   accum.mul(x[5], y[3]);
  405|     17|   accum.mul(x[6], y[2]);
  406|     17|   accum.mul(x[7], y[1]);
  407|     17|   z[8] = accum.extract();
  408|     17|   accum.mul(x[2], y[7]);
  409|     17|   accum.mul(x[3], y[6]);
  410|     17|   accum.mul(x[4], y[5]);
  411|     17|   accum.mul(x[5], y[4]);
  412|     17|   accum.mul(x[6], y[3]);
  413|     17|   accum.mul(x[7], y[2]);
  414|     17|   z[9] = accum.extract();
  415|     17|   accum.mul(x[3], y[7]);
  416|     17|   accum.mul(x[4], y[6]);
  417|     17|   accum.mul(x[5], y[5]);
  418|     17|   accum.mul(x[6], y[4]);
  419|     17|   accum.mul(x[7], y[3]);
  420|     17|   z[10] = accum.extract();
  421|     17|   accum.mul(x[4], y[7]);
  422|     17|   accum.mul(x[5], y[6]);
  423|     17|   accum.mul(x[6], y[5]);
  424|     17|   accum.mul(x[7], y[4]);
  425|     17|   z[11] = accum.extract();
  426|     17|   accum.mul(x[5], y[7]);
  427|     17|   accum.mul(x[6], y[6]);
  428|     17|   accum.mul(x[7], y[5]);
  429|     17|   z[12] = accum.extract();
  430|     17|   accum.mul(x[6], y[7]);
  431|     17|   accum.mul(x[7], y[6]);
  432|     17|   z[13] = accum.extract();
  433|     17|   accum.mul(x[7], y[7]);
  434|     17|   z[14] = accum.extract();
  435|     17|   z[15] = accum.extract();
  436|     17|}
_ZN5Botan17bigint_comba_mul9EPmPKmS2_:
  512|     10|void bigint_comba_mul9(word z[18], const word x[9], const word y[9]) {
  513|     10|   word3<word> accum;
  514|       |
  515|     10|   accum.mul(x[0], y[0]);
  516|     10|   z[0] = accum.extract();
  517|     10|   accum.mul(x[0], y[1]);
  518|     10|   accum.mul(x[1], y[0]);
  519|     10|   z[1] = accum.extract();
  520|     10|   accum.mul(x[0], y[2]);
  521|     10|   accum.mul(x[1], y[1]);
  522|     10|   accum.mul(x[2], y[0]);
  523|     10|   z[2] = accum.extract();
  524|     10|   accum.mul(x[0], y[3]);
  525|     10|   accum.mul(x[1], y[2]);
  526|     10|   accum.mul(x[2], y[1]);
  527|     10|   accum.mul(x[3], y[0]);
  528|     10|   z[3] = accum.extract();
  529|     10|   accum.mul(x[0], y[4]);
  530|     10|   accum.mul(x[1], y[3]);
  531|     10|   accum.mul(x[2], y[2]);
  532|     10|   accum.mul(x[3], y[1]);
  533|     10|   accum.mul(x[4], y[0]);
  534|     10|   z[4] = accum.extract();
  535|     10|   accum.mul(x[0], y[5]);
  536|     10|   accum.mul(x[1], y[4]);
  537|     10|   accum.mul(x[2], y[3]);
  538|     10|   accum.mul(x[3], y[2]);
  539|     10|   accum.mul(x[4], y[1]);
  540|     10|   accum.mul(x[5], y[0]);
  541|     10|   z[5] = accum.extract();
  542|     10|   accum.mul(x[0], y[6]);
  543|     10|   accum.mul(x[1], y[5]);
  544|     10|   accum.mul(x[2], y[4]);
  545|     10|   accum.mul(x[3], y[3]);
  546|     10|   accum.mul(x[4], y[2]);
  547|     10|   accum.mul(x[5], y[1]);
  548|     10|   accum.mul(x[6], y[0]);
  549|     10|   z[6] = accum.extract();
  550|     10|   accum.mul(x[0], y[7]);
  551|     10|   accum.mul(x[1], y[6]);
  552|     10|   accum.mul(x[2], y[5]);
  553|     10|   accum.mul(x[3], y[4]);
  554|     10|   accum.mul(x[4], y[3]);
  555|     10|   accum.mul(x[5], y[2]);
  556|     10|   accum.mul(x[6], y[1]);
  557|     10|   accum.mul(x[7], y[0]);
  558|     10|   z[7] = accum.extract();
  559|     10|   accum.mul(x[0], y[8]);
  560|     10|   accum.mul(x[1], y[7]);
  561|     10|   accum.mul(x[2], y[6]);
  562|     10|   accum.mul(x[3], y[5]);
  563|     10|   accum.mul(x[4], y[4]);
  564|     10|   accum.mul(x[5], y[3]);
  565|     10|   accum.mul(x[6], y[2]);
  566|     10|   accum.mul(x[7], y[1]);
  567|     10|   accum.mul(x[8], y[0]);
  568|     10|   z[8] = accum.extract();
  569|     10|   accum.mul(x[1], y[8]);
  570|     10|   accum.mul(x[2], y[7]);
  571|     10|   accum.mul(x[3], y[6]);
  572|     10|   accum.mul(x[4], y[5]);
  573|     10|   accum.mul(x[5], y[4]);
  574|     10|   accum.mul(x[6], y[3]);
  575|     10|   accum.mul(x[7], y[2]);
  576|     10|   accum.mul(x[8], y[1]);
  577|     10|   z[9] = accum.extract();
  578|     10|   accum.mul(x[2], y[8]);
  579|     10|   accum.mul(x[3], y[7]);
  580|     10|   accum.mul(x[4], y[6]);
  581|     10|   accum.mul(x[5], y[5]);
  582|     10|   accum.mul(x[6], y[4]);
  583|     10|   accum.mul(x[7], y[3]);
  584|     10|   accum.mul(x[8], y[2]);
  585|     10|   z[10] = accum.extract();
  586|     10|   accum.mul(x[3], y[8]);
  587|     10|   accum.mul(x[4], y[7]);
  588|     10|   accum.mul(x[5], y[6]);
  589|     10|   accum.mul(x[6], y[5]);
  590|     10|   accum.mul(x[7], y[4]);
  591|     10|   accum.mul(x[8], y[3]);
  592|     10|   z[11] = accum.extract();
  593|     10|   accum.mul(x[4], y[8]);
  594|     10|   accum.mul(x[5], y[7]);
  595|     10|   accum.mul(x[6], y[6]);
  596|     10|   accum.mul(x[7], y[5]);
  597|     10|   accum.mul(x[8], y[4]);
  598|     10|   z[12] = accum.extract();
  599|     10|   accum.mul(x[5], y[8]);
  600|     10|   accum.mul(x[6], y[7]);
  601|     10|   accum.mul(x[7], y[6]);
  602|     10|   accum.mul(x[8], y[5]);
  603|     10|   z[13] = accum.extract();
  604|     10|   accum.mul(x[6], y[8]);
  605|     10|   accum.mul(x[7], y[7]);
  606|     10|   accum.mul(x[8], y[6]);
  607|     10|   z[14] = accum.extract();
  608|     10|   accum.mul(x[7], y[8]);
  609|     10|   accum.mul(x[8], y[7]);
  610|     10|   z[15] = accum.extract();
  611|     10|   accum.mul(x[8], y[8]);
  612|     10|   z[16] = accum.extract();
  613|     10|   z[17] = accum.extract();
  614|     10|}
_ZN5Botan18bigint_comba_mul16EPmPKmS2_:
  795|     33|void bigint_comba_mul16(word z[32], const word x[16], const word y[16]) {
  796|     33|   word3<word> accum;
  797|       |
  798|     33|   accum.mul(x[0], y[0]);
  799|     33|   z[0] = accum.extract();
  800|     33|   accum.mul(x[0], y[1]);
  801|     33|   accum.mul(x[1], y[0]);
  802|     33|   z[1] = accum.extract();
  803|     33|   accum.mul(x[0], y[2]);
  804|     33|   accum.mul(x[1], y[1]);
  805|     33|   accum.mul(x[2], y[0]);
  806|     33|   z[2] = accum.extract();
  807|     33|   accum.mul(x[0], y[3]);
  808|     33|   accum.mul(x[1], y[2]);
  809|     33|   accum.mul(x[2], y[1]);
  810|     33|   accum.mul(x[3], y[0]);
  811|     33|   z[3] = accum.extract();
  812|     33|   accum.mul(x[0], y[4]);
  813|     33|   accum.mul(x[1], y[3]);
  814|     33|   accum.mul(x[2], y[2]);
  815|     33|   accum.mul(x[3], y[1]);
  816|     33|   accum.mul(x[4], y[0]);
  817|     33|   z[4] = accum.extract();
  818|     33|   accum.mul(x[0], y[5]);
  819|     33|   accum.mul(x[1], y[4]);
  820|     33|   accum.mul(x[2], y[3]);
  821|     33|   accum.mul(x[3], y[2]);
  822|     33|   accum.mul(x[4], y[1]);
  823|     33|   accum.mul(x[5], y[0]);
  824|     33|   z[5] = accum.extract();
  825|     33|   accum.mul(x[0], y[6]);
  826|     33|   accum.mul(x[1], y[5]);
  827|     33|   accum.mul(x[2], y[4]);
  828|     33|   accum.mul(x[3], y[3]);
  829|     33|   accum.mul(x[4], y[2]);
  830|     33|   accum.mul(x[5], y[1]);
  831|     33|   accum.mul(x[6], y[0]);
  832|     33|   z[6] = accum.extract();
  833|     33|   accum.mul(x[0], y[7]);
  834|     33|   accum.mul(x[1], y[6]);
  835|     33|   accum.mul(x[2], y[5]);
  836|     33|   accum.mul(x[3], y[4]);
  837|     33|   accum.mul(x[4], y[3]);
  838|     33|   accum.mul(x[5], y[2]);
  839|     33|   accum.mul(x[6], y[1]);
  840|     33|   accum.mul(x[7], y[0]);
  841|     33|   z[7] = accum.extract();
  842|     33|   accum.mul(x[0], y[8]);
  843|     33|   accum.mul(x[1], y[7]);
  844|     33|   accum.mul(x[2], y[6]);
  845|     33|   accum.mul(x[3], y[5]);
  846|     33|   accum.mul(x[4], y[4]);
  847|     33|   accum.mul(x[5], y[3]);
  848|     33|   accum.mul(x[6], y[2]);
  849|     33|   accum.mul(x[7], y[1]);
  850|     33|   accum.mul(x[8], y[0]);
  851|     33|   z[8] = accum.extract();
  852|     33|   accum.mul(x[0], y[9]);
  853|     33|   accum.mul(x[1], y[8]);
  854|     33|   accum.mul(x[2], y[7]);
  855|     33|   accum.mul(x[3], y[6]);
  856|     33|   accum.mul(x[4], y[5]);
  857|     33|   accum.mul(x[5], y[4]);
  858|     33|   accum.mul(x[6], y[3]);
  859|     33|   accum.mul(x[7], y[2]);
  860|     33|   accum.mul(x[8], y[1]);
  861|     33|   accum.mul(x[9], y[0]);
  862|     33|   z[9] = accum.extract();
  863|     33|   accum.mul(x[0], y[10]);
  864|     33|   accum.mul(x[1], y[9]);
  865|     33|   accum.mul(x[2], y[8]);
  866|     33|   accum.mul(x[3], y[7]);
  867|     33|   accum.mul(x[4], y[6]);
  868|     33|   accum.mul(x[5], y[5]);
  869|     33|   accum.mul(x[6], y[4]);
  870|     33|   accum.mul(x[7], y[3]);
  871|     33|   accum.mul(x[8], y[2]);
  872|     33|   accum.mul(x[9], y[1]);
  873|     33|   accum.mul(x[10], y[0]);
  874|     33|   z[10] = accum.extract();
  875|     33|   accum.mul(x[0], y[11]);
  876|     33|   accum.mul(x[1], y[10]);
  877|     33|   accum.mul(x[2], y[9]);
  878|     33|   accum.mul(x[3], y[8]);
  879|     33|   accum.mul(x[4], y[7]);
  880|     33|   accum.mul(x[5], y[6]);
  881|     33|   accum.mul(x[6], y[5]);
  882|     33|   accum.mul(x[7], y[4]);
  883|     33|   accum.mul(x[8], y[3]);
  884|     33|   accum.mul(x[9], y[2]);
  885|     33|   accum.mul(x[10], y[1]);
  886|     33|   accum.mul(x[11], y[0]);
  887|     33|   z[11] = accum.extract();
  888|     33|   accum.mul(x[0], y[12]);
  889|     33|   accum.mul(x[1], y[11]);
  890|     33|   accum.mul(x[2], y[10]);
  891|     33|   accum.mul(x[3], y[9]);
  892|     33|   accum.mul(x[4], y[8]);
  893|     33|   accum.mul(x[5], y[7]);
  894|     33|   accum.mul(x[6], y[6]);
  895|     33|   accum.mul(x[7], y[5]);
  896|     33|   accum.mul(x[8], y[4]);
  897|     33|   accum.mul(x[9], y[3]);
  898|     33|   accum.mul(x[10], y[2]);
  899|     33|   accum.mul(x[11], y[1]);
  900|     33|   accum.mul(x[12], y[0]);
  901|     33|   z[12] = accum.extract();
  902|     33|   accum.mul(x[0], y[13]);
  903|     33|   accum.mul(x[1], y[12]);
  904|     33|   accum.mul(x[2], y[11]);
  905|     33|   accum.mul(x[3], y[10]);
  906|     33|   accum.mul(x[4], y[9]);
  907|     33|   accum.mul(x[5], y[8]);
  908|     33|   accum.mul(x[6], y[7]);
  909|     33|   accum.mul(x[7], y[6]);
  910|     33|   accum.mul(x[8], y[5]);
  911|     33|   accum.mul(x[9], y[4]);
  912|     33|   accum.mul(x[10], y[3]);
  913|     33|   accum.mul(x[11], y[2]);
  914|     33|   accum.mul(x[12], y[1]);
  915|     33|   accum.mul(x[13], y[0]);
  916|     33|   z[13] = accum.extract();
  917|     33|   accum.mul(x[0], y[14]);
  918|     33|   accum.mul(x[1], y[13]);
  919|     33|   accum.mul(x[2], y[12]);
  920|     33|   accum.mul(x[3], y[11]);
  921|     33|   accum.mul(x[4], y[10]);
  922|     33|   accum.mul(x[5], y[9]);
  923|     33|   accum.mul(x[6], y[8]);
  924|     33|   accum.mul(x[7], y[7]);
  925|     33|   accum.mul(x[8], y[6]);
  926|     33|   accum.mul(x[9], y[5]);
  927|     33|   accum.mul(x[10], y[4]);
  928|     33|   accum.mul(x[11], y[3]);
  929|     33|   accum.mul(x[12], y[2]);
  930|     33|   accum.mul(x[13], y[1]);
  931|     33|   accum.mul(x[14], y[0]);
  932|     33|   z[14] = accum.extract();
  933|     33|   accum.mul(x[0], y[15]);
  934|     33|   accum.mul(x[1], y[14]);
  935|     33|   accum.mul(x[2], y[13]);
  936|     33|   accum.mul(x[3], y[12]);
  937|     33|   accum.mul(x[4], y[11]);
  938|     33|   accum.mul(x[5], y[10]);
  939|     33|   accum.mul(x[6], y[9]);
  940|     33|   accum.mul(x[7], y[8]);
  941|     33|   accum.mul(x[8], y[7]);
  942|     33|   accum.mul(x[9], y[6]);
  943|     33|   accum.mul(x[10], y[5]);
  944|     33|   accum.mul(x[11], y[4]);
  945|     33|   accum.mul(x[12], y[3]);
  946|     33|   accum.mul(x[13], y[2]);
  947|     33|   accum.mul(x[14], y[1]);
  948|     33|   accum.mul(x[15], y[0]);
  949|     33|   z[15] = accum.extract();
  950|     33|   accum.mul(x[1], y[15]);
  951|     33|   accum.mul(x[2], y[14]);
  952|     33|   accum.mul(x[3], y[13]);
  953|     33|   accum.mul(x[4], y[12]);
  954|     33|   accum.mul(x[5], y[11]);
  955|     33|   accum.mul(x[6], y[10]);
  956|     33|   accum.mul(x[7], y[9]);
  957|     33|   accum.mul(x[8], y[8]);
  958|     33|   accum.mul(x[9], y[7]);
  959|     33|   accum.mul(x[10], y[6]);
  960|     33|   accum.mul(x[11], y[5]);
  961|     33|   accum.mul(x[12], y[4]);
  962|     33|   accum.mul(x[13], y[3]);
  963|     33|   accum.mul(x[14], y[2]);
  964|     33|   accum.mul(x[15], y[1]);
  965|     33|   z[16] = accum.extract();
  966|     33|   accum.mul(x[2], y[15]);
  967|     33|   accum.mul(x[3], y[14]);
  968|     33|   accum.mul(x[4], y[13]);
  969|     33|   accum.mul(x[5], y[12]);
  970|     33|   accum.mul(x[6], y[11]);
  971|     33|   accum.mul(x[7], y[10]);
  972|     33|   accum.mul(x[8], y[9]);
  973|     33|   accum.mul(x[9], y[8]);
  974|     33|   accum.mul(x[10], y[7]);
  975|     33|   accum.mul(x[11], y[6]);
  976|     33|   accum.mul(x[12], y[5]);
  977|     33|   accum.mul(x[13], y[4]);
  978|     33|   accum.mul(x[14], y[3]);
  979|     33|   accum.mul(x[15], y[2]);
  980|     33|   z[17] = accum.extract();
  981|     33|   accum.mul(x[3], y[15]);
  982|     33|   accum.mul(x[4], y[14]);
  983|     33|   accum.mul(x[5], y[13]);
  984|     33|   accum.mul(x[6], y[12]);
  985|     33|   accum.mul(x[7], y[11]);
  986|     33|   accum.mul(x[8], y[10]);
  987|     33|   accum.mul(x[9], y[9]);
  988|     33|   accum.mul(x[10], y[8]);
  989|     33|   accum.mul(x[11], y[7]);
  990|     33|   accum.mul(x[12], y[6]);
  991|     33|   accum.mul(x[13], y[5]);
  992|     33|   accum.mul(x[14], y[4]);
  993|     33|   accum.mul(x[15], y[3]);
  994|     33|   z[18] = accum.extract();
  995|     33|   accum.mul(x[4], y[15]);
  996|     33|   accum.mul(x[5], y[14]);
  997|     33|   accum.mul(x[6], y[13]);
  998|     33|   accum.mul(x[7], y[12]);
  999|     33|   accum.mul(x[8], y[11]);
 1000|     33|   accum.mul(x[9], y[10]);
 1001|     33|   accum.mul(x[10], y[9]);
 1002|     33|   accum.mul(x[11], y[8]);
 1003|     33|   accum.mul(x[12], y[7]);
 1004|     33|   accum.mul(x[13], y[6]);
 1005|     33|   accum.mul(x[14], y[5]);
 1006|     33|   accum.mul(x[15], y[4]);
 1007|     33|   z[19] = accum.extract();
 1008|     33|   accum.mul(x[5], y[15]);
 1009|     33|   accum.mul(x[6], y[14]);
 1010|     33|   accum.mul(x[7], y[13]);
 1011|     33|   accum.mul(x[8], y[12]);
 1012|     33|   accum.mul(x[9], y[11]);
 1013|     33|   accum.mul(x[10], y[10]);
 1014|     33|   accum.mul(x[11], y[9]);
 1015|     33|   accum.mul(x[12], y[8]);
 1016|     33|   accum.mul(x[13], y[7]);
 1017|     33|   accum.mul(x[14], y[6]);
 1018|     33|   accum.mul(x[15], y[5]);
 1019|     33|   z[20] = accum.extract();
 1020|     33|   accum.mul(x[6], y[15]);
 1021|     33|   accum.mul(x[7], y[14]);
 1022|     33|   accum.mul(x[8], y[13]);
 1023|     33|   accum.mul(x[9], y[12]);
 1024|     33|   accum.mul(x[10], y[11]);
 1025|     33|   accum.mul(x[11], y[10]);
 1026|     33|   accum.mul(x[12], y[9]);
 1027|     33|   accum.mul(x[13], y[8]);
 1028|     33|   accum.mul(x[14], y[7]);
 1029|     33|   accum.mul(x[15], y[6]);
 1030|     33|   z[21] = accum.extract();
 1031|     33|   accum.mul(x[7], y[15]);
 1032|     33|   accum.mul(x[8], y[14]);
 1033|     33|   accum.mul(x[9], y[13]);
 1034|     33|   accum.mul(x[10], y[12]);
 1035|     33|   accum.mul(x[11], y[11]);
 1036|     33|   accum.mul(x[12], y[10]);
 1037|     33|   accum.mul(x[13], y[9]);
 1038|     33|   accum.mul(x[14], y[8]);
 1039|     33|   accum.mul(x[15], y[7]);
 1040|     33|   z[22] = accum.extract();
 1041|     33|   accum.mul(x[8], y[15]);
 1042|     33|   accum.mul(x[9], y[14]);
 1043|     33|   accum.mul(x[10], y[13]);
 1044|     33|   accum.mul(x[11], y[12]);
 1045|     33|   accum.mul(x[12], y[11]);
 1046|     33|   accum.mul(x[13], y[10]);
 1047|     33|   accum.mul(x[14], y[9]);
 1048|     33|   accum.mul(x[15], y[8]);
 1049|     33|   z[23] = accum.extract();
 1050|     33|   accum.mul(x[9], y[15]);
 1051|     33|   accum.mul(x[10], y[14]);
 1052|     33|   accum.mul(x[11], y[13]);
 1053|     33|   accum.mul(x[12], y[12]);
 1054|     33|   accum.mul(x[13], y[11]);
 1055|     33|   accum.mul(x[14], y[10]);
 1056|     33|   accum.mul(x[15], y[9]);
 1057|     33|   z[24] = accum.extract();
 1058|     33|   accum.mul(x[10], y[15]);
 1059|     33|   accum.mul(x[11], y[14]);
 1060|     33|   accum.mul(x[12], y[13]);
 1061|     33|   accum.mul(x[13], y[12]);
 1062|     33|   accum.mul(x[14], y[11]);
 1063|     33|   accum.mul(x[15], y[10]);
 1064|     33|   z[25] = accum.extract();
 1065|     33|   accum.mul(x[11], y[15]);
 1066|     33|   accum.mul(x[12], y[14]);
 1067|     33|   accum.mul(x[13], y[13]);
 1068|     33|   accum.mul(x[14], y[12]);
 1069|     33|   accum.mul(x[15], y[11]);
 1070|     33|   z[26] = accum.extract();
 1071|     33|   accum.mul(x[12], y[15]);
 1072|     33|   accum.mul(x[13], y[14]);
 1073|     33|   accum.mul(x[14], y[13]);
 1074|     33|   accum.mul(x[15], y[12]);
 1075|     33|   z[27] = accum.extract();
 1076|     33|   accum.mul(x[13], y[15]);
 1077|     33|   accum.mul(x[14], y[14]);
 1078|     33|   accum.mul(x[15], y[13]);
 1079|     33|   z[28] = accum.extract();
 1080|     33|   accum.mul(x[14], y[15]);
 1081|     33|   accum.mul(x[15], y[14]);
 1082|     33|   z[29] = accum.extract();
 1083|     33|   accum.mul(x[15], y[15]);
 1084|     33|   z[30] = accum.extract();
 1085|     33|   z[31] = accum.extract();
 1086|     33|}
_ZN5Botan18bigint_comba_mul24EPmPKmS2_:
 1447|     22|void bigint_comba_mul24(word z[48], const word x[24], const word y[24]) {
 1448|     22|   word3<word> accum;
 1449|       |
 1450|     22|   accum.mul(x[0], y[0]);
 1451|     22|   z[0] = accum.extract();
 1452|     22|   accum.mul(x[0], y[1]);
 1453|     22|   accum.mul(x[1], y[0]);
 1454|     22|   z[1] = accum.extract();
 1455|     22|   accum.mul(x[0], y[2]);
 1456|     22|   accum.mul(x[1], y[1]);
 1457|     22|   accum.mul(x[2], y[0]);
 1458|     22|   z[2] = accum.extract();
 1459|     22|   accum.mul(x[0], y[3]);
 1460|     22|   accum.mul(x[1], y[2]);
 1461|     22|   accum.mul(x[2], y[1]);
 1462|     22|   accum.mul(x[3], y[0]);
 1463|     22|   z[3] = accum.extract();
 1464|     22|   accum.mul(x[0], y[4]);
 1465|     22|   accum.mul(x[1], y[3]);
 1466|     22|   accum.mul(x[2], y[2]);
 1467|     22|   accum.mul(x[3], y[1]);
 1468|     22|   accum.mul(x[4], y[0]);
 1469|     22|   z[4] = accum.extract();
 1470|     22|   accum.mul(x[0], y[5]);
 1471|     22|   accum.mul(x[1], y[4]);
 1472|     22|   accum.mul(x[2], y[3]);
 1473|     22|   accum.mul(x[3], y[2]);
 1474|     22|   accum.mul(x[4], y[1]);
 1475|     22|   accum.mul(x[5], y[0]);
 1476|     22|   z[5] = accum.extract();
 1477|     22|   accum.mul(x[0], y[6]);
 1478|     22|   accum.mul(x[1], y[5]);
 1479|     22|   accum.mul(x[2], y[4]);
 1480|     22|   accum.mul(x[3], y[3]);
 1481|     22|   accum.mul(x[4], y[2]);
 1482|     22|   accum.mul(x[5], y[1]);
 1483|     22|   accum.mul(x[6], y[0]);
 1484|     22|   z[6] = accum.extract();
 1485|     22|   accum.mul(x[0], y[7]);
 1486|     22|   accum.mul(x[1], y[6]);
 1487|     22|   accum.mul(x[2], y[5]);
 1488|     22|   accum.mul(x[3], y[4]);
 1489|     22|   accum.mul(x[4], y[3]);
 1490|     22|   accum.mul(x[5], y[2]);
 1491|     22|   accum.mul(x[6], y[1]);
 1492|     22|   accum.mul(x[7], y[0]);
 1493|     22|   z[7] = accum.extract();
 1494|     22|   accum.mul(x[0], y[8]);
 1495|     22|   accum.mul(x[1], y[7]);
 1496|     22|   accum.mul(x[2], y[6]);
 1497|     22|   accum.mul(x[3], y[5]);
 1498|     22|   accum.mul(x[4], y[4]);
 1499|     22|   accum.mul(x[5], y[3]);
 1500|     22|   accum.mul(x[6], y[2]);
 1501|     22|   accum.mul(x[7], y[1]);
 1502|     22|   accum.mul(x[8], y[0]);
 1503|     22|   z[8] = accum.extract();
 1504|     22|   accum.mul(x[0], y[9]);
 1505|     22|   accum.mul(x[1], y[8]);
 1506|     22|   accum.mul(x[2], y[7]);
 1507|     22|   accum.mul(x[3], y[6]);
 1508|     22|   accum.mul(x[4], y[5]);
 1509|     22|   accum.mul(x[5], y[4]);
 1510|     22|   accum.mul(x[6], y[3]);
 1511|     22|   accum.mul(x[7], y[2]);
 1512|     22|   accum.mul(x[8], y[1]);
 1513|     22|   accum.mul(x[9], y[0]);
 1514|     22|   z[9] = accum.extract();
 1515|     22|   accum.mul(x[0], y[10]);
 1516|     22|   accum.mul(x[1], y[9]);
 1517|     22|   accum.mul(x[2], y[8]);
 1518|     22|   accum.mul(x[3], y[7]);
 1519|     22|   accum.mul(x[4], y[6]);
 1520|     22|   accum.mul(x[5], y[5]);
 1521|     22|   accum.mul(x[6], y[4]);
 1522|     22|   accum.mul(x[7], y[3]);
 1523|     22|   accum.mul(x[8], y[2]);
 1524|     22|   accum.mul(x[9], y[1]);
 1525|     22|   accum.mul(x[10], y[0]);
 1526|     22|   z[10] = accum.extract();
 1527|     22|   accum.mul(x[0], y[11]);
 1528|     22|   accum.mul(x[1], y[10]);
 1529|     22|   accum.mul(x[2], y[9]);
 1530|     22|   accum.mul(x[3], y[8]);
 1531|     22|   accum.mul(x[4], y[7]);
 1532|     22|   accum.mul(x[5], y[6]);
 1533|     22|   accum.mul(x[6], y[5]);
 1534|     22|   accum.mul(x[7], y[4]);
 1535|     22|   accum.mul(x[8], y[3]);
 1536|     22|   accum.mul(x[9], y[2]);
 1537|     22|   accum.mul(x[10], y[1]);
 1538|     22|   accum.mul(x[11], y[0]);
 1539|     22|   z[11] = accum.extract();
 1540|     22|   accum.mul(x[0], y[12]);
 1541|     22|   accum.mul(x[1], y[11]);
 1542|     22|   accum.mul(x[2], y[10]);
 1543|     22|   accum.mul(x[3], y[9]);
 1544|     22|   accum.mul(x[4], y[8]);
 1545|     22|   accum.mul(x[5], y[7]);
 1546|     22|   accum.mul(x[6], y[6]);
 1547|     22|   accum.mul(x[7], y[5]);
 1548|     22|   accum.mul(x[8], y[4]);
 1549|     22|   accum.mul(x[9], y[3]);
 1550|     22|   accum.mul(x[10], y[2]);
 1551|     22|   accum.mul(x[11], y[1]);
 1552|     22|   accum.mul(x[12], y[0]);
 1553|     22|   z[12] = accum.extract();
 1554|     22|   accum.mul(x[0], y[13]);
 1555|     22|   accum.mul(x[1], y[12]);
 1556|     22|   accum.mul(x[2], y[11]);
 1557|     22|   accum.mul(x[3], y[10]);
 1558|     22|   accum.mul(x[4], y[9]);
 1559|     22|   accum.mul(x[5], y[8]);
 1560|     22|   accum.mul(x[6], y[7]);
 1561|     22|   accum.mul(x[7], y[6]);
 1562|     22|   accum.mul(x[8], y[5]);
 1563|     22|   accum.mul(x[9], y[4]);
 1564|     22|   accum.mul(x[10], y[3]);
 1565|     22|   accum.mul(x[11], y[2]);
 1566|     22|   accum.mul(x[12], y[1]);
 1567|     22|   accum.mul(x[13], y[0]);
 1568|     22|   z[13] = accum.extract();
 1569|     22|   accum.mul(x[0], y[14]);
 1570|     22|   accum.mul(x[1], y[13]);
 1571|     22|   accum.mul(x[2], y[12]);
 1572|     22|   accum.mul(x[3], y[11]);
 1573|     22|   accum.mul(x[4], y[10]);
 1574|     22|   accum.mul(x[5], y[9]);
 1575|     22|   accum.mul(x[6], y[8]);
 1576|     22|   accum.mul(x[7], y[7]);
 1577|     22|   accum.mul(x[8], y[6]);
 1578|     22|   accum.mul(x[9], y[5]);
 1579|     22|   accum.mul(x[10], y[4]);
 1580|     22|   accum.mul(x[11], y[3]);
 1581|     22|   accum.mul(x[12], y[2]);
 1582|     22|   accum.mul(x[13], y[1]);
 1583|     22|   accum.mul(x[14], y[0]);
 1584|     22|   z[14] = accum.extract();
 1585|     22|   accum.mul(x[0], y[15]);
 1586|     22|   accum.mul(x[1], y[14]);
 1587|     22|   accum.mul(x[2], y[13]);
 1588|     22|   accum.mul(x[3], y[12]);
 1589|     22|   accum.mul(x[4], y[11]);
 1590|     22|   accum.mul(x[5], y[10]);
 1591|     22|   accum.mul(x[6], y[9]);
 1592|     22|   accum.mul(x[7], y[8]);
 1593|     22|   accum.mul(x[8], y[7]);
 1594|     22|   accum.mul(x[9], y[6]);
 1595|     22|   accum.mul(x[10], y[5]);
 1596|     22|   accum.mul(x[11], y[4]);
 1597|     22|   accum.mul(x[12], y[3]);
 1598|     22|   accum.mul(x[13], y[2]);
 1599|     22|   accum.mul(x[14], y[1]);
 1600|     22|   accum.mul(x[15], y[0]);
 1601|     22|   z[15] = accum.extract();
 1602|     22|   accum.mul(x[0], y[16]);
 1603|     22|   accum.mul(x[1], y[15]);
 1604|     22|   accum.mul(x[2], y[14]);
 1605|     22|   accum.mul(x[3], y[13]);
 1606|     22|   accum.mul(x[4], y[12]);
 1607|     22|   accum.mul(x[5], y[11]);
 1608|     22|   accum.mul(x[6], y[10]);
 1609|     22|   accum.mul(x[7], y[9]);
 1610|     22|   accum.mul(x[8], y[8]);
 1611|     22|   accum.mul(x[9], y[7]);
 1612|     22|   accum.mul(x[10], y[6]);
 1613|     22|   accum.mul(x[11], y[5]);
 1614|     22|   accum.mul(x[12], y[4]);
 1615|     22|   accum.mul(x[13], y[3]);
 1616|     22|   accum.mul(x[14], y[2]);
 1617|     22|   accum.mul(x[15], y[1]);
 1618|     22|   accum.mul(x[16], y[0]);
 1619|     22|   z[16] = accum.extract();
 1620|     22|   accum.mul(x[0], y[17]);
 1621|     22|   accum.mul(x[1], y[16]);
 1622|     22|   accum.mul(x[2], y[15]);
 1623|     22|   accum.mul(x[3], y[14]);
 1624|     22|   accum.mul(x[4], y[13]);
 1625|     22|   accum.mul(x[5], y[12]);
 1626|     22|   accum.mul(x[6], y[11]);
 1627|     22|   accum.mul(x[7], y[10]);
 1628|     22|   accum.mul(x[8], y[9]);
 1629|     22|   accum.mul(x[9], y[8]);
 1630|     22|   accum.mul(x[10], y[7]);
 1631|     22|   accum.mul(x[11], y[6]);
 1632|     22|   accum.mul(x[12], y[5]);
 1633|     22|   accum.mul(x[13], y[4]);
 1634|     22|   accum.mul(x[14], y[3]);
 1635|     22|   accum.mul(x[15], y[2]);
 1636|     22|   accum.mul(x[16], y[1]);
 1637|     22|   accum.mul(x[17], y[0]);
 1638|     22|   z[17] = accum.extract();
 1639|     22|   accum.mul(x[0], y[18]);
 1640|     22|   accum.mul(x[1], y[17]);
 1641|     22|   accum.mul(x[2], y[16]);
 1642|     22|   accum.mul(x[3], y[15]);
 1643|     22|   accum.mul(x[4], y[14]);
 1644|     22|   accum.mul(x[5], y[13]);
 1645|     22|   accum.mul(x[6], y[12]);
 1646|     22|   accum.mul(x[7], y[11]);
 1647|     22|   accum.mul(x[8], y[10]);
 1648|     22|   accum.mul(x[9], y[9]);
 1649|     22|   accum.mul(x[10], y[8]);
 1650|     22|   accum.mul(x[11], y[7]);
 1651|     22|   accum.mul(x[12], y[6]);
 1652|     22|   accum.mul(x[13], y[5]);
 1653|     22|   accum.mul(x[14], y[4]);
 1654|     22|   accum.mul(x[15], y[3]);
 1655|     22|   accum.mul(x[16], y[2]);
 1656|     22|   accum.mul(x[17], y[1]);
 1657|     22|   accum.mul(x[18], y[0]);
 1658|     22|   z[18] = accum.extract();
 1659|     22|   accum.mul(x[0], y[19]);
 1660|     22|   accum.mul(x[1], y[18]);
 1661|     22|   accum.mul(x[2], y[17]);
 1662|     22|   accum.mul(x[3], y[16]);
 1663|     22|   accum.mul(x[4], y[15]);
 1664|     22|   accum.mul(x[5], y[14]);
 1665|     22|   accum.mul(x[6], y[13]);
 1666|     22|   accum.mul(x[7], y[12]);
 1667|     22|   accum.mul(x[8], y[11]);
 1668|     22|   accum.mul(x[9], y[10]);
 1669|     22|   accum.mul(x[10], y[9]);
 1670|     22|   accum.mul(x[11], y[8]);
 1671|     22|   accum.mul(x[12], y[7]);
 1672|     22|   accum.mul(x[13], y[6]);
 1673|     22|   accum.mul(x[14], y[5]);
 1674|     22|   accum.mul(x[15], y[4]);
 1675|     22|   accum.mul(x[16], y[3]);
 1676|     22|   accum.mul(x[17], y[2]);
 1677|     22|   accum.mul(x[18], y[1]);
 1678|     22|   accum.mul(x[19], y[0]);
 1679|     22|   z[19] = accum.extract();
 1680|     22|   accum.mul(x[0], y[20]);
 1681|     22|   accum.mul(x[1], y[19]);
 1682|     22|   accum.mul(x[2], y[18]);
 1683|     22|   accum.mul(x[3], y[17]);
 1684|     22|   accum.mul(x[4], y[16]);
 1685|     22|   accum.mul(x[5], y[15]);
 1686|     22|   accum.mul(x[6], y[14]);
 1687|     22|   accum.mul(x[7], y[13]);
 1688|     22|   accum.mul(x[8], y[12]);
 1689|     22|   accum.mul(x[9], y[11]);
 1690|     22|   accum.mul(x[10], y[10]);
 1691|     22|   accum.mul(x[11], y[9]);
 1692|     22|   accum.mul(x[12], y[8]);
 1693|     22|   accum.mul(x[13], y[7]);
 1694|     22|   accum.mul(x[14], y[6]);
 1695|     22|   accum.mul(x[15], y[5]);
 1696|     22|   accum.mul(x[16], y[4]);
 1697|     22|   accum.mul(x[17], y[3]);
 1698|     22|   accum.mul(x[18], y[2]);
 1699|     22|   accum.mul(x[19], y[1]);
 1700|     22|   accum.mul(x[20], y[0]);
 1701|     22|   z[20] = accum.extract();
 1702|     22|   accum.mul(x[0], y[21]);
 1703|     22|   accum.mul(x[1], y[20]);
 1704|     22|   accum.mul(x[2], y[19]);
 1705|     22|   accum.mul(x[3], y[18]);
 1706|     22|   accum.mul(x[4], y[17]);
 1707|     22|   accum.mul(x[5], y[16]);
 1708|     22|   accum.mul(x[6], y[15]);
 1709|     22|   accum.mul(x[7], y[14]);
 1710|     22|   accum.mul(x[8], y[13]);
 1711|     22|   accum.mul(x[9], y[12]);
 1712|     22|   accum.mul(x[10], y[11]);
 1713|     22|   accum.mul(x[11], y[10]);
 1714|     22|   accum.mul(x[12], y[9]);
 1715|     22|   accum.mul(x[13], y[8]);
 1716|     22|   accum.mul(x[14], y[7]);
 1717|     22|   accum.mul(x[15], y[6]);
 1718|     22|   accum.mul(x[16], y[5]);
 1719|     22|   accum.mul(x[17], y[4]);
 1720|     22|   accum.mul(x[18], y[3]);
 1721|     22|   accum.mul(x[19], y[2]);
 1722|     22|   accum.mul(x[20], y[1]);
 1723|     22|   accum.mul(x[21], y[0]);
 1724|     22|   z[21] = accum.extract();
 1725|     22|   accum.mul(x[0], y[22]);
 1726|     22|   accum.mul(x[1], y[21]);
 1727|     22|   accum.mul(x[2], y[20]);
 1728|     22|   accum.mul(x[3], y[19]);
 1729|     22|   accum.mul(x[4], y[18]);
 1730|     22|   accum.mul(x[5], y[17]);
 1731|     22|   accum.mul(x[6], y[16]);
 1732|     22|   accum.mul(x[7], y[15]);
 1733|     22|   accum.mul(x[8], y[14]);
 1734|     22|   accum.mul(x[9], y[13]);
 1735|     22|   accum.mul(x[10], y[12]);
 1736|     22|   accum.mul(x[11], y[11]);
 1737|     22|   accum.mul(x[12], y[10]);
 1738|     22|   accum.mul(x[13], y[9]);
 1739|     22|   accum.mul(x[14], y[8]);
 1740|     22|   accum.mul(x[15], y[7]);
 1741|     22|   accum.mul(x[16], y[6]);
 1742|     22|   accum.mul(x[17], y[5]);
 1743|     22|   accum.mul(x[18], y[4]);
 1744|     22|   accum.mul(x[19], y[3]);
 1745|     22|   accum.mul(x[20], y[2]);
 1746|     22|   accum.mul(x[21], y[1]);
 1747|     22|   accum.mul(x[22], y[0]);
 1748|     22|   z[22] = accum.extract();
 1749|     22|   accum.mul(x[0], y[23]);
 1750|     22|   accum.mul(x[1], y[22]);
 1751|     22|   accum.mul(x[2], y[21]);
 1752|     22|   accum.mul(x[3], y[20]);
 1753|     22|   accum.mul(x[4], y[19]);
 1754|     22|   accum.mul(x[5], y[18]);
 1755|     22|   accum.mul(x[6], y[17]);
 1756|     22|   accum.mul(x[7], y[16]);
 1757|     22|   accum.mul(x[8], y[15]);
 1758|     22|   accum.mul(x[9], y[14]);
 1759|     22|   accum.mul(x[10], y[13]);
 1760|     22|   accum.mul(x[11], y[12]);
 1761|     22|   accum.mul(x[12], y[11]);
 1762|     22|   accum.mul(x[13], y[10]);
 1763|     22|   accum.mul(x[14], y[9]);
 1764|     22|   accum.mul(x[15], y[8]);
 1765|     22|   accum.mul(x[16], y[7]);
 1766|     22|   accum.mul(x[17], y[6]);
 1767|     22|   accum.mul(x[18], y[5]);
 1768|     22|   accum.mul(x[19], y[4]);
 1769|     22|   accum.mul(x[20], y[3]);
 1770|     22|   accum.mul(x[21], y[2]);
 1771|     22|   accum.mul(x[22], y[1]);
 1772|     22|   accum.mul(x[23], y[0]);
 1773|     22|   z[23] = accum.extract();
 1774|     22|   accum.mul(x[1], y[23]);
 1775|     22|   accum.mul(x[2], y[22]);
 1776|     22|   accum.mul(x[3], y[21]);
 1777|     22|   accum.mul(x[4], y[20]);
 1778|     22|   accum.mul(x[5], y[19]);
 1779|     22|   accum.mul(x[6], y[18]);
 1780|     22|   accum.mul(x[7], y[17]);
 1781|     22|   accum.mul(x[8], y[16]);
 1782|     22|   accum.mul(x[9], y[15]);
 1783|     22|   accum.mul(x[10], y[14]);
 1784|     22|   accum.mul(x[11], y[13]);
 1785|     22|   accum.mul(x[12], y[12]);
 1786|     22|   accum.mul(x[13], y[11]);
 1787|     22|   accum.mul(x[14], y[10]);
 1788|     22|   accum.mul(x[15], y[9]);
 1789|     22|   accum.mul(x[16], y[8]);
 1790|     22|   accum.mul(x[17], y[7]);
 1791|     22|   accum.mul(x[18], y[6]);
 1792|     22|   accum.mul(x[19], y[5]);
 1793|     22|   accum.mul(x[20], y[4]);
 1794|     22|   accum.mul(x[21], y[3]);
 1795|     22|   accum.mul(x[22], y[2]);
 1796|     22|   accum.mul(x[23], y[1]);
 1797|     22|   z[24] = accum.extract();
 1798|     22|   accum.mul(x[2], y[23]);
 1799|     22|   accum.mul(x[3], y[22]);
 1800|     22|   accum.mul(x[4], y[21]);
 1801|     22|   accum.mul(x[5], y[20]);
 1802|     22|   accum.mul(x[6], y[19]);
 1803|     22|   accum.mul(x[7], y[18]);
 1804|     22|   accum.mul(x[8], y[17]);
 1805|     22|   accum.mul(x[9], y[16]);
 1806|     22|   accum.mul(x[10], y[15]);
 1807|     22|   accum.mul(x[11], y[14]);
 1808|     22|   accum.mul(x[12], y[13]);
 1809|     22|   accum.mul(x[13], y[12]);
 1810|     22|   accum.mul(x[14], y[11]);
 1811|     22|   accum.mul(x[15], y[10]);
 1812|     22|   accum.mul(x[16], y[9]);
 1813|     22|   accum.mul(x[17], y[8]);
 1814|     22|   accum.mul(x[18], y[7]);
 1815|     22|   accum.mul(x[19], y[6]);
 1816|     22|   accum.mul(x[20], y[5]);
 1817|     22|   accum.mul(x[21], y[4]);
 1818|     22|   accum.mul(x[22], y[3]);
 1819|     22|   accum.mul(x[23], y[2]);
 1820|     22|   z[25] = accum.extract();
 1821|     22|   accum.mul(x[3], y[23]);
 1822|     22|   accum.mul(x[4], y[22]);
 1823|     22|   accum.mul(x[5], y[21]);
 1824|     22|   accum.mul(x[6], y[20]);
 1825|     22|   accum.mul(x[7], y[19]);
 1826|     22|   accum.mul(x[8], y[18]);
 1827|     22|   accum.mul(x[9], y[17]);
 1828|     22|   accum.mul(x[10], y[16]);
 1829|     22|   accum.mul(x[11], y[15]);
 1830|     22|   accum.mul(x[12], y[14]);
 1831|     22|   accum.mul(x[13], y[13]);
 1832|     22|   accum.mul(x[14], y[12]);
 1833|     22|   accum.mul(x[15], y[11]);
 1834|     22|   accum.mul(x[16], y[10]);
 1835|     22|   accum.mul(x[17], y[9]);
 1836|     22|   accum.mul(x[18], y[8]);
 1837|     22|   accum.mul(x[19], y[7]);
 1838|     22|   accum.mul(x[20], y[6]);
 1839|     22|   accum.mul(x[21], y[5]);
 1840|     22|   accum.mul(x[22], y[4]);
 1841|     22|   accum.mul(x[23], y[3]);
 1842|     22|   z[26] = accum.extract();
 1843|     22|   accum.mul(x[4], y[23]);
 1844|     22|   accum.mul(x[5], y[22]);
 1845|     22|   accum.mul(x[6], y[21]);
 1846|     22|   accum.mul(x[7], y[20]);
 1847|     22|   accum.mul(x[8], y[19]);
 1848|     22|   accum.mul(x[9], y[18]);
 1849|     22|   accum.mul(x[10], y[17]);
 1850|     22|   accum.mul(x[11], y[16]);
 1851|     22|   accum.mul(x[12], y[15]);
 1852|     22|   accum.mul(x[13], y[14]);
 1853|     22|   accum.mul(x[14], y[13]);
 1854|     22|   accum.mul(x[15], y[12]);
 1855|     22|   accum.mul(x[16], y[11]);
 1856|     22|   accum.mul(x[17], y[10]);
 1857|     22|   accum.mul(x[18], y[9]);
 1858|     22|   accum.mul(x[19], y[8]);
 1859|     22|   accum.mul(x[20], y[7]);
 1860|     22|   accum.mul(x[21], y[6]);
 1861|     22|   accum.mul(x[22], y[5]);
 1862|     22|   accum.mul(x[23], y[4]);
 1863|     22|   z[27] = accum.extract();
 1864|     22|   accum.mul(x[5], y[23]);
 1865|     22|   accum.mul(x[6], y[22]);
 1866|     22|   accum.mul(x[7], y[21]);
 1867|     22|   accum.mul(x[8], y[20]);
 1868|     22|   accum.mul(x[9], y[19]);
 1869|     22|   accum.mul(x[10], y[18]);
 1870|     22|   accum.mul(x[11], y[17]);
 1871|     22|   accum.mul(x[12], y[16]);
 1872|     22|   accum.mul(x[13], y[15]);
 1873|     22|   accum.mul(x[14], y[14]);
 1874|     22|   accum.mul(x[15], y[13]);
 1875|     22|   accum.mul(x[16], y[12]);
 1876|     22|   accum.mul(x[17], y[11]);
 1877|     22|   accum.mul(x[18], y[10]);
 1878|     22|   accum.mul(x[19], y[9]);
 1879|     22|   accum.mul(x[20], y[8]);
 1880|     22|   accum.mul(x[21], y[7]);
 1881|     22|   accum.mul(x[22], y[6]);
 1882|     22|   accum.mul(x[23], y[5]);
 1883|     22|   z[28] = accum.extract();
 1884|     22|   accum.mul(x[6], y[23]);
 1885|     22|   accum.mul(x[7], y[22]);
 1886|     22|   accum.mul(x[8], y[21]);
 1887|     22|   accum.mul(x[9], y[20]);
 1888|     22|   accum.mul(x[10], y[19]);
 1889|     22|   accum.mul(x[11], y[18]);
 1890|     22|   accum.mul(x[12], y[17]);
 1891|     22|   accum.mul(x[13], y[16]);
 1892|     22|   accum.mul(x[14], y[15]);
 1893|     22|   accum.mul(x[15], y[14]);
 1894|     22|   accum.mul(x[16], y[13]);
 1895|     22|   accum.mul(x[17], y[12]);
 1896|     22|   accum.mul(x[18], y[11]);
 1897|     22|   accum.mul(x[19], y[10]);
 1898|     22|   accum.mul(x[20], y[9]);
 1899|     22|   accum.mul(x[21], y[8]);
 1900|     22|   accum.mul(x[22], y[7]);
 1901|     22|   accum.mul(x[23], y[6]);
 1902|     22|   z[29] = accum.extract();
 1903|     22|   accum.mul(x[7], y[23]);
 1904|     22|   accum.mul(x[8], y[22]);
 1905|     22|   accum.mul(x[9], y[21]);
 1906|     22|   accum.mul(x[10], y[20]);
 1907|     22|   accum.mul(x[11], y[19]);
 1908|     22|   accum.mul(x[12], y[18]);
 1909|     22|   accum.mul(x[13], y[17]);
 1910|     22|   accum.mul(x[14], y[16]);
 1911|     22|   accum.mul(x[15], y[15]);
 1912|     22|   accum.mul(x[16], y[14]);
 1913|     22|   accum.mul(x[17], y[13]);
 1914|     22|   accum.mul(x[18], y[12]);
 1915|     22|   accum.mul(x[19], y[11]);
 1916|     22|   accum.mul(x[20], y[10]);
 1917|     22|   accum.mul(x[21], y[9]);
 1918|     22|   accum.mul(x[22], y[8]);
 1919|     22|   accum.mul(x[23], y[7]);
 1920|     22|   z[30] = accum.extract();
 1921|     22|   accum.mul(x[8], y[23]);
 1922|     22|   accum.mul(x[9], y[22]);
 1923|     22|   accum.mul(x[10], y[21]);
 1924|     22|   accum.mul(x[11], y[20]);
 1925|     22|   accum.mul(x[12], y[19]);
 1926|     22|   accum.mul(x[13], y[18]);
 1927|     22|   accum.mul(x[14], y[17]);
 1928|     22|   accum.mul(x[15], y[16]);
 1929|     22|   accum.mul(x[16], y[15]);
 1930|     22|   accum.mul(x[17], y[14]);
 1931|     22|   accum.mul(x[18], y[13]);
 1932|     22|   accum.mul(x[19], y[12]);
 1933|     22|   accum.mul(x[20], y[11]);
 1934|     22|   accum.mul(x[21], y[10]);
 1935|     22|   accum.mul(x[22], y[9]);
 1936|     22|   accum.mul(x[23], y[8]);
 1937|     22|   z[31] = accum.extract();
 1938|     22|   accum.mul(x[9], y[23]);
 1939|     22|   accum.mul(x[10], y[22]);
 1940|     22|   accum.mul(x[11], y[21]);
 1941|     22|   accum.mul(x[12], y[20]);
 1942|     22|   accum.mul(x[13], y[19]);
 1943|     22|   accum.mul(x[14], y[18]);
 1944|     22|   accum.mul(x[15], y[17]);
 1945|     22|   accum.mul(x[16], y[16]);
 1946|     22|   accum.mul(x[17], y[15]);
 1947|     22|   accum.mul(x[18], y[14]);
 1948|     22|   accum.mul(x[19], y[13]);
 1949|     22|   accum.mul(x[20], y[12]);
 1950|     22|   accum.mul(x[21], y[11]);
 1951|     22|   accum.mul(x[22], y[10]);
 1952|     22|   accum.mul(x[23], y[9]);
 1953|     22|   z[32] = accum.extract();
 1954|     22|   accum.mul(x[10], y[23]);
 1955|     22|   accum.mul(x[11], y[22]);
 1956|     22|   accum.mul(x[12], y[21]);
 1957|     22|   accum.mul(x[13], y[20]);
 1958|     22|   accum.mul(x[14], y[19]);
 1959|     22|   accum.mul(x[15], y[18]);
 1960|     22|   accum.mul(x[16], y[17]);
 1961|     22|   accum.mul(x[17], y[16]);
 1962|     22|   accum.mul(x[18], y[15]);
 1963|     22|   accum.mul(x[19], y[14]);
 1964|     22|   accum.mul(x[20], y[13]);
 1965|     22|   accum.mul(x[21], y[12]);
 1966|     22|   accum.mul(x[22], y[11]);
 1967|     22|   accum.mul(x[23], y[10]);
 1968|     22|   z[33] = accum.extract();
 1969|     22|   accum.mul(x[11], y[23]);
 1970|     22|   accum.mul(x[12], y[22]);
 1971|     22|   accum.mul(x[13], y[21]);
 1972|     22|   accum.mul(x[14], y[20]);
 1973|     22|   accum.mul(x[15], y[19]);
 1974|     22|   accum.mul(x[16], y[18]);
 1975|     22|   accum.mul(x[17], y[17]);
 1976|     22|   accum.mul(x[18], y[16]);
 1977|     22|   accum.mul(x[19], y[15]);
 1978|     22|   accum.mul(x[20], y[14]);
 1979|     22|   accum.mul(x[21], y[13]);
 1980|     22|   accum.mul(x[22], y[12]);
 1981|     22|   accum.mul(x[23], y[11]);
 1982|     22|   z[34] = accum.extract();
 1983|     22|   accum.mul(x[12], y[23]);
 1984|     22|   accum.mul(x[13], y[22]);
 1985|     22|   accum.mul(x[14], y[21]);
 1986|     22|   accum.mul(x[15], y[20]);
 1987|     22|   accum.mul(x[16], y[19]);
 1988|     22|   accum.mul(x[17], y[18]);
 1989|     22|   accum.mul(x[18], y[17]);
 1990|     22|   accum.mul(x[19], y[16]);
 1991|     22|   accum.mul(x[20], y[15]);
 1992|     22|   accum.mul(x[21], y[14]);
 1993|     22|   accum.mul(x[22], y[13]);
 1994|     22|   accum.mul(x[23], y[12]);
 1995|     22|   z[35] = accum.extract();
 1996|     22|   accum.mul(x[13], y[23]);
 1997|     22|   accum.mul(x[14], y[22]);
 1998|     22|   accum.mul(x[15], y[21]);
 1999|     22|   accum.mul(x[16], y[20]);
 2000|     22|   accum.mul(x[17], y[19]);
 2001|     22|   accum.mul(x[18], y[18]);
 2002|     22|   accum.mul(x[19], y[17]);
 2003|     22|   accum.mul(x[20], y[16]);
 2004|     22|   accum.mul(x[21], y[15]);
 2005|     22|   accum.mul(x[22], y[14]);
 2006|     22|   accum.mul(x[23], y[13]);
 2007|     22|   z[36] = accum.extract();
 2008|     22|   accum.mul(x[14], y[23]);
 2009|     22|   accum.mul(x[15], y[22]);
 2010|     22|   accum.mul(x[16], y[21]);
 2011|     22|   accum.mul(x[17], y[20]);
 2012|     22|   accum.mul(x[18], y[19]);
 2013|     22|   accum.mul(x[19], y[18]);
 2014|     22|   accum.mul(x[20], y[17]);
 2015|     22|   accum.mul(x[21], y[16]);
 2016|     22|   accum.mul(x[22], y[15]);
 2017|     22|   accum.mul(x[23], y[14]);
 2018|     22|   z[37] = accum.extract();
 2019|     22|   accum.mul(x[15], y[23]);
 2020|     22|   accum.mul(x[16], y[22]);
 2021|     22|   accum.mul(x[17], y[21]);
 2022|     22|   accum.mul(x[18], y[20]);
 2023|     22|   accum.mul(x[19], y[19]);
 2024|     22|   accum.mul(x[20], y[18]);
 2025|     22|   accum.mul(x[21], y[17]);
 2026|     22|   accum.mul(x[22], y[16]);
 2027|     22|   accum.mul(x[23], y[15]);
 2028|     22|   z[38] = accum.extract();
 2029|     22|   accum.mul(x[16], y[23]);
 2030|     22|   accum.mul(x[17], y[22]);
 2031|     22|   accum.mul(x[18], y[21]);
 2032|     22|   accum.mul(x[19], y[20]);
 2033|     22|   accum.mul(x[20], y[19]);
 2034|     22|   accum.mul(x[21], y[18]);
 2035|     22|   accum.mul(x[22], y[17]);
 2036|     22|   accum.mul(x[23], y[16]);
 2037|     22|   z[39] = accum.extract();
 2038|     22|   accum.mul(x[17], y[23]);
 2039|     22|   accum.mul(x[18], y[22]);
 2040|     22|   accum.mul(x[19], y[21]);
 2041|     22|   accum.mul(x[20], y[20]);
 2042|     22|   accum.mul(x[21], y[19]);
 2043|     22|   accum.mul(x[22], y[18]);
 2044|     22|   accum.mul(x[23], y[17]);
 2045|     22|   z[40] = accum.extract();
 2046|     22|   accum.mul(x[18], y[23]);
 2047|     22|   accum.mul(x[19], y[22]);
 2048|     22|   accum.mul(x[20], y[21]);
 2049|     22|   accum.mul(x[21], y[20]);
 2050|     22|   accum.mul(x[22], y[19]);
 2051|     22|   accum.mul(x[23], y[18]);
 2052|     22|   z[41] = accum.extract();
 2053|     22|   accum.mul(x[19], y[23]);
 2054|     22|   accum.mul(x[20], y[22]);
 2055|     22|   accum.mul(x[21], y[21]);
 2056|     22|   accum.mul(x[22], y[20]);
 2057|     22|   accum.mul(x[23], y[19]);
 2058|     22|   z[42] = accum.extract();
 2059|     22|   accum.mul(x[20], y[23]);
 2060|     22|   accum.mul(x[21], y[22]);
 2061|     22|   accum.mul(x[22], y[21]);
 2062|     22|   accum.mul(x[23], y[20]);
 2063|     22|   z[43] = accum.extract();
 2064|     22|   accum.mul(x[21], y[23]);
 2065|     22|   accum.mul(x[22], y[22]);
 2066|     22|   accum.mul(x[23], y[21]);
 2067|     22|   z[44] = accum.extract();
 2068|     22|   accum.mul(x[22], y[23]);
 2069|     22|   accum.mul(x[23], y[22]);
 2070|     22|   z[45] = accum.extract();
 2071|     22|   accum.mul(x[23], y[23]);
 2072|     22|   z[46] = accum.extract();
 2073|     22|   z[47] = accum.extract();
 2074|     22|}

_ZN5Botan12basecase_mulEPmmPKmmS2_m:
   20|    116|void basecase_mul(word z[], size_t z_size, const word x[], size_t x_size, const word y[], size_t y_size) {
   21|    116|   if(z_size < x_size + y_size) {
  ------------------
  |  Branch (21:7): [True: 0, False: 116]
  ------------------
   22|      0|      throw Invalid_Argument("basecase_mul z_size too small");
   23|      0|   }
   24|       |
   25|    116|   const size_t x_size_8 = x_size - (x_size % 8);
   26|       |
   27|    116|   zeroize_buffer(z, z_size);
   28|       |
   29|  2.01k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (29:22): [True: 1.89k, False: 116]
  ------------------
   30|  1.89k|      const word y_i = y[i];
   31|       |
   32|  1.89k|      word carry = 0;
   33|       |
   34|  3.93k|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (34:25): [True: 2.04k, False: 1.89k]
  ------------------
   35|  2.04k|         carry = word8_madd3(z + i + j, x + j, y_i, carry);
   36|  2.04k|      }
   37|       |
   38|  6.98k|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (38:32): [True: 5.08k, False: 1.89k]
  ------------------
   39|  5.08k|         z[i + j] = word_madd3(x[j], y_i, z[i + j], &carry);
   40|  5.08k|      }
   41|       |
   42|  1.89k|      z[x_size + i] = carry;
   43|  1.89k|   }
   44|    116|}
_ZN5Botan10bigint_mulEPmmPKmmmS2_mmS0_m:
  292|    239|                size_t ws_size) {
  293|    239|   zeroize_buffer(z, z_size);
  294|       |
  295|    239|   if(x_sw == 1) {
  ------------------
  |  Branch (295:7): [True: 0, False: 239]
  ------------------
  296|      0|      bigint_linmul3(z, y, y_sw, x[0]);
  297|    239|   } else if(y_sw == 1) {
  ------------------
  |  Branch (297:14): [True: 0, False: 239]
  ------------------
  298|      0|      bigint_linmul3(z, x, x_sw, y[0]);
  299|    239|   } else if(sized_for_comba_mul<4>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (299:14): [True: 37, False: 202]
  ------------------
  300|     37|      bigint_comba_mul4(z, x, y);
  301|    202|   } else if(sized_for_comba_mul<6>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (301:14): [True: 18, False: 184]
  ------------------
  302|     18|      bigint_comba_mul6(z, x, y);
  303|    184|   } else if(sized_for_comba_mul<8>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (303:14): [True: 17, False: 167]
  ------------------
  304|     17|      bigint_comba_mul8(z, x, y);
  305|    167|   } else if(sized_for_comba_mul<9>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (305:14): [True: 10, False: 157]
  ------------------
  306|     10|      bigint_comba_mul9(z, x, y);
  307|    157|   } else if(sized_for_comba_mul<16>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (307:14): [True: 24, False: 133]
  ------------------
  308|     24|      bigint_comba_mul16(z, x, y);
  309|    133|   } else if(sized_for_comba_mul<24>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (309:14): [True: 22, False: 111]
  ------------------
  310|     22|      bigint_comba_mul24(z, x, y);
  311|    111|   } else if(x_sw < KARATSUBA_MULTIPLY_THRESHOLD || y_sw < KARATSUBA_MULTIPLY_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (311:14): [True: 68, False: 43]
  |  Branch (311:53): [True: 36, False: 7]
  |  Branch (311:92): [True: 0, False: 7]
  ------------------
  312|    104|      basecase_mul(z, z_size, x, x_sw, y, y_sw);
  313|    104|   } else {
  314|      7|      const size_t N = karatsuba_size(z_size, x_size, x_sw, y_size, y_sw);
  315|       |
  316|      7|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (316:10): [True: 7, False: 0]
  |  Branch (316:19): [True: 7, False: 0]
  |  Branch (316:38): [True: 7, False: 0]
  ------------------
  317|      7|         karatsuba_mul(z, x, y, N, workspace);
  318|      7|      } else {
  319|      0|         basecase_mul(z, z_size, x, x_sw, y, y_sw);
  320|      0|      }
  321|      7|   }
  322|    239|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmmmm:
  203|      7|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw, size_t y_size, size_t y_sw) {
  204|      7|   if(x_sw > x_size || x_sw > y_size || y_sw > x_size || y_sw > y_size) {
  ------------------
  |  Branch (204:7): [True: 0, False: 7]
  |  Branch (204:24): [True: 0, False: 7]
  |  Branch (204:41): [True: 0, False: 7]
  |  Branch (204:58): [True: 0, False: 7]
  ------------------
  205|      0|      return 0;
  206|      0|   }
  207|       |
  208|      7|   if(((x_size == x_sw) && (x_size % 2 != 0)) || ((y_size == y_sw) && (y_size % 2 != 0))) {
  ------------------
  |  Branch (208:8): [True: 0, False: 7]
  |  Branch (208:28): [True: 0, False: 0]
  |  Branch (208:51): [True: 0, False: 7]
  |  Branch (208:71): [True: 0, False: 0]
  ------------------
  209|      0|      return 0;
  210|      0|   }
  211|       |
  212|      7|   const size_t start = (x_sw > y_sw) ? x_sw : y_sw;
  ------------------
  |  Branch (212:25): [True: 3, False: 4]
  ------------------
  213|      7|   const size_t end = (x_size < y_size) ? x_size : y_size;
  ------------------
  |  Branch (213:23): [True: 7, False: 0]
  ------------------
  214|       |
  215|      7|   if(start == end) {
  ------------------
  |  Branch (215:7): [True: 0, False: 7]
  ------------------
  216|      0|      if(start % 2 != 0) {
  ------------------
  |  Branch (216:10): [True: 0, False: 0]
  ------------------
  217|      0|         return 0;
  218|      0|      }
  219|      0|      return start;
  220|      0|   }
  221|       |
  222|     11|   for(size_t j = start; j <= end; ++j) {
  ------------------
  |  Branch (222:26): [True: 11, False: 0]
  ------------------
  223|     11|      if(j % 2 != 0) {
  ------------------
  |  Branch (223:10): [True: 4, False: 7]
  ------------------
  224|      4|         continue;
  225|      4|      }
  226|       |
  227|      7|      if(2 * j > z_size) {
  ------------------
  |  Branch (227:10): [True: 0, False: 7]
  ------------------
  228|      0|         return 0;
  229|      0|      }
  230|       |
  231|      7|      if(x_sw <= j && j <= x_size && y_sw <= j && j <= y_size) {
  ------------------
  |  Branch (231:10): [True: 7, False: 0]
  |  Branch (231:23): [True: 7, False: 0]
  |  Branch (231:38): [True: 7, False: 0]
  |  Branch (231:51): [True: 7, False: 0]
  ------------------
  232|      7|         if(j % 4 == 2 && (j + 2) <= x_size && (j + 2) <= y_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (232:13): [True: 4, False: 3]
  |  Branch (232:27): [True: 4, False: 0]
  |  Branch (232:48): [True: 4, False: 0]
  |  Branch (232:69): [True: 4, False: 0]
  ------------------
  233|      4|            return j + 2;
  234|      4|         }
  235|      3|         return j;
  236|      7|      }
  237|      7|   }
  238|       |
  239|      0|   return 0;
  240|      7|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_113karatsuba_mulEPmPKmS3_mS1_:
   80|     28|void karatsuba_mul(word z[], const word x[], const word y[], size_t N, word workspace[]) {
   81|     28|   if(N < KARATSUBA_MULTIPLY_THRESHOLD || N % 2 != 0) {
  ------------------
  |  Branch (81:7): [True: 21, False: 7]
  |  Branch (81:43): [True: 0, False: 7]
  ------------------
   82|     21|      switch(N) {
   83|      0|         case 6:
  ------------------
  |  Branch (83:10): [True: 0, False: 21]
  ------------------
   84|      0|            return bigint_comba_mul6(z, x, y);
   85|      0|         case 8:
  ------------------
  |  Branch (85:10): [True: 0, False: 21]
  ------------------
   86|      0|            return bigint_comba_mul8(z, x, y);
   87|      0|         case 9:
  ------------------
  |  Branch (87:10): [True: 0, False: 21]
  ------------------
   88|      0|            return bigint_comba_mul9(z, x, y);
   89|      9|         case 16:
  ------------------
  |  Branch (89:10): [True: 9, False: 12]
  ------------------
   90|      9|            return bigint_comba_mul16(z, x, y);
   91|      0|         case 24:
  ------------------
  |  Branch (91:10): [True: 0, False: 21]
  ------------------
   92|      0|            return bigint_comba_mul24(z, x, y);
   93|     12|         default:
  ------------------
  |  Branch (93:10): [True: 12, False: 9]
  ------------------
   94|     12|            return basecase_mul(z, 2 * N, x, N, y, N);
   95|     21|      }
   96|     21|   }
   97|       |
   98|      7|   const size_t N2 = N / 2;
   99|       |
  100|      7|   const word* x0 = x;
  101|      7|   const word* x1 = x + N2;
  102|      7|   const word* y0 = y;
  103|      7|   const word* y1 = y + N2;
  104|      7|   word* z0 = z;
  105|      7|   word* z1 = z + N;
  106|       |
  107|      7|   word* ws0 = workspace;
  108|      7|   word* ws1 = workspace + N;
  109|       |
  110|      7|   zeroize_buffer(workspace, 2 * N);
  111|       |
  112|       |   /*
  113|       |   * If either of cmp0 or cmp1 is zero then z0 or z1 resp is zero here,
  114|       |   * resulting in a no-op - z0*z1 will be equal to zero so we don't need to do
  115|       |   * anything, zeroize_buffer above already set the correct result.
  116|       |   *
  117|       |   * However we ignore the result of the comparisons and always perform the
  118|       |   * subtractions and recursively multiply to avoid the timing channel.
  119|       |   */
  120|       |
  121|       |   // First compute (X_lo - X_hi)*(Y_hi - Y_lo)
  122|      7|   const auto cmp0 = bigint_sub_abs(z0, x0, x1, N2, workspace);
  123|      7|   const auto cmp1 = bigint_sub_abs(z1, y1, y0, N2, workspace);
  124|      7|   const auto neg_mask = ~(cmp0 ^ cmp1);
  125|       |
  126|      7|   karatsuba_mul(ws0, z0, z1, N2, ws1);
  127|       |
  128|       |   // Compute X_lo * Y_lo
  129|      7|   karatsuba_mul(z0, x0, y0, N2, ws1);
  130|       |
  131|       |   // Compute X_hi * Y_hi
  132|      7|   karatsuba_mul(z1, x1, y1, N2, ws1);
  133|       |
  134|      7|   const word ws_carry = bigint_add3(ws1, z0, N, z1, N);
  135|      7|   word z_carry = bigint_add2(z + N2, N, ws1, N);
  136|       |
  137|      7|   z_carry += bigint_add2(z + N + N2, N2, &ws_carry, 1);
  138|      7|   bigint_add2(z + N + N2, N2, &z_carry, 1);
  139|       |
  140|      7|   zeroize_buffer(workspace + N, N2);
  141|       |
  142|      7|   bigint_cnd_add(neg_mask.value(), z + N2, workspace, 2 * N - N2);
  143|      7|   bigint_cnd_sub((~neg_mask).value(), z + N2, workspace, 2 * N - N2);
  144|      7|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm4EEEbmmmmm:
  272|    239|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    239|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 78, False: 161]
  |  Branch (273:26): [True: 78, False: 0]
  |  Branch (273:42): [True: 37, False: 41]
  |  Branch (273:56): [True: 37, False: 0]
  |  Branch (273:72): [True: 37, False: 0]
  ------------------
  274|    239|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm6EEEbmmmmm:
  272|    202|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    202|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 56, False: 146]
  |  Branch (273:26): [True: 56, False: 0]
  |  Branch (273:42): [True: 18, False: 38]
  |  Branch (273:56): [True: 18, False: 0]
  |  Branch (273:72): [True: 18, False: 0]
  ------------------
  274|    202|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm8EEEbmmmmm:
  272|    184|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    184|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 67, False: 117]
  |  Branch (273:26): [True: 67, False: 0]
  |  Branch (273:42): [True: 17, False: 50]
  |  Branch (273:56): [True: 17, False: 0]
  |  Branch (273:72): [True: 17, False: 0]
  ------------------
  274|    184|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm9EEEbmmmmm:
  272|    167|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    167|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 59, False: 108]
  |  Branch (273:26): [True: 24, False: 35]
  |  Branch (273:42): [True: 10, False: 14]
  |  Branch (273:56): [True: 10, False: 0]
  |  Branch (273:72): [True: 10, False: 0]
  ------------------
  274|    167|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm16EEEbmmmmm:
  272|    157|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    157|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 77, False: 80]
  |  Branch (273:26): [True: 42, False: 35]
  |  Branch (273:42): [True: 24, False: 18]
  |  Branch (273:56): [True: 24, False: 0]
  |  Branch (273:72): [True: 24, False: 0]
  ------------------
  274|    157|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm24EEEbmmmmm:
  272|    133|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|    133|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 74, False: 59]
  |  Branch (273:26): [True: 26, False: 48]
  |  Branch (273:42): [True: 22, False: 4]
  |  Branch (273:56): [True: 22, False: 0]
  |  Branch (273:72): [True: 22, False: 0]
  ------------------
  274|    133|}

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

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

