Concrete native memory adapter. Source: native_lib/mod.rs:181–360,550–600 and rustc interpret/memory.rs:1104–1134. FFI execution, actual stable native backing pointers, physical exposure and process-global state remain explicit host effects, not fabricated native execution results.
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Raw access has no Rust read/write hooks. Global conversion effects and failed mutable materialization are committed before returning its error.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The host publication callback preserves already observed bytes even when its subsequent FFI operation fails. No mask/provenance transition runs here.
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
- hostBits : Nat
- typeShape : C → LocalLayout → M K U Native.TypeShape
- layoutOf : C → MIR.TyId → M K U (Except Unit LocalLayout)
- libraries : State K U → Array Native.Library
- lookupSymbol : C → Nat → Native.Library → String → M K U (Option (Native.SymbolInfo Code))
Index selects the actual loaded handle in the source library vector, including distinct handles with equal configured path strings.
- backingAddress : Memory.AllocId → Data → M K U Nat
Same stable, correctly aligned host storage that the canonical native address provider exposes. May materialize actual host storage, never invent an address or substitute copied storage with a different lifetime.
- exposePhysical : Memory.AllocId → Bool → M K U Unit
- execute : (Memory.AllocId → Array UInt8 → M K U Unit) → C → Code → Array Native.OwnedArg → Native.FfiType → ABI.Size → M K U (Array UInt8 × Option (Array Native.AccessEvent))
Actual libffi + supervisor. Publish all changed owned backing snapshots through the supplied callback on every returning outcome, including errors; reports are host observations, not trusted claims of native program safety.
Instances For
LIFO traversal snapshots children before callback mutation, matching visit_reachable_allocs. Fuel exhaustion is a resource error, not completion.
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.NativeMachine.visitReachable access callback x✝¹ [] x✝ = pure ()
- Miri.Interpreter.NativeMachine.visitReachable access callback 0 (head :: tail) x✝ = throw (Miri.Interpreter.StepError.resourceExhaustion "native allocation reachability budget exhausted")
Instances For
Keep one source allocation snapshot across provenance exposure and raw argument inspection. The generic legacy Hook interface is not used to repeat these raw global queries. Immediate conversion reuses the source serializer.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Connected native driver, including the source's single-snapshot argument and trace paths and single mutable return query. Native.Hooks remains useful for type conversion; no baseline NativeHooks is a production input.
Equations
- One or more equations did not get rendered due to their size.