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

Method mk_block_val_array

ir/memory.cpp:1416–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414}
1415
1416expr Memory::mk_block_val_array(unsigned bid) const {
1417 auto str = "init_mem_" + to_string(bid);
1418 return Pointer(*this, bid, false).isBlkSingleByte()
1419 ? expr::mkVar(str.c_str(), Byte::bitsByte())
1420 : expr::mkArray(str.c_str(),
1421 expr::mkUInt(0, Pointer::bitsShortOffset()),
1422 expr::mkUInt(0, Byte::bitsByte()));
1423}
1424
1425static expr mk_liveness_array() {
1426 if (!num_nonlocals)

Callers

nothing calls this directly

Calls 4

to_stringFunction · 0.85
PointerClass · 0.85
mkVarFunction · 0.85
isBlkSingleByteMethod · 0.80

Tested by

no test coverage detected