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 / si / mcp / data / examples / om2_unroll.om

12 lines · 229 bytes Raw Blame History
1om2
2note unroll compiles the body K times with a constant counter; inline compiles each call in place
3fn sq x ulong to ulong inline
4ret mul x x
5end
6fn main to int
7s = ulong 0
8for i ulong 4 unroll
9s = add s sq i
10end
11ret int s
12end