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

simplify creating invalid operation on BVs #7434

Closed
rmcclure-nv opened this issue Oct 24, 2024 · 0 comments
Closed

simplify creating invalid operation on BVs #7434

rmcclure-nv opened this issue Oct 24, 2024 · 0 comments

Comments

@rmcclure-nv
Copy link

Running the following snippet of python code:

import z3
a = z3.BitVec('a', 5)
b = z3.BitVec('b', 3)
cond = z3.simplify(z3.BV2Int(a) == z3.BV2Int(b))

The simplify call fails with:

z3.z3types.Z3Exception: b'Sorts (_ BitVec 5) and (_ BitVec 3) are incompatible'

possibly because it is trying to unwrap the two BV2Int calls without making sure the underlying BVs are the same length.
This reproduces with the 4.13.1 release (and later). It does not show up in 4.13.0.

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