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