| 1 |
; COMMAND-LINE: --fmf-fun -q |
| 2 |
; EXPECT: sat |
| 3 |
(set-logic UFNIA) |
| 4 |
(set-info :status sat) |
| 5 |
(define-fun-rec int-and ((n Int) (n1 Int) (n2 Int)) Bool ( |
| 6 |
or |
| 7 |
(= n1 n 0) |
| 8 |
(= n2 n 0) |
| 9 |
( |
| 10 |
and |
| 11 |
(> n1 0) |
| 12 |
(> n2 0) |
| 13 |
(>= n 0) |
| 14 |
(= (not (= (mod n 2 ) 0)) (and (not (= (mod n1 2 ) 0)) (not (= (mod n2 2) 0)))) |
| 15 |
(int-and (div n 2) (div n1 2) (div n2 2)) |
| 16 |
) |
| 17 |
)) |
| 18 |
(declare-const x Int) |
| 19 |
(declare-const y Int) |
| 20 |
(declare-const z Int) |
| 21 |
(assert (= x 1)) |
| 22 |
(assert (= y 1)) |
| 23 |
(assert (= z 1)) |
| 24 |
(assert (int-and z x y)) |
| 25 |
(check-sat) |