interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bench / inference_cost / tasks / task08 / reference.om

14 lines · 152 bytes Raw Blame History
1fn fibonacci_u32 n uint to uint
2if eq n 0
3ret 0
4end
5a = uint 0
6b = uint 1
7count = ulong sub n 1
8for i ulong count
9c = add a b
10a = b
11b = c
12end
13ret b
14end