Source Miri-specific portable extern arms, foreign_items.rs324-610. Diagnostics are omitted only after all argument reads/checks; operations that can affect memory, provenance or control flow remain explicit. Backtrace APIs and host-path conversion require their actual source implementation.
Instances For
- readImmediate : OpTy P → M S (RvalueImmTy P)
- readByteSlice : RvalueImmTy P → M S ByteArray
- allocation : Memory.Pointer (Option P) → M S (Except StepError (Memory.AllocId × ABI.Size))
Source ptr_get_alloc_id(ptr,0); errors remain values so selected Miri APIs can apply their source Abort conversion while preserving prior effects.
- sourceAllocIdNumber : Memory.AllocId → M S UInt64
Authoritative numeric rustc
AllocId.0.get()for this resolved source allocation. This must come from the same source identity domain; the interpreter's internal/import allocation number is not a substitute. - allocationInfo : Memory.AllocId → M S (ABI.Size × ABI.Align × Memory.AllocationKind)
- localCAllocation : Memory.AllocId → M S Bool
- trackAllocation : Memory.AllocId → M S Bool
- staticRoot : Memory.AllocId → M S Unit
TB debug naming can reject the requested ancestry; preserve that check.
The source ABI supplies rustc's raw AllocId number. It must remain raw until the source-image witness resolves its identity domain.
- readHostPath : Memory.Pointer (Option P) → M S HostPath
- spawnThread : MD → Memory.Pointer (Option P) → RvalueImmTy P → M S Unit
- threadFromUsize : UInt64 → M S (Option Concurrency.ThreadId)
Invalid IDs are None; terminated but existing threads are Some.
- joinExclusive : Concurrency.ThreadId → Bool → MD → M S Unit
Host stdout/stderr write errors are ignored by Miri, but missing host semantics is not an I/O error that may be silently ignored.
- symbolicPromise : Memory.Pointer (Option P) → ABI.Align → M S Unit
Instances For
- readImmediate : OpTy P → M S (RvalueImmTy P)
- readByteSlice : RvalueImmTy P → M S ByteArray
- writeUsize : UInt64 → MD → M S Unit
- allocation : Memory.Pointer (Option P) → M S (Except StepError (Memory.AllocId × ABI.Size))
- localCAllocation : Memory.AllocId → M S Bool
- trackAllocation : Memory.AllocId → M S Bool
- staticRoot : Memory.AllocId → M S Unit
- startUnwind : OpTy P → M S Unit
- provenanceGc : M S Unit
- namePointer : Memory.Pointer (Option P) → UInt8 → ByteArray → M S Unit
- printBorrowState : UInt64 → Bool → M S Unit
- checkNoIsolation : String → M S Unit
- readHostPath : Memory.Pointer (Option P) → M S HostPath
- writeTargetPath : HostPath → Memory.Pointer (Option P) → UInt64 → M S (Bool × UInt64)
- spawnThread : MD → Memory.Pointer (Option P) → RvalueImmTy P → M S Unit
- threadFromUsize : UInt64 → M S (Option Concurrency.ThreadId)
- joinExclusive : Concurrency.ThreadId → Bool → MD → M S Unit
- yieldThread : M S Unit
- symbolicPromise : Memory.Pointer (Option P) → ABI.Align → M S Unit
- foreign : ForeignItems.Core P S D MD (Memory.Pointer (Option P)) B I
Instances For
- readImmediate : OpTy P → M S (RvalueImmTy P)
- readByteSlice : RvalueImmTy P → M S ByteArray
- writeUsize : UInt64 → MD → M S Unit
- allocation : Memory.Pointer (Option P) → M S (Except StepError (Memory.AllocId × ABI.Size))
- localCAllocation : Memory.AllocId → M S Bool
- trackAllocation : Memory.AllocId → M S Bool
- staticRoot : Memory.AllocId → M S Unit
- startUnwind : OpTy P → M S Unit
- provenanceGc : M S Unit
- namePointer : Memory.Pointer (Option P) → UInt8 → ByteArray → M S Unit
- printBorrowState : UInt64 → Bool → M S Unit
- checkNoIsolation : String → M S Unit
- readHostPath : Memory.Pointer (Option P) → M S HostPath
- writeTargetPath : HostPath → Memory.Pointer (Option P) → UInt64 → M S (Bool × UInt64)
- spawnThread : MD → Memory.Pointer (Option P) → RvalueImmTy P → M S Unit
- threadFromUsize : UInt64 → M S (Option Concurrency.ThreadId)
- joinExclusive : Concurrency.ThreadId → Bool → MD → M S Unit
- yieldThread : M S Unit
- symbolicPromise : Memory.Pointer (Option P) → ABI.Align → M S Unit
- foreign : ForeignItems.Hooks P S D MD (Memory.Pointer (Option P)) B I
Instances For
Equations
- Miri.Interpreter.MiriShims.emulate h name abi args dest = Miri.Interpreter.MiriShims.Source.emulate h.core name abi args dest
Instances For
Equations
- One or more equations did not get rendered due to their size.