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-inl.om
| 1 | note S5 scrub inside an inline function written before a global. pinshut is set when the body pass begins |
| 2 | note any fn, an inline one too, so the global takes no pin and its reads use MOVZ/MOVK; under omc 0d7f2f42 |
| 3 | note (no pinshut) the inline body, compiled at its call site after the global, restored the pin. Exit 0. |
| 4 | om2 |
| 5 | fn clean to ulong inline |
| 6 | k = scrub 64 |
| 7 | ret ulong k |
| 8 | end |
| 9 | global g ulong 5000 |
| 10 | fn main to int |
| 11 | j = ulong 4999 |
| 12 | put g j 5 |
| 13 | k = clean |
| 14 | y = get g j |
| 15 | if ne y 5 |
| 16 | ret 2 |
| 17 | end |
| 18 | ret int k |
| 19 | end |