Skip to content

Commit

Permalink
Work-around Z3 bug
Browse files Browse the repository at this point in the history
rems-project/cerberus#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 Z3Prover/z3#7352
  • Loading branch information
dc-mak committed Aug 26, 2024
1 parent 504ebe1 commit b54ec34
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ good=0
bad=0
declare -a bad_tests

for file in $SCRIPT_DIR/src/examples/*c;
# 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[@]}"
do
echo "Checking $file ..."
$CN $file
Expand Down

0 comments on commit b54ec34

Please sign in to comment.