SVF
Public Member Functions | List of all members
SVF::GlobalBlockNode Class Reference

#include <ICFGNode.h>

Inheritance diagram for SVF::GlobalBlockNode:
SVF::ICFGNode SVF::GenericNode< NodeTy, EdgeTy >

Public Member Functions

 GlobalBlockNode (NodeID id)
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::ICFGNode
 ICFGNode (NodeID i, ICFGNodeK k)
 Constructor. More...
 
virtual const SVFFunctiongetFun () const
 Return the function of this ICFGNode. More...
 
virtual const BasicBlockgetBB () const
 Return the function of this ICFGNode. More...
 
void dump () const
 
void addVFGNode (const VFGNode *vfgNode)
 
const VFGNodeListgetVFGNodes () const
 
void addPAGEdge (const PAGEdge *edge)
 
const PAGEdgeListgetPAGEdges () const
 
- Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy >
 GenericNode (NodeID i, GNodeK k)
 Constructor. More...
 
virtual ~GenericNode ()
 Destructor. More...
 
NodeID getId () const
 Get ID. More...
 
GNodeK getNodeKind () const
 Get node kind. More...
 
const GEdgeSetTygetOutEdges () const
 
const GEdgeSetTygetInEdges () const
 
bool hasIncomingEdge () const
 Has incoming/outgoing edge set. More...
 
bool hasOutgoingEdge () const
 
iterator OutEdgeBegin ()
 iterators More...
 
iterator OutEdgeEnd ()
 
iterator InEdgeBegin ()
 
iterator InEdgeEnd ()
 
const_iterator OutEdgeBegin () const
 
const_iterator OutEdgeEnd () const
 
const_iterator InEdgeBegin () const
 
const_iterator InEdgeEnd () const
 
virtual iterator directOutEdgeBegin ()
 Iterators used for SCC detection, overwrite it in child class if necessory. More...
 
virtual iterator directOutEdgeEnd ()
 
virtual iterator directInEdgeBegin ()
 
virtual iterator directInEdgeEnd ()
 
virtual const_iterator directOutEdgeBegin () const
 
virtual const_iterator directOutEdgeEnd () const
 
virtual const_iterator directInEdgeBegin () const
 
virtual const_iterator directInEdgeEnd () const
 
bool addIncomingEdge (EdgeType *inEdge)
 Add incoming and outgoing edges. More...
 
bool addOutgoingEdge (EdgeType *outEdge)
 
Size_t removeIncomingEdge (EdgeType *edge)
 
Size_t removeOutgoingEdge (EdgeType *edge)
 
EdgeTypehasIncomingEdge (EdgeType *edge) const
 Find incoming and outgoing edges. More...
 
EdgeTypehasOutgoingEdge (EdgeType *edge) const
 

Static Public Member Functions

static bool classof (const GlobalBlockNode *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const ICFGNode *node)
 
static bool classof (const GenericICFGNodeTy *node)
 

Additional Inherited Members

- Public Types inherited from SVF::ICFGNode
enum  ICFGNodeK {
  IntraBlock, FunEntryBlock, FunExitBlock, FunCallBlock,
  FunRetBlock, GlobalBlock
}
 
typedef ICFGEdge::ICFGEdgeSetTy::iterator iterator
 
typedef ICFGEdge::ICFGEdgeSetTy::const_iterator const_iterator
 
typedef Set< const CallPE * > CallPESet
 
typedef Set< const RetPE * > RetPESet
 
typedef std::list< const VFGNode * > VFGNodeList
 
typedef std::list< const PAGEdge * > PAGEdgeList
 
- Public Types inherited from SVF::GenericNode< NodeTy, EdgeTy >
typedef NodeTy NodeType
 
typedef EdgeTy EdgeType
 
typedef s32_t GNodeK
 Edge kind. More...
 
typedef OrderedSet< EdgeType *, typename EdgeType::equalGEdge > GEdgeSetTy
 
typedef GEdgeSetTy::iterator iterator
 
typedef GEdgeSetTy::const_iterator const_iterator
 
- Protected Attributes inherited from SVF::ICFGNode
const SVFFunctionfun
 
const BasicBlockbb
 
VFGNodeList VFGNodes
 
PAGEdgeList pagEdges
 

Detailed Description

Unique ICFG node stands for all global initializations

Definition at line 142 of file ICFGNode.h.

Constructor & Destructor Documentation

◆ GlobalBlockNode()

SVF::GlobalBlockNode::GlobalBlockNode ( NodeID  id)
inline

Definition at line 146 of file ICFGNode.h.

146  : ICFGNode(id, GlobalBlock)
147  {
148  bb = nullptr;
149  }
ICFGNode(NodeID i, ICFGNodeK k)
Constructor.
Definition: ICFGNode.h:74
const BasicBlock * bb
Definition: ICFGNode.h:133

Member Function Documentation

◆ classof() [1/3]

static bool SVF::GlobalBlockNode::classof ( const GlobalBlockNode )
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast:

Definition at line 153 of file ICFGNode.h.

154  {
155  return true;
156  }

◆ classof() [2/3]

static bool SVF::GlobalBlockNode::classof ( const ICFGNode node)
inlinestatic

Definition at line 158 of file ICFGNode.h.

159  {
160  return node->getNodeKind() == GlobalBlock;
161  }

◆ classof() [3/3]

static bool SVF::GlobalBlockNode::classof ( const GenericICFGNodeTy node)
inlinestatic

Definition at line 163 of file ICFGNode.h.

164  {
165  return node->getNodeKind() == GlobalBlock;
166  }

◆ toString()

const std::string GlobalBlockNode::toString ( ) const
virtual

Reimplemented from SVF::ICFGNode.

Definition at line 72 of file ICFG.cpp.

72  {
73  std::string str;
74  raw_string_ostream rawstr(str);
75  rawstr << "GlobalBlockNode ID: " << getId();
76  return rawstr.str();
77 }
llvm::raw_string_ostream raw_string_ostream
Definition: BasicTypes.h:100
NodeID getId() const
Get ID.
Definition: GenericGraph.h:164

The documentation for this class was generated from the following files: