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