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

Method isInitialMemoryOrLoad

ir/memory.cpp:561–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561bool Memory::isInitialMemoryOrLoad(const expr &e, bool match_any_init) {
562 expr arr, idx;
563 if (e.isLoad(arr, idx))
564 return isInitialMemoryOrLoad(arr, match_any_init);
565
566 expr val;
567 unsigned hi, lo;
568 if (e.isExtract(val, hi, lo))
569 return isInitialMemoryOrLoad(val, match_any_init);
570
571 return isInitialMemBlock(e, match_any_init) != 0;
572}
573}
574
575static void pad(StateValue &v, unsigned amount, State &s) {

Callers

nothing calls this directly

Calls 2

isLoadMethod · 0.80
isExtractMethod · 0.80

Tested by

no test coverage detected