| 1 |
(set-logic ALL) |
| 2 |
(set-info :status sat) |
| 3 |
(declare-datatypes ( (Tree 1) (TreeList 1) ) ( |
| 4 |
(par ( X ) ( ( node ( value X ) ( children ( TreeList X )) ))) |
| 5 |
(par ( Y ) ( ( empty ) ( set.insert ( head ( Tree Y )) ( tail ( TreeList Y ))) )) |
| 6 |
)) |
| 7 |
|
| 8 |
|
| 9 |
(declare-fun x () (Tree Int)) |
| 10 |
(declare-fun y () (Tree Int)) |
| 11 |
(declare-fun z () (Tree Int)) |
| 12 |
|
| 13 |
|
| 14 |
(assert (distinct x y z)) |
| 15 |
(assert (= (value x) 5)) |
| 16 |
(assert ((_ is set.insert) (children y))) |
| 17 |
(assert (= (value (head (children y))) 7)) |
| 18 |
|
| 19 |
(declare-sort U 0) |
| 20 |
(declare-fun a () (Tree U)) |
| 21 |
(declare-fun b () (Tree U)) |
| 22 |
(declare-fun c () (Tree U)) |
| 23 |
|
| 24 |
(assert (distinct a b c)) |
| 25 |
|
| 26 |
(assert ((_ is set.insert) (children a))) |
| 27 |
|
| 28 |
|
| 29 |
(declare-fun d () (Tree (Tree Int))) |
| 30 |
(declare-fun e () (Tree (Tree Int))) |
| 31 |
(declare-fun f () (Tree (Tree Int))) |
| 32 |
|
| 33 |
(assert (distinct d e f)) |
| 34 |
|
| 35 |
(check-sat) |