Check.main: def of bend-osdev-u32@0.1.0.0 Import: import bend-osdev-u32@0.1.0.0/check.bend as Check Lines 14-25 of bend-osdev-u32@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-u32@0.1.0.0/check.bend&start_line=14&end_line=25 import Base import bend-osdev-u32@0.1.0.0/u32.bend as U def main() -> IO(Unit): do IO: IO.print(Nat.show(U.U32Nat.dbl(32n, 1n))) IO.print(Nat.show(U.U32Nat.dbl(3n, 5n))) IO.print(Nat.show(U.U32Nat.half(1001n))) IO.print(Nat.show(add_lhs(4294967295, 2))) IO.print(Nat.show(Nat.add(U32.to_nat(4294967295), U32.to_nat(2)))) IO.print(Nat.show(add_lhs(3000000000, 1000000000))) IO.print(Nat.show(sub_lhs(1, 3))) IO.print(Nat.show(sub_rhs(1, 3))) IO.print(Nat.show(sub_lhs(7, 3))) IO.print(Nat.show(U32.to_nat(U32.shln(3, 30n)))) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.print https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/check.bend&name=add_lhs https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/check.bend&name=sub_lhs https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/check.bend&name=sub_rhs https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/u32.bend&name=U32Nat.dbl https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/u32.bend&name=U32Nat.half