summaryrefslogtreecommitdiff
path: root/test/regress/regress0
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/regress0
parent63c1c22c3c47629740358bc8dbcedcdaac339a6f (diff)
Fix inference of pre and post conditions for non variable arguments. (#2237)
Diffstat (limited to 'test/regress/regress0')
-rw-r--r--test/regress/regress0/quantifiers/horn-ground-pre-post.smt214
1 files changed, 14 insertions, 0 deletions
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