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 / seed / omc / om2 / s4 / o-run.om

19 lines · 344 bytes Raw Blame History
1note S4 out: inside the unit an out is a sized edit; an internal function fills a local through it
2note and reads it back. Exit 0 when the values hold.
3om2
4fn fill r out ulong 3 v ulong to ulong
5for i ulong 3
6put r i add v i
7end
8ret get r 2
9end
10fn main to int
11a = new ulong 3 0
12if ne fill a 10 12
13ret 1
14end
15if ne get a 0 10
16ret 2
17end
18ret 0
19end