Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SVF::DOTGraphTraits< TCT * > Struct Reference
Inheritance diagram for SVF::DOTGraphTraits< TCT * >:
SVF::DefaultDOTGraphTraits

Public Types

typedef TCTNode NodeType
 
typedef NodeType::iterator ChildIteratorType
 

Public Member Functions

 DOTGraphTraits (bool isSimple=false)
 
- Public Member Functions inherited from SVF::DefaultDOTGraphTraits
 DefaultDOTGraphTraits (bool simple=false)
 
template<typename GraphType >
std::string getNodeLabel (const void *, const GraphType &)
 

Static Public Member Functions

static std::string getGraphName (TCT *graph)
 Return name of the graph.
 
static std::string getNodeLabel (TCTNode *node, TCT *graph)
 Return function name;.
 
static std::string getNodeAttributes (TCTNode *node, TCT *tct)
 
template<class EdgeIter >
static std::string getEdgeAttributes (TCTNode *node, EdgeIter EI, TCT *csThreadTree)
 
- Static Public Member Functions inherited from SVF::DefaultDOTGraphTraits
template<typename GraphType >
static std::string getGraphName (const GraphType &)
 
template<typename GraphType >
static std::string getGraphProperties (const GraphType &)
 
static bool renderGraphFromBottomUp ()
 
template<typename GraphType >
static bool isNodeHidden (const void *, const GraphType &)
 
template<typename GraphType >
static std::string getNodeIdentifierLabel (const void *, const GraphType &)
 
template<typename GraphType >
static std::string getNodeDescription (const void *, const GraphType &)
 
template<typename GraphType >
static std::string getNodeAttributes (const void *, const GraphType &)
 
template<typename EdgeIter , typename GraphType >
static std::string getEdgeAttributes (const void *, EdgeIter, const GraphType &)
 
template<typename EdgeIter >
static std::string getEdgeSourceLabel (const void *, EdgeIter)
 
template<typename EdgeIter >
static bool edgeTargetsEdgeSource (const void *, EdgeIter)
 
template<typename EdgeIter >
static EdgeIter getEdgeTarget (const void *, EdgeIter I)
 
static bool hasEdgeDestLabels ()
 
static unsigned numEdgeDestLabels (const void *)
 
static std::string getEdgeDestLabel (const void *, unsigned)
 
template<typename GraphType , typename GraphWriter >
static void addCustomGraphFeatures (const GraphType &, GraphWriter &)
 

Additional Inherited Members

- Protected Member Functions inherited from SVF::DefaultDOTGraphTraits
bool isSimple ()
 

Detailed Description

Write value flow graph into dot file for debugging

Definition at line 589 of file TCT.cpp.

Member Typedef Documentation

◆ ChildIteratorType

Definition at line 593 of file TCT.cpp.

◆ NodeType

Definition at line 592 of file TCT.cpp.

Constructor & Destructor Documentation

◆ DOTGraphTraits()

SVF::DOTGraphTraits< TCT * >::DOTGraphTraits ( bool  isSimple = false)
inline

Definition at line 594 of file TCT.cpp.

Member Function Documentation

◆ getEdgeAttributes()

template<class EdgeIter >
static std::string SVF::DOTGraphTraits< TCT * >::getEdgeAttributes ( TCTNode node,
EdgeIter  EI,
TCT csThreadTree 
)
inlinestatic

black edge for direct call while two functions contain indirect calls will be label with red color

Definition at line 625 of file TCT.cpp.

626 {
627
628 TCTEdge* edge = csThreadTree->getGraphEdge(node, *EI, TCTEdge::ThreadCreateEdge);
629 (void)edge; // Suppress warning of unused variable under release build
630 assert(edge && "No edge found!!");
632 return "color=black";
633 }
@ ThreadCreateEdge
Definition TCT.h:55
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

◆ getGraphName()

static std::string SVF::DOTGraphTraits< TCT * >::getGraphName ( TCT graph)
inlinestatic

Return name of the graph.

Definition at line 600 of file TCT.cpp.

601 {
602 return "Thread Create Tree";
603 }

◆ getNodeAttributes()

static std::string SVF::DOTGraphTraits< TCT * >::getNodeAttributes ( TCTNode node,
TCT tct 
)
inlinestatic

Definition at line 610 of file TCT.cpp.

611 {
612 std::string attr;
613 if (node->isInloop())
614 {
615 attr.append(" style=filled fillcolor=red");
616 }
617 else if (node->isIncycle())
618 {
619 attr.append(" style=filled fillcolor=yellow");
620 }
621 return attr;
622 }
bool isIncycle() const
Definition TCT.h:112
bool isInloop() const
inloop, incycle attributes
Definition TCT.h:108

◆ getNodeLabel()

static std::string SVF::DOTGraphTraits< TCT * >::getNodeLabel ( TCTNode node,
TCT graph 
)
inlinestatic

Return function name;.

Definition at line 605 of file TCT.cpp.

606 {
607 return std::to_string(node->getId());
608 }
NodeID getId() const
Get ID.
Definition SVFValue.h:160

The documentation for this struct was generated from the following file: