Refinement.trace: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinement Lines 6-16 of bendtorch-core@0.1.0.0/src/storage/refinement.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&start_line=6&end_line=16 import Base import bendtorch-core@0.1.0.0/src/storage/model.bend as Model def trace(d: Nat, +n: U32, +i: U32, z: Bool) -> Model.Path(d): match d z: case 0n _: Unit{} case 1n+p True{}: Model.Step{False{}, trace(p, U32.shr(n), i, U32.is_lt(i, U32.shr(U32.shr(n))))} case 1n+p False{}: +j = U32.sub(i, U32.shr(n)) Model.Step{True{}, trace(p, U32.shr(n), j, U32.is_lt(j, U32.shr(U32.shr(n))))} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shr https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/model.bend&name=Path https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/model.bend&name=Step