summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2017-10-12 13:00:12 -0500
committerGitHub <noreply@github.com>2017-10-12 13:00:12 -0500
commitebd9c958a0c20e37cc0e1a79be26afd525dd8fb9 (patch)
treef53a09d9f8cba99173683ae6c43b386b6b057478 /test/regress/regress0/sygus
parent5dd102d4cb7fc8413d6e8f68b0c32c9ef06b1b17 (diff)
Sygus logics (#1226)
* Allow any smt2 logic to be a sygus logic. Add non-linear SyGuS regressions. * Minor * Add case for reals, comment. * Fix regress1.
Diffstat (limited to 'test/regress/regress0/sygus')
-rw-r--r--test/regress/regress0/sygus/Makefile.am3
-rw-r--r--test/regress/regress0/sygus/nia-max-square-ns.sy13
2 files changed, 15 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am
index d8f675af1..a297cee81 100644
--- a/test/regress/regress0/sygus/Makefile.am
+++ b/test/regress/regress0/sygus/Makefile.am
@@ -64,7 +64,8 @@ TESTS = commutative.sy \
cggmp.sy \
parse-bv-let.sy \
cegar1.sy \
- triv-type-mismatch-si.sy
+ triv-type-mismatch-si.sy \
+ nia-max-square-ns.sy
# sygus tests currently taking too long for make regress
diff --git a/test/regress/regress0/sygus/nia-max-square-ns.sy b/test/regress/regress0/sygus/nia-max-square-ns.sy
new file mode 100644
index 000000000..96baab7fe
--- /dev/null
+++ b/test/regress/regress0/sygus/nia-max-square-ns.sy
@@ -0,0 +1,13 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi-si=all --no-dump-synth --nl-ext-tplanes
+(set-logic NIA)
+
+(synth-fun max ((x Int) (y Int)) Int)
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (>= (max x y) (* x x)))
+(constraint (>= (max x y) (* y y)))
+
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback