Debian Codegraph @

test/regress/cli/regress0/datatypes/data-nested-codata.smt2

raw
1 ; EXPECT: sat
2 (set-logic QF_DTLIA)
3 (set-info :status sat)
4
5 (declare-datatype List ((cons (head Int) (tail List)) (nil)))
6
7 (declare-codatatype Stream ((mkStream (shead List) (stail Stream))))
8
9
10 (declare-fun x () Stream)
11 (assert (not ((_ is nil) (shead x))))
12 (assert (not ((_ is nil) (tail (shead x)))))
13 (declare-fun y () Stream)
14 (assert (not ((_ is nil) (shead y))))
15 (assert (not ((_ is nil) (tail (shead y)))))
16 (declare-fun z () Stream)
17 (assert (not ((_ is nil) (shead z))))
18 (assert (not ((_ is nil) (tail (shead z)))))
19 (assert (distinct x y z))
20
21 (check-sat)