summaryrefslogtreecommitdiff
path: root/test/regress/regress1/fmf/pow2-bool.smt2
blob: 4943c646cfd148c4538f5b7433df77e5535ca1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; COMMAND-LINE: --fmf-fun --no-check-models
; EXPECT: sat
(set-logic ALL)

(define-fun-rec pow2 ((n Int) (p Int)) Bool (
	or
	(and (= n 0) (= p 1))
	(and (> n 0) (> p 1) (= 0 (mod p 2)) (pow2 (- n 1) (div p 2)))
))

(declare-const n Int)
(declare-const p Int)

(assert (= n 10))
(assert (pow2 n p))

(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback