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 / rung4 / tests / fm7.omegese

16 lines · 194 bytes Raw Blame History
1fn sum4 v view uint 4 to uint
2s = uint 0
3for i uint 4
4s = add s get v i
5end
6ret s
7end
8fn f a uint b uint to uint
9x = new uint 4 0
10put x 0 a
11put x 3 b
12put x 1 add a 1
13r = sum4 x
14free x
15ret r
16end