MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / VisitExprs

Method VisitExprs

highlevelilinstruction.cpp:1295–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293
1294
1295void 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
1310void HighLevelILInstruction::VisitExprs(const std::function<bool(const HighLevelILInstruction& expr)>& preFunc,

Callers

nothing calls this directly

Calls 7

CollectSubExprsMethod · 0.80
pushMethod · 0.45
emptyMethod · 0.45
GetExprMethod · 0.45
topMethod · 0.45
popMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected