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-shift.oir

17 lines · 294 bytes Raw Blame History
1omegair 1
2fn @f0 flags 0 %1:u32 %2:u32 -> u32
3block ^0
4%3 = chk.shift 7 %0 %2
5%4 = shl u32 %1 %2
6retv %3 %4
7end
8export @f1 flags 0 -> i32
9block ^0
10%1 = const u32 1
11%2 = const u32 31
12%3 %4 = call u32 %0 @f0 %1 %2
13%5 = const u32 32
14%6 %7 = call u32 %3 @f0 %1 %5
15%8 = conv i32 0 %7
16retv %6 %8
17end