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 / a5-allops.om

20 lines · 512 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 abstract, lines 140-143: the full preserving table rotr rotl and or xor when listed.
3note stdout oracle exp/a5-allops.out (python3).
4om2
5abstract dup32 ulong ops rotr rotl and or xor
6holds dup32 dup32
7fn dup32mk x uint to dup32
8ret seal dup32 or shl ulong x 32 ulong x
9end
10fn main to int
11d = dup32mk 0x89abcdef
12e = dup32mk 0x0f0f00ff
13puth open rotl d 8
14puth open rotl d 40
15puth open and d e
16puth open or d e
17puth open xor d e
18puth open rotr d 5
19ret 0
20end