summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-11-10 14:35:25 +0100
committerajreynol <andrew.j.reynolds@gmail.com>2015-11-10 14:35:37 +0100
commit81dca680f6c88d10b56a0ed065d470d907766e21 (patch)
tree4410fa473ecb6848f7976b2b6a00188ac5e44775 /test/regress/regress0/sygus
parent50c8533760bfd5b1f803d52bc4318c544521e6af (diff)
Fix infinite loop in datatype enumerator. Minor fixes and improvements to cbqi, full saturate. Add option --purify-quant. Use disequality triggers when using relational triggers. Add regressions.
Diffstat (limited to 'test/regress/regress0/sygus')
-rw-r--r--test/regress/regress0/sygus/Makefile.am3
-rw-r--r--test/regress/regress0/sygus/dt-test-ns.sy14
2 files changed, 16 insertions, 1 deletions
diff --git a/test/regress/regress0/sygus/Makefile.am b/test/regress/regress0/sygus/Makefile.am
index a1f91a6ce..71ca64aea 100644
--- a/test/regress/regress0/sygus/Makefile.am
+++ b/test/regress/regress0/sygus/Makefile.am
@@ -45,7 +45,8 @@ TESTS = commutative.sy \
sygus-dt.sy \
dt-no-syntax.sy \
list-head-x.sy \
- clock-inc-tuple.sy
+ clock-inc-tuple.sy \
+ dt-test-ns.sy
# sygus tests currently taking too long for make regress
EXTRA_DIST = $(TESTS) \
diff --git a/test/regress/regress0/sygus/dt-test-ns.sy b/test/regress/regress0/sygus/dt-test-ns.sy
new file mode 100644
index 000000000..ed17f4ff2
--- /dev/null
+++ b/test/regress/regress0/sygus/dt-test-ns.sy
@@ -0,0 +1,14 @@
+; EXPECT: unsat
+; COMMAND-LINE: --cegqi-si --no-dump-synth
+(set-logic LIA)
+
+(declare-datatypes () ((List (cons (head Int) (tail List)) (nil))))
+
+(synth-fun f ((x Int)) List)
+
+(declare-var x Int)
+
+(constraint (is-cons (f x)))
+(constraint (and (= (head (f x)) x) (= (head (f x)) (+ 5 (head (tail (f x)))))))
+(check-synth)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback