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 / compiler / neg / unbounded_while.osc

9 lines · 189 bytes Raw Blame History
1// expect: UNBOUNDED_LOOP object=while line=5
2// a while loop must declare a bound.
3fn f(x: u32) -> u32 {
4 let mut n: u32 = x;
5 while n > 0 {
6 n = n - 1;
7 }
8 return n;
9}