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_for.osc
| 1 | // expect: UNBOUNDED_LOOP object=i line=5 |
| 2 | // for trip count over 1_000_000. |
| 3 | fn f() -> i64 { |
| 4 | let mut s: i64 = 0; |
| 5 | for i in 0 .. 2000000 { s = s + 1; } |
| 6 | return s; |
| 7 | } |