| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
cvc4=./cvc4 |
| 4 |
bench="$1" |
| 5 |
|
| 6 |
logic=$(expr "$(grep -m1 '^[^;]*set-logic' "$bench")" : ' *(set-logic *\([A-Z_]*\) *) *$') |
| 7 |
|
| 8 |
# use: finishwith [params..] |
| 9 |
# to run cvc4 and let it output whatever it will to stdout. |
| 10 |
function finishwith { |
| 11 |
$cvc4 -L smt2.6 --no-incremental --no-type-checking --no-interactive "$@" $bench |
| 12 |
} |
| 13 |
|
| 14 |
case "$logic" in |
| 15 |
|
| 16 |
QF_LRA) |
| 17 |
finishwith --no-restrict-pivots --use-soi --new-prop |
| 18 |
;; |
| 19 |
QF_LIA) |
| 20 |
finishwith --miplib-trick --miplib-trick-subs=4 --use-approx --lemmas-on-replay-failure --replay-early-close-depth=4 --replay-lemma-reject-cut=128 --replay-reject-cut=512 --use-soi --pb-rewrites --ite-simp --simp-ite-compress |
| 21 |
;; |
| 22 |
QF_BV) |
| 23 |
finishwith --bv-div-zero-const --bitblast=eager --bv-sat-solver=cadical --no-bv-abstraction |
| 24 |
;; |
| 25 |
*) |
| 26 |
# just run the default |
| 27 |
finishwith |
| 28 |
;; |
| 29 |
|
| 30 |
esac |