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-nest-64x2-om1.om

20 lines · 718 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 TWIN of unroll-nest-64x2.om for the pinned compiler 734f0a39: same expectation.
3note Contract section 4 lines 87-92, 110 and erratum E7: the 64-copy limit is per unrolled loop, so an unroll 2
4note nested in an unroll 64 (128 copies of the inner body) is accepted; the total is bounded only by the
5note 65536-word limit. Removing unroll (twin unroll-nest-64x2-rolled.om) changes nothing.
6note Expected stdout: oracle/s3s4/exp/unroll-nest-64x2.out (python3, oracle/s3s4/oracle.py).
7note OM-1 unit: this line replaces the om2 line
8fn main to int
9f = ulong 1
10c = ulong 0
11for i ulong 64
12for j ulong 2
13f = add mul f 31 add mul i 2 j
14c = add c 1
15end
16end
17pu f
18pu c
19ret 0
20end