summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-07 17:34:00 -0500
committerGitHub <noreply@github.com>2018-08-07 17:34:00 -0500
commitba99b080d20d521603635a1f0b57be1436eca731 (patch)
tree0003ba0d60230828ae33f84a1372f6149e6b1460 /test/regress
parent63c1c22c3c47629740358bc8dbcedcdaac339a6f (diff)
Fix inference of pre and post conditions for non variable arguments. (#2237)
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress0/quantifiers/horn-ground-pre-post.smt214
2 files changed, 15 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index aec72993c..2be59087b 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -606,6 +606,7 @@ REG0_TESTS = \
regress0/quantifiers/ex3.smt2 \
regress0/quantifiers/ex6.smt2 \
regress0/quantifiers/floor.smt2 \
+ regress0/quantifiers/horn-ground-pre-post.smt2 \
regress0/quantifiers/is-even-pred.smt2 \
regress0/quantifiers/is-int.smt2 \
regress0/quantifiers/issue1805.smt2 \
diff --git a/test/regress/regress0/quantifiers/horn-ground-pre-post.smt2 b/test/regress/regress0/quantifiers/horn-ground-pre-post.smt2
new file mode 100644
index 000000000..082df249b
--- /dev/null
+++ b/test/regress/regress0/quantifiers/horn-ground-pre-post.smt2
@@ -0,0 +1,14 @@
+; COMMAND-LINE: --sygus-inference
+; EXPECT: sat
+(set-logic UFLIA)
+(set-info :status sat)
+
+(declare-fun I (Int Int) Bool)
+
+(assert (I 1 0))
+
+(assert (forall ((x Int) (y Int) (xp Int) (yp Int)) (=> (and (I x y) (= xp (+ x 1)) (= yp y)) (I xp yp))))
+
+(assert (not (I 1 1)))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback