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 / s5s7 / f5-n64.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, line 120: N = 64 is the upper bound and is accepted; 4 line 87: unroll 64. |
| 3 | note stdout: len 64, then 1+..+64 = 2080 (oracle exp/f5-n64.out). |
| 4 | om2 |
| 5 | fn f s edit uchar 64 fresh to ulong |
| 6 | for i ulong 64 unroll |
| 7 | put s i uchar add i 1 |
| 8 | end |
| 9 | t = ulong 0 |
| 10 | for j ulong 64 |
| 11 | t = add t ulong get s j |
| 12 | end |
| 13 | putd len s |
| 14 | ret t |
| 15 | end |
| 16 | fn main to int |
| 17 | a = new uchar 64 0 |
| 18 | putd f a |
| 19 | ret 0 |
| 20 | end |