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 / opt / x-bits.oir

33 lines · 684 bytes Raw Blame History
1omegair 1
2export @f0 flags 0 -> i32
3block ^0
4%1 = const i32 -16
5%2 = const i32 2
6%3 = chk.shift 7 %0 %2
7%4 = shr i32 %1 %2
8%5 = const u32 4294967280
9%6 = const u32 2
10%7 = chk.shift 7 %3 %6
11%8 = shr u32 %5 %6
12%9 = const i32 2
13%10 = lt bool %4 %9
14cbr %7 %10 ^1 ^2
15block ^1 %11:tok
16%12 = const i32 7
17br ^3 %11 %4 %8 %9 %12
18block ^2 %13:tok
19br ^3 %13 %4 %8 %9 %9
20block ^3 %14:tok %15:i32 %16:u32 %17:i32 %18:i32
21%19 = const u32 2
22%20 = chk.shift 7 %14 %19
23%21 = rotl u32 %16 %19
24%22 = const u32 255
25%23 = and u32 %21 %22
26%24 = chk.conv i32 5 %20 %23
27%25 = conv i32 0 %23
28%26 = chk.add 1 %24 %25 %18
29%27 = add i32 %25 %18
30%28 = chk.add 1 %26 %27 %15
31%29 = add i32 %27 %15
32retv %28 %29
33end