diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-09-26 17:52:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-26 17:52:37 -0700 |
commit | 3aafd4a2ced87f0fd82ebe5279b73c84552502d5 (patch) | |
tree | 2e96b3cf82d4a1d2c74bb5a6b3227d5afb3716d1 /contrib/competitions/sygus-comp/run-script-sygusComp2016-INV | |
parent | 9ba1854be7d798a899a2b46c2707d376938c5d18 (diff) | |
parent | 923abd7000a2ab6e3c0776c59d159bdc3a4d9a52 (diff) |
Merge branch 'master' into splitEqRew
Diffstat (limited to 'contrib/competitions/sygus-comp/run-script-sygusComp2016-INV')
-rwxr-xr-x | contrib/competitions/sygus-comp/run-script-sygusComp2016-INV | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/competitions/sygus-comp/run-script-sygusComp2016-INV b/contrib/competitions/sygus-comp/run-script-sygusComp2016-INV new file mode 100755 index 000000000..a25a5f5c8 --- /dev/null +++ b/contrib/competitions/sygus-comp/run-script-sygusComp2016-INV @@ -0,0 +1,16 @@ +#!/bin/bash + +cvc4=./cvc4 +bench="$1" + +function trywith { + ($cvc4 --lang=sygus --no-checking --no-interactive --dump-synth --default-dag-thresh=0 "$@" $bench) 2>/dev/null | + (read result w1; + case "$result" in + unsat) echo "$w1";cat;exit 0;; + esac; exit 1) + if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi +} + +trywith --sygus-inv-templ=post + |