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 / call-public.om
| 1 | note leak fixture (call rule, README.txt): a helper called inside a loop over a public length. The |
| 2 | note caller's registers are spilled to the stack around the BL and loaded back; the slot tracking |
| 3 | note keeps the loop counter and the bound public, so the loop branch stays len after the call. |
| 4 | note The helper's loaded byte reaches only the sum. Expected: TRACE-EQUIV-STATIC PASS. |
| 5 | fn h a view uchar 64 i ulong to ulong |
| 6 | ret ulong get a and i 63 |
| 7 | end |
| 8 | fn f a view uchar 64 n ulong to ulong |
| 9 | s = ulong 0 |
| 10 | for i ulong n |
| 11 | s = add s h a i |
| 12 | end |
| 13 | ret s |
| 14 | end |