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 / tests / one_layer / generalization / dev / tasks / cases / devgen01 / hidden / reference.osc

14 lines · 253 bytes Raw Blame History
1fn f(x: u32) -> u32 {
2 return 3 * x * x + 2 * x + 1;
3}
4
5fn poly_sum(n: u8) -> u32 {
6 let m: u32 = n as u32;
7 let mut s: u32 = 0;
8 let mut i: u32 = 0;
9 while i < m bound 256 {
10 s = s + f(i);
11 i = i + 1;
12 }
13 return s;
14}