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

Method checkTrue

tests/propanalysis/TestArrayAnalyzer.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 bool checkTrue(int Answer, const ArrayAnalysisReport &Report,
27 IRAccessHelper &IRAccess, std::string FuncName,
28 unsigned ArgIndex, std::vector<int> Indices = {}) {
29 const auto *A = getArg(IRAccess, FuncName, ArgIndex);
30 if (!A)
31 return false;
32
33 return Report.has(*A, Indices) && Report.get(*A, Indices) == Answer;
34 }
35};
36
37TEST_F(TestArrayAnalyzer, AnalyzeP) {

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected