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

Method isWritableGlobal

ir/pointer.cpp:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232expr Pointer::isWritableGlobal() const {
233 auto bid = getShortBid();
234 return !isLocal() &&
235 bid.uge(has_null_block + num_consts_src) &&
236 expr(num_globals_src > 0) &&
237 bid.ule(has_null_block + num_globals_src - 1);
238}
239
240expr Pointer::getBid() const {
241 auto start = bits_for_offset + bits_for_ptrattrs;

Callers 2

check_can_loadFunction · 0.80
check_can_storeFunction · 0.80

Calls 3

ugeMethod · 0.80
uleMethod · 0.80
exprClass · 0.70

Tested by

no test coverage detected