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 / s4 / v-text-empty-write.om
| 1 | note S4 empty text: write 1 e 0 1 asks for one byte of `text e ""`; n <= len fails, trap 3 before the |
| 2 | note call (exit 103, nothing written). x = 7 is live in the register the old lowering read as the count. |
| 3 | om2 |
| 4 | text e "" |
| 5 | fn main to int |
| 6 | x = ulong 7 |
| 7 | n = write int 1 e ulong 0 ulong 1 |
| 8 | ret int x |
| 9 | end |