-
Notifications
You must be signed in to change notification settings - Fork 449
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
Improvement of p4c-graphs backend #3268
Conversation
… graphs graph_visitor -> class implementing functionality: - to create fullGraph in 'dot' format from boost graphs of program blocks - to create fullGraph in predefined 'json' format - to output separate graphs for each program block in 'dot' format (old functionality)
Please check the build failures. |
@@ -1,7 +1,9 @@ | |||
# Graphs Backend | |||
|
|||
This backend produces visual representations of a P4 program as dot files. For | |||
now it only supports the generation of graphs for top-level control and parser blocks. | |||
now it supports the generation of graphs for top-level control and parser blocks, | |||
generation of fullGraph, which merges graphs for top-level program blocks and |
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.
what is really a "fullGraph"?
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.
It merges all generated boost graphs of parsers and control blocks into one graph.
This graph enables users to easily observe control flow of full program.
added program name to json output, fixed build errors
This reverts commit c6bd86f.
This reverts commit c6bd86f.
Class Controls - added visiting of nodes with key and actions, which extends table node processing.
Class Parsers rewritten, so it now uses boost library for generation of graphs.
Created class Graph_visitor, which implements functionality to:
Updated Readme accordingly