summaryrefslogtreecommitdiff
path: root/test/regress/regress0/push-pop/fmf-fun-dbu.smt2
blob: 125d5fcc9a37382cfbd1936e8ef380e22196584d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; COMMAND-LINE: --incremental --fmf-fun --no-check-models
(set-logic UFDTLIA)
(set-option :produce-models true)
(set-info :smt-lib-version 2.5)
(declare-datatypes () ((List (Nil) (Cons (Cons$head Int) (Cons$tail List)))))
(define-fun-rec all-z ((x List)) Bool (=> (is-Cons x) (and (= 0 (Cons$head x)) (all-z (Cons$tail x)))))
(define-fun-rec len ((x List)) Int (ite (is-Nil x) 0 (+ 1 (len (Cons$tail x)))))
(declare-fun root() List)
; EXPECT: sat
(assert (and (all-z root) (<= 1 (len root))))
(check-sat)
; EXPECT: sat
(assert (= root (Cons 0 Nil)))
(check-sat)

generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback