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 / a64 / tests / oir / u-selslice-bit.oir

23 lines · 480 bytes Raw Blame History
1omegair 1
2type %t32 = array u32 16
3type %t33 = ref edit host %t32
4type %t34 = slice edit host u32
5global @g0 %t32 zero
6export @f0 flags 0 -> i32
7block ^0
8%1 = gaddr %t33 @g0
9%2 = const u64 0
10%3 = const u64 4
11%4 = const u64 7
12%5 = chk.slice 3 %0 %1 %2 %3
13%6 = slice %t34 %5 %1 %2 %3
14%7 = chk.slice 3 %5 %1 %2 %4
15%8 = slice %t34 %7 %1 %2 %4
16%9 = const u64 8
17%10 = and u64 %4 %9
18%11 = eq bool %10 %2
19%12 = select %t34 %11 %6 %8
20%13 = len u64 %12
21%14 = conv i32 0 %13
22retv %7 %14
23end