-
Notifications
You must be signed in to change notification settings - Fork 39
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
how to plot a BDD as having two leaf nodes #97
Comments
@Nithin-Kamineni thanks for your report. Always best to give a minimal code example that demonstrates the issue. (It saves developers' time...) |
Thank you for the question. For the expression import dd.autoref as _bdd
bdd = _bdd.BDD()
bdd.declare('x', 'y', 'z')
u = bdd.add_expr(r' (x /\ y) \/ ~ z ')
bdd.dump('bdd.png', roots=[u]) The result is the following. It is a BDD represented with negated edges, which are described in the documentation https://github.com/tulip-control/dd/blob/main/doc.md. Any edge labeled with So for example the path from the root node In contrast, the path from In other words, the BDD with negated edges is as expected, for the expression The same Boolean function ( For example, the path from Also relevant: #29 |
If I have a negation in the boolean expression I am getting the wrong boolean expression
In the case of the image I tried adding F2 : (x /\ y) / ~ z as a boolean expression to convert it into bdd. But it's not rightly pointing to give the correct output as shown in the image.
If the library developers want to investigate this issue I can provide the code to re-create this issue.
The text was updated successfully, but these errors were encountered: