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

Exception thrown by Solver.consequences() #7443

Closed
fsomenzi opened this issue Nov 5, 2024 · 0 comments
Closed

Exception thrown by Solver.consequences() #7443

fsomenzi opened this issue Nov 5, 2024 · 0 comments
Labels
Conseq get-consequences functionality

Comments

@fsomenzi
Copy link

fsomenzi commented Nov 5, 2024

The attached code, with z3 4.13.3 runs for almost a minute and then throws

File "/usr/local/lib/python3.12/dist-packages/z3/z3.py", line 7262, in consequences
    r = Z3_solver_get_consequences(self.ctx.ref(), self.solver, assumptions.vector,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/z3/z3core.py", line 4287, in Z3_solver_get_consequences
    _elems.Check(a0)
  File "/usr/local/lib/python3.12/dist-packages/z3/z3core.py", line 1566, in Check
    raise self.Exception(self.get_error_message(ctx, err))
z3.z3types.Z3Exception: b'Overflow encountered when expanding vector'

Similar examples run in almost no time, whether or not the assertions are satisfiable. This problem is not a show stopper for me because it only occurs in a buggy version of the program from which the attached example is extracted, but I thought you'd like to know.
standalone.zip

@NikolajBjorner NikolajBjorner added the Conseq get-consequences functionality label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Conseq get-consequences functionality
Projects
None yet
Development

No branches or pull requests

2 participants