NLA-lib Explorer

NLAlib.Ops.Stmt.whileStrict

Library · def

The strict loop: run body while the test q returns true, and fail if it still holds after fuel rounds. The fuel is a bound, never a truncation. nidx is the number of index variables in scope: the round index is the variable nidx in the test and in body. The loop is given one more round than the fuel and fails if that round is reached.

NLAlib.Ops.Stmt.whileStrict {Op Tst : Type} (nidx : ℕ) (fuel : Ops.IExp) (q : Tst)
  (dims : List Ops.IExp) (ins : List Ops.Operand) (body : Ops.Stmt Op Tst) : Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Ops.Syntax.