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

Method print

ir/memory.cpp:857–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855}
856
857void Memory::AliasSet::print(ostream &os) const {
858 auto print = [&](const char *str, const auto &v) {
859 os << str;
860 for (auto bit : v) {
861 os << bit;
862 }
863 };
864
865 bool has_local = false;
866 if (numMayAlias(true) > 0) {
867 print("local: ", local);
868 has_local = true;
869 }
870 if (numMayAlias(false) > 0) {
871 if (has_local) os << " / ";
872 print("non-local: ", non_local);
873 } else if (!has_local)
874 os << "(empty)";
875}
876
877weak_ordering Memory::MemBlock::operator<=>(const MemBlock &rhs) const {
878 // FIXME:

Callers 1

memory.cppFile · 0.45

Calls 15

memory_unusedFunction · 0.85
is_constglbFunction · 0.85
ByteClass · 0.85
isUIntMethod · 0.80
getBidMethod · 0.80
blockSizeMethod · 0.80
blockAlignmentMethod · 0.80
getAllocTypeMethod · 0.80
getAddressMethod · 0.80
isConstArrayMethod · 0.80
isPoisonMethod · 0.80
isSourceMethod · 0.80

Tested by

no test coverage detected