File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -577,22 +577,22 @@ void SVFG::dump(const std::string& file, bool simple)
577
577
578
578
std::set<const SVFGNode*> SVFG::fromValue (const llvm::Value* value) const
579
579
{
580
- SVFIR* pag = SVFIR::getPAG ();
580
+ SVFIR* svfir = SVFIR::getPAG ();
581
581
std::set<const SVFGNode*> ret;
582
- // search for all PAGEdges first
583
- for (const PAGEdge* pagEdge : pag ->getValueEdges (value))
582
+ // search for all SVFStmts first
583
+ for (const SVFStmt* svfStmt : svfir ->getValueEdges (value))
584
584
{
585
- PAGEdgeToStmtVFGNodeMapTy::const_iterator it = PAGEdgeToStmtVFGNodeMap.find (pagEdge );
585
+ PAGEdgeToStmtVFGNodeMapTy::const_iterator it = PAGEdgeToStmtVFGNodeMap.find (svfStmt );
586
586
if (it != PAGEdgeToStmtVFGNodeMap.end ())
587
587
{
588
588
ret.emplace (it->second );
589
589
}
590
590
}
591
- // add all PAGNodes
592
- PAGNode* pagNode = pag ->getGNode (pag ->getValueNode (value));
593
- if (hasDef (pagNode ))
591
+ // add all SVFVars
592
+ SVFVar* svfVar = svfir ->getGNode (svfir ->getValueNode (value));
593
+ if (hasDef (svfVar ))
594
594
{
595
- ret.emplace (getDefSVFGNode (pagNode ));
595
+ ret.emplace (getDefSVFGNode (svfVar ));
596
596
}
597
597
return ret;
598
598
}
You can’t perform that action at this time.
0 commit comments