Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SVF::BasicBlockGraph Class Reference

#include <BasicBlockG.h>

Inheritance diagram for SVF::BasicBlockGraph:
SVF::GenericGraph< NodeTy, EdgeTy >

Public Member Functions

 BasicBlockGraph ()
 Constructor.
 
SVFBasicBlockaddBasicBlock (const std::string &bbname)
 
- Public Member Functions inherited from SVF::GenericGraph< NodeTy, EdgeTy >
 GenericGraph ()
 Constructor.
 
virtual ~GenericGraph ()
 Destructor.
 
void destroy ()
 Release memory.
 
iterator begin ()
 Iterators.
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void addGNode (NodeID id, NodeType *node)
 Add a Node.
 
NodeTypegetGNode (NodeID id) const
 Get a node.
 
bool hasGNode (NodeID id) const
 Has a node.
 
void removeGNode (NodeType *node)
 Delete a node.
 
u32_t getTotalNodeNum () const
 Get total number of node/edge.
 
u32_t getTotalEdgeNum () const
 
void incNodeNum ()
 Increase number of node/edge.
 
void incEdgeNum ()
 

Private Attributes

NodeID id {0}
 

Additional Inherited Members

- Public Types inherited from SVF::GenericGraph< NodeTy, EdgeTy >
typedef NodeTy NodeType
 
typedef EdgeTy EdgeType
 
typedef OrderedMap< NodeID, NodeType * > IDToNodeMapTy
 NodeID to GenericNode map.
 
typedef IDToNodeMapTy::iterator iterator
 Node Iterators.
 
typedef IDToNodeMapTy::const_iterator const_iterator
 
- Public Attributes inherited from SVF::GenericGraph< NodeTy, EdgeTy >
u32_t edgeNum
 total num of node
 
u32_t nodeNum
 total num of edge
 
- Protected Attributes inherited from SVF::GenericGraph< NodeTy, EdgeTy >
IDToNodeMapTy IDToNodeMap
 node map
 

Detailed Description

Definition at line 295 of file BasicBlockG.h.

Constructor & Destructor Documentation

◆ BasicBlockGraph()

SVF::BasicBlockGraph::BasicBlockGraph ( )
inline

Constructor.

Definition at line 301 of file BasicBlockG.h.

302 {
303
304 }

Member Function Documentation

◆ addBasicBlock()

SVFBasicBlock * SVF::BasicBlockGraph::addBasicBlock ( const std::string &  bbname)
inline

Definition at line 306 of file BasicBlockG.h.

307 {
308 id++;
309 SVFBasicBlock* bb = new SVFBasicBlock(id, nullptr);
310 addGNode(id, bb);
311 bb->setName(bbname);
312 return bb;
313 }
void addGNode(NodeID id, NodeType *node)
Add a Node.
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

Member Data Documentation

◆ id

NodeID SVF::BasicBlockGraph::id {0}
private

Definition at line 298 of file BasicBlockG.h.

298{0};

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