Pinned portable C memory/string arms of shims/foreign_items.rs and the read_c_str helper. Pointer checks are preserved even for zero-byte C accesses. Concrete string scanning has an explicit resource budget, whose exhaustion is Unknown; it is never treated as an empty string or a successful execution.
Instances For
- checkPointer : Memory.Pointer (Option P) → M S Unit
ptr_get_alloc_id(...,0), with source dangling/provenance behavior.
- readByte : Memory.Pointer (Option P) → M S UInt8
- readBytes : Memory.Pointer (Option P) → UInt64 → M S ByteArray
- offset : Memory.Pointer (Option P) → UInt64 → M S (Memory.Pointer (Option P))
- copy : Memory.Pointer (Option P) → Memory.Pointer (Option P) → UInt64 → Bool → M S Unit
Actual libc wchar_t (u16 on Windows), not the Lean host's wchar type.
- checkAlignment : Memory.Pointer (Option P) → ABI.Align → M S Unit
- readUnsigned : Memory.Pointer (Option P) → ABI.Size → M S ABI.U128
Instances For
- checkPointer : Memory.Pointer (Option P) → M S Unit
- readByte : Memory.Pointer (Option P) → M S UInt8
- offset : Memory.Pointer (Option P) → UInt64 → M S (Memory.Pointer (Option P))
- copy : Memory.Pointer (Option P) → Memory.Pointer (Option P) → UInt64 → Bool → M S Unit
- writeRepeatedByte : Memory.Pointer (Option P) → UInt8 → UInt64 → M S Unit
- writeUsize : UInt64 → MD → M S Unit
- wcharLayout : M S (ABI.Size × ABI.Align)
- checkAlignment : Memory.Pointer (Option P) → ABI.Align → M S Unit
- readUnsigned : Memory.Pointer (Option P) → ABI.Size → M S ABI.U128
- foreign : ForeignItems.Core P S D MD (Memory.Pointer (Option P)) B I
Instances For
- checkPointer : Memory.Pointer (Option P) → M S Unit
- readByte : Memory.Pointer (Option P) → M S UInt8
- offset : Memory.Pointer (Option P) → UInt64 → M S (Memory.Pointer (Option P))
- copy : Memory.Pointer (Option P) → Memory.Pointer (Option P) → UInt64 → Bool → M S Unit
- writeRepeatedByte : Memory.Pointer (Option P) → UInt8 → UInt64 → M S Unit
- writeUsize : UInt64 → MD → M S Unit
- wcharLayout : M S (ABI.Size × ABI.Align)
- checkAlignment : Memory.Pointer (Option P) → ABI.Align → M S Unit
- readUnsigned : Memory.Pointer (Option P) → ABI.Size → M S ABI.U128
- foreign : ForeignItems.Hooks P S D MD (Memory.Pointer (Option P)) B I
Instances For
Each character is read separately; a match prevents all later accesses.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Source read_c_str deliberately reads all bytes a second time after the terminator scan, including a zero-length read for the empty string.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
All argument reads and mandatory pointer checks precede actual memory operations in the source order. memset truncates C int to unsigned char.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Miri.Interpreter.MemoryShims.memchr h pointer count reverse needle = Miri.Interpreter.MemoryShims.Source.memchr h.core pointer count reverse needle
Instances For
Equations
- Miri.Interpreter.MemoryShims.readCString h budget pointer = Miri.Interpreter.MemoryShims.Source.readCString h.core budget pointer
Instances For
Equations
- Miri.Interpreter.MemoryShims.wcharLength h budget pointer = Miri.Interpreter.MemoryShims.Source.wcharLength h.core budget pointer
Instances For
Equations
- Miri.Interpreter.MemoryShims.emulate h budget name abi args dest = Miri.Interpreter.MemoryShims.Source.emulate h.core budget name abi args dest
Instances For
Preserve remaining portable source handlers and their fallback ordering.
Equations
- One or more equations did not get rendered due to their size.