Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/qualification/om2/sec/s5s7/om1/t-dup.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / qualification / om2 / sec / s5s7 / om1 / t-dup.om` 27 lines ยท 593 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note OM-1 twin of a5-exact.om (contract 140-141): dup values and 64-bit rotations computed with 3 note OM-1 shifts only; expected stdout oracle/s5s7/exp/a5-exact.out (python3). `2309737967` = 0x89abcdef, 4 note `19088743` = 0x01234567. 5 fn dupmk x uint to ulong 6 ret or shl ulong x 32 ulong x 7 end 8 fn rr v ulong n ulong to ulong 9 if eq n 0 10 ret v 11 end 12 ret or shr v n shl v sub 64 n 13 end 14 fn main to int 15 d = dupmk `2309737967` 16 puth d 17 puth add d 1 18 puth rr d 0 19 puth rr d 1 20 puth rr d 8 21 puth rr d 31 22 puth rr d 32 23 puth rr d 33 24 puth rr d 63 25 puth xor d dupmk `19088743` 26 ret 0 27 end