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-write-i-rolled.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Control for unroll-write-i.om: contract section 4 line 89 restricts only unrolled bodies, and an |
| 3 | note OM-2 unit keeps the OM-1 meaning of everything not stated (lines 5-6). OM-1 accepts a write to the |
| 4 | note counter of a rolled for (observed under 734f0a39, twin unroll-write-i-rolled-om1.om); the counter |
| 5 | note is then advanced by the for's increment (OMEGESE 9.8 continue: "the increment of a for, so the |
| 6 | note counter still advances"). Expected stdout 1 and 3: oracle/s3s4/exp/unroll-write-i-rolled.out. |
| 7 | om2 |
| 8 | fn main to int |
| 9 | for i ulong 4 |
| 10 | i = add i 1 |
| 11 | pu i |
| 12 | end |
| 13 | ret 0 |
| 14 | end |