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

Function isDerivedFromLoad

ir/memory.cpp:1003–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001}
1002
1003static bool isDerivedFromLoad(const expr &e) {
1004 expr val, val2, _;
1005 unsigned h, l;
1006 if (e.isExtract(val, h, l))
1007 return isDerivedFromLoad(val);
1008 if (e.isIf(_, val, val2))
1009 return isDerivedFromLoad(val) && isDerivedFromLoad(val2);
1010 return e.isLoad(_, _);
1011}
1012
1013Memory::AliasSet Memory::computeAliasing(const Pointer &ptr, const expr &bytes,
1014 uint64_t align, bool write) const {

Callers 2

computeAliasingMethod · 0.85
escape_helperMethod · 0.85

Calls 3

isExtractMethod · 0.80
isIfMethod · 0.80
isLoadMethod · 0.80

Tested by

no test coverage detected