summaryrefslogtreecommitdiff
path: root/test/regress/regress1/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/regress1/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/regress1/sygus')
-rw-r--r--test/regress/regress1/sygus/Makefile.am3
-rw-r--r--test/regress/regress1/sygus/nia-max-square.sy21
2 files changed, 23 insertions, 1 deletions
diff --git a/test/regress/regress1/sygus/Makefile.am b/test/regress/regress1/sygus/Makefile.am
index f1f1c1342..ed8755236 100644
--- a/test/regress/regress1/sygus/Makefile.am
+++ b/test/regress/regress1/sygus/Makefile.am
@@ -25,7 +25,8 @@ TESTS = \
inv_gen_n_c11.sy \
unbdd_inv_gen_ex7.sy \
icfp_easy_mt_ite.sy \
- three.sy
+ three.sy \
+ nia-max-square.sy
EXTRA_DIST = $(TESTS)
diff --git a/test/regress/regress1/sygus/nia-max-square.sy b/test/regress/regress1/sygus/nia-max-square.sy
new file mode 100644
index 000000000..5858af98a
--- /dev/null
+++ b/test/regress/regress1/sygus/nia-max-square.sy
@@ -0,0 +1,21 @@
+; EXPECT: unsat
+; COMMAND-LINE: --no-dump-synth --nl-ext-tplanes
+(set-logic NIA)
+
+(synth-fun max ((x Int) (y Int)) Int
+ ((Start Int (0 1 x y
+ (+ Start Start)
+ (- Start Start)
+ (* Start Start)
+ (ite StartBool Start Start)))
+ (StartBool Bool ((and StartBool StartBool)
+ (not StartBool)
+ (<= Start Start)))))
+
+(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