Skip to content

Commit

Permalink
Add new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Oct 30, 2024
1 parent cab2c76 commit 8b134c8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/adts/trigger_definition.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

unsat
7 changes: 7 additions & 0 deletions tests/adts/trigger_definition.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(set-logic ALL)
(declare-datatype t ((c (b Bool))))
(declare-fun f (t) Bool)
(declare-const x t)
(assert (forall ((y Bool)) (f (c y))))
(assert (not (f x)))
(check-sat)
2 changes: 2 additions & 0 deletions tests/adts/trigger_destructor.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

unsat
7 changes: 7 additions & 0 deletions tests/adts/trigger_destructor.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(set-logic ALL)
(declare-datatype unit ((void)))
(declare-datatype t ((box (unbox unit))))
(declare-fun f (t t) Bool)
(assert (forall ((u t) (v t)) (f u (box (unbox v)))))
(assert (not (f (box void) (box void))))
(check-sat)

0 comments on commit 8b134c8

Please sign in to comment.