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

BoolTactics simplify x to And(True, x) #6652

Closed
zwimer opened this issue Mar 27, 2023 · 0 comments
Closed

BoolTactics simplify x to And(True, x) #6652

zwimer opened this issue Mar 27, 2023 · 0 comments

Comments

@zwimer
Copy link
Contributor

zwimer commented Mar 27, 2023

When applying BoolTactics to simplify a Bool, the result is not simplified all the way. Specifically, here is my minimal proof of concept:

>>> import z3
>>> c = z3.Context()
>>> x = z3.Bool("x", c)
>>> t = z3.Then(z3.Tactic("simplify", ctx=c),z3.Tactic("propagate-ineqs", ctx=c),z3.Tactic("propagate-values", ctx=c),z3.Tactic("unit-subsume-simplify", ctx=c),z3.Tactic("aig", ctx=c),ctx=c)
>>> print(t(x).as_expr())
And(True, x)

In older versions of z3, such as 4.10, the final line simply printed x as one would expect; the behavior is different in this version 4.12.1.0.

Environment:
Version: 4.12.1.0
A new python virtualenv with pip install z3-solver

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