summaryrefslogtreecommitdiff
path: root/test/regress/regress0/quantifiers/simp-len.smt2
blob: 0a736d7b3b9b942758a9a3533d13c7c1e9b4a6b9 (plain)
1
2
3
4
5
6
7
8
9
(set-logic ALL_SUPPORTED)
(set-info :status unsat)

(declare-datatypes ((Lst 0)) (((cons (head Int) (tail Lst)) (nil))))

(define-fun-rec len ((x Lst)) Int (ite (is-cons x) (+ 1 (len (tail x))) 0))

(assert (= (len (cons 0 nil)) 0))
(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback