Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
SVF::MSSAMU< Cond > Class Template Reference

#include <MSSAMuChi.h>

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

Public Types

enum  MUTYPE { LoadMSSAMU , CallMSSAMU , RetMSSAMU }
 

Public Member Functions

 MSSAMU (MUTYPE t, const MemRegion *m, Cond c)
 Constructor/Destructor for MU.
 
virtual ~MSSAMU ()
 
const MemRegiongetMR () const
 Return MR.
 
MUTYPE getType () const
 Return type.
 
void setVer (MRVer *v)
 Set Ver.
 
MRVergetMRVer () const
 Get Ver.
 
Cond getCond () const
 Return condition.
 
bool operator< (const MSSAMU &rhs) const
 Avoid adding duplicated mus.
 
virtual void dump ()
 Print MU.
 

Protected Attributes

MUTYPE type
 
const MemRegionmr
 
MRVerver
 
Cond cond
 

Detailed Description

template<class Cond>
class SVF::MSSAMU< Cond >

Indirect Memory Read 1) LoadMU at each store instruction 2) CallMU at callsite 3) RetMU at function return

Definition at line 96 of file MSSAMuChi.h.

Member Enumeration Documentation

◆ MUTYPE

Enumerator
LoadMSSAMU 
CallMSSAMU 
RetMSSAMU 

Definition at line 100 of file MSSAMuChi.h.

Constructor & Destructor Documentation

◆ MSSAMU()

template<class Cond >
SVF::MSSAMU< Cond >::MSSAMU ( MUTYPE  t,
const MemRegion m,
Cond  c 
)
inline

Constructor/Destructor for MU.

Definition at line 113 of file MSSAMuChi.h.

113 : type(t), mr(m), ver(nullptr), cond(c)
114 {
115 }
MUTYPE type
Definition MSSAMuChi.h:106
const MemRegion * mr
Definition MSSAMuChi.h:107
MRVer * ver
Definition MSSAMuChi.h:108
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ ~MSSAMU()

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

Definition at line 116 of file MSSAMuChi.h.

117 {
118 }

Member Function Documentation

◆ dump()

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

Print MU.

Reimplemented in SVF::LoadMU< Cond >, SVF::CallMU< Cond >, and SVF::RetMU< Cond >.

Definition at line 155 of file MSSAMuChi.h.

156 {
157 SVFUtil::outs() << "MU(MR_" << mr->getMRID() << "V_" << ver->getSSAVersion() << ") \t" <<
158 this->getMR()->dumpStr() << "\n";
159 }
MRVERSION getSSAVersion() const
Return SSA version.
Definition MSSAMuChi.h:70
const MemRegion * getMR() const
Return MR.
Definition MSSAMuChi.h:122
MRID getMRID() const
Return memory region ID.
Definition MemRegion.h:82
std::string dumpStr() const
Dump string.
Definition MemRegion.h:97
std::ostream & outs()
Overwrite llvm::outs()
Definition SVFUtil.h:52

◆ getCond()

template<class Cond >
Cond SVF::MSSAMU< Cond >::getCond ( ) const
inline

Return condition.

Definition at line 144 of file MSSAMuChi.h.

145 {
146 return cond;
147 }

◆ getMR()

template<class Cond >
const MemRegion * SVF::MSSAMU< Cond >::getMR ( ) const
inline

Return MR.

Definition at line 122 of file MSSAMuChi.h.

123 {
124 return mr;
125 }

◆ getMRVer()

template<class Cond >
MRVer * SVF::MSSAMU< Cond >::getMRVer ( ) const
inline

Get Ver.

Definition at line 138 of file MSSAMuChi.h.

139 {
140 assert(ver!=nullptr && "version is nullptr, did not rename?");
141 return ver;
142 }

◆ getType()

template<class Cond >
MUTYPE SVF::MSSAMU< Cond >::getType ( ) const
inline

Return type.

Definition at line 127 of file MSSAMuChi.h.

128 {
129 return type;
130 }

◆ operator<()

template<class Cond >
bool SVF::MSSAMU< Cond >::operator< ( const MSSAMU< Cond > &  rhs) const
inline

Avoid adding duplicated mus.

Definition at line 150 of file MSSAMuChi.h.

151 {
152 return mr > rhs.getMR();
153 }

◆ setVer()

template<class Cond >
void SVF::MSSAMU< Cond >::setVer ( MRVer v)
inline

Set Ver.

Definition at line 132 of file MSSAMuChi.h.

133 {
134 assert(v->getMR() == mr && "inserting different memory region?");
135 ver = v;
136 }

Member Data Documentation

◆ cond

template<class Cond >
Cond SVF::MSSAMU< Cond >::cond
protected

Definition at line 109 of file MSSAMuChi.h.

◆ mr

template<class Cond >
const MemRegion* SVF::MSSAMU< Cond >::mr
protected

Definition at line 107 of file MSSAMuChi.h.

◆ type

template<class Cond >
MUTYPE SVF::MSSAMU< Cond >::type
protected

Definition at line 106 of file MSSAMuChi.h.

◆ ver

template<class Cond >
MRVer* SVF::MSSAMU< Cond >::ver
protected

Definition at line 108 of file MSSAMuChi.h.


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