Static Value-Flow Analysis
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SVF::TCTNode Class Reference

#include <TCT.h>

Inheritance diagram for SVF::TCTNode:
SVF::GenericNode< NodeTy, EdgeTy > SVF::SVFBaseNode

Public Member Functions

 TCTNode (NodeID i, const CxtThread &cctx)
 Constructor. More...
 
void dump ()
 
const CxtThreadgetCxtThread () const
 Get CxtThread. More...
 
bool isInloop () const
 inloop, incycle attributes More...
 
bool isIncycle () const
 
void setMultiforked (bool value)
 
bool isMultiforked () const
 
- Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy >
 GenericNode (NodeID i, GNodeK k)
 Constructor. More...
 
virtual ~GenericNode ()
 Destructor. More...
 
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 necessary. 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)
 
EdgeTypehasIncomingEdge (EdgeType *edge) const
 Find incoming and outgoing edges. More...
 
EdgeTypehasOutgoingEdge (EdgeType *edge) const
 
const GEdgeSetTygetOutEdges () const
 
const GEdgeSetTygetInEdges () const
 
u32_t removeIncomingEdge (EdgeType *edge)
 
u32_t removeOutgoingEdge (EdgeType *edge)
 
- Public Member Functions inherited from SVF::SVFBaseNode
 SVFBaseNode (NodeID i, GNodeK k, SVFType *ty=nullptr)
 
NodeID getId () const
 Get ID. More...
 
GNodeK getNodeKind () const
 Get node kind. More...
 
virtual const SVFTypegetType () const
 
virtual void setSourceLoc (const std::string &sourceCodeInfo)
 
virtual const std::string getSourceLoc () const
 
const std::string valueOnlyToString () const
 

Static Public Member Functions

static bool classof (const TCTNode *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const GenericTCTNodeTy *node)
 
static bool classof (const SVFBaseNode *node)
 
- Static Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy >
static bool classof (const GenericNode< NodeTy, EdgeTy > *)
 
static bool classof (const SVFBaseNode *)
 

Private Attributes

const CxtThread ctx
 
bool multiforked
 

Additional Inherited Members

- Public Types inherited from SVF::GenericNode< NodeTy, EdgeTy >
typedef NodeTy NodeType
 
typedef EdgeTy EdgeType
 
typedef OrderedSet< EdgeType *, typename EdgeType::equalGEdge > GEdgeSetTy
 Edge kind. More...
 
typedef GEdgeSetTy::iterator iterator
 
typedef GEdgeSetTy::const_iterator const_iterator
 
- Public Types inherited from SVF::SVFBaseNode
enum  GNodeK {
  IntraBlock , GlobalBlock , FunEntryBlock , FunExitBlock ,
  FunCallBlock , FunRetBlock , ValNode , GepValNode ,
  RetNode , VarargNode , DummyValNode , ObjNode ,
  GepObjNode , FIObjNode , DummyObjNode , Cmp ,
  BinaryOp , UnaryOp , Branch , DummyVProp ,
  NPtr , FRet , ARet , AParm ,
  FParm , Addr , Copy , Gep ,
  Store , Load , TPhi , TIntraPhi ,
  TInterPhi , FPIN , FPOUT , APIN ,
  APOUT , MPhi , MIntraPhi , MInterPhi ,
  CallNodeKd , CDNodeKd , CFLNodeKd , CHNodeKd ,
  ConstraintNodeKd , TCTNodeKd , DCHNodeKd , OtherKd
}
 
- Static Protected Member Functions inherited from SVF::SVFBaseNode
static bool isICFGNodeKinds (GNodeK n)
 Helper functions to check node kinds. More...
 
static bool isInterICFGNodeKind (GNodeK n)
 
static bool isSVFVarKind (GNodeK n)
 
static bool isValVarKinds (GNodeK n)
 
static bool isObjVarKinds (GNodeK n)
 
static bool isVFGNodeKinds (GNodeK n)
 
static bool isArgumentVFGNodeKinds (GNodeK n)
 
static bool isStmtVFGNodeKinds (GNodeK n)
 
static bool isPHIVFGNodeKinds (GNodeK n)
 
static bool isMRSVFGNodeKinds (GNodeK n)
 
static bool isMSSAPHISVFGNodeKinds (GNodeK n)
 
- Protected Attributes inherited from SVF::SVFBaseNode
NodeID id
 Node ID. More...
 
GNodeK nodeKind
 Node kind. More...
 
const SVFTypetype
 SVF type. More...
 
std::string sourceLoc
 Source code information of this value. More...
 

Detailed Description

Definition at line 85 of file TCT.h.

Constructor & Destructor Documentation

◆ TCTNode()

SVF::TCTNode::TCTNode ( NodeID  i,
const CxtThread cctx 
)
inline

Constructor.

Definition at line 90 of file TCT.h.

90  :
91  GenericTCTNodeTy(i, TCTNodeKd), ctx(cctx), multiforked(false)
92  {
93  }
bool multiforked
Definition: TCT.h:146
const CxtThread ctx
Definition: TCT.h:145
GenericNode< TCTNode, TCTEdge > GenericTCTNodeTy
Definition: TCT.h:84

Member Function Documentation

◆ classof() [1/3]

static bool SVF::TCTNode::classof ( const GenericTCTNodeTy node)
inlinestatic

Definition at line 133 of file TCT.h.

134  {
135  return node->getNodeKind() == TCTNodeKd;
136  }

◆ classof() [2/3]

static bool SVF::TCTNode::classof ( const SVFBaseNode node)
inlinestatic

Definition at line 137 of file TCT.h.

138  {
139  return node->getNodeKind() == TCTNodeKd;
140  }

◆ classof() [3/3]

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

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

Definition at line 128 of file TCT.h.

129  {
130  return true;
131  }

◆ dump()

void SVF::TCTNode::dump ( )
inline

Definition at line 95 of file TCT.h.

96  {
97  SVFUtil::outs() << "---\ntid: " << this->getId() << " inloop:" << ctx.isInloop() << " incycle:" << ctx.isIncycle() << " multiforked:"<< isMultiforked();
98  }
bool isInloop() const
Definition: CxtStmt.h:264
bool isIncycle() const
Definition: CxtStmt.h:272
NodeID getId() const
Get ID.
Definition: GenericGraph.h:260
bool isMultiforked() const
Definition: TCT.h:120
std::ostream & outs()
Overwrite llvm::outs()
Definition: SVFUtil.h:50

◆ getCxtThread()

const CxtThread& SVF::TCTNode::getCxtThread ( ) const
inline

Get CxtThread.

Definition at line 101 of file TCT.h.

102  {
103  return ctx;
104  }

◆ isIncycle()

bool SVF::TCTNode::isIncycle ( ) const
inline

Definition at line 112 of file TCT.h.

113  {
114  return ctx.isIncycle();
115  }

◆ isInloop()

bool SVF::TCTNode::isInloop ( ) const
inline

inloop, incycle attributes

Definition at line 108 of file TCT.h.

109  {
110  return ctx.isInloop();
111  }

◆ isMultiforked()

bool SVF::TCTNode::isMultiforked ( ) const
inline

Definition at line 120 of file TCT.h.

121  {
122  return multiforked;
123  }

◆ setMultiforked()

void SVF::TCTNode::setMultiforked ( bool  value)
inline

Definition at line 116 of file TCT.h.

117  {
118  multiforked = value;
119  }

Member Data Documentation

◆ ctx

const CxtThread SVF::TCTNode::ctx
private

Definition at line 145 of file TCT.h.

◆ multiforked

bool SVF::TCTNode::multiforked
private

Definition at line 146 of file TCT.h.


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