Static Value-Flow Analysis
Loading...
Searching...
No Matches
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 CallCHI.
 
virtual ~CallCHI ()
 
const SVFBasicBlockgetBasicBlock () const
 Return basic block.
 
const CallICFGNodegetCallSite () const
 Return callsite.
 
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 CallCHI *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 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 >

CallCHI is annotated at callsite, representing a memory object is indirect modified by callee

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 CallCHI.

Definition at line 528 of file MSSAMuChi.h.

528 :
530 {
531 }
const CallICFGNode * callsite
Definition MSSAMuChi.h:524
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

◆ ~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: