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

Method isBlockAlive

ir/pointer.cpp:745–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745expr Pointer::isBlockAlive() const {
746 // NULL block is dead
747 if (has_null_block && !null_is_dereferenceable && getBid().isZero())
748 return false;
749
750 auto bid = getShortBid();
751 return mkIf_fold(isLocal(), m.isBlockAlive(bid, true),
752 m.isBlockAlive(bid, false));
753}
754
755expr Pointer::getAllocType() const {
756 return getValue("blk_kind", m.local_blk_kind, m.non_local_blk_kind,

Callers 2

isDereferenceableMethod · 0.45
refinedMethod · 0.45

Calls 1

isZeroMethod · 0.45

Tested by

no test coverage detected