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

Method hasReturn

ir/function.cpp:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool Function::hasReturn() const {
298 for (auto &i : instrs()) {
299 if (dynamic_cast<const Return *>(&i))
300 return true;
301 }
302 return false;
303}
304
305void Function::syncDataWithSrc(Function &src) {
306 auto IS = src.inputs.begin(), ES = src.inputs.end();

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected