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

21 lines · 439 bytes Raw Blame History
1omegair 1
2type %t32 = array u64 8
3type %t33 = ref edit host %t32
4type %t34 = slice edit host u64
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 2
11%4 = const u64 6
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 = ne bool %4 %2
17%10 = select %t34 %9 %6 %8
18%11 = len u64 %10
19%12 = conv i32 0 %11
20retv %7 %12
21end