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-latebase.om
| 1 | note S5 scrub, then a write and a read of a short global (length 100: a base pin only, its length check is |
| 2 | note an immediate) declared after the scrubbing function. omc 0d7f2f42 pinned its base and the scrub left |
| 3 | note it 0, so the put stored to an unmapped low address (SIGSEGV, exit 139) instead of the global. Exit 0 is |
| 4 | note the pass. |
| 5 | om2 |
| 6 | fn clean to ulong |
| 7 | k = scrub 64 |
| 8 | ret ulong k |
| 9 | end |
| 10 | global s ulong 100 |
| 11 | fn main to int |
| 12 | j = ulong 10 |
| 13 | k = clean |
| 14 | put s j 9 |
| 15 | y = get s j |
| 16 | if ne y 9 |
| 17 | ret 2 |
| 18 | end |
| 19 | ret int k |
| 20 | end |