Simplify crossed dispatch and add SMT-derived cases
Drop the redundant begin.offset split in crossedCompleteOvershoot and the rE > 0 guard in closedFormForwardSaturated; both are implied by the call-site invariants. Add an SMT-derived empty-interval case as the smt_cases CTest and as a committed fuzz_readable seed. run-fuzz.sh now loads the read-only seed corpus alongside the writable one. Rename exhaustive to sweep and document that it is exhaustive only over its bounded family of instances.
This commit is contained in:
1 parent
7a41d1f647
commit
a0b68d148b
9 files changed
+72
-50
No files matched your search
+9
-6
@@ -36,18 +36,21 @@ target_include_directories(extreme_test PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests)
|
||||
target_link_libraries(extreme_test PRIVATE cr_literal cr_fast)
|
||||
|
||||
# Deterministic exhaustive sweep of small readable instances. This is the
|
||||
# driver for the line-coverage check in `run-coverage.sh`.
|
||||
add_executable(exhaustive_test tests/exhaustive.cpp)
|
||||
target_include_directories(exhaustive_test PRIVATE
|
||||
# Deterministic sweep over a finite class of small readable instances. This is
|
||||
# the driver for the line-coverage check in `run-coverage.sh`.
|
||||
add_executable(sweep_test tests/sweep.cpp)
|
||||
target_include_directories(sweep_test PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests)
|
||||
target_link_libraries(exhaustive_test PRIVATE cr_literal cr_fast)
|
||||
target_link_libraries(sweep_test PRIVATE cr_literal cr_fast)
|
||||
|
||||
set(CR_GOLDEN_VECTORS "${CMAKE_CURRENT_SOURCE_DIR}/oracle/golden.txt")
|
||||
add_test(NAME golden COMMAND golden_test "${CR_GOLDEN_VECTORS}")
|
||||
add_test(NAME diff_corpus COMMAND diff_corpus "${CR_GOLDEN_VECTORS}")
|
||||
# Curated readable cases found by SMT-assisted mutation analysis.
|
||||
add_test(NAME smt_cases COMMAND diff_corpus
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/tests/smt_cases.txt")
|
||||
add_test(NAME extreme COMMAND extreme_test)
|
||||
add_test(NAME exhaustive COMMAND exhaustive_test)
|
||||
add_test(NAME sweep COMMAND sweep_test)
|
||||
|
||||
if(CR_BUILD_BENCH)
|
||||
add_executable(cr_bench tests/bench.cpp)
|
||||
|
||||
Reference in new issue
Block a user