Documentation

Miri.Input.EvalCallbackSourceConstruction

Canonical callback assembly over the initialized EvalWorld. Main/TLS owns the thread hook, live backend Effects select the owned IO runtime, and socket bindings are built from their physical/source operations. Callers never supply a completed EvalCallbackMachine.Hooks.

@[reducible, inline]
abbrev Miri.Input.EvalCallbackSourceConstruction.World (Os R P H D O Aff B Poll Instant System Native Profiler : Type) :
Equations
Instances For
    @[reducible, inline]
    abbrev Miri.Input.EvalCallbackSourceConstruction.State (Os R P H D O Aff B Poll Instant System Native Profiler : Type) :
    Equations
    Instances For
      @[reducible, inline]
      abbrev Miri.Input.EvalCallbackSourceConstruction.Inner (Os R P H D O Aff B Poll Instant System Native Profiler : Type) :
      Equations
      Instances For
        @[reducible, inline]
        abbrev Miri.Input.EvalCallbackSourceConstruction.User (Os R P H D O Aff B Poll Instant System Native Profiler : Type) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Physical operations used by the canonical owned event/poll/epoll constructor. Effects are source OS/synchronization writes; no guest-memory access or callback storage is supplied here.

          structure Miri.Input.EvalCallbackSourceConstruction.IoOperations (Os R P H D O Aff B Poll Instant System Native Profiler E Iter Meta : Type) :
          Instances For

            Source policy inputs for the owned socket state machine. These are the primitive stores, physical source operations, and protocol semantics consumed by EvalOwnedIoMachine.prepareSockets; the resulting SocketBindings record is never selected by the caller.

            structure Miri.Input.EvalCallbackSourceConstruction.SocketOperations (Os R P H D O Aff B Poll Instant System Native Profiler Raw Listener TcpStream Host E AddrIter : Type) :
            Instances For
              structure Miri.Input.EvalCallbackSourceConstruction.Components (Os R P H D O Aff B Poll Instant System Native Profiler C Z T E Iter Meta Raw Listener TcpStream Host AddrIter : Type) :
              Instances For
                def Miri.Input.EvalCallbackSourceConstruction.fromSource {Os R P H D O Aff B Poll Instant System Native Profiler C TyId Z T E Iter Meta Raw Listener TcpStream Host AddrIter : Type} (main : Interpreter.MainMachine.Hooks (User Os R P H D O Aff B Poll Instant System Native Profiler) C O ABI.ExternAbi (ABI.FnAbi TyId) (ABI.ArgAbi TyId) Aff P) (components : Components Os R P H D O Aff B Poll Instant System Native Profiler C Z T E Iter Meta Raw Listener TcpStream Host AddrIter) (state : State Os R P H D O Aff B Poll Instant System Native Profiler) :
                Except (Interpreter.StepError × State Os R P H D O Aff B Poll Instant System Native Profiler) (EvalCallbackMachine.Hooks Os R P H D O Aff B Poll Instant System Native Profiler C ABI.ExternAbi (ABI.FnAbi TyId) (ABI.ArgAbi TyId) Z T E Iter Raw Listener TcpStream Host AddrIter × State Os R P H D O Aff B Poll Instant System Native Profiler)

                Build and return source callbacks with the exact post-construction state. EStateM itself cannot carry the higher-universe callback dictionary, so the factory runs the existing IO source constructor explicitly and returns both its real state prefix and the assembled Hooks. On an error the updated state is returned alongside the error, preserving source effects.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For