22 const bool is_multiplication_overflow_builtin = __builtin_mul_overflow(i, j, &result_builtin);
23 assert(is_multiplication_overflow_custom == is_multiplication_overflow_builtin);
24 if (!is_multiplication_overflow_custom) {
25 assert(i * j == result_builtin);
28 if (!is_multiplication_overflow_custom) {
38 TestMultiplicationOverflow<int64_t>(fuzzed_data_provider);
39 TestMultiplicationOverflow<uint64_t>(fuzzed_data_provider);
40 TestMultiplicationOverflow<int32_t>(fuzzed_data_provider);
41 TestMultiplicationOverflow<uint32_t>(fuzzed_data_provider);
42 TestMultiplicationOverflow<int16_t>(fuzzed_data_provider);
43 TestMultiplicationOverflow<uint16_t>(fuzzed_data_provider);
44 TestMultiplicationOverflow<char>(fuzzed_data_provider);
45 TestMultiplicationOverflow<unsigned char>(fuzzed_data_provider);
46 TestMultiplicationOverflow<signed char>(fuzzed_data_provider);
#define T(expected, seed, data)
FUZZ_TARGET(multiplication_overflow)
bool MultiplicationOverflow(const T i, const T j) noexcept