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 / seed / qualification / om2 / sec / s3s4 / unroll-write-i-rolled-om1.om

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