Conversation
|
Excellent work! Is there a reason not to create a >>> import dd.sylvan as _bdd
>>> bdd = _bdd .BDD()
>>> bdd.declare('x')
>>> u = bdd.add_expr(r'x')
>>> u.count()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'dd.sylvan.Function' object has no attribute 'count'If you agree, I can make send a pull request. |
|
Thanks for reviewing. Adding the method I have mostly used the Python operators This relates to the decision of how many ways to have for performing an operation. Using On the other hand, the number of satisfying assignments can be considered as a property of (the graph rooted at) a In |
Implemented the method
BDD.count()in the Sylvan interface.(Can be merged as one commit, to keep the
gitgraph linear.)