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 / task09 / reference.om

11 lines · 145 bytes Raw Blame History
1fn factorial_u32 n uint to uint
2if ge n 34
3ret 0
4end
5res = uint 1
6count = ulong n
7for i ulong count
8res = mul res (uint add i 1)
9end
10ret res
11end