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 / s2 / u1r.om

28 lines · 372 bytes Raw Blame History
1om2
2fn sq x uint to uint
3ret mul x x
4end
5fn mix a uint b uint to uint
6if gt a b
7ret xor a b
8end
9ret add rotr a 3 sq b
10end
11fn main to int
12w = new uint 16 0
13for i ulong 16
14put w i uint add mul i 3 1
15end
16s = uint 0
17for i ulong 4
18for j ulong 4
19s = add s mix get w add mul i 4 j uint j
20end
21end
22k = ulong 0
23while lt k 3
24s = add s sq uint k
25k = add k 1
26end
27ret int and s 127
28end