| 1 |
; EXPECT: unsat |
| 2 |
; DISABLE-TESTER: unsat-core |
| 3 |
; DISABLE-TESTER: lfsc |
| 4 |
(set-logic UFNIA) |
| 5 |
(declare-fun pow2 (Int) Int) |
| 6 |
(declare-fun intor (Int Int Int) Int) |
| 7 |
(declare-fun intxor (Int Int Int) Int) |
| 8 |
(define-fun bitof ((k Int) (l Int) (a Int)) Int (mod (div a (pow2 l)) 2)) |
| 9 |
(define-fun intmax ((k Int)) Int (- (pow2 k) 1)) |
| 10 |
(define-fun in_range ((k Int) (x Int)) Bool (and (>= x 0) (<= x (intmax k)))) |
| 11 |
(define-fun intmodtotal ((k Int) (a Int) (b Int)) Int (ite (= b 0) a (mod a b))) |
| 12 |
(define-fun intneg ((k Int) (a Int)) Int (intmodtotal k (- (pow2 k) a) (pow2 k))) |
| 13 |
(define-fun intshl ((k Int) (a Int) (b Int)) Int (intmodtotal k (* a (pow2 b)) (pow2 k))) |
| 14 |
(define-fun intadd ((k Int) (a Int) (b Int)) Int (intmodtotal k (+ a b) (pow2 k))) |
| 15 |
(define-fun intmul ((k Int) (a Int) (b Int)) Int (intmodtotal k (* a b) (pow2 k))) |
| 16 |
(define-fun and_ax ((k Int)) Bool true) |
| 17 |
(define-fun or_ax ((k Int)) Bool true) |
| 18 |
(define-fun xor_ax ((k Int)) Bool true) |
| 19 |
(define-fun is_bv_width ((k Int)) Bool (and (> k 0) (and_ax k) (or_ax k) (xor_ax k))) |
| 20 |
(define-fun is_bv_var ((k Int) (x Int)) Bool (in_range k x)) |
| 21 |
(assert (not (forall ((s Int) (t Int) (k Int)) (=> (and (is_bv_var k s) (is_bv_var k t) (is_bv_width k)) (= (intshl k s (intadd k (intmul k t 0) s)) (intshl k s s)))))) |
| 22 |
(check-sat) |