| 148 | } |
| 149 | |
| 150 | bool DefMapGenerator::isLoopExit(const RDNode &Node, |
| 151 | const LoopAnalysisReport &LoopReport) const { |
| 152 | for (const auto &Use : Node.getFirstUses()) { |
| 153 | auto FuncName = Use.getFunctionName(); |
| 154 | auto ArgNo = Use.ArgNo; |
| 155 | if (!LoopReport.has(FuncName, ArgNo)) |
| 156 | continue; |
| 157 | |
| 158 | auto LoopResult = LoopReport.get(FuncName, ArgNo); |
| 159 | if (LoopResult.LoopExit) |
| 160 | return true; |
| 161 | } |
| 162 | |
| 163 | return false; |
| 164 | } |
| 165 | |
| 166 | bool DefMapGenerator::isVarReference(const ASTDefNode &Node) const { |
| 167 | auto *Assigned = Node.getAssigned(); |
nothing calls this directly
no test coverage detected