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 / x-two.om
| 1 | note S4 export (spec 6): two exports and a private helper. Words 0 and 1 are B to inc and dbl (source |
| 2 | note order); helper is a private function called by inc (bytes pinned). |
| 3 | om2 |
| 4 | fn helper a ulong to ulong |
| 5 | ret add a 1 |
| 6 | end |
| 7 | export fn inc a ulong to ulong |
| 8 | ret helper a |
| 9 | end |
| 10 | export fn dbl a ulong to ulong |
| 11 | ret mul a 2 |
| 12 | end |