interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bridge / shlib / dep.om

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