| 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 | |
| 37 | TEST_F(TestArrayAnalyzer, AnalyzeP) { |