Debian Codegraph @

test/regress/cli/regress1/fmf/pow2-bool.smt2

raw
1 ; COMMAND-LINE: --fmf-fun
2 ; EXPECT: sat
3 ; DISABLE-TESTER: model
4 (set-logic ALL)
5
6 (define-fun-rec p2 ((n Int) (p Int)) Bool (
7 or
8 (and (= n 0) (= p 1))
9 (and (> n 0) (> p 1) (= 0 (mod p 2)) (p2 (- n 1) (div p 2)))
10 ))
11
12 (declare-const n Int)
13 (declare-const p Int)
14
15 (assert (= n 10))
16 (assert (p2 n p))
17
18 (check-sat)