Documentation

Miri.Interpreter.MiriShimMachine

Concrete machine bindings for the Miri-only extern driver. The user-state lens must target the same static/tracked allocation lists as machine exit. Pointers, symbolic alignment, payloads, threads and GC use their canonical state.

Instances For
    structure Miri.Interpreter.MiriShimMachine.Hooks (K U C E Other : Type) :
    Instances For

      Source failed ptr_get_alloc_id is a value until the calling arm applies its error policy. This conversion retains all effects from pointer resolution.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Miri.Interpreter.MiriShimMachine.symbolicPromise {K U C E Other : Type} (h : Hooks K U C E Other) (pointer : Memory.Pointer (Option Memory.Provenance)) (alignment : ABI.Align) :
        M K U Unit

        No allocation/liveness check is imposed here: source promises are recorded for any resolved provenance, including dead allocations, using actual offset.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Miri.Interpreter.MiriShimMachine.core {K U C E Other D B I HostPath : Type} [DecidableEq K] (h : Hooks K U C E Other) (choice : C) (base : MiriShims.CoreHooks Memory.Provenance (State K U) D (RuntimePlace Memory.Provenance) B I HostPath) :

          Construct the source Miri operations over the canonical machine while keeping host paths, diagnostics, output, and other source effects explicit. This constructor accepts the nonrecursive CoreHooks projection, so callers do not need to manufacture a complete ForeignItems dispatch record just to bind the physical memory/provenance/thread effects.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Miri.Interpreter.MiriShimMachine.bind {K U C E Other D B I HostPath : Type} [DecidableEq K] (h : Hooks K U C E Other) (choice : C) (base : MiriShims.Hooks Memory.Provenance (State K U) D (RuntimePlace Memory.Provenance) B I HostPath) :

            ABI, host paths, actual thread creation/join and diagnostic ancestry remain required until their source dictionaries are installed. No success defaults.

            Equations
            Instances For