MCPcopy Create free account
hub / github.com/GJDuck/e9patch / match

Function match

src/e9tool/e9tool.cpp:458–468  ·  view source on GitHub ↗

* Matching. */

Source from the content-addressed store, hash-verified

456 * Matching.
457 */
458static void match(const std::vector<Action *> &actions, const ELF &elf,
459 const std::vector<Instr> &Is, size_t idx, const InstrInfo *I,
460 std::vector<Action *> &matching)
461{
462 for (auto *action: actions)
463 {
464 if (!matchEval(action->match, elf, Is, idx, I))
465 continue;
466 matching.push_back(action);
467 }
468}
469
470/*
471 * Save matching.

Callers 1

main_2Function · 0.85

Calls 1

matchEvalFunction · 0.85

Tested by

no test coverage detected