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 / qualification / om2 / sec / s5s7 / om1 / t-allops.om

23 lines · 466 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 twin of a5-allops.om: rotl n is rotr 64-n; 252641535 = 0x0f0f00ff.
3note Expected stdout oracle/s5s7/exp/a5-allops.out (python3).
4fn dupmk x uint to ulong
5ret or shl ulong x 32 ulong x
6end
7fn rr v ulong n ulong to ulong
8if eq n 0
9ret v
10end
11ret or shr v n shl v sub 64 n
12end
13fn main to int
14d = dupmk 2309737967
15e = dupmk 252641535
16puth rr d 56
17puth rr d 24
18puth and d e
19puth or d e
20puth xor d e
21puth rr d 5
22ret 0
23end