class documentation
Control flow graph (CFG).
A control flow graph is composed of basic blocks and links between them representing control flow jumps. It has a unique entry block and several possible 'final' blocks (blocks with no exits representing the end of the CFG).
| Method | __del__ |
Undocumented |
| Method | __init__ |
The constructor of CFG class. Only name of this graph is required. |
| Method | __iter__ |
Generator that yields all the blocks in the current graph, then recursively yields from any sub graphs |
| Method | __str__ |
Undocumented |
| Method | build |
Build a visualisation of the CFG with graphviz and output it in a DOT file. |
| Method | flatten |
Undocumented |
| Method | get |
Get a list of code blocks in this CFG; This is generated by BFS order. |
| Method | remove |
Undocumented |
| Instance Variable | asynchr |
Undocumented |
| Instance Variable | class |
Undocumented |
| Instance Variable | class |
Undocumented |
| Instance Variable | entryblock |
Undocumented |
| Instance Variable | finalblocks |
Undocumented |
| Instance Variable | function |
Undocumented |
| Instance Variable | functioncfgs |
Undocumented |
| Instance Variable | name |
Undocumented |
| Method | _build |
Undocumented |
| Method | _visit |
Undocumented |
Generator that yields all the blocks in the current graph, then recursively yields from any sub graphs
Build a visualisation of the CFG with graphviz and output it in a DOT file.
| Parameters | |
| format | The format to use for the output file (PDF, ...). |
| calls | Undocumented |
| show | A boolean indicating whether to automatically open the output file after building the visualisation. |
| filename | The name of the output file in which the visualisation must be saved. |