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

Method ptrValue

ir/memory.cpp:309–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309expr Byte::ptrValue() const {
310 if (!does_ptr_mem_access)
311 return expr::mkUInt(0, Pointer::totalBits());
312
313 auto start = bits_ptr_byte_offset() + padding_ptr_byte();
314 return p.extract(Pointer::totalBits() + start - 1, start);
315}
316
317expr Byte::ptrByteoffset() const {
318 if (!does_ptr_mem_access)

Callers 3

bytesToValueFunction · 0.80
storeMethod · 0.80
checkNocaptureMethod · 0.80

Calls 3

bits_ptr_byte_offsetFunction · 0.85
padding_ptr_byteFunction · 0.85
extractMethod · 0.45

Tested by

no test coverage detected