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

#include <MSSAMuChi.h>

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

Public Member Functions

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

Static Public Member Functions

static bool classof (const CallCHI *chi)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
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: More...
 
static bool classof (const MSSADEF *chi)
 

Private Attributes

const CallICFGNodecallsite
 

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

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

Definition at line 521 of file MSSAMuChi.h.

Constructor & Destructor Documentation

◆ CallCHI()

template<class Cond >
SVF::CallCHI< Cond >::CallCHI ( const CallICFGNode cs,
const MemRegion m,
Cond  c = true 
)
inline

Constructors for StoreCHI.

Definition at line 528 of file MSSAMuChi.h.

528  :
529  MSSACHI<Cond>(MSSADEF::CallMSSACHI,m,c), callsite(cs)
530  {
531  }
const CallICFGNode * callsite
Definition: MSSAMuChi.h:524

◆ ~CallCHI()

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

Definition at line 532 of file MSSAMuChi.h.

533  {
534  }

Member Function Documentation

◆ classof() [1/3]

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

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

Definition at line 551 of file MSSAMuChi.h.

552  {
553  return true;
554  }

◆ classof() [2/3]

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

Definition at line 555 of file MSSAMuChi.h.

556  {
557  return chi->getType() == MSSADEF::CallMSSACHI;
558  }

◆ classof() [3/3]

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

Definition at line 559 of file MSSAMuChi.h.

560  {
561  return chi->getType() == MSSADEF::CallMSSACHI;
562  }

◆ dump()

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

Print CHI.

Reimplemented from SVF::MSSACHI< Cond >.

Definition at line 566 of file MSSAMuChi.h.

567  {
568  SVFUtil::outs() << this->getMR()->getMRID() << "V_" << this->getResVer()->getSSAVersion() <<
569  " = CALCHI(MR_" << this->getMR()->getMRID() << "V_" << this->getOpVer()->getSSAVersion() << ") \t" <<
570  this->getMR()->dumpStr() << "\n";
571  }
MRVERSION getSSAVersion() const
Return SSA version.
Definition: MSSAMuChi.h:69
MRVer * getOpVer() const
Get operand ver.
Definition: MSSAMuChi.h:421
MRVer * getResVer() const
Set operand vers.
Definition: MSSAMuChi.h:373
const MemRegion * getMR() const
Return memory region.
Definition: MSSAMuChi.h:354
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::CallCHI< Cond >::getBasicBlock ( ) const
inline

Return basic block.

Definition at line 538 of file MSSAMuChi.h.

539  {
540  return callsite->getBB();
541  }
virtual const SVFBasicBlock * getBB() const
Return the basic block of this ICFGNode.
Definition: ICFGNode.h:82

◆ getCallSite()

template<class Cond >
const CallICFGNode* SVF::CallCHI< Cond >::getCallSite ( ) const
inline

Return callsite.

Definition at line 544 of file MSSAMuChi.h.

545  {
546  return callsite;
547  }

Member Data Documentation

◆ callsite

template<class Cond >
const CallICFGNode* SVF::CallCHI< Cond >::callsite
private

Definition at line 524 of file MSSAMuChi.h.


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