mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 12:28:44 +00:00
Removing some signed checks and logic where we've already guaranteed the values to be positive. Indeed, in these cases, if a negative value got through (per my realisation in the signed fuzz harness), it would cause an infinite loop due to flooring division.
25 lines
400 B
CMake
25 lines
400 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(cxxrtl_division_fuzz)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
add_subdirectory(fuzztest)
|
|
|
|
enable_testing()
|
|
|
|
include(GoogleTest)
|
|
|
|
fuzztest_setup_fuzzing_flags()
|
|
|
|
include_directories(../../..)
|
|
|
|
add_executable(
|
|
x_test
|
|
x_test.cc
|
|
../../../libs/bigint/BigUnsigned.cc
|
|
../../../libs/bigint/BigInteger.cc
|
|
)
|
|
|
|
link_fuzztest(x_test)
|
|
gtest_discover_tests(x_test)
|