Skip to content

AST_Graph::writeGraphOfMemoryPoolToFile

***** The function void AST_Graph::writeGraphOfMemoryPoolToFile(std::string filename,Functional1, Functional2, bool graphNullPointers); will output a graph of thewhole memory pool to a new file called 'filename'. The second argument is acustom functional on the form unary_function<std::pair<SgNode*,std:string>,bool > where the first template argument is a node and it's name while the secondtemplate argument is the return type (see defaultFilterUnary for an example). The third argument is a custom functional to filter edges on the form binary_function<SgNode*,std::pair<SgNode*,std:string>,bool > where the edge goes from the vertex in the first template argument to thevertex in the second template argument (see defaultFilterBinary for anexample).

Synopsis

Declared in <src/midend/astDump/astGraph.h>

template<
    typename Functional1,
    typename Functional2>
[[visibility]]
void
writeGraphOfMemoryPoolToFile(
    std::string filename,
    AST_Graph::pointerHandling graphNullPointers,
    Functional1 addNodeFunctional,
    Functional2 addEdgeFunctional);

Description

If the third argument is true a node and an edge is made to any NULL pointer.If the third argument is true the nodes and edges representing NULL pointersare filtered out (default).

Created with MrDocs