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-dup.om

27 lines · 593 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 twin of a5-exact.om (contract 140-141): dup values and 64-bit rotations computed with
3note OM-1 shifts only; expected stdout oracle/s5s7/exp/a5-exact.out (python3). 2309737967 = 0x89abcdef,
4note 19088743 = 0x01234567.
5fn dupmk x uint to ulong
6ret or shl ulong x 32 ulong x
7end
8fn rr v ulong n ulong to ulong
9if eq n 0
10ret v
11end
12ret or shr v n shl v sub 64 n
13end
14fn main to int
15d = dupmk 2309737967
16puth d
17puth add d 1
18puth rr d 0
19puth rr d 1
20puth rr d 8
21puth rr d 31
22puth rr d 32
23puth rr d 33
24puth rr d 63
25puth xor d dupmk 19088743
26ret 0
27end