MCPcopy Create free account
hub / github.com/Samsung/UTopia / DirectionAnalyzer

Method DirectionAnalyzer

lib/propanalysis/DirectionAnalyzer.cpp:13–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace ftg {
12
13DirectionAnalyzer::DirectionAnalyzer(
14 IndCallSolverMgr *Solver, const std::vector<const llvm::Function *> &Funcs,
15 const DirectionAnalysisReport *PreReport)
16 : ArgFlowAnalyzer(Solver, Funcs),
17 Report(std::make_unique<DirectionAnalysisReport>()) {
18 if (PreReport) {
19 for (const auto &Iter : PreReport->get())
20 Report->set(Iter.first, Iter.second);
21 }
22
23 if (Funcs.size() == 0)
24 return;
25
26 const auto *F = Funcs[0];
27 if (!F)
28 return;
29
30 const auto *M = F->getParent();
31 if (!M)
32 return;
33
34 updateDefault(*M);
35 analyze(Funcs);
36}
37
38std::unique_ptr<AnalyzerReport> DirectionAnalyzer::getReport() {
39 return std::move(Report);

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected