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

Method mayAlias

ir/memory.cpp:748–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748expr Memory::AliasSet::mayAlias(bool islocal, const expr &bid) const {
749 int upto = isFullUpToAlias(islocal);
750 if (upto >= 0)
751 return bid.ule(upto);
752
753 expr ret(false);
754 for (unsigned i = 0, e = size(islocal); i < e; ++i) {
755 if (mayAlias(islocal, i))
756 ret |= bid == i;
757 }
758 return ret;
759}
760
761bool Memory::AliasSet::mayAlias(bool islocal, unsigned bid) const {
762 return (islocal ? local : non_local)[bid];

Callers 8

mayaliasMethod · 0.80
computeAliasingMethod · 0.80
accessMethod · 0.80
mkFnRetMethod · 0.80
setStateMethod · 0.80
refinedMethod · 0.80
isDereferenceableMethod · 0.80

Calls 1

uleMethod · 0.80

Tested by

no test coverage detected