Skip to content

Commit

Permalink
feat: add QF_BV assertion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nicdard committed Jul 29, 2022
1 parent 60317cd commit 43c3ae6
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bugs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
| [QF_S 1](z3/qf_s-1.smt2) | QF_S | Memory Leak | [#6076](https://github.com/Z3Prover/z3/issues/6076) | 04/06/22 |
| [QF_BV 1](z3/qf_bv-1.smt2) | QF_BV | Assertion Violation | [#6143](https://github.com/Z3Prover/z3/issues/6143) | 07/07/22 |
| [QF_S 2](z3/qf_s-2.smt2) | QF_S | Soundness | [#6159](https://github.com/Z3Prover/z3/issues/6159) | 14/07/22 |

| [QF_BV 2](z3/qf_bv-2.smt2) | QF_BV | Assertion Violation | [#6180](https://github.com/Z3Prover/z3/issues/6180) | 21/07/22 |
64 changes: 64 additions & 0 deletions bugs/z3/qf_bv-2.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
(declare-const a (_ BitVec 1))
(declare-const _a (_ BitVec 2))
(declare-const b (_ BitVec 4))
(declare-const c (_ BitVec 16))
(declare-const d (_ BitVec 16))
(declare-const e (_ BitVec 16))
(declare-const f (_ BitVec 16))
(declare-const g (_ BitVec 31))
(declare-const h (_ BitVec 32))
(declare-const i (_ BitVec 32))
(declare-const cr (_ BitVec 32))
(assert (= c f))
(assert (= f (bvor f c)))
(assert
(bvule
(bvsub
(bvadd
(_ bv4270377 32)
((_ zero_extend 30) _a)
((_ zero_extend 30) _a)
((_ zero_extend 16) f)
((_ zero_extend 28) b)
((_ zero_extend 16) d)
i
((_ zero_extend 16) e)
)
(_ bv4270344 32)
)
(_ bv423 32)
)
)
(assert (distinct (_ bv1 2) _a))
(assert
(bvule
(bvadd
i
(_ bv4270377 32)
((_ zero_extend 16) d)
((_ zero_extend 16) f)
((_ zero_extend 30) _a)
((_ zero_extend 30) _a)
)
(_ bv4271190 32)
)
)
(assert (bvule h (_ bv4271190 32)))
(assert (bvule i (_ bv846 32)))
(assert (distinct h (_ bv0 32)))
(assert (bvule (bvadd i (_ bv9 32)) (_ bv533898 32)))
(assert (bvule (bvsub (bvadd h (bvsub (_ bv1 32) cr)) (_ bv4270344 32)) (_ bv846 32)))
(assert (bvule ((_ zero_extend 31) a) (_ bv2 32)))
(assert (= (bvxor (bvnot (_ bv1 32)) (bvneg ((_ zero_extend 1) g))) ((_ zero_extend 16) f)))
(assert (bvule (bvadd (_ bv4270382 32) ((_ zero_extend 16) d) ((_ zero_extend 16) c)) (_ bv4271190 32)))
(assert (bvule (bvadd cr (_ bv4270372 32)) (_ bv2135595 32)))
(assert (distinct d (_ bv0 16)))
(assert (distinct f (_ bv0 16)))
(check-sat)

; $ z3
; ASSERTION VIOLATION
; File: ../src/sat/sat_model_converter.cpp
; Line: 136
; sat || undef
; (C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

0 comments on commit 43c3ae6

Please sign in to comment.