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 NodeT , typename GraphType >
std::string getNodeLabel (NodeT, 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 NodeT >
static const void * getNodeIdentifier (NodeT N)
 
template<typename NodeT , typename GraphType >
static bool isNodeHidden (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeIdentifierLabel (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeDescription (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeAttributes (NodeT, const GraphType &)
 
template<typename NodeT , typename EdgeIter , typename GraphType >
static std::string getEdgeAttributes (NodeT, EdgeIter, const GraphType &)
 
template<typename NodeT , typename EdgeIter >
static std::string getEdgeSourceLabel (NodeT, EdgeIter)
 
template<typename NodeT , typename EdgeIter >
static bool edgeTargetsEdgeSource (NodeT, EdgeIter)
 
template<typename NodeT , typename EdgeIter >
static EdgeIter getEdgeTarget (NodeT, EdgeIter I)
 
static bool hasEdgeDestLabels ()
 
template<typename NodeT >
static unsigned numEdgeDestLabels (NodeT)
 
template<typename NodeT >
static std::string getEdgeDestLabel (NodeT, 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 613 of file TCT.cpp.

Member Typedef Documentation

◆ ChildIteratorType

Definition at line 617 of file TCT.cpp.

◆ NodeType

Definition at line 616 of file TCT.cpp.

Constructor & Destructor Documentation

◆ DOTGraphTraits()

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

Definition at line 618 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 649 of file TCT.cpp.

650 {
651
652 TCTEdge* edge = csThreadTree->getGraphEdge(node, *EI, TCTEdge::ThreadCreateEdge);
653 (void)edge; // Suppress warning of unused variable under release build
654 assert(edge && "No edge found!!");
656 return "color=black";
657 }
@ ThreadCreateEdge
Definition TCT.h:56
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ getGraphName()

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

Return name of the graph.

Definition at line 624 of file TCT.cpp.

625 {
626 return "Thread Create Tree";
627 }

◆ getNodeAttributes()

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

Definition at line 634 of file TCT.cpp.

635 {
636 std::string attr;
637 if (node->isInloop())
638 {
639 attr.append("shape=record,style=filled,fillcolor=red");
640 }
641 else if (node->isIncycle())
642 {
643 attr.append("shape=record,style=filled,fillcolor=yellow");
644 }
645 return attr;
646 }
bool isIncycle() const
Definition TCT.h:113
bool isInloop() const
inloop, incycle attributes
Definition TCT.h:109

◆ getNodeLabel()

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

Return function name;.

Definition at line 629 of file TCT.cpp.

630 {
631 return std::to_string(node->getId());
632 }
NodeID getId() const
Get ID.
Definition SVFValue.h:158

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