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_for.osc

7 lines · 173 bytes Raw Blame History
1// expect: UNBOUNDED_LOOP object=i line=5
2// for trip count over 1_000_000.
3fn f() -> i64 {
4 let mut s: i64 = 0;
5 for i in 0 .. 2000000 { s = s + 1; }
6 return s;
7}