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

#include <MSSAMuChi.h>

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

Public Member Functions

 RetMU (const SVFFunction *f, const MemRegion *m, Cond c=true)
 Constructor/Destructor for MU. More...
 
virtual ~RetMU ()
 
const SVFFunctiongetFunction () const
 Return function. 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 RetMU *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const MSSAMU< Cond > *mu)
 

Private Attributes

const SVFFunctionfun
 

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::RetMU< Cond >

RetMU is annotated at function return, representing memory objects returns to callers

Definition at line 277 of file MSSAMuChi.h.

Constructor & Destructor Documentation

◆ RetMU()

template<class Cond >
SVF::RetMU< Cond >::RetMU ( const SVFFunction f,
const MemRegion m,
Cond  c = true 
)
inline

Constructor/Destructor for MU.

Definition at line 284 of file MSSAMuChi.h.

284  :
285  MSSAMU<Cond>(MSSAMU<Cond>::RetMSSAMU,m,c), fun(f)
286  {
287  }
const SVFFunction * fun
Definition: MSSAMuChi.h:280

◆ ~RetMU()

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

Definition at line 288 of file MSSAMuChi.h.

288 {}

Member Function Documentation

◆ classof() [1/2]

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

Definition at line 303 of file MSSAMuChi.h.

304  {
305  return mu->getType() == MSSAMU<Cond>::RetMSSAMU;
306  }

◆ classof() [2/2]

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

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

Definition at line 299 of file MSSAMuChi.h.

300  {
301  return true;
302  }

◆ dump()

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

Print MU.

Reimplemented from SVF::MSSAMU< Cond >.

Definition at line 310 of file MSSAMuChi.h.

311  {
312  SVFUtil::outs() << "RETMU(MR_" << this->getMR()->getMRID() << "V_" << this->getMRVer()->getSSAVersion() << ") \t" <<
313  this->getMR()->dumpStr() << "\n";
314  }
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

◆ getFunction()

template<class Cond >
const SVFFunction* SVF::RetMU< Cond >::getFunction ( ) const
inline

Return function.

Definition at line 292 of file MSSAMuChi.h.

293  {
294  return fun;
295  }

Member Data Documentation

◆ fun

template<class Cond >
const SVFFunction* SVF::RetMU< Cond >::fun
private

Definition at line 280 of file MSSAMuChi.h.


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