#include <SlicedGraphs.h>
Definition at line 300 of file SlicedGraphs.h.
◆ SlicedSVFIRView()
Definition at line 808 of file SlicedGraphs.cpp.
813{
814
815
816
818
819
822 {
823 if (node != nullptr && node->getFun() != nullptr)
824 {
826 }
827 }
829 {
832 }
833
834 tcgView = std::make_unique<SlicedThreadCallGraphView>(
836
837
838 icfgView = std::make_unique<SlicedICFGView>(
840}
FunExitICFGNode * getFunExitICFGNode(const FunObjVar *fun)
Add a function exit node.
FunEntryICFGNode * getFunEntryICFGNode(const FunObjVar *fun)
Add a function entry node.
std::unique_ptr< SlicedThreadCallGraphView > tcgView
std::unique_ptr< SlicedICFGView > icfgView
llvm::IRBuilder IRBuilder
◆ dumpAll()
| void SVF::SlicedSVFIRView::dumpAll |
( |
const std::string & |
prefix | ) |
const |
Dump all views to files.
Definition at line 858 of file SlicedGraphs.cpp.
859{
863}
void dump(const std::string &filename) const
Dump the sliced PAG to a dot file.
const SlicedPAGView * getPAG() const
Get SlicedPAGView.
◆ dumpStats()
| void SVF::SlicedSVFIRView::dumpStats |
( |
const std::string & |
prefix = "" | ) |
const |
Output statistics.
Definition at line 865 of file SlicedGraphs.cpp.
866{
873 {
874 SVFUtil::outs() <<
" Indirect callsites that lost all targets: "
876 }
877}
const Set< const FunObjVar * > & getKeptFunctions() const
Get all kept functions.
const OrderedSet< const SVFStmt * > & getKeptStatements() const
Get all kept statements.
const Set< const CallICFGNode * > & getIndirectSitesWithEmptyTargets() const
Get indirect call sites that lost all targets after filtering.
std::ostream & outs()
Overwrite llvm::outs()
◆ ensurePAGView()
| void SVF::SlicedSVFIRView::ensurePAGView |
( |
| ) |
const |
|
private |
Definition at line 842 of file SlicedGraphs.cpp.
843{
845 return;
846
847
848
851 {
854 }
855 pagView = std::make_unique<SlicedPAGView>(
svfir, keptStmts);
856}
std::list< const SVFStmt * > SVFStmtList
std::unique_ptr< SlicedPAGView > pagView
◆ getICFG() [1/2]
◆ getICFG() [2/2]
◆ getIndirectSitesWithEmptyTargets()
Get indirect call sites that lost all targets after filtering.
Definition at line 347 of file SlicedGraphs.h.
348 {
349 return tcgView->getIndirectSitesWithEmptyTargets();
350 }
◆ getKeptFunctions()
Get all kept functions.
Definition at line 341 of file SlicedGraphs.h.
342 {
343 return tcgView->getKeptFunctions();
344 }
◆ getKeptStatements()
Get all kept statements.
Definition at line 353 of file SlicedGraphs.h.
354 {
356 }
const OrderedSet< const SVFStmt * > & getKeptStmts() const
Get all kept statements.
◆ getPAG() [1/2]
Definition at line 324 of file SlicedGraphs.h.
325 {
328 }
void ensurePAGView() const
◆ getPAG() [2/2]
◆ getSVFIR()
| SVFIR * SVF::SlicedSVFIRView::getSVFIR |
( |
| ) |
const |
|
inline |
◆ getThreadCallGraph() [1/2]
◆ getThreadCallGraph() [2/2]
◆ icfgView
◆ pagView
◆ svfir
| SVFIR* SVF::SlicedSVFIRView::svfir |
|
private |
◆ tcgView
The documentation for this class was generated from the following files: