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 / a64 / tests / ref / rot.om

21 lines · 304 bytes Raw Blame History
1note ref/rot.om: omc reference of mkir fixture rot (exit = rot(1000) low byte)
2fn rot n ulong to ulong
3i = ulong 0
4x = ulong 1
5y = ulong 2
6z = ulong 3
7s = ulong 0
8while lt i n bound 1000000
9s = add mul s 31 x
10t = x
11x = y
12y = z
13z = t
14i = add i 1
15end
16ret s
17end
18
19fn main to int
20ret int and rot 1000 255
21end