Documentation

Miri.Input.EvalForeignExit

Source foreign_items.rs::exit and Windows ExitProcess share the actual ProgramExitHandler::ExitCalled state machine. Its FnMut capture is stored in World, separate from main/TLS and FnOnce unblock environments.

@[reducible, inline]
abbrev Miri.Input.EvalForeignExit.World (Os R Payload H D O Aff B Host : Type) :
Equations
Instances For
    @[reducible, inline]
    abbrev Miri.Input.EvalForeignExit.User (Os R P H D O Aff B Host : Type) :
    Equations
    Instances For
      @[reducible, inline]
      abbrev Miri.Input.EvalForeignExit.State (Os R P H D O Aff B Host : Type) :
      Equations
      Instances For
        def Miri.Input.EvalForeignExit.startSource {Os R P H D O Aff B Host : Type} (spans : Interpreter.AllocationDriver.SpanHooks) (code : Int32) :
        EStateM Interpreter.StepError (State Os R P H D O Aff B Host) Unit

        Source replace_active_thread_stack needs only current-user span metadata; all callback/entry/runtime fields are read from their canonical World owners.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Miri.Input.EvalForeignExit.hooks {Os R P H D O Aff B Host C X F A Payload : Type} (main : Interpreter.MainMachine.Hooks (User Os R P H D O Aff B Host) C O X F A Aff Payload) :
          Interpreter.WindowsExitMachine.Hooks (User Os R P H D O Aff B Host) C O X F A Aff Payload
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Miri.Input.EvalForeignExit.start {Os R P H D O Aff B Host C X F A Payload : Type} (main : Interpreter.MainMachine.Hooks (User Os R P H D O Aff B Host) C O X F A Aff Payload) (code : Int32) :
            EStateM Interpreter.StepError (State Os R P H D O Aff B Host) Unit
            Equations
            Instances For
              def Miri.Input.EvalForeignExit.loop {Os R P H D O Aff B Host C X F A Payload : Type} (main : Interpreter.MainMachine.Hooks (User Os R P H D O Aff B Host) C O X F A Aff Payload) (base : Interpreter.RunLoopHooks (State Os R P H D O Aff B Host) C Interpreter.MainMachine.Callback) (scheduler : C → Interpreter.ThreadStacks.LocalSchedulerHooks Memory.MiriMemoryKind (User Os R P H D O Aff B Host)) :
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For