Skip to content

Commit 8b134c8

Browse files
committed
Add new tests
1 parent cab2c76 commit 8b134c8

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
unsat

tests/adts/trigger_definition.smt2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(set-logic ALL)
2+
(declare-datatype t ((c (b Bool))))
3+
(declare-fun f (t) Bool)
4+
(declare-const x t)
5+
(assert (forall ((y Bool)) (f (c y))))
6+
(assert (not (f x)))
7+
(check-sat)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
unsat

tests/adts/trigger_destructor.smt2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(set-logic ALL)
2+
(declare-datatype unit ((void)))
3+
(declare-datatype t ((box (unbox unit))))
4+
(declare-fun f (t t) Bool)
5+
(assert (forall ((u t) (v t)) (f u (box (unbox v)))))
6+
(assert (not (f (box void) (box void))))
7+
(check-sat)

0 commit comments

Comments
 (0)