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

Function isFnReturnValue

ir/memory.cpp:533–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533static bool isFnReturnValue(const expr &e) {
534 expr arr, idx;
535 if (e.isLoad(arr, idx))
536 return isFnReturnValue(arr);
537
538 expr val;
539 unsigned hi, lo;
540 if (e.isExtract(val, hi, lo))
541 return isFnReturnValue(val);
542
543 return e.fn_name().starts_with("#fnret_");
544}
545
546int Memory::isInitialMemBlock(const expr &e, bool match_any_init) {
547 string_view name;

Callers 2

computeAliasingMethod · 0.85
escape_helperMethod · 0.85

Calls 3

isLoadMethod · 0.80
isExtractMethod · 0.80
fn_nameMethod · 0.80

Tested by

no test coverage detected