Debian Codegraph @

contrib/competitions/smt-comp/run-script-smtcomp-current-model-validation

raw
1 #!/bin/bash
2
3 cvc5=$(dirname "$(readlink -f "$0")")/cvc5
4 bench="$1"
5
6 # Output other than "sat"/"unsat" is either written to stderr or to "err.log"
7 # in the directory specified by $2 if it has been set (e.g. when running on
8 # StarExec).
9 out_file=/dev/stderr
10
11 if [ -n "$STAREXEC_WALLCLOCK_LIMIT" ]; then
12 # If we are running on StarExec, don't print to `/dev/stderr/` even when $2
13 # is not provided.
14 out_file="/dev/null"
15 fi
16
17 if [ -n "$2" ]; then
18 out_file="$2/err.log"
19 fi
20
21 $cvc5 -L smt2.6 --no-incremental --no-type-checking --no-interactive --fp-exp --use-portfolio $bench
22