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 / ng / front / cases / nom_t5.om

14 lines · 336 bytes Raw Blame History
1note Wrapped copy of seed/omc/tests/struct/t5.om for gate-front-ir: main to uint, ulong or long becomes subject (nom-wrap.sh).
2struct C n uint last uint end
3fn bump c edit C v uint to void
4put c n add get c n v
5put c last v
6end
7fn subject to uint
8c = new C 4 4
9bump c 3
10ret add get c n get c last
11end
12fn main to int
13ret int subject
14end