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