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 / tests / compiler / neg / unbounded_while.osc
| 1 | // expect: UNBOUNDED_LOOP object=while line=5 |
| 2 | // a while loop must declare a bound. |
| 3 | fn f(x: u32) -> u32 { |
| 4 | let mut n: u32 = x; |
| 5 | while n > 0 { |
| 6 | n = n - 1; |
| 7 | } |
| 8 | return n; |
| 9 | } |