Debian Codegraph @

test/regress/cli/regress0/datatypes/dt-match-pat-param-2.6.smt2

raw
1 ; COMMAND-LINE: --lang=smt2.6
2 ; EXPECT: sat
3 (set-logic ALL)
4 (set-info :status sat)
5 (declare-datatypes ( ( Tree 0) ( TreeList 0) ) (
6 ( ( node ( value Int ) ( children TreeList) ))
7 ( ( empty ) ( set.insert ( head Tree) ( tail TreeList)) )
8 ))
9
10
11 (declare-fun t () TreeList)
12 (assert (<= 100 (match t ((empty (- 1)) ((set.insert x1 x2) (value x1))))))
13
14
15 (declare-datatypes ( ( PTree 1) ( PTreeList 1) ) (
16 (par ( X ) ( ( pnode ( pvalue X ) ( pchildren ( PTreeList X )) )))
17 (par ( Y ) ( ( pempty ) ( pinsert ( phead ( PTree Y )) ( ptail ( PTreeList Y ))) ))
18 ))
19
20 (declare-fun pt () (PTreeList Int))
21 (assert (<= 200 (match pt ((pempty (- 1)) ((pinsert x1 x2) (pvalue x1))))))
22
23
24 (check-sat)