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
omega-mv / tools / exp445 / arms / examples / sum_range / program.osc
| 1 | fn 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 | } |