Merge branch '1.2.x'
[cvc5.git] / contrib / run-script-casc24-fnt
1 #!/bin/bash
2
3 cvc4=./cvc4
4 bench="$1"
5 let "to = $2 - 60"
6
7 file=${bench##*/}
8 filename=${file%.*}
9
10 # use: trywith [params..]
11 # to attempt a run. Only thing printed on stdout is "sat" or "unsat", in
12 # which case this run script terminates immediately. Otherwise, this
13 # function returns normally.
14 function trywith {
15 limit=$1; shift;
16 (ulimit -t "$limit";$cvc4 -L tptp --szs-compliant --no-checking --no-interactive --dump-models --produce-models "$@" $bench) 2>/dev/null |
17 (read result;
18 case "$result" in
19 sat) echo "% SZS status" "Satisfiable for $filename";
20 echo "% SZS output" "start FiniteModel for $filename";
21 cat;
22 echo "% SZS output" "end FiniteModel for $filename";
23 exit 0;;
24 unsat) echo "% SZS status" "Unsatisfiable for $filename"; exit 0;;
25 conjecture-sat) echo "% SZS status" "CounterSatisfiable for $filename";
26 echo "% SZS output" "start FiniteModel for $filename";
27 cat;
28 echo "% SZS output" "end FiniteModel for $filename";
29 exit 0;;
30 conjecture-unsat) echo "% SZS status" "Theorem for $filename"; exit 0;;
31 esac; exit 1)
32 if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
33 }
34
35 trywith 30 --finite-model-find --uf-ss-totality
36 trywith 30 --finite-model-find --decision=justification --fmf-fmc
37 trywith $to --finite-model-find --decision=justification
38 echo "% SZS status" "GaveUp for $filename"