| 9 | namespace ftg { |
| 10 | |
| 11 | DefAnalyzer::DefAnalyzer(UTLoader *Loader, std::vector<Unittest> Unittests, |
| 12 | std::set<llvm::Function *> TargetFunctions, |
| 13 | std::shared_ptr<ASTIRMap> ASTMap) |
| 14 | : Loader(Loader), TargetFunctions(TargetFunctions), |
| 15 | Finder(std::make_unique<TargetAPIFinder>(TargetFunctions)), |
| 16 | ASTMap(ASTMap), Unittests(Unittests) { |
| 17 | assert(Loader && "Unexpected Program State"); |
| 18 | initializeRDAnalyzer(Loader->getSourceCollection(), |
| 19 | Loader->getDirectionReport(), |
| 20 | Loader->getFilePathReport()); |
| 21 | analyze(); |
| 22 | } |
| 23 | |
| 24 | void DefAnalyzer::analyze() { |
| 25 | if (!Loader) |
nothing calls this directly
no test coverage detected