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

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