MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / getPath

Method getPath

ir/state.cpp:699–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699expr State::getPath(BasicBlock &bb) const {
700 if (&f.getFirstBB() == &bb)
701 return true;
702
703 auto I = predecessor_data.find(&bb);
704 if (I == predecessor_data.end())
705 return false; // Block is unreachable
706
707 OrExpr path;
708 for (auto &[src, data] : I->second) {
709 path.add(data.path);
710 }
711 return std::move(path)();
712}
713
714void State::cleanup(const Value &val) {
715 values.erase(&val);

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
endMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected