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

33 lines · 632 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
9%3 = const u64 1
10%4 = chk.bounds 3 %0 %1 %2 %3
11%5 = const i64 7
12%6 = store %4 %1 %2 %5
13%7 = const bool true
14cbr %6 %7 ^1 ^2
15block ^1 %8:tok
16%9 = load i64 %8 %1 %2
17%10 = const i64 100
18%11 = lt bool %9 %10
19cbr %8 %11 ^3 ^4
20block ^2 %12:tok
21br ^1 %12
22block ^3 %13:tok
23%14 = const i64 3
24%15 = mul i64 %14 %14
25%16 = add i64 %9 %15
26%17 = chk.bounds 3 %13 %1 %2 %3
27%18 = store %17 %1 %2 %16
28br ^1 %18
29block ^4 %19:tok
30%20 = load i64 %19 %1 %2
31%21 = conv i32 0 %20
32retv %19 %21
33end