| 1 |
; COMMAND-LINE: --solve-bv-as-int=sum --nl-ext-tplanes |
| 2 |
; EXPECT: unsat |
| 3 |
; causes exception with large exponents on some builds |
| 4 |
; DISABLE-TESTER: unsat-core |
| 5 |
(set-logic ALL) |
| 6 |
(declare-fun x$ () (_ BitVec 32)) |
| 7 |
(declare-fun y$ () (_ BitVec 32)) |
| 8 |
(declare-fun z$ () (_ BitVec 32)) |
| 9 |
(declare-fun q$ () (_ BitVec 32)) |
| 10 |
(declare-fun n$ () Int) |
| 11 |
(assert (>= n$ 0)) |
| 12 |
(define-fun bound () Int (ubv_to_int ((_ int_to_bv 32) (int.pow2 11)))) |
| 13 |
|
| 14 |
;assumptions |
| 15 |
(assert (< (ubv_to_int x$) bound)) |
| 16 |
(assert (< (ubv_to_int y$) (int.pow2 (+ 11 n$)))) |
| 17 |
(assert (< (ubv_to_int z$) (int.pow2 16))) |
| 18 |
(assert (< (ubv_to_int q$) bound)) |
| 19 |
|
| 20 |
;conclusion |
| 21 |
(assert (not (< (div (+ (ubv_to_int x$) (ubv_to_int y$)) (int.pow2 n$)) (int.pow2 32)))) |
| 22 |
(check-sat) |