-
Notifications
You must be signed in to change notification settings - Fork 0
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
Option to generate a dot file representing the smir-json #34
Conversation
At the moment this does not have tests... |
d04bb6a
to
6342540
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This awesome for a first cut. Let's go with it as is and sometime down the track we can improve it. I'll approve now but I think we should add an issue for the statement printing, and an issue for testing the output. Also I think a line added to the README.md
would be good. Even something as short as.
Experimental graph printing is available through the
--dot
flag
Co-authored-by: Daniel Cumming <[email protected]>
In this first version we don't draw the statements of blocks, just the block structure and caller/callee relations between blocks/items.
In terms of interface, the
main
program now has options--json
and--dot
which have to come first, and we default to--json
if they are absent.Output example: (main calls
foo(0)
callsbar(0)
)The HS version had more color but was otherwise the same: