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 / leak / fixtures / len-loop.om
| 1 | note leak fixture (contract spec/omegese-om2.md section 8, lines 232-236, evidence (a)): |
| 2 | note a loop over a public length n with a data-independent body. The loaded bytes are summed but |
| 3 | note never reach a branch or an address, so every branch is len and every access is public-index. |
| 4 | note Expected: TRACE-EQUIV-STATIC PASS with no data-dependent item. |
| 5 | fn f a view uchar 64 n ulong to ulong |
| 6 | s = ulong 0 |
| 7 | for i ulong n |
| 8 | s = add s ulong get a and i 63 |
| 9 | end |
| 10 | ret s |
| 11 | end |