Debian Codegraph @

test/regress/cli/regress0/push-pop/quant-fun-proc-unfd.smt2

raw
1 ; COMMAND-LINE: --incremental --fmf-fun --macros-quant
2 ; DISABLE-TESTER: model
3 (set-logic UFLIA)
4
5
6 (define-fun f ((x Int)) Int x)
7
8 (declare-fun h (Int) Int)
9 (assert (forall ((x Int)) (= (h x) 0)))
10
11 ; EXPECT: sat
12 (push 1)
13 (define-fun-rec g ((x Int)) Int (ite (<= x 0) 0 (+ (g x) x)))
14 (check-sat)
15 (pop 1)
16
17 (declare-fun g (Int) Int)
18
19 ; EXPECT: unsat
20 (push 1)
21 (assert (= (f 1) 2))
22 (check-sat)
23 (pop 1)
24
25 ; EXPECT: sat
26 (push 1)
27 (assert (= (g 1) 5))
28 (check-sat)
29 (pop 1)
30
31 ; EXPECT: unsat
32 (push 1)
33 (assert (= (h 1) 5))
34 (check-sat)
35 (pop 1)