Debian Codegraph @

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

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