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 / seed / qualification / om2 / sec / s3s4 / unroll-continue-rolled.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Control for unroll-continue.om with unroll removed: a rolled loop accepts it (OMEGESE 9.8); exit 3. |
| 3 | note Contract section 4 line 90: continue in an unrolled body is error 9 (line 9, the continue). The |
| 4 | note same text without unroll (unroll-continue-rolled.om) is accepted and exits 3. |
| 5 | om2 |
| 6 | fn main to int |
| 7 | s = ulong 0 |
| 8 | for i ulong 4 |
| 9 | if eq i 2 |
| 10 | continue |
| 11 | end |
| 12 | s = add s 1 |
| 13 | end |
| 14 | ret int s |
| 15 | end |