summaryrefslogtreecommitdiff
path: root/test/regress/regress0/quantifiers/simp-len.smt2
blob: 06ae23f8d1cb2fa05606b3cc3a2f39e0c5d2e593 (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