Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
multiplication_overflow.cpp
Go to the documentation of this file.
1// Copyright (c) 2020-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
6#include <test/fuzz/fuzz.h>
7#include <test/fuzz/util.h>
8
9#include <cstdint>
10#include <string>
11#include <vector>
12
13namespace {
14template <typename T>
16{
20#ifndef _MSC_VER
25 assert(i * j == result_builtin);
26 }
27#else
29 (void)(i * j);
30 }
31#endif
32}
33} // namespace
34
#define FUZZ_TARGET(...)
Definition fuzz.h:35
#define T(expected, seed, data)
bool MultiplicationOverflow(const T i, const T j) noexcept
Definition util.h:204
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73
assert(!tx.IsCoinBase())
FuzzedDataProvider & fuzzed_data_provider
Definition fees.cpp:38