| 1 |
; COMMAND-LINE: --incremental |
| 2 |
(set-option :global-declarations true) |
| 3 |
(set-logic QF_UFDTLIA) |
| 4 |
|
| 5 |
(push 1) |
| 6 |
(declare-datatype Struct1 (par (T0) ((mk-struct1 (struct1-proj0 T0))))) |
| 7 |
(declare-datatypes ((Unit 0)) (((u)))) |
| 8 |
(declare-datatypes ((Tree 0)) (((node (data Int) (color Bool) (left Tree) (right Tree)) (nil)))) |
| 9 |
(declare-fun x () (Struct1 Bool)) |
| 10 |
(declare-sort U1 0) |
| 11 |
(declare-sort U2 1) |
| 12 |
(pop 1) |
| 13 |
|
| 14 |
(assert (= x x)) |
| 15 |
|
| 16 |
(define-fun y () (Struct1 Bool) (mk-struct1 true)) |
| 17 |
(declare-const z Unit) |
| 18 |
(assert (= u u)) |
| 19 |
(assert ((_ is mk-struct1) y)) |
| 20 |
(assert ((_ is u) z)) |
| 21 |
|
| 22 |
(declare-fun size (Tree) Int) |
| 23 |
(assert (= (size nil) 0)) |
| 24 |
|
| 25 |
(declare-const w1 U1) |
| 26 |
(declare-const w2 (U2 Bool)) |
| 27 |
|
| 28 |
(set-info :status sat) |
| 29 |
(check-sat) |