diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-07 17:34:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 17:34:00 -0500 |
commit | ba99b080d20d521603635a1f0b57be1436eca731 (patch) | |
tree | 0003ba0d60230828ae33f84a1372f6149e6b1460 /test | |
parent | 63c1c22c3c47629740358bc8dbcedcdaac339a6f (diff) |
Fix inference of pre and post conditions for non variable arguments. (#2237)
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/Makefile.tests | 1 | ||||
-rw-r--r-- | test/regress/regress0/quantifiers/horn-ground-pre-post.smt2 | 14 |
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) |