Debian Codegraph @

contrib/competitions/smt-comp/run-script-smtcomp2024-unsat-cores

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
21 ;;
22 QF_NIA)
23 finishwith --nl-ext-tplanes
24 ;;
25 # all logics with UF + quantifiers should either fall under this or special cases below
26 ALIA|AUFLIA|AUFLIRA|AUFNIRA|UF|UFBVLIA|UFIDL|UFLIA|UFLRA|UFNIA|UFDT|UFDTLIA|UFDTLIRA|AUFDTLIA|AUFDTLIRA|AUFBV|AUFBVDTLIA|AUFBVFP|AUFNIA|UFFPDTLIRA|UFFPDTNIRA|ABVFP|BVFP|FP)
27 finishwith --full-saturate-quant
28 ;;
29 UFBV)
30 finishwith --finite-model-find
31 ;;
32 BV)
33 finishwith --full-saturate-quant --decision=internal
34 ;;
35 LIA|LRA)
36 finishwith --full-saturate-quant --cegqi-nested-qe --decision=internal
37 ;;
38 NIA|NRA)
39 finishwith --full-saturate-quant --cegqi-nested-qe --decision=internal
40 ;;
41 QF_AUFBV)
42 finishwith --decision=stoponly
43 ;;
44 QF_ABV)
45 finishwith --arrays-weak-equiv
46 ;;
47 QF_UFBV)
48 finishwith
49 ;;
50 QF_BV)
51 finishwith
52 ;;
53 QF_AUFLIA)
54 finishwith --no-arrays-eager-index --arrays-eager-lemmas --decision=justification
55 ;;
56 QF_AX)
57 finishwith --no-arrays-eager-index --arrays-eager-lemmas --decision=internal
58 ;;
59 QF_AUFNIA)
60 finishwith --decision=justification --no-arrays-eager-index --arrays-eager-lemmas
61 ;;
62 QF_ALIA)
63 finishwith --decision=stoponly --no-arrays-eager-index --arrays-eager-lemmas
64 ;;
65 QF_S|QF_SLIA)
66 finishwith --strings-exp
67 ;;
68 *)
69 # just run the default
70 finishwith
71 ;;
72
73 esac
74