Debian Codegraph @

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

raw
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 --ite-simp --simp-ite-compress
21 ;;
22 QF_NIA)
23 finishwith --nl-ext --nl-ext-tplanes
24 ;;
25 QF_NRA)
26 finishwith --nl-ext --nl-ext-tplanes
27 ;;
28 # all logics with UF + quantifiers should either fall under this or special cases below
29 ALIA|AUFLIA|AUFLIRA|AUFNIRA|UF|UFIDL|UFLIA|UFLRA|UFNIA|UFDT|UFDTLIA|AUFDTLIA|AUFBVDTLIA|AUFNIA|ABVFP|BVFP|FP)
30 finishwith --full-saturate-quant --fp-exp
31 ;;
32 UFBV)
33 finishwith --finite-model-find
34 ;;
35 BV)
36 finishwith --full-saturate-quant --decision=internal
37 ;;
38 LIA|LRA)
39 finishwith --full-saturate-quant --cegqi-nested-qe --decision=internal
40 ;;
41 NIA|NRA)
42 finishwith --full-saturate-quant --cegqi-nested-qe --decision=internal
43 ;;
44 QF_AUFBV)
45 finishwith --decision=justification-stoponly --ite-simp
46 ;;
47 QF_ABV)
48 finishwith --ite-simp --simp-with-care --arrays-weak-equiv
49 ;;
50 QF_UFBV)
51 finishwith
52 ;;
53 QF_BV)
54 finishwith --bv-div-zero-const --bv-eq-slicer=auto --no-bv-abstraction
55 ;;
56 QF_AUFLIA)
57 finishwith --no-arrays-eager-index --arrays-eager-lemmas --decision=justification
58 ;;
59 QF_AX)
60 finishwith --no-arrays-eager-index --arrays-eager-lemmas --decision=internal
61 ;;
62 QF_AUFNIA)
63 finishwith --decision=justification --no-arrays-eager-index --arrays-eager-lemmas
64 ;;
65 QF_ALIA)
66 finishwith --decision=justification-stoponly --no-arrays-eager-index --arrays-eager-lemmas
67 ;;
68 QF_S|QF_SLIA)
69 finishwith --strings-exp --rewrite-divk
70 ;;
71 QF_ABVFP|QF_ABVFPLRA)
72 finishwith --fp-exp
73 ;;
74 QF_BVFP|QF_BVFPLRA)
75 finishwith --fp-exp
76 ;;
77 QF_FP|QF_FPLRA)
78 finishwith --fp-exp
79 ;;
80 *)
81 # just run the default
82 finishwith
83 ;;
84
85 esac
86