56 PTAVector::const_iterator it =
ptaVector.begin();
57 PTAVector::const_iterator eit =
ptaVector.end();
58 for (; it != eit; ++it)
77 assert(!
ptaVector.empty() &&
"No pointer analysis is specified.\n");
113 assert(
false &&
"This pointer analysis has not been implemented yet.\n");
150 <<
"@" << (fun1==
nullptr?
"":fun1->
getName()) <<
"] --"
152 <<
"@" << (fun2==
nullptr?
"":fun2->
getName()) <<
"]\n";
160 assert(
_pta &&
"initialize a pointer analysis first");
161 return _pta->getPts(var);
170 return _svfg->getMSSA()->getMRGenerator()->getModRefInfo(callInst);
180 return _svfg->getMSSA()->getMRGenerator()->getModRefInfo(callInst1, callInst2);
iterator begin()
Iterators.
IDToNodeMapTy::iterator iterator
static OptionMultiple< PTATY > PASelected
static const Option< bool > PrintAliases
static const Option< bool > AnderSVFG
virtual AliasResult alias(const SVFVar *V1, const SVFVar *V2)=0
Interface exposed to users of our pointer analysis, given Value infos.
SVFG * buildFullSVFG(BVDataPTAImpl *pta)
NodeID getId() const
Get ID.
virtual const std::string & getName() const
virtual const FunObjVar * getFunction() const
Get containing function, or null for globals/constants.
PointerAnalysis * _pta
pointer analysis to be executed.
PTAVector ptaVector
all pointer analysis to be executed.
virtual ~WPAPass()
Destructor.
virtual ModRefInfo getModRefInfo(const CallICFGNode *callInst)
Interface of mod-ref analysis to determine whether a CallSite instruction can mod or ref any memory l...
virtual const PointsTo & getPts(NodeID var)
Retrieve points-to set information.
virtual void PrintAliasPairs(PointerAnalysis *pta)
Print all alias pairs.
SVFG * _svfg
svfg generated through -ander pointer analysis
void runPointerAnalysis(SVFIR *pag, u32_t kind)
Create pointer analysis according to specified kind and analyze the module.
virtual void runOnModule(SVFIR *svfModule)
Run pointer analysis on SVFModule.
LLVM_NODISCARD bool isa(const Y &Val)
std::ostream & outs()
Overwrite llvm::outs().
PTATY
Pointer analysis type list.
@ VFS_WPA
Versioned sparse flow-sensitive WPA.
@ Andersen_WPA
Andersen PTA.
@ Default_PTA
default pta without any analysis
@ FSSPARSE_WPA
Sparse flow sensitive WPA.
@ AndersenSFR_WPA
Stride-based field representation.
@ AndersenWaveDiff_WPA
Diff wave propagation andersen-style WPA.
@ TypeCPP_WPA
Type-based analysis for C++.
@ Steensgaard_WPA
Steensgaard PTA.
@ AndersenSCD_WPA
Selective cycle detection andersen-style WPA.