Open
Conversation
Member
|
Thank you for finding these issues, I will review the changes. |
Open
|
Posting here because I'm unsure where it originated from, but there is an errant reference bug in (it seems) cudd_add.ADD.let. - it can be observed in import dd.cudd_add as _agd
manager = _agd.ADD()
var_names = ['x', 'y', 'z'] # no exception if 'x' is removed even though it doesn't appear in expr
manager.declare(*var_names)
expr = manager.add_expr('y')
map_exists = {'y': 'y', 'z': 'z'} # no exception if either mapping is removed
w = manager.let(map_exists, expr)I've tried looking for possible causes but my setup is currently not fit to debug cython properly, hopefully it helps at least a little. Guessing it's the source for some other issues, as I've tried running a more complex program and ran into |
johnyf
added a commit
that referenced
this pull request
Dec 11, 2025
Incorporates feedback from: <#99>
7f7d825 to
7bed09d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
dd/cudd_add.pyxfile.Changes to function definitions and error handling:
Cudd_addLeqfromDdNode*tointto reflect its actual return type. (The library did not compile for me without this fix)<,<=,>,>=) withNotImplementedErrorbecause the implementation does not work with this return type.Enhancements to file type support:
ADD.dump.Improvements to the
Functionclass:valueproperty to theFunctionclass to return the value of a leaf ADD node.Modifications to
_to_dot_recursefunction:taillabelattributes from edges in the_to_dot_recursebecause it is redundant with the edge style.Remove erroneous shortcut in
find_or_add:While i was playing around with this library I found out that for an ADD i constructed, the structure was different from the one I created using
PyCUDD. I traced it down to this erroneous shortcut. I'm guessing you tried to mimic the behaviour of one of the shortcuts that is implemented insideCUDD, but i think there was a mistake.