def index_matches

bendtorch-core@0.1.0.0 · src/storage/main.bend:57

import bendtorch-core@0.1.0.0/src/storage/main.bend as BendtorchCore
import Base
import bendtorch-core@0.1.0.0/src/storage/model.bend as Model
import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinement

57def index_matches(+d: Nat, +n: Nat, +i: U32) -> Bool:
58  +offset = Model.offset(d, Refinement.route(d, i))
59  Bool.and(Nat.is_eq(offset, U32.to_nat(i)), Nat.is_lt(offset, n))

Uses (9)

Used by (29)