summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-06-11 18:13:37 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-06-11 18:13:37 +0200
commitaaabd78a7573bf03068ca1bf4aa1389627f11326 (patch)
treed5c31aba04dab2c33dfd04189f184dbbe26b961c /test
parent711c63d026ce7d98724fe945eaf30077f0dad28d (diff)
Avoid naming conflicts in sygus, refactor. Add missing regression. Detect Start grammar. Add regression.
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/sygus/Makefile.am3
-rw-r--r--test/regress/regress0/sygus/dup-op.sy11
-rw-r--r--test/regress/regress0/sygus/nflat-fwd.sy11
3 files changed, 24 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am
index 50f755fef..dbef0494a 100644
--- a/test/regress/regress0/sygus/Makefile.am
+++ b/test/regress/regress0/sygus/Makefile.am
@@ -37,7 +37,8 @@ TESTS = commutative.sy \
let-ringer.sy \
let-simp.sy \
tl-type.sy \
- dup-op.sy
+ dup-op.sy \
+ nflat-fwd.sy
# sygus tests currently taking too long for make regress
EXTRA_DIST = $(TESTS) \
diff --git a/test/regress/regress0/sygus/dup-op.sy b/test/regress/regress0/sygus/dup-op.sy
new file mode 100644
index 000000000..dbf415986
--- /dev/null
+++ b/test/regress/regress0/sygus/dup-op.sy
@@ -0,0 +1,11 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi --no-cegqi-si
+(set-logic LIA)
+(synth-fun f ((x Int)) Int
+ ((Start Int ((+ Con Con) (+ Start Start) x))
+ (Con Int (0 1))))
+
+(declare-var x Int)
+(constraint (= (f x) (* 2 x)))
+(check-synth)
+
diff --git a/test/regress/regress0/sygus/nflat-fwd.sy b/test/regress/regress0/sygus/nflat-fwd.sy
new file mode 100644
index 000000000..0f9d46215
--- /dev/null
+++ b/test/regress/regress0/sygus/nflat-fwd.sy
@@ -0,0 +1,11 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi
+(set-logic LIA)
+(synth-fun f ((x Int)) Int
+ ((Start Int ((+ Con Con) (+ (+ Start Start) Con) x))
+ (Con Int (0 1))))
+
+(declare-var x Int)
+(constraint (= (f x) (* 2 x)))
+(check-synth)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback