109 u32_t maxNumOfDPMPerLoc = 0;
114 for(FlowDDA::LocToDPMVecMap::const_iterator it =
flowDDA->getLocToDPMVecMap().begin(),
115 eit =
flowDDA->getLocToDPMVecMap().end(); it!=eit; ++it)
118 u32_t num = it->second.size();
120 if(num > maxNumOfDPMPerLoc)
121 maxNumOfDPMPerLoc = num;
123 cptsSize =
flowDDA->getPts(ptr).count();
128 for(ContextDDA::LocToDPMVecMap::const_iterator it =
contextDDA->getLocToDPMVecMap().begin(),
129 eit =
contextDDA->getLocToDPMVecMap().end(); it!=eit; ++it)
132 u32_t num = it->second.size();
134 if(num > maxNumOfDPMPerLoc)
135 maxNumOfDPMPerLoc = num;
144 double avgDPMAtLoc = NumOfLoc!=0 ? (double)NumOfDPM/NumOfLoc : 0;
160 if(
getPTA()->containBlackHoleNode(pts))
164 if(
getPTA()->containConstantNode(pts))
230 PAGNode* pagNode = nodeIt->second;
233 if(
getPTA()->isLocalVarInRecursiveFun(nodeIt->first))
278 unsigned field_width = 20;
279 SVFUtil::outs() <<
"---------------------Stat Per Query--------------------------------\n";
283 SVFUtil::outs() << std::setw(field_width) << it->first << it->second <<
"\n";
288 SVFUtil::outs() << std::setw(field_width) << it->first << it->second <<
"\n";
301 flowDDA->getSVFG()->getStat()->performSCCStat(edgeSet);
308 SVFUtil::outs() <<
"\n****Demand-Driven Pointer Analysis Statistics****\n";
void performStatPerQuery(NodeID ptr) override
u32_t _TotalNumOfInfeasiblePath
u32_t _TotalNumOfOutOfBudgetQuery
double _AvgNumOfDPMAtSVFGNode
u32_t _TotalNumOfMustAliases
PointerAnalysis * getPTA() const
u32_t _NumOfStrongUpdates
u32_t _NumOfInfeasiblePath
void performStat() override
u32_t _TotalNumOfStrongUpdates
u32_t _MaxNumOfDPMAtSVFGNode
NUMStatMap NumPerQueryStatMap
double _TotalTimeOfBKCondition
double _AnaTimeCyclePerQuery
double _TotalTimeOfQueries
u32_t _TotalNumOfStepInCycle
NodeBS _StrongUpdateStores
u32_t _NumOfIndCallEdgeSolved
void printStatPerQuery(NodeID ptr, const PointsTo &pts) override
void printStat(std::string str="") override
OrderedSet< const SVFGEdge * > ConstSVFGEdgeSet
IDToNodeMapTy::const_iterator const_iterator
static PAG * getPAG(bool buildFromFile=false)
Singleton design here to make sure we only have one instance during any analysis.
SVFStmt::SVFStmtSetTy & getPTASVFStmtSet(SVFStmt::PEDGEK kind)
Get PTA edges set according to its kind.
NodeBS localVarInRecursion
PTAStat(PointerAnalysis *p)
void callgraphStat() override
virtual void dumpPts(NodeID ptr, const PointsTo &pts)
u32_t getNumOfResolvedIndCallEdge() const
Return number of resolved indirect call edges.
u32_t count() const
Returns number of elements.
virtual void printStat(std::string str="")
LLVM_NODISCARD bool isa(const Y &Val)
std::ostream & outs()
Overwrite llvm::outs().
CondVar< ContextCond > CxtVar