| 254 | } |
| 255 | |
| 256 | bool AllocSizeAnalyzer::isAllocFunction(const llvm::Function &F) const { |
| 257 | auto FuncName = F.getName(); |
| 258 | if (FuncName == "malloc" || FuncName == "_Znaj" || FuncName == "_Znam") |
| 259 | return true; |
| 260 | return false; |
| 261 | } |
| 262 | |
| 263 | bool AllocSizeAnalyzer::updateArgFlow(Argument &A) { |
| 264 | if (!Report.has(A)) |
no test coverage detected