Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for the great work!
Suppose we have two boolean expressions as following:
C1 || (C1 && C2)
C2
Note that
C1
andC2
are both bool_const.Is it a way to check whether these two expressions (expr1, expr2) are equivalent?
z3::eq(expr1, expr2)
returns false here. I have also tried the tactic "simplify" which cannot transform expr1 toC2
.The tactic "ctx-solver-simplify" seems to work but could bring trade-offs especially when the boolean expression becomes large. Also, it can introduce some auxiliary variables like
let a!1
, which is not readable for me. It would be nice if you can explain why that happens. :-)Beta Was this translation helpful? Give feedback.
All reactions