NLA-lib Explorer

NLAlib.Ops.Reference.While

Library · inductive

An early-exit loop tests before each body and does not test at zero fuel. The returned index determines its continuation; the enclosing statement charges the final exit allowance.

NLAlib.Ops.Reference.While {Op Tst K : Type} (I : Ops.Interp Op Tst K)
  (R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) :
  Tst →
    List Ops.IExp →
      List Ops.Operand →
        Ops.Stmt Op Tst →
          Ops.Env → ℕ → ℕ → Ops.Reference.State Op Tst K → ℕ → Ops.Reference.State Op Tst K → Prop

Full source on GitHub

Import NLAlib.Ops.Reference.Semantics.