| 1293 | |
| 1294 | |
| 1295 | void HighLevelILInstruction::VisitExprs(const std::function<bool(const HighLevelILInstruction& expr)>& func) const |
| 1296 | { |
| 1297 | stack<size_t> toProcess; |
| 1298 | toProcess.push(exprIndex); |
| 1299 | while (!toProcess.empty()) |
| 1300 | { |
| 1301 | HighLevelILInstruction cur = function->GetExpr(toProcess.top(), ast); |
| 1302 | toProcess.pop(); |
| 1303 | if (!func(cur)) |
| 1304 | continue; |
| 1305 | cur.CollectSubExprs(toProcess); |
| 1306 | } |
| 1307 | } |
| 1308 | |
| 1309 | |
| 1310 | void HighLevelILInstruction::VisitExprs(const std::function<bool(const HighLevelILInstruction& expr)>& preFunc, |