Debian Codegraph @

test/regress/cli/regress1/push-pop/bug-fmf-fun-skolem.smt2

raw
1 ; COMMAND-LINE: --incremental --fmf-fun
2 (set-logic ALL)
3 (declare-datatypes ((Lst 0)) (((cons (head Int) (tail Lst)) (nil))))
4 (define-fun-rec sum ((l Lst)) Int (ite ((_ is nil) l) 0 (+ (head l) (sum (tail l)))))
5
6 (declare-fun input () Int)
7 (declare-fun p () Bool)
8 (declare-fun acc () Lst)
9 (assert (and (= acc (ite (>= input 0) (cons input nil) nil))
10 (= p (>= (sum acc) 0))))
11
12
13 ; EXPECT: unsat
14 (push 1)
15 (assert (not p))
16 (check-sat)
17 (pop 1)
18
19 ; EXPECT: unsat
20 (push 1)
21 (assert (not p))
22 (check-sat)
23 (pop 1)
24
25