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 / devgen08 / hidden / reference.osc

13 lines · 280 bytes Raw Blame History
1fn count_rising5(a: i16, b: i16, c: i16, d: i16, e: i16) -> u8 {
2 let v: own [i16; 5] = alloc(0);
3 v[0] = a;
4 v[1] = b;
5 v[2] = c;
6 v[3] = d;
7 v[4] = e;
8 let mut k: u8 = 0;
9 for i in 0 .. 4 {
10 if v[i + 1] > v[i] { k = k + 1; }
11 }
12 return k;
13}