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 / ng / tests / ir / x-fib.om
| 1 | note x-fib: fib(25) by double recursion; exit status = its low byte |
| 2 | fn fib n ulong to ulong |
| 3 | if lt n 2 |
| 4 | ret n |
| 5 | end |
| 6 | ret add fib sub n 1 fib sub n 2 |
| 7 | end |
| 8 | fn main to int |
| 9 | ret int and fib 25 255 |
| 10 | end |