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 / omc / om2 / s5 / scrub-emit.om
| 1 | note S5 scrub emit: a small unit whose output sha256 (s5.cases s5-scrub-emit) pins the exact scrub sequence: |
| 2 | note the n checks, the STP XZR loop, MOVZ #0 for the free pool registers (f has one parameter and one |
| 3 | note local below them), X16, X7, X18-X26, X29, then MOVI #0 for V0-V31. A dropped or retargeted zeroing |
| 4 | note word changes the output (s5-mutants.cases m-zpool, m-zvec, m-movz16). |
| 5 | om2 |
| 6 | fn f n ulong to ulong |
| 7 | a = add n 5 |
| 8 | k = scrub n |
| 9 | ret add a ulong k |
| 10 | end |
| 11 | fn main to int |
| 12 | r = f 32 |
| 13 | ret int sub r 37 |
| 14 | end |