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

#include <SVFVariables.h>

Inheritance diagram for SVF::ConstantFPObjVar:
SVF::ConstantDataObjVar SVF::BaseObjVar SVF::ObjVar SVF::SVFVar SVF::GenericNode< NodeTy, EdgeTy > SVF::SVFBaseNode

Public Member Functions

 ConstantFPObjVar (const SVFValue *val, double dv, NodeID i, const MemObj *m, PNODEK ty=ConstantFPObjNode)
 Constructor.
 
double getFPValue () const
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::ConstantDataObjVar
 ConstantDataObjVar (const SVFValue *val, NodeID i, const MemObj *m, PNODEK ty=ConstantDataObjNode)
 Constructor.
 
- Public Member Functions inherited from SVF::BaseObjVar
 BaseObjVar (const SVFValue *val, NodeID i, const MemObj *mem, PNODEK ty=BaseObjNode)
 Constructor.
 
const std::string getValueName () const
 Return name of a LLVM value.
 
- Public Member Functions inherited from SVF::ObjVar
const MemObjgetMemObj () const
 Return memory object.
 
virtual const SVFTypegetType () const
 Return type of the value.
 
- Public Member Functions inherited from SVF::SVFVar
 SVFVar (const SVFValue *val, NodeID i, PNODEK k)
 Constructor.
 
virtual ~SVFVar ()
 Destructor.
 
const SVFValuegetValue () const
 Get/has methods of the components.
 
bool hasValue () const
 
virtual bool isPointer () const
 Whether it is a pointer.
 
bool isConstDataOrAggDataButNotNullPtr () const
 
virtual bool isIsolatedNode () const
 Whether this is an isolated node on the SVFIR graph.
 
virtual const SVFFunctiongetFunction () const
 
SVFStmt::SVFStmtSetTygetIncomingEdges (SVFStmt::PEDGEK kind)
 Get incoming SVFIR statements (edges)
 
SVFStmt::SVFStmtSetTygetOutgoingEdges (SVFStmt::PEDGEK kind)
 Get outgoing SVFIR statements (edges)
 
bool hasIncomingEdges (SVFStmt::PEDGEK kind) const
 Has incoming SVFIR statements (edges)
 
bool hasOutgoingEdges (SVFStmt::PEDGEK kind) const
 Has outgoing SVFIR statements (edges)
 
SVFStmt::SVFStmtSetTy::iterator getIncomingEdgesBegin (SVFStmt::PEDGEK kind) const
 Get incoming SVFStmt iterator.
 
SVFStmt::SVFStmtSetTy::iterator getIncomingEdgesEnd (SVFStmt::PEDGEK kind) const
 Get incoming SVFStmt iterator.
 
SVFStmt::SVFStmtSetTy::iterator getOutgoingEdgesBegin (SVFStmt::PEDGEK kind) const
 Get outgoing SVFStmt iterator.
 
SVFStmt::SVFStmtSetTy::iterator getOutgoingEdgesEnd (SVFStmt::PEDGEK kind) const
 Get outgoing SVFStmt iterator.
 
void dump () const
 Dump to console for debugging.
 
- Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy >
 GenericNode (NodeID i, GNodeK k)
 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)
 
EdgeTypehasIncomingEdge (EdgeType *edge) const
 Find incoming and outgoing edges.
 
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.
 
GNodeK getNodeKind () const
 Get node kind.
 
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 ConstantFPObjVar *)
 
static bool classof (const ConstantDataObjVar *node)
 
static bool classof (const BaseObjVar *node)
 
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::ConstantDataObjVar
static bool classof (const ConstantDataObjVar *)
 
static bool classof (const BaseObjVar *node)
 
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::BaseObjVar
static bool classof (const BaseObjVar *)
 Methods for support type inquiry through isa, cast, and dyn_cast:
 
static bool classof (const ObjVar *node)
 
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::ObjVar
static bool classof (const ObjVar *)
 Methods for support type inquiry through isa, cast, and dyn_cast:
 
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

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

Private Attributes

float dval
 

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.
 
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 , FunValNode ,
  GepValNode , RetNode , VarargNode , GlobalValNode ,
  ConstantDataValNode , BlackHoleNode , ConstantFPValNode , ConstantIntValNode ,
  ConstantNullptrValNode , DummyValNode , ObjNode , GepObjNode ,
  BaseObjNode , FunObjNode , HeapObjNode , StackObjNode ,
  GlobalObjNode , ConstantDataObjNode , ConstantFPObjNode , ConstantIntObjNode ,
  ConstantNullptrObjNode , 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::ConstantDataObjVar
 ConstantDataObjVar (NodeID i)
 Constructor to create empty DummyObjVar (for SVFIRReader/deserialization)
 
- Protected Member Functions inherited from SVF::BaseObjVar
 BaseObjVar (NodeID i, PNODEK ty=BaseObjNode)
 Constructor to create empty ObjVar (for SVFIRReader/deserialization)
 
- Protected Member Functions inherited from SVF::ObjVar
 ObjVar (NodeID i, PNODEK ty=ObjNode)
 Constructor to create an empty ObjVar (for SVFIRReader/deserialization)
 
 ObjVar (const SVFValue *val, NodeID i, const MemObj *m, PNODEK ty=ObjNode)
 Constructor.
 
- Protected Member Functions inherited from SVF::SVFVar
 SVFVar (NodeID i, PNODEK k)
 function containing this variable
 
- Static Protected Member Functions inherited from SVF::SVFBaseNode
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)
 
- Protected Attributes inherited from SVF::ObjVar
const MemObjmem
 
- Protected Attributes inherited from SVF::SVFVar
const SVFValuevalue
 value of this SVFIR node
 
SVFStmt::KindToSVFStmtMapTy InEdgeKindToSetMap
 
SVFStmt::KindToSVFStmtMapTy OutEdgeKindToSetMap
 
bool isPtr
 
const SVFFunctionfunc
 whether it is a pointer (top-level or address-taken)
 
- Protected Attributes inherited from SVF::SVFBaseNode
NodeID id
 Node ID.
 
GNodeK nodeKind
 Node kind.
 
const SVFTypetype
 SVF type.
 
std::string sourceLoc
 Source code information of this value.
 

Detailed Description

Definition at line 1209 of file SVFVariables.h.

Constructor & Destructor Documentation

◆ ConstantFPObjVar() [1/2]

SVF::ConstantFPObjVar::ConstantFPObjVar ( NodeID  i)
inlineprivate

Constructor to create empty DummyObjVar (for SVFIRReader/deserialization)

Definition at line 1216 of file SVFVariables.h.

ConstantDataObjVar(NodeID i)
Constructor to create empty DummyObjVar (for SVFIRReader/deserialization)
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

◆ ConstantFPObjVar() [2/2]

SVF::ConstantFPObjVar::ConstantFPObjVar ( const SVFValue val,
double  dv,
NodeID  i,
const MemObj m,
PNODEK  ty = ConstantFPObjNode 
)
inline

Constructor.

Definition at line 1258 of file SVFVariables.h.

1260 {
1261 }

Member Function Documentation

◆ classof() [1/7]

static bool SVF::ConstantFPObjVar::classof ( const BaseObjVar node)
inlinestatic

Definition at line 1231 of file SVFVariables.h.

1232 {
1233 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1234 }

◆ classof() [2/7]

static bool SVF::ConstantFPObjVar::classof ( const ConstantDataObjVar node)
inlinestatic

Definition at line 1227 of file SVFVariables.h.

1228 {
1229 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1230 }

◆ classof() [3/7]

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

Definition at line 1223 of file SVFVariables.h.

1224 {
1225 return true;
1226 }

◆ classof() [4/7]

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

Definition at line 1246 of file SVFVariables.h.

1247 {
1248 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1249 }

◆ classof() [5/7]

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

Definition at line 1241 of file SVFVariables.h.

1242 {
1243 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1244 }

◆ classof() [6/7]

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

Definition at line 1251 of file SVFVariables.h.

1252 {
1253 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1254 }

◆ classof() [7/7]

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

Definition at line 1236 of file SVFVariables.h.

1237 {
1238 return node->getNodeKind() == SVFVar::ConstantFPObjNode;
1239 }

◆ getFPValue()

double SVF::ConstantFPObjVar::getFPValue ( ) const
inline

Definition at line 1263 of file SVFVariables.h.

1264 {
1265 return dval;
1266 }

◆ toString()

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

Reimplemented from SVF::ConstantDataObjVar.

Definition at line 356 of file SVFVariables.cpp.

357{
358 std::string str;
359 std::stringstream rawstr(str);
360 rawstr << "ConstantFPObjVar ID: " << getId();
362 {
363 rawstr << "\n";
365 }
366 return rawstr.str();
367}
static const Option< bool > ShowSVFIRValue
Definition Options.h:122
NodeID getId() const
Get ID.
const std::string valueOnlyToString() const
Definition LLVMUtil.cpp:746

Friends And Related Symbol Documentation

◆ SVFIRReader

Definition at line 1212 of file SVFVariables.h.

◆ SVFIRWriter

Definition at line 1211 of file SVFVariables.h.

Member Data Documentation

◆ dval

float SVF::ConstantFPObjVar::dval
private

Definition at line 1219 of file SVFVariables.h.


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