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

#include <MSSAMuChi.h>

Inheritance diagram for SVF::StoreCHI< Cond >:
SVF::MSSACHI< Cond > SVF::MSSADEF

Public Member Functions

 StoreCHI (const SVFBasicBlock *b, const StoreStmt *i, const MemRegion *m, Cond c=true)
 Constructors for StoreCHI.
 
virtual ~StoreCHI ()
 
const SVFBasicBlockgetBasicBlock () const
 Get basic block.
 
const StoreStmtgetStoreStmt () const
 Get store instruction.
 
virtual void dump ()
 Print CHI.
 
- Public Member Functions inherited from SVF::MSSACHI< Cond >
 MSSACHI (CHITYPE t, const MemRegion *m, Cond c)
 Constructor/Destructor for MSSACHI.
 
virtual ~MSSACHI ()
 
void setOpVer (MRVer *v)
 Set operand ver.
 
MRVergetOpVer () const
 Get operand ver.
 
Cond getCond () const
 Get condition.
 
- Public Member Functions inherited from SVF::MSSADEF
 MSSADEF (DEFTYPE t, const MemRegion *m)
 Constructor/Destructor for MSSADEF.
 
virtual ~MSSADEF ()
 
const MemRegiongetMR () const
 Return memory region.
 
DEFTYPE getType () const
 Return type of this CHI.
 
void setResVer (MRVer *v)
 Set result operand ver.
 
MRVergetResVer () const
 Set operand vers.
 
bool operator< (const MSSADEF &rhs) const
 Avoid adding duplicated chis and phis.
 

Static Public Member Functions

static bool classof (const StoreCHI *chi)
 Methods for support type inquiry through isa, cast, and dyn_cast:
 
static bool classof (const MSSACHI< Cond > *chi)
 
static bool classof (const MSSADEF *chi)
 
- Static Public Member Functions inherited from SVF::MSSACHI< Cond >
static bool classof (const MSSACHI *chi)
 Methods for support type inquiry through isa, cast, and dyn_cast:
 
static bool classof (const MSSADEF *chi)
 

Private Attributes

const SVFBasicBlockbb
 
const StoreStmtinst
 

Additional Inherited Members

- Public Types inherited from SVF::MSSACHI< Cond >
typedef MSSADEF::DEFTYPE CHITYPE
 
- Public Types inherited from SVF::MSSADEF
enum  DEFTYPE {
  SSACHI , StoreMSSACHI , CallMSSACHI , EntryMSSACHI ,
  SSAPHI
}
 
- Protected Attributes inherited from SVF::MSSADEF
DEFTYPE type
 
const MemRegionmr
 
MRVerresVer
 

Detailed Description

template<class Cond>
class SVF::StoreCHI< Cond >

StoreCHI is annotated at each store instruction, representing a memory object is modified here

Definition at line 462 of file MSSAMuChi.h.

Constructor & Destructor Documentation

◆ StoreCHI()

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

Constructors for StoreCHI.

Definition at line 470 of file MSSAMuChi.h.

470 :
472 {
473 }
const cJSON *const b
Definition cJSON.h:255
const StoreStmt * inst
Definition MSSAMuChi.h:466
const SVFBasicBlock * bb
Definition MSSAMuChi.h:465
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ ~StoreCHI()

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

Definition at line 474 of file MSSAMuChi.h.

475 {
476 }

Member Function Documentation

◆ classof() [1/3]

template<class Cond >
static bool SVF::StoreCHI< Cond >::classof ( const MSSACHI< Cond > *  chi)
inlinestatic

Definition at line 497 of file MSSAMuChi.h.

498 {
499 return chi->getType() == MSSADEF::StoreMSSACHI;
500 }

◆ classof() [2/3]

template<class Cond >
static bool SVF::StoreCHI< Cond >::classof ( const MSSADEF chi)
inlinestatic

Definition at line 501 of file MSSAMuChi.h.

502 {
503 return chi->getType() == MSSADEF::StoreMSSACHI;
504 }

◆ classof() [3/3]

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

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

Definition at line 493 of file MSSAMuChi.h.

494 {
495 return true;
496 }

◆ dump()

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

Print CHI.

Reimplemented from SVF::MSSACHI< Cond >.

Definition at line 508 of file MSSAMuChi.h.

509 {
510 SVFUtil::outs() << this->getMR()->getMRID() << "V_" << this->getResVer()->getSSAVersion() <<
511 " = STCHI(MR_" << this->getMR()->getMRID() << "V_" << this->getOpVer()->getSSAVersion() << ") \t" <<
512 this->getMR()->dumpStr() << "\n";
513 }
MRVERSION getSSAVersion() const
Return SSA version.
Definition MSSAMuChi.h:70
MRVer * getOpVer() const
Get operand ver.
Definition MSSAMuChi.h:422
MRVer * getResVer() const
Set operand vers.
Definition MSSAMuChi.h:374
const MemRegion * getMR() const
Return memory region.
Definition MSSAMuChi.h:355
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

◆ getBasicBlock()

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

Get basic block.

Definition at line 480 of file MSSAMuChi.h.

481 {
482 return bb;
483 }

◆ getStoreStmt()

template<class Cond >
const StoreStmt * SVF::StoreCHI< Cond >::getStoreStmt ( ) const
inline

Get store instruction.

Definition at line 486 of file MSSAMuChi.h.

487 {
488 return inst;
489 }

Member Data Documentation

◆ bb

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

Definition at line 465 of file MSSAMuChi.h.

◆ inst

template<class Cond >
const StoreStmt* SVF::StoreCHI< Cond >::inst
private

Definition at line 466 of file MSSAMuChi.h.


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