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 / o-bce1.oir

28 lines · 538 bytes Raw Blame History
1omegair 1
2type %t32 = array i64 4
3type %t33 = ref edit host %t32
4global @g0 %t32 zero
5export @f0 flags 0 -> i32
6block ^0
7%1 = gaddr %t33 @g0
8%2 = const u64 0
9br ^1 %0 %2
10block ^1 %3:tok %4:u64
11%5 = const u64 5
12%6 = lt bool %4 %5
13cbr %3 %6 ^2 ^3
14block ^2 %7:tok
15%8 = const u64 1
16%9 = chk.bounds 3 %7 %1 %4 %8
17%10 = conv i64 0 %4
18%11 = store %9 %1 %4 %10
19%12 = add u64 %4 %8
20br ^1 %11 %12
21block ^3 %13:tok
22%14 = const u64 3
23%15 = const u64 1
24%16 = chk.bounds 3 %13 %1 %14 %15
25%17 = load i64 %16 %1 %14
26%18 = conv i32 0 %17
27retv %16 %18
28end