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

Method isBlockAligned

ir/pointer.cpp:470–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470expr Pointer::isBlockAligned(uint64_t align, bool exact) const {
471 if (!exact && align == 1)
472 return true;
473
474 auto bits = ilog2(align);
475 expr blk_align = blockAlignment();
476 return exact ? blk_align == bits : blk_align.uge(bits);
477}
478
479expr Pointer::isAligned(uint64_t align) {
480 if (align == 1)

Callers 1

allocMethod · 0.80

Calls 2

ilog2Function · 0.85
ugeMethod · 0.80

Tested by

no test coverage detected