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-get.om
| 1 | note S4 empty text: a run-time index into `text e ""` is checked against the count 0, so index 0 traps 3 |
| 2 | note (exit 103); it is not compared with whatever register x0 holds (x = 7 is live there). |
| 3 | om2 |
| 4 | text e "" |
| 5 | fn main to int |
| 6 | x = ulong 7 |
| 7 | i = ulong 0 |
| 8 | ret int add ulong get e i x |
| 9 | end |