interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / tests / ir / x-bits.om

15 lines · 239 bytes Raw Blame History
1om2
2note x-bits: signed and unsigned shr, signed compare, select, rotl
3fn main to int
4a = shr int -16 int 2
5u = shr uint 4294967280 uint 2
6s = int 2
7v = s
8if lt a s
9v = 7
10end
11r = rotl u uint 2
12m = int and r 255
13x = add m v
14ret add x a
15end