def meta_status

bendtorch-core@0.1.0.0 · src/storage/api.bend:758

import bendtorch-core@0.1.0.0/src/storage/api.bend as Api
import Base
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as Laws

758def meta_status(+n: Nat, +value: F32, metadata: Nat & Nat, +ops: List<&2, Laws.Op>, +j: U32, +v: F32,
759  +fits: {Storage.bounds(Pair.fst(Nat, Nat, metadata), n) == True{} : Bool},
760  +inside: {Nat.is_lt(U32.to_nat(j), n) == True{} : Bool}) ->
761  {Laws.status(Laws.replay(ops, Laws.created.of(Storage.allocate_at(n, value, metadata))), j, v) == Done{Unit{}} : Result<&2, &2, Storage.Error, Unit>}:
762  (+d, +capacity) = metadata
763  alloc_status(d, n, value, Storage.bounds(d, n), {==}, ops, j, v, Equal.sym(Bool, Storage.bounds(d, n), True{}, fits), fits, inside)

Uses (21)

Used by (1)