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

Method setIsBasedOnArg

ir/pointer.cpp:922–927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922Pointer Pointer::setIsBasedOnArg() const {
923 unsigned idx = (unsigned)has_nocapture + (unsigned)has_noread +
924 (unsigned)has_nowrite;
925 auto attrs = getAttrs();
926 return { m, getBid(), getOffset(), attrs | expr::mkUInt(1 << idx, attrs) };
927}
928
929Pointer Pointer::mkNullPointer(const Memory &m) {
930 assert(has_null_block);

Callers 1

mkInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected