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

#include <SVFVariables.h>

Inheritance diagram for SVF::DummyObjVar:
SVF::ObjVar SVF::SVFVar SVF::GenericNode< NodeTy, EdgeTy > SVF::SVFBaseNode

Public Member Functions

 DummyObjVar (NodeID i, const MemObj *m, PNODEK ty=DummyObjNode)
 Constructor. More...
 
const std::string getValueName () const
 Return name of this node. More...
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::ObjVar
const MemObjgetMemObj () const
 Return memory object. More...
 
virtual const SVFTypegetType () const
 Return type of the value. More...
 
- Public Member Functions inherited from SVF::SVFVar
 SVFVar (const SVFValue *val, NodeID i, PNODEK k)
 Constructor. More...
 
virtual ~SVFVar ()
 Destructor. More...
 
const SVFValuegetValue () const
 Get/has methods of the components. More...
 
bool hasValue () const
 
virtual bool isPointer () const
 Whether it is a pointer. More...
 
bool isConstDataOrAggDataButNotNullPtr () const
 
bool isIsolatedNode () const
 Whether this is an isolated node on the SVFIR graph. More...
 
virtual const SVFFunctiongetFunction () const
 Return the function that this SVFVar resides in. Return nullptr if it is a global or constantexpr node. More...
 
SVFStmt::SVFStmtSetTygetIncomingEdges (SVFStmt::PEDGEK kind)
 Get incoming SVFIR statements (edges) More...
 
SVFStmt::SVFStmtSetTygetOutgoingEdges (SVFStmt::PEDGEK kind)
 Get outgoing SVFIR statements (edges) More...
 
bool hasIncomingEdges (SVFStmt::PEDGEK kind) const
 Has incoming SVFIR statements (edges) More...
 
bool hasOutgoingEdges (SVFStmt::PEDGEK kind) const
 Has outgoing SVFIR statements (edges) More...
 
SVFStmt::SVFStmtSetTy::iterator getIncomingEdgesBegin (SVFStmt::PEDGEK kind) const
 Get incoming SVFStmt iterator. More...
 
SVFStmt::SVFStmtSetTy::iterator getIncomingEdgesEnd (SVFStmt::PEDGEK kind) const
 Get incoming SVFStmt iterator. More...
 
SVFStmt::SVFStmtSetTy::iterator getOutgoingEdgesBegin (SVFStmt::PEDGEK kind) const
 Get outgoing SVFStmt iterator. More...
 
SVFStmt::SVFStmtSetTy::iterator getOutgoingEdgesEnd (SVFStmt::PEDGEK kind) const
 Get outgoing SVFStmt iterator. More...
 
void dump () const
 Dump to console for debugging. More...
 
- 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 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 DummyObjVar *)
 
static bool classof (const SVFVar *node)
 
static bool classof (const ObjVar *node)
 
static bool classof (const GenericPAGNodeTy *node)
 
static bool classof (const SVFBaseNode *node)
 
- Static Public Member Functions inherited from SVF::ObjVar
static bool classof (const ObjVar *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const SVFVar *node)
 
static bool classof (const GenericPAGNodeTy *node)
 
static bool classof (const SVFBaseNode *node)
 
- Static Public Member Functions inherited from SVF::SVFVar
static bool classof (const SVFVar *)
 
static bool classof (const GenericPAGNodeTy *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 Member Functions

 DummyObjVar (NodeID i)
 Constructor to create empty DummyObjVar (for SVFIRReader/deserialization) More...
 

Friends

class SVFIRWriter
 
class SVFIRReader
 

Additional Inherited Members

- Public Types inherited from SVF::SVFVar
typedef GNodeK PNODEK
 
typedef s64_t GEdgeKind
 
- 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
}
 
- Protected Member Functions inherited from SVF::ObjVar
 ObjVar (NodeID i, PNODEK ty=ObjNode)
 Constructor to create an empty ObjVar (for SVFIRReader/deserialization) More...
 
 ObjVar (const SVFValue *val, NodeID i, const MemObj *m, PNODEK ty=ObjNode)
 Constructor. More...
 
- Protected Member Functions inherited from SVF::SVFVar
 SVFVar (NodeID i, PNODEK k)
 whether it is a pointer (top-level or address-taken) More...
 
- 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::ObjVar
const MemObjmem
 
- Protected Attributes inherited from SVF::SVFVar
const SVFValuevalue
 value of this SVFIR node More...
 
SVFStmt::KindToSVFStmtMapTy InEdgeKindToSetMap
 
SVFStmt::KindToSVFStmtMapTy OutEdgeKindToSetMap
 
bool isPtr
 
- 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 733 of file SVFVariables.h.

Constructor & Destructor Documentation

◆ DummyObjVar() [1/2]

SVF::DummyObjVar::DummyObjVar ( NodeID  i)
inlineprivate

Constructor to create empty DummyObjVar (for SVFIRReader/deserialization)

Definition at line 740 of file SVFVariables.h.

740 : ObjVar(i, DummyObjNode) {}
ObjVar(NodeID i, PNODEK ty=ObjNode)
Constructor to create an empty ObjVar (for SVFIRReader/deserialization)
Definition: SVFVariables.h:330

◆ DummyObjVar() [2/2]

SVF::DummyObjVar::DummyObjVar ( NodeID  i,
const MemObj m,
PNODEK  ty = DummyObjNode 
)
inline

Constructor.

Definition at line 768 of file SVFVariables.h.

769  : ObjVar(nullptr, i, m, ty)
770  {
771  }

Member Function Documentation

◆ classof() [1/5]

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

Definition at line 744 of file SVFVariables.h.

745  {
746  return true;
747  }

◆ classof() [2/5]

static bool SVF::DummyObjVar::classof ( const GenericPAGNodeTy node)
inlinestatic

Definition at line 756 of file SVFVariables.h.

757  {
758  return node->getNodeKind() == SVFVar::DummyObjNode;
759  }

◆ classof() [3/5]

static bool SVF::DummyObjVar::classof ( const ObjVar node)
inlinestatic

Definition at line 752 of file SVFVariables.h.

753  {
754  return node->getNodeKind() == SVFVar::DummyObjNode;
755  }

◆ classof() [4/5]

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

Definition at line 761 of file SVFVariables.h.

762  {
763  return node->getNodeKind() == SVFVar::DummyObjNode;
764  }

◆ classof() [5/5]

static bool SVF::DummyObjVar::classof ( const SVFVar node)
inlinestatic

Definition at line 748 of file SVFVariables.h.

749  {
750  return node->getNodeKind() == SVFVar::DummyObjNode;
751  }

◆ getValueName()

const std::string SVF::DummyObjVar::getValueName ( ) const
inlinevirtual

Return name of this node.

Reimplemented from SVF::ObjVar.

Definition at line 774 of file SVFVariables.h.

775  {
776  return "dummyObj";
777  }

◆ toString()

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

Reimplemented from SVF::ObjVar.

Definition at line 197 of file SVFVariables.cpp.

198 {
199  std::string str;
200  std::stringstream rawstr(str);
201  rawstr << "DummyObjVar ID: " << getId();
202  return rawstr.str();
203 }
const char *const string
Definition: cJSON.h:172
NodeID getId() const
Get ID.
Definition: GenericGraph.h:260

Friends And Related Function Documentation

◆ SVFIRReader

friend class SVFIRReader
friend

Definition at line 736 of file SVFVariables.h.

◆ SVFIRWriter

friend class SVFIRWriter
friend

Definition at line 735 of file SVFVariables.h.


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