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 / p-text-empty.om
| 1 | note S4 part on an empty text: part e 0 1 on count 0: o <= len holds, k <= len - o fails, trap 3 (exit |
| 2 | note 103). x = 7 is live in the register the old lowering read as the count. |
| 3 | om2 |
| 4 | text e "" |
| 5 | fn plen v view uchar * to ulong |
| 6 | ret len v |
| 7 | end |
| 8 | fn main to int |
| 9 | x = ulong 7 |
| 10 | ret int add plen part e 0 1 x |
| 11 | end |