def missed
bendtorch-core@0.1.0.0 · src/tensor/from_values_contract.bend:84
import bendtorch-core@0.1.0.0/src/tensor/from_values_contract.bend as FromValuesContract
import Base
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
84def missed(+cursor: Nat, +remaining: Nat, +limit: U32, +index: U32, +value: F32, +base: F32,
85 room: {Nat.is_le(Nat.add(cursor, 1n+remaining), U32.to_nat(limit)) == True{} : Bool},
86 earlier: {Nat.is_lt(U32.to_nat(index), cursor) == True{} : Bool}) ->
87 {StorageLaws.latest(U32.to_nat(limit), StorageLaws.Write{U32.from_nat(cursor), value}, index, base) == base : F32}:
88 +room = room
89 %Equal.sym(Nat, U32.to_nat(U32.from_nat(cursor)), cursor, cursor_exact(cursor, remaining, limit, room)) :
90 {Bool.pick(F32, Bool.and(Nat.is_lt(_, U32.to_nat(limit)), Nat.is_eq(_, U32.to_nat(index))), value, base) == base : F32}
91 %Equal.sym(Bool, Nat.is_lt(cursor, U32.to_nat(limit)), True{}, cursor_lt(cursor, remaining, U32.to_nat(limit), room)) :
92 {Bool.pick(F32, Bool.and(_, Nat.is_eq(cursor, U32.to_nat(index))), value, base) == base : F32}
93 %Equal.sym(Bool, Nat.is_eq(cursor, U32.to_nat(index)), False{}, lt_different(U32.to_nat(index), cursor, earlier)) :
94 {Bool.pick(F32, _, value, base) == base : F32}
95 {==}