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

Method isInbounds

ir/pointer.cpp:436–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436expr Pointer::isInbounds(bool strict) const {
437 auto offset = getOffsetSizet();
438 auto size = blockSizeAlignedOffsetT();
439 expr ret = strict ? offset.ult(size) : offset.ule(size);
440 if (bits_for_offset <= bits_size_t) // implied
441 ret &= !offset.isNegative();
442 return ret;
443}
444
445expr Pointer::inbounds(bool simplify_ptr) {
446 if (!simplify_ptr)

Callers 3

computeAliasingMethod · 0.80
inboundsMethod · 0.80
isDereferenceableMethod · 0.80

Calls 3

ultMethod · 0.80
uleMethod · 0.80
isNegativeMethod · 0.80

Tested by

no test coverage detected