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_t4.om

12 lines · 297 bytes Raw Blame History
1note Wrapped copy of seed/omc/tests/struct/t4.om for gate-front-ir: main to uint, ulong or long becomes subject (nom-wrap.sh).
2struct V a ulong b ulong end
3fn total v view V to ulong
4ret add get v a get v b
5end
6fn subject to ulong
7s = new V 10 7
8ret total s
9end
10fn main to int
11ret int subject
12end