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.om

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