diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2016-06-17 09:22:09 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2016-06-17 09:22:09 -0500 |
commit | 0348b525a951a8709f9dc4b5757ce0bcb48a9472 (patch) | |
tree | 55ac86fda70dd44efa0c22f50df41bd6dedff96f /contrib | |
parent | 3fa3977d6644962f908bb0d386a64f1743708314 (diff) |
Add syguscomp2016 scripts.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/run-script-sygusComp2016-CLIA | 16 | ||||
-rwxr-xr-x | contrib/run-script-sygusComp2016-GENERAL | 33 | ||||
-rw-r--r-- | contrib/run-script-sygusComp2016-INV | 16 | ||||
-rw-r--r-- | contrib/run-script-sygusComp2016-PBE | 16 |
4 files changed, 81 insertions, 0 deletions
diff --git a/contrib/run-script-sygusComp2016-CLIA b/contrib/run-script-sygusComp2016-CLIA new file mode 100644 index 000000000..3dc08d8c0 --- /dev/null +++ b/contrib/run-script-sygusComp2016-CLIA @@ -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 --decision=internal --cbqi-prereg-inst + diff --git a/contrib/run-script-sygusComp2016-GENERAL b/contrib/run-script-sygusComp2016-GENERAL new file mode 100755 index 000000000..0ee133ea8 --- /dev/null +++ b/contrib/run-script-sygusComp2016-GENERAL @@ -0,0 +1,33 @@ +#!/bin/bash + +cvc4=./cvc4 +bench="$1" + +function runl { + limit=$1; shift; + ulimit -S -t "$limit";$cvc4 --lang=sygus --no-checking --no-interactive --dump-synth --default-dag-thresh=0 "$@" $bench +} + +function trywith { + sol=$(runl $@) + status=$? + if [ $status -ne 134 ]; then + echo $sol | + (read result w1; + case "$result" in + unsat) echo "$w1";cat;exit 0;; + esac; exit 1) + if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi + fi +} + +function finishwith { + $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) +} + +trywith 120 --cegqi-si=all-abort --cegqi-si-abort --decision=internal --cbqi-prereg-inst +finishwith --cegqi-si=none diff --git a/contrib/run-script-sygusComp2016-INV b/contrib/run-script-sygusComp2016-INV new file mode 100644 index 000000000..a25a5f5c8 --- /dev/null +++ b/contrib/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 + diff --git a/contrib/run-script-sygusComp2016-PBE b/contrib/run-script-sygusComp2016-PBE new file mode 100644 index 000000000..19d8fd891 --- /dev/null +++ b/contrib/run-script-sygusComp2016-PBE @@ -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 --cegqi-si=none + |