| 8 | namespace ftg { |
| 9 | |
| 10 | FilePathAnalyzer::FilePathAnalyzer(IndCallSolverMgr *Solver, |
| 11 | std::vector<const Function *> Funcs, |
| 12 | const FilePathAnalysisReport *PreReport) |
| 13 | : ArgFlowAnalyzer(Solver, Funcs) { |
| 14 | if (Funcs.size() == 0) |
| 15 | return; |
| 16 | |
| 17 | if (PreReport) { |
| 18 | for (const auto &Iter : PreReport->get()) |
| 19 | Report.set(Iter.first, Iter.second); |
| 20 | } |
| 21 | |
| 22 | analyze(Funcs); |
| 23 | } |
| 24 | |
| 25 | std::unique_ptr<AnalyzerReport> FilePathAnalyzer::getReport() { |
| 26 | return std::make_unique<FilePathAnalysisReport>(Report); |