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 / tools / exp445 / arms / examples / sum_range / program.osc

9 lines · 191 bytes Raw Blame History
1fn sum_range(lo: i32, hi: i32) -> i64 {
2 let mut s: i64 = 0;
3 let mut i: i32 = lo;
4 while i <= hi bound 300000 {
5 s = s + (i as i64);
6 i = i + 1;
7 }
8 return s;
9}