Debian Codegraph @

contrib/competitions/smt-comp/run-script-smtcomp2023-model-validation

raw
1 #!/bin/bash
2
3 cvc5=$(dirname "$(readlink -f "$0")")/cvc5
4 bench="$1"
5
6 logic=$(expr "$(grep -m1 '^[^;]*set-logic' "$bench")" : ' *(set-logic *\([A-Z_]*\) *) *$')
7
8 # use: finishwith [params..]
9 # to run cvc5 and let it output whatever it will to stdout.
10 function finishwith {
11 $cvc5 -L smt2.6 --no-incremental --no-type-checking --no-interactive --fp-exp "$@" $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-assert-input
24 ;;
25 *)
26 # just run the default
27 finishwith
28 ;;
29
30 esac