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 / bench / inference_cost / tasks / task08 / reference.om
| 1 | fn fibonacci_u32 n uint to uint |
| 2 | if eq n 0 |
| 3 | ret 0 |
| 4 | end |
| 5 | a = uint 0 |
| 6 | b = uint 1 |
| 7 | count = ulong sub n 1 |
| 8 | for i ulong count |
| 9 | c = add a b |
| 10 | a = b |
| 11 | b = c |
| 12 | end |
| 13 | ret b |
| 14 | end |