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/security673/relational/paired.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 / security673 / relational / paired.om` 62 lines ยท 1004 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Concatenate after compare32.om. Test assertions are outside scanned primitive. 3 text ok "PASS L2 native: all32 positions x256 values x255 mismatches, paired complements, two-position and all32 flips\n" 4 fn main to int 5 a = new uchar 32 0 6 b = new uchar 32 0 7 if ne compare32 a b 1 8 ret 11 9 end 10 for p ulong 32 11 for v ulong 256 12 put a p uchar v 13 put b p uchar v 14 if ne compare32 a b 1 15 ret 12 16 end 17 for k ulong 255 18 put a p uchar v 19 put b p xor uchar v uchar add k 1 20 if ne compare32 a b 0 21 ret 13 22 end 23 put a p xor uchar v 255 24 put b p xor get b p 255 25 if ne compare32 a b 0 26 ret 14 27 end 28 end 29 end 30 put a p 0 31 put b p 0 32 end 33 for k ulong 255 34 for j ulong 32 35 put a j 0 36 put b j 0 37 end 38 put b 0 uchar add k 1 39 put b 1 uchar add k 1 40 if ne compare32 a b 0 41 ret 16 42 end 43 for j ulong 32 44 put b j uchar add k 1 45 end 46 if ne compare32 a b 0 47 ret 17 48 end 49 for j ulong 32 50 put a j 255 51 put b j xor get b j 255 52 end 53 if ne compare32 a b 0 54 ret 18 55 end 56 end 57 n = write 1 ok 0 len ok 58 if ne n long len ok 59 ret 15 60 end 61 ret 0 62 end