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
+6
-6
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build with Clang source-based coverage and require 100% line and branch
|
||||
# coverage of the summarised implementation (`src/fast.cpp`). `exhaustive_test`
|
||||
# enumerates small readable instances deterministically and is sufficient on its
|
||||
# own.
|
||||
# coverage of the summarised implementation (`src/fast.cpp`). `sweep_test`
|
||||
# deterministically enumerates a finite class of small readable instances and is
|
||||
# sufficient on its own.
|
||||
set -euo pipefail
|
||||
|
||||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
@@ -74,18 +74,18 @@ cmake -S "$here" -B "$build" -G Ninja \
|
||||
-DCR_BUILD_BENCH=OFF \
|
||||
-DCMAKE_CXX_FLAGS="-fprofile-instr-generate -fcoverage-mapping" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-fprofile-instr-generate"
|
||||
cmake --build "$build" --target exhaustive_test
|
||||
cmake --build "$build" --target sweep_test
|
||||
|
||||
profdir="$build/prof"
|
||||
rm -rf "$profdir"
|
||||
mkdir -p "$profdir"
|
||||
|
||||
cd "$here"
|
||||
LLVM_PROFILE_FILE="$profdir/exhaustive-%p.profraw" "$build/exhaustive_test"
|
||||
LLVM_PROFILE_FILE="$profdir/sweep-%p.profraw" "$build/sweep_test"
|
||||
"$profdata" merge -sparse "$profdir"/*.profraw -o "$profdir/cov.profdata"
|
||||
|
||||
report() {
|
||||
"$cov" report "$build/exhaustive_test" \
|
||||
"$cov" report "$build/sweep_test" \
|
||||
-instr-profile="$profdir/cov.profdata" src/fast.cpp
|
||||
}
|
||||
output="$(report)"
|
||||
|
||||
Reference in new issue
Block a user