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

Method add

lib/propanalysis/LoopAnalysisReport.cpp:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace ftg {
4
5void LoopAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) {
6 LoopAnalysisResult Result = {AF.LoopExit, AF.LoopDepth};
7 set(AF.getLLVMArg(), Result, Indices);
8
9 auto SI = AF.getStructInfo();
10 if (!SI)
11 return;
12 for (auto Iter : SI->FieldResults) {
13 if (!Iter.second)
14 continue;
15
16 Indices.push_back(Iter.first);
17 add(*Iter.second, Indices);
18 Indices.pop_back();
19 }
20}
21
22bool LoopAnalysisReport::fromJson(Json::Value Report) {
23 try {

Callers 10

addReplaceMethod · 0.45
UTModifyMethod · 0.45
analyzePropertyMethod · 0.45
analyzePropertyMethod · 0.45
updateDefaultMethod · 0.45
analyzePropertyMethod · 0.45
analyzePropertyMethod · 0.45
updateDefaultMethod · 0.45
analyzePropertyMethod · 0.45
updateDefaultMethod · 0.45

Calls 1

getStructInfoMethod · 0.80

Tested by

no test coverage detected