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

Method fillPoison

ir/memory.cpp:2550–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2548}
2549
2550void Memory::fillPoison(const expr &bid) {
2551 Pointer p(*this, bid, expr::mkUInt(0, bits_for_offset));
2552 expr blksz = p.blockSizeAligned();
2553 memset(std::move(p).release(), IntType("i8", 8).getDummyValue(false),
2554 std::move(blksz), bits_byte / 8, {}, false);
2555}
2556
2557expr Memory::ptr2int(const expr &ptr) {
2558 assert(!memory_unused() && observesAddresses());

Callers 1

toSMTMethod · 0.80

Calls 4

IntTypeClass · 0.85
blockSizeAlignedMethod · 0.80
releaseMethod · 0.80
getDummyValueMethod · 0.80

Tested by

no test coverage detected