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/ng/tests/ir/x-bits.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 / ng / tests / ir / x-bits.om` 15 lines ยท 239 bytes Raw Blame History 1 om2 2 note x-bits: signed and unsigned shr, signed compare, select, rotl 3 fn main to int 4 a = shr int -16 int 2 5 u = shr uint `4294967280` uint 2 6 s = int 2 7 v = s 8 if lt a s 9 v = 7 10 end 11 r = rotl u uint 2 12 m = int and r 255 13 x = add m v 14 ret add x a 15 end