test/regress/cli/regress0/datatypes/bug597-rbt.smt2
raw| 1 | (set-option :global-declarations true) |
| 2 | (set-logic ALL) |
| 3 | (set-info :status sat) |
| 4 | |
| 5 | ; Tree type |
| 6 | (declare-datatypes ((Tree 0)) (((node (data Int) (color Bool) (left Tree) (right Tree)) (nil)))) |
| 7 | |
| 8 | ; content function |
| 9 | (declare-fun size (Tree) Int) |
| 10 | (assert (= (size nil) 0)) |
| 11 | |
| 12 | |
| 13 | (check-sat) |