Skip to content

I need to find the dominance tree or a dominance of a program function #3707

Answered by dragonmacher
anzosasuke asked this question in Q&A
Discussion options

You must be logged in to vote

I do not see any obvious flaw in your script. My guess is that the structure of your graph is such that you do not have a single source and/or a single sink in the graph. The algorithm will create dummy source/sink vertices as needed in this case. The algorithm appears to not handle the case where a dummy node is a dominator. I am surpised by this, as I think we would have seen this already in our code.

Unfortunately, for you to work around this issue, you will have to change our source code. You can do this if you setup a developer environment using our github repo. Alternatively, you could copy our class(es) as needed, writing them in Python, which would allow you to fix the bug. (Admit…

Replies: 3 comments 20 replies

Comment options

You must be logged in to vote
13 replies
@anzosasuke
Comment options

@dragonmacher
Comment options

@anzosasuke
Comment options

@dragonmacher
Comment options

@anzosasuke
Comment options

Comment options

You must be logged in to vote
1 reply
@anzosasuke
Comment options

Comment options

You must be logged in to vote
6 replies
@anzosasuke
Comment options

@anzosasuke
Comment options

@dragonmacher
Comment options

@anzosasuke
Comment options

@dragonmacher
Comment options

Answer selected by anzosasuke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants