Skip to content
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

Core/asmbloc: Fix dot generation for basic blocs #231

Merged
merged 2 commits into from
Oct 21, 2015

Conversation

serpilliere
Copy link
Contributor

Thanks to @commial & @p-l-
Enhance dot style for basicbloc graph.
graph


out += b.label.name + "\\l\\\n"
bloc_label = '<tr><td %s>%s</td></tr>' % (label_attr, block.label.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bloc_label -> block_label

def bloc2graph(blocks, label=False, lines=True):
"""Render dot graph of @blocks"""

escape_chars = re.compile('['+re.escape('{}')+']')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add spaces between your operators (+)

commial added a commit that referenced this pull request Oct 21, 2015
Core/asmbloc: Fix dot generation for basic blocs
@commial commial merged commit 1fe49d6 into cea-sec:master Oct 21, 2015
@serpilliere serpilliere deleted the fix_bloc2graph branch October 21, 2015 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants