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 / bridge / shlib / dep.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 |
| 3 | note bridge/shlib/dep.om: the gate's dependency library (dep.tsv), whose exports imp.om imports: a doubling, a |
| 4 | note result with a dirty upper half (imported as int), a subtraction (imported with its arguments swapped) and a |
| 5 | note read through a pointer (imported with the pointer moved by 8 bytes). |
| 6 | export fn omega_dep_twice a ulong to ulong |
| 7 | ret mul a 2 |
| 8 | end |
| 9 | export fn omega_dep_dirty to ulong |
| 10 | ret ulong 16045690981097406469 |
| 11 | end |
| 12 | export fn omega_dep_sub a ulong b ulong to ulong |
| 13 | ret sub a b |
| 14 | end |
| 15 | export fn omega_dep_rd c view uint 1 to uint |
| 16 | ret get c 0 |
| 17 | end |