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

Method unionWith

ir/memory.cpp:795–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795void Memory::AliasSet::unionWith(const AliasSet &other) {
796 auto unionfn = [](auto &a, const auto &b) {
797 auto I2 = b.begin(), E2 = b.end();
798 for (auto I = a.begin(), E = a.end(); I != E && I2 != E2; ++I, ++I2) {
799 *I = *I || *I2;
800 }
801 };
802 unionfn(local, other.local);
803 unionfn(non_local, other.non_local);
804}
805
806static const array<uint64_t, 5> alias_buckets_vals = { 1, 2, 3, 5, 10 };
807static array<uint64_t, 6> alias_buckets_hits = { 0 };

Callers 4

computeAliasingMethod · 0.80
refinedMethod · 0.80
escape_helperMethod · 0.80
mkIfMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected