summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/sygus/Makefile.am3
-rwxr-xr-xtest/regress/regress0/sygus/no-flat-simp.sy20
2 files changed, 22 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am
index aaaf28717..40f3fa4aa 100644
--- a/test/regress/regress0/sygus/Makefile.am
+++ b/test/regress/regress0/sygus/Makefile.am
@@ -31,7 +31,8 @@ TESTS = commutative.sy \
icfp_28_10.sy \
const-var-test.sy \
no-syntax-test.sy \
- no-syntax-test-no-si.sy
+ no-syntax-test-no-si.sy \
+ no-flat-simp.sy
# sygus tests currently taking too long for make regress
EXTRA_DIST = $(TESTS) \
diff --git a/test/regress/regress0/sygus/no-flat-simp.sy b/test/regress/regress0/sygus/no-flat-simp.sy
new file mode 100755
index 000000000..81f90e2aa
--- /dev/null
+++ b/test/regress/regress0/sygus/no-flat-simp.sy
@@ -0,0 +1,20 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi-si
+
+(set-logic LIA)
+
+(synth-fun f ((x Int) (y Int)) Int
+ ((Start Int (x
+ y
+ 0
+ (- Start Start)
+ (+ Start (+ Start Start))))))
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (f x y) (+ x y)))
+
+
+(check-synth)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback