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

(declare-datatypes () ((Lst (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