Update experimental scripts. Support top-level non-terminals in sygus grammars....
[cvc5.git] / contrib / run-script-casc25-tfn
1 #!/bin/bash
2
3 cvc4=./cvc4
4 bench="$1"
5
6 file=${bench##*/}
7 filename=${file%.*}
8
9 echo "------- cvc4-tfn casc 25 : $bench at $2..."
10
11 # use: trywith [params..]
12 # to attempt a run. If an SZS ontology result is printed, then
13 # the run script terminates immediately. Otherwise, this
14 # function returns normally.
15 function trywith {
16 limit=$1; shift;
17 echo "--- Run $@ at $limit...";
18 (ulimit -t "$limit";$cvc4 --lang=tptp --no-checking --no-interactive "$@" $bench) 2>/dev/null |
19 (read w1 w2 w3 result w4 w5;
20 case "$result" in
21 Satisfiable) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
22 CounterSatisfiable) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
23 esac; exit 1)
24 if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
25 }
26 function finishwith {
27 echo "--- Run $@...";
28 $cvc4 --lang=tptp --no-checking --no-interactive "$@" $bench
29 }
30
31 trywith 30 --cbqi2 --decision=internal --full-saturate-quant
32 trywith 60 --finite-model-find --sort-inference --uf-ss-fair
33 trywith 30 --cbqi --full-saturate-quant
34 trywith 60 --cbqi --cbqi-recurse --full-saturate-quant
35 trywith 60 --fmf-bound-int --macros-quant
36 finishwith --cbqi2 --cbqi-recurse --full-saturate-quant
37 # echo "% SZS status" "GaveUp for $filename"