|
Static Value-Flow Analysis
|
#include <VFGNode.h>
Public Member Functions | |
| VFGNode (NodeID i, VFGNodeK k) | |
| Constructor. | |
| virtual const ICFGNode * | getICFGNode () const |
| Return corresponding ICFG node. | |
| virtual void | setICFGNode (const ICFGNode *node) |
| Set corresponding ICFG node. | |
| virtual const FunObjVar * | getFun () const |
| Get the function of this SVFGNode. | |
| virtual const SVFVar * | getValue () const |
| Return the corresponding LLVM value, if possible, nullptr otherwise. | |
| virtual const NodeBS | getDefSVFVars () const =0 |
| Return the left hand side SVF Vars. | |
| virtual const std::string | toString () const |
| Public Member Functions inherited from SVF::GenericNode< VFGNode, VFGEdge > | |
| GenericNode (NodeID i, GNodeK k, const SVFType *svfType=nullptr) | |
| Constructor. | |
| virtual | ~GenericNode () |
| Destructor. | |
| bool | hasIncomingEdge () const |
| Has incoming/outgoing edge set. | |
| bool | hasOutgoingEdge () const |
| iterator | OutEdgeBegin () |
| iterators | |
| 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. | |
| 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. | |
| bool | addOutgoingEdge (EdgeType *outEdge) |
| EdgeType * | hasIncomingEdge (EdgeType *edge) const |
| Find incoming and outgoing edges. | |
| EdgeType * | hasOutgoingEdge (EdgeType *edge) const |
| const GEdgeSetTy & | getOutEdges () const |
| const GEdgeSetTy & | getInEdges () const |
| u32_t | removeIncomingEdge (EdgeType *edge) |
| u32_t | removeOutgoingEdge (EdgeType *edge) |
| Public Member Functions inherited from SVF::SVFValue | |
| SVFValue (NodeID i, GNodeK k, const SVFType *ty=nullptr) | |
| NodeID | getId () const |
| Get ID. | |
| GNodeK | getNodeKind () const |
| Get node kind. | |
| virtual const SVFType * | getType () const |
| virtual void | setName (const std::string &nameInfo) |
| virtual void | setName (std::string &&nameInfo) |
| virtual const std::string & | getName () const |
| virtual void | setSourceLoc (const std::string &sourceCodeInfo) |
| virtual const std::string | getSourceLoc () const |
| const std::string | valueOnlyToString () const |
| const bool | hasLLVMValue () const |
Static Public Member Functions | |
| static bool | classof (const VFGNode *) |
| static bool | classof (const GenericVFGNodeTy *node) |
| static bool | classof (const SVFValue *node) |
| Static Public Member Functions inherited from SVF::GenericNode< VFGNode, VFGEdge > | |
| static bool | classof (const GenericNode< VFGNode, VFGEdge > *) |
| static bool | classof (const SVFValue *) |
Protected Attributes | |
| const ICFGNode * | icfgNode |
| Protected Attributes inherited from SVF::SVFValue | |
| NodeID | id |
| Node ID. | |
| GNodeK | nodeKind |
| Node kind. | |
| const SVFType * | type |
| SVF type. | |
| std::string | name |
| std::string | sourceLoc |
| Source code information of this value. | |
Friends | |
| OutStream & | operator<< (OutStream &o, const VFGNode &node) |
| Overloading operator << for dumping ICFG node ID. | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from SVF::SVFValue | |
| static bool | isICFGNodeKinds (GNodeK n) |
| Helper functions to check node kinds. | |
| static bool | isInterICFGNodeKind (GNodeK n) |
| static bool | isSVFVarKind (GNodeK n) |
| static bool | isValVarKinds (GNodeK n) |
| static bool | isConstantDataValVar (GNodeK n) |
| static bool | isObjVarKinds (GNodeK n) |
| static bool | isBaseObjVarKinds (GNodeK n) |
| static bool | isConstantDataObjVarKinds (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) |
| typedef Set<const CallPE*> SVF::VFGNode::CallPESet |
| typedef VFGEdge::VFGEdgeSetTy::const_iterator SVF::VFGNode::const_iterator |
| typedef VFGEdge::VFGEdgeSetTy::iterator SVF::VFGNode::iterator |
| typedef Set<const RetPE*> SVF::VFGNode::RetPESet |
| typedef GNodeK SVF::VFGNode::VFGNodeK |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
pure virtual |
Return the left hand side SVF Vars.
Implemented in SVF::ActualParmVFGNode, SVF::ActualRetVFGNode, SVF::AddrVFGNode, SVF::BinaryOPVFGNode, SVF::BranchVFGNode, SVF::CmpVFGNode, SVF::CopyVFGNode, SVF::DummyVersionPropSVFGNode, SVF::FormalParmVFGNode, SVF::FormalRetVFGNode, SVF::GepVFGNode, SVF::LoadVFGNode, SVF::MRSVFGNode, SVF::NullPtrVFGNode, SVF::PHIVFGNode, SVF::StoreVFGNode, and SVF::UnaryOPVFGNode.
|
inlinevirtual |
Get the function of this SVFGNode.
Reimplemented in SVF::FormalParmVFGNode, SVF::FormalRetVFGNode, SVF::InterMSSAPHISVFGNode, and SVF::InterPHIVFGNode.
|
inlinevirtual |
|
inlinevirtual |
Return the corresponding LLVM value, if possible, nullptr otherwise.
Reimplemented in SVF::ArgumentVFGNode, SVF::BinaryOPVFGNode, SVF::CmpVFGNode, SVF::PHIVFGNode, and SVF::StmtVFGNode.
Definition at line 85 of file VFGNode.h.
|
inlinevirtual |
|
virtual |
Reimplemented in SVF::ActualINSVFGNode, SVF::ActualOUTSVFGNode, SVF::ActualParmVFGNode, SVF::ActualRetVFGNode, SVF::AddrVFGNode, SVF::ArgumentVFGNode, SVF::BinaryOPVFGNode, SVF::BranchVFGNode, SVF::CmpVFGNode, SVF::CopyVFGNode, SVF::FormalINSVFGNode, SVF::FormalOUTSVFGNode, SVF::FormalParmVFGNode, SVF::FormalRetVFGNode, SVF::GepVFGNode, SVF::InterMSSAPHISVFGNode, SVF::InterPHIVFGNode, SVF::IntraMSSAPHISVFGNode, SVF::IntraPHIVFGNode, SVF::LoadVFGNode, SVF::MRSVFGNode, SVF::MSSAPHISVFGNode, SVF::NullPtrVFGNode, SVF::PHIVFGNode, SVF::StmtVFGNode, SVF::StoreVFGNode, and SVF::UnaryOPVFGNode.
Definition at line 42 of file VFG.cpp.