Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert Z3 bug workaround #82

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,7 @@ good=0
bad=0
declare -a bad_tests

# https://github.com/rems-project/cerberus/pull/494 exposed an issue in
# the Z3 which is a bit difficult to work around in the implementation
# itself and so we have this hacky work-around instead whilst it is fixed
# upstream https://github.com/Z3Prover/z3/issues/7352
if [[ "${CN}" == "cn verify" ]] \
|| [[ "${CN}" == *"--solver-type=z3"* ]]; then
FILES=($(find "${SCRIPT_DIR}/src/examples" -name '*.c' \
! -name queue_pop.c \
! -name queue_push_induction.c))
else
FILES=($(find "${SCRIPT_DIR}/src/examples" -name '*.c'))
fi

for file in "${FILES[@]}"
for file in $SCRIPT_DIR/src/examples/*c;
do
echo "Checking $file ..."
$CN $file
Expand Down