| 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: trywith [params..] |
| 9 |
# to attempt a run. Only thing printed on stdout is "sat" or "unsat", in |
| 10 |
# which case this run script terminates immediately. Otherwise, this |
| 11 |
# function returns normally. |
| 12 |
function trywith { |
| 13 |
limit=$1; shift; |
| 14 |
result="$(ulimit -S -t "$limit";$cvc4 -L smt2 --no-incremental --no-checking --no-interactive "$@" $bench)" |
| 15 |
case "$result" in |
| 16 |
sat|unsat) echo "$result"; exit 0;; |
| 17 |
esac |
| 18 |
} |
| 19 |
|
| 20 |
# use: finishwith [params..] |
| 21 |
# to run cvc4 and let it output whatever it will to stdout. |
| 22 |
function finishwith { |
| 23 |
$cvc4 -L smt2 --no-incremental --no-checking --no-interactive "$@" $bench |
| 24 |
} |
| 25 |
|
| 26 |
case "$logic" in |
| 27 |
|
| 28 |
QF_LRA) |
| 29 |
trywith 200 --enable-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 --unconstrained-simp --use-soi |
| 30 |
finishwith --no-restrict-pivots --use-soi --new-prop --unconstrained-simp |
| 31 |
;; |
| 32 |
QF_LIA) |
| 33 |
# same as QF_LRA but add --pb-rewrites |
| 34 |
finishwith --enable-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 --unconstrained-simp --use-soi --pb-rewrites |
| 35 |
;; |
| 36 |
ALIA|AUFLIA|AUFLIRA|AUFNIRA|BV|UF|UFBV|UFIDL|UFLIA|UFLRA|UFNIA) |
| 37 |
# the following is designed for a run time of 1800s. |
| 38 |
# initial runs 1min |
| 39 |
trywith 20 --simplification=none --full-saturate-quant |
| 40 |
trywith 20 --finite-model-find |
| 41 |
trywith 20 --no-e-matching --full-saturate-quant |
| 42 |
# trigger selections/special 1min |
| 43 |
trywith 10 --multi-trigger-when-single --full-saturate-quant |
| 44 |
trywith 10 --trigger-sel=max --full-saturate-quant |
| 45 |
trywith 10 --relevant-triggers --full-saturate-quant |
| 46 |
trywith 10 --multi-trigger-when-single --multi-trigger-priority --full-saturate-quant |
| 47 |
trywith 10 --trigger-sel=min --full-saturate-quant |
| 48 |
trywith 10 --qcf-tconstraint --full-saturate-quant |
| 49 |
# medium runs 5min |
| 50 |
trywith 30 --no-quant-cf --full-saturate-quant |
| 51 |
trywith 30 --finite-model-find --fmf-inst-engine --mbqi=gen-ev |
| 52 |
trywith 30 --no-e-matching --no-quant-cf --full-saturate-quant |
| 53 |
trywith 30 --pre-skolem-quant --full-saturate-quant |
| 54 |
trywith 30 --no-inst-no-entail --no-quant-cf --full-saturate-quant |
| 55 |
trywith 30 --finite-model-find --mbqi=gen-ev --uf-ss-totality |
| 56 |
trywith 30 --inst-when=full --full-saturate-quant |
| 57 |
#trywith 30 --fmf-bound-int --macros-quant # recently bug fixed |
| 58 |
trywith 30 --decision=internal --simplification=none --no-inst-no-entail --no-quant-cf --full-saturate-quant |
| 59 |
trywith 30 --decision=justification-stoponly --full-saturate-quant |
| 60 |
# large runs 3min |
| 61 |
trywith 60 --term-db-mode=relevant --full-saturate-quant |
| 62 |
trywith 60 --finite-model-find --mbqi=none |
| 63 |
trywith 60 --decision=internal --full-saturate-quant |
| 64 |
# last call runs 20min |
| 65 |
trywith 300 --finite-model-find --fmf-inst-engine --quant-cf |
| 66 |
trywith 300 --no-inst-no-entail --full-saturate-quant |
| 67 |
finishwith --full-saturate-quant |
| 68 |
;; |
| 69 |
LIA|LRA|NIA|NRA) |
| 70 |
trywith 180 --cbqi --no-cbqi-sat --full-saturate-quant |
| 71 |
trywith 60 --full-saturate-quant |
| 72 |
trywith 180 --qcf-tconstraint --full-saturate-quant |
| 73 |
finishwith --cbqi --no-cbqi-sat --cbqi-recurse --full-saturate-quant |
| 74 |
;; |
| 75 |
QF_AUFBV) |
| 76 |
trywith 600 |
| 77 |
finishwith --decision=justification-stoponly |
| 78 |
;; |
| 79 |
QF_ABV) |
| 80 |
finishwith --ite-simp --simp-with-care --repeat-simp |
| 81 |
;; |
| 82 |
QF_BV) |
| 83 |
exec ./pcvc4 -L smt2 --no-incremental --no-checking --no-interactive --thread-stack=1024 \ |
| 84 |
--threads 2 \ |
| 85 |
--thread0 '--unconstrained-simp --bv-div-zero-const --bv-intro-pow2 --bitblast=eager --no-bv-abstraction' \ |
| 86 |
--thread1 '--unconstrained-simp --bv-div-zero-const --bv-intro-pow2 --bv-eq-slicer=auto ' \ |
| 87 |
--no-wait-to-join \ |
| 88 |
"$bench" |
| 89 |
#trywith 10 --bv-eq-slicer=auto --decision=justification |
| 90 |
#trywith 60 --decision=justification |
| 91 |
#trywith 600 --decision=internal --bitblast-eager |
| 92 |
#finishwith --decision=justification --decision-use-weight --decision-weight-internal=usr1 |
| 93 |
;; |
| 94 |
QF_AUFNIA) |
| 95 |
finishwith --decision=justification --no-arrays-eager-index --arrays-eager-lemmas |
| 96 |
;; |
| 97 |
QF_AUFLIA|QF_AX) |
| 98 |
finishwith --no-arrays-eager-index --arrays-eager-lemmas |
| 99 |
;; |
| 100 |
*) |
| 101 |
# just run the default |
| 102 |
finishwith |
| 103 |
;; |
| 104 |
|
| 105 |
esac |
| 106 |
|