| 396 | } |
| 397 | |
| 398 | expr Byte::castPtrToInt() const { |
| 399 | auto offset = ptrByteoffset().zextOrTrunc(bits_ptr_address); |
| 400 | offset = offset * expr::mkUInt(bits_byte, offset); |
| 401 | return ptr().getAddress().lshr(offset).zextOrTrunc(bits_byte); |
| 402 | } |
| 403 | |
| 404 | expr Byte::forceCastToInt() const { |
| 405 | return expr::mkIf(isPtr(), castPtrToInt(), nonptrValue()); |
nothing calls this directly
no test coverage detected