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