summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-05-11 20:06:21 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-05-11 20:06:21 +0200
commit54f1d00d5475710ec5a4c3eab82d786ba95dfdde (patch)
tree547bd29a009a3d119a26b2ddcd509a3ef2e5d061 /test/regress/regress0/sygus
parent870b29b0cce85941ed72d7e0ca75b61b0cfcf711 (diff)
Allow sygus with no syntactic restrictions for LIA. Add regressions.
Diffstat (limited to 'test/regress/regress0/sygus')
-rw-r--r--test/regress/regress0/sygus/Makefile.am4
-rw-r--r--test/regress/regress0/sygus/no-syntax-test-no-si.sy14
-rw-r--r--test/regress/regress0/sygus/no-syntax-test.sy15
3 files changed, 32 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am
index 4f9d233fd..aaaf28717 100644
--- a/test/regress/regress0/sygus/Makefile.am
+++ b/test/regress/regress0/sygus/Makefile.am
@@ -29,7 +29,9 @@ TESTS = commutative.sy \
array_search_2.sy \
hd-01-d1-prog.sy \
icfp_28_10.sy \
- const-var-test.sy
+ const-var-test.sy \
+ no-syntax-test.sy \
+ no-syntax-test-no-si.sy
# sygus tests currently taking too long for make regress
EXTRA_DIST = $(TESTS) \
diff --git a/test/regress/regress0/sygus/no-syntax-test-no-si.sy b/test/regress/regress0/sygus/no-syntax-test-no-si.sy
new file mode 100644
index 000000000..21788426c
--- /dev/null
+++ b/test/regress/regress0/sygus/no-syntax-test-no-si.sy
@@ -0,0 +1,14 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi
+
+(set-logic LIA)
+
+(synth-fun f ((x Int) (y Int)) Int)
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (f x y) (+ (f x x) (f y y) x 1)))
+
+(check-synth)
+
diff --git a/test/regress/regress0/sygus/no-syntax-test.sy b/test/regress/regress0/sygus/no-syntax-test.sy
new file mode 100644
index 000000000..95f9b7c11
--- /dev/null
+++ b/test/regress/regress0/sygus/no-syntax-test.sy
@@ -0,0 +1,15 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi-si
+
+(set-logic LIA)
+
+(synth-fun f ((x Int) (y Int)) Int)
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (f x y) (+ x y 500)))
+
+
+(check-synth)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback