Debian Codegraph @

contrib/competitions/smt-comp/run-script-smtcomp2014-application

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 cvc4=./cvc4
4
5 read line
6 if [scip-shell system . . `[`. "$line" != '(set-option :print-success true)' ]; then
7 echoscip-shell system . . echo. 'ERROR: first line supposed to be set-option :print-success, but got: "'"$line"'"' >&2
8 exit 1
9 fi
10 echoscip-shell system . . echo. success
11 read line
12 logic=$(exprscip-shell system . . expr. "$line" : ' *(set-logic *\([A-Z_]*\) *) *$')
13 if [scip-shell system . . `[`. -z "$logic" ]; then
14 echoscip-shell system . . echo. 'ERROR: second line supposed to be set-logic, but got: "'"$line"'"' >&2
15 exit 1
16 fi
17 echoscip-shell system . . echo. success
18
19 function runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). {
20 # we run in this way for line-buffered input, otherwise memory's a
21 # concern (plus it mimics what we'll end up getting from an
22 # application-track trace runner?)
23 $cvc4 --force-logic="$logic" -L smt2 --print-success --no-checking --no-interactive --tear-down-incremental "$@" <&0-
24 }
25
26 case "$logic" in
27
28 QF_LRA)
29 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --enable-miplib-trick --miplib-trick-subs=4 --lemmas-on-replay-failure --replay-early-close-depth=4 --replay-lemma-reject-cut=128 --replay-reject-cut=512 --unconstrained-simp
30 ;;
31 QF_LIA)
32 # same as QF_LRA but add --pb-rewrites
33 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --enable-miplib-trick --miplib-trick-subs=4 --lemmas-on-replay-failure --replay-early-close-depth=4 --replay-lemma-reject-cut=128 --replay-reject-cut=512 --unconstrained-simp --pb-rewrites
34 ;;
35 ALIA|AUFLIA|AUFLIRA|AUFNIRA|BV|UF|UFBV|UFIDL|UFLIA|UFLRA|UFNIA)
36 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --simplification=none --decision=internal --full-saturate-quant
37 ;;
38 LIA|LRA|NIA|NRA)
39 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --enable-cbqi --full-saturate-quant
40 ;;
41 QF_BV)
42 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --unconstrained-simp --bv-eq-slicer=auto --bv-div-zero-const --bv-intro-pow2
43 ;;
44 QF_AUFLIA|QF_AX)
45 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4(). --no-arrays-eager-index --arrays-eager-lemmas
46 ;;
47 *)
48 # just run the default
49 runcvc4scip-shell shell cvc5 1.3.2-1 runcvc4().
50 ;;
51
52 esac