Debian Codegraph @

test/regress/cli/regress1/push-pop/quant-fun-proc-unmacro.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 (define-fun-rec g ((x Int)) Int (ite (<= x 0) 0 (+ (g x) x)))
9
10 ; EXPECT: sat
11 (declare-fun h (Int) Int)
12 (push 1)
13 (assert (forall ((x Int)) (= (h x) 0)))
14 (check-sat)
15 (pop 1)
16
17
18 ; EXPECT: unsat
19 (push 1)
20 (assert (= (f 1) 2))
21 (check-sat)
22 (pop 1)
23
24 ; EXPECT: unsat
25 (push 1)
26 (assert (= (g 1) 5))
27 (check-sat)
28 (pop 1)
29
30 ; EXPECT: sat
31 (push 1)
32 (assert (= (h 1) 5))
33 (check-sat)
34 (pop 1)
35