Skip to content

Commit

Permalink
Add test from issue 1008 (#1211)
Browse files Browse the repository at this point in the history
* Add tests from issue 1008

This commit adds tests suggested by Basile in issue #1008.
  • Loading branch information
Halbaroth authored Aug 20, 2024
1 parent 77e01eb commit dbfb6ad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/issues/1008/adt.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

unsat
8 changes: 8 additions & 0 deletions tests/issues/1008/adt.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(set-logic ALL)
(declare-datatype t ((A) (B (i Int))))

(declare-const e t)

(assert ((_ is B) e))
(assert (forall ((n Int)) (distinct e (B n))))
(check-sat)
2 changes: 2 additions & 0 deletions tests/issues/1008/record.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

unknown
8 changes: 8 additions & 0 deletions tests/issues/1008/record.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(set-logic ALL)
(declare-datatype t ((B (i Int))))

(declare-const e t)

(assert ((_ is B) e))
(assert (forall ((n Int)) (distinct e (B n))))
(check-sat)

0 comments on commit dbfb6ad

Please sign in to comment.