Static Value-Flow Analysis
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SVF::LoadMU< Cond > Class Template Reference

#include <MSSAMuChi.h>

Inheritance diagram for SVF::LoadMU< Cond >:
SVF::MSSAMU< Cond >

Public Member Functions

 LoadMU (const SVFBasicBlock *b, const LoadStmt *i, const MemRegion *m, Cond c=true)
 Constructor/Destructor for MU. More...
 
virtual ~LoadMU ()
 
const LoadStmtgetLoadStmt () const
 Return load instruction. More...
 
const SVFBasicBlockgetBasicBlock () const
 Return basic block. More...
 
virtual void dump ()
 Print MU. More...
 
- Public Member Functions inherited from SVF::MSSAMU< Cond >
 MSSAMU (MUTYPE t, const MemRegion *m, Cond c)
 Constructor/Destructor for MU. More...
 
virtual ~MSSAMU ()
 
const MemRegiongetMR () const
 Return MR. More...
 
MUTYPE getType () const
 Return type. More...
 
void setVer (MRVer *v)
 Set Ver. More...
 
MRVergetMRVer () const
 Get Ver. More...
 
Cond getCond () const
 Return condition. More...
 
bool operator< (const MSSAMU &rhs) const
 Avoid adding duplicated mus. More...
 

Static Public Member Functions

static bool classof (const LoadMU *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const MSSAMU< Cond > *mu)
 

Private Attributes

const LoadStmtinst
 
const SVFBasicBlockbb
 

Additional Inherited Members

- Public Types inherited from SVF::MSSAMU< Cond >
enum  MUTYPE { LoadMSSAMU , CallMSSAMU , RetMSSAMU }
 
- Protected Attributes inherited from SVF::MSSAMU< Cond >
MUTYPE type
 
const MemRegionmr
 
MRVerver
 
Cond cond
 

Detailed Description

template<class Cond>
class SVF::LoadMU< Cond >

LoadMU is annotated at each load instruction, representing a memory object is read here

Definition at line 165 of file MSSAMuChi.h.

Constructor & Destructor Documentation

◆ LoadMU()

template<class Cond >
SVF::LoadMU< Cond >::LoadMU ( const SVFBasicBlock b,
const LoadStmt i,
const MemRegion m,
Cond  c = true 
)
inline

Constructor/Destructor for MU.

Definition at line 175 of file MSSAMuChi.h.

175  :
176  MSSAMU<Cond>(MSSAMU<Cond>::LoadMSSAMU,m,c), inst(i), bb(b)
177  {
178  }
const cJSON *const b
Definition: cJSON.h:255
const LoadStmt * inst
Definition: MSSAMuChi.h:169
const SVFBasicBlock * bb
Definition: MSSAMuChi.h:170

◆ ~LoadMU()

template<class Cond >
virtual SVF::LoadMU< Cond >::~LoadMU ( )
inlinevirtual

Definition at line 179 of file MSSAMuChi.h.

180  {
181 
182  }

Member Function Documentation

◆ classof() [1/2]

template<class Cond >
static bool SVF::LoadMU< Cond >::classof ( const LoadMU< Cond > *  )
inlinestatic

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

Definition at line 199 of file MSSAMuChi.h.

200  {
201  return true;
202  }

◆ classof() [2/2]

template<class Cond >
static bool SVF::LoadMU< Cond >::classof ( const MSSAMU< Cond > *  mu)
inlinestatic

Definition at line 203 of file MSSAMuChi.h.

204  {
205  return mu->getType() == MSSAMU<Cond>::LoadMSSAMU;
206  }

◆ dump()

template<class Cond >
virtual void SVF::LoadMU< Cond >::dump ( )
inlinevirtual

Print MU.

Reimplemented from SVF::MSSAMU< Cond >.

Definition at line 210 of file MSSAMuChi.h.

211  {
212  SVFUtil::outs() << "LDMU(MR_" << this->getMR()->getMRID() << "V_" << this->getMRVer()->getSSAVersion() << ") \t" <<
213  this->getMR()->dumpStr() << "\n";
214  }
MRVERSION getSSAVersion() const
Return SSA version.
Definition: MSSAMuChi.h:69
const MemRegion * getMR() const
Return MR.
Definition: MSSAMuChi.h:121
MRVer * getMRVer() const
Get Ver.
Definition: MSSAMuChi.h:137
MRID getMRID() const
Return memory region ID.
Definition: MemRegion.h:78
std::string dumpStr() const
Dump string.
Definition: MemRegion.h:93
std::ostream & outs()
Overwrite llvm::outs()
Definition: SVFUtil.h:50

◆ getBasicBlock()

template<class Cond >
const SVFBasicBlock* SVF::LoadMU< Cond >::getBasicBlock ( ) const
inline

Return basic block.

Definition at line 192 of file MSSAMuChi.h.

193  {
194  return bb;
195  }

◆ getLoadStmt()

template<class Cond >
const LoadStmt* SVF::LoadMU< Cond >::getLoadStmt ( ) const
inline

Return load instruction.

Definition at line 186 of file MSSAMuChi.h.

187  {
188  return inst;
189  }

Member Data Documentation

◆ bb

template<class Cond >
const SVFBasicBlock* SVF::LoadMU< Cond >::bb
private

Definition at line 170 of file MSSAMuChi.h.

◆ inst

template<class Cond >
const LoadStmt* SVF::LoadMU< Cond >::inst
private

Definition at line 169 of file MSSAMuChi.h.


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