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