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

Assertion violation in ../src/sat/sat_model_converter.cpp Line 136 #6180

Closed
nicdard opened this issue Jul 21, 2022 · 0 comments
Closed

Assertion violation in ../src/sat/sat_model_converter.cpp Line 136 #6180

nicdard opened this issue Jul 21, 2022 · 0 comments

Comments

@nicdard
Copy link

nicdard commented Jul 21, 2022

Hi!

The following BitVector instance gives an assertion violation:

# cat bug.smt2 
(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 bug.smt2 
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

OS: Ubuntu 20.04
Revision: 5b219aa

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