summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-06-02 19:17:53 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-06-02 19:17:53 +0200
commitfb092ea99c7a670e78dfdd442a19986fdbdab93f (patch)
treead52de511073d9fbc368d9ea1636c827c69dbb85 /test
parent7222fd13c68ee1352dabbe3791fae0ee13d689d1 (diff)
Flatten sygus grammars during parsing. Remove duplicate operators from grammars.
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