Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate-bv-bounds assertion violation at ../src/tactic/bv/bv_bounds_tactic.cpp Line: 335 #3026

Closed
muchang opened this issue Feb 16, 2020 · 0 comments

Comments

@muchang
Copy link

muchang commented Feb 16, 2020

Hi,
For this formula:

(declare-fun a () (_ BitVec 32))
(declare-fun b () (_ BitVec 16))
(declare-fun c () (_ BitVec 16))
(declare-fun d () (_ BitVec 16))
(declare-fun t () (_ BitVec 16))
(declare-fun e () (_ BitVec 16))
(declare-fun f () (_ BitVec 16))
(assert (let ((a!1 (bvadd (bvadd a #x00000004)
                  (bvsub (bvadd (bvadd a #x00000004)
                                #x0000003d
                                ((_ zero_extend 16) c)
                                ((_ zero_extend 16) b))
                         (bvadd a #x00000004))
                  #x00000004)))
(let ((a!2 (bvadd a!1
                  (bvsub (bvadd a!1
                                #x00000035
                                ((_ zero_extend 16) t)
                                ((_ zero_extend 16) d))
                         a!1)
                  #x00000004)))
(let ((a!3 (bvadd a!2
                  (bvsub (bvadd a!2
                                #x00000046
                                ((_ zero_extend 16) f)
                                ((_ zero_extend 16) e))
                         a!2)
                  #x00000004)))
(let ((a!4 ((_ zero_extend 24)
             (ite (bvult (bvsub #xffffffff a!3) #x00000000) #x01 #x00))))
  (and (= ((_ zero_extend 16) f) #x00000000)
       (= #x00000000 (bvsub #xffffffff a!4))))))))
(check-sat)
(check-sat-using propagate-bv-bounds)

Z3 throws out an assertion violation:

Failed to verify: b.negate(b)
ASSERTION VIOLATION
File: ../src/tactic/bv/bv_bounds_tactic.cpp
Line: 335
UNREACHABLE CODE WAS REACHED.
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

OS: Ubuntu 18.04
Commit: 19ba294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant