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-nested-rolled.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note TWIN of unroll-continue-nested.om with every unroll removed (section 4 line 91, erratum E7): same expectation. |
| 3 | note Contract section 4 line 90 and erratum E7: a continue whose innermost loop is a ROLLED loop nested in an |
| 4 | note unrolled body is allowed. Each of the 4 copies adds 1 for j = 0 and j = 2: exit 8. |
| 5 | note Twins unroll-continue-nested-rolled.om / -om1.om, same expectation (oracle/s3s4/exp). |
| 6 | om2 |
| 7 | fn main to int |
| 8 | s = ulong 0 |
| 9 | for i ulong 4 |
| 10 | for j ulong 3 |
| 11 | if eq j 1 |
| 12 | continue |
| 13 | end |
| 14 | s = add s 1 |
| 15 | end |
| 16 | end |
| 17 | ret int s |
| 18 | end |