omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / profile / cases / b2-sibling.om
| 1 | fn walk depth ulong to ulong |
| 2 | nd = ulong 0 |
| 3 | if eq depth 1 |
| 4 | nd = add depth 1 |
| 5 | if gt nd 64 |
| 6 | ret 0 |
| 7 | end |
| 8 | end |
| 9 | if lt depth 2 |
| 10 | ret walk nd |
| 11 | end |
| 12 | ret 0 |
| 13 | end |
| 14 | fn main to int |
| 15 | d = walk 0 |
| 16 | ret int d |
| 17 | end |