summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-05-22 13:08:31 -0500
committerGitHub <noreply@github.com>2018-05-22 13:08:31 -0500
commitcdf7aacd6b682645cf1a2bc609db005b2f4dafc7 (patch)
treecc7d7885d1fed270d6601703a9a03d2501534629 /test
parentd35a5a1d8072a662aa230319fbfc1611bb918ccf (diff)
Make sygus infer find function definitions (#1951)
Diffstat (limited to 'test')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress1/quantifiers/horn-simple.smt213
2 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index 72bf64ac8..ed2390fe5 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -1249,6 +1249,7 @@ REG1_TESTS = \
regress1/quantifiers/extract-nproc.smt2 \
regress1/quantifiers/florian-case-ax.smt2 \
regress1/quantifiers/gauss_init_0030.fof.smt2 \
+ regress1/quantifiers/horn-simple.smt2 \
regress1/quantifiers/inst-max-level-segf.smt2 \
regress1/quantifiers/inst-prop-simp.smt2 \
regress1/quantifiers/intersection-example-onelane.proof-node22337.smt2 \
diff --git a/test/regress/regress1/quantifiers/horn-simple.smt2 b/test/regress/regress1/quantifiers/horn-simple.smt2
new file mode 100644
index 000000000..a27d8e0d6
--- /dev/null
+++ b/test/regress/regress1/quantifiers/horn-simple.smt2
@@ -0,0 +1,13 @@
+; COMMAND-LINE: --sygus-unif --sygus-infer
+; EXPECT: sat
+(set-logic UFLIA)
+(set-info :status sat)
+(declare-fun I (Int) Bool)
+
+(assert (forall ((x Int)) (=> (= x 0) (I x))))
+
+(assert (forall ((x Int)) (=> (and (I x) (< x 1)) (I (+ x 1)))))
+
+(assert (forall ((x Int)) (=> (I x) (<= x 10))))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback