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

33 lines · 609 bytes Raw Blame History
1omegair 1
2export @f0 flags 0 -> i32
3block ^0
4%1 = const i64 70
5%2 = bitcast u64 %1
6%3 = const u64 0
7br ^1 %0 %3 %3
8block ^1 %4:tok %5:u64 %6:u64
9%7 = const u64 2
10%8 = lt bool %5 %7
11cbr %4 %8 ^2 ^6
12block ^2 %9:tok
13%10 = const u64 1000000
14%11 = chk.fuel 4 %9 %5 %10
15%12 = const u64 1
16%13 = and u64 %5 %12
17%14 = eq bool %13 %3
18cbr %11 %14 ^3 ^4
19block ^3 %15:tok
20%16 = bitcast u64 %1
21br ^5 %15 %16
22block ^4 %17:tok
23br ^5 %17 %2
24block ^5 %18:tok %19:u64
25%20 = const u64 1
26%21 = add u64 %5 %20
27%22 = add u64 %6 %19
28br ^1 %18 %21 %22
29block ^6 %23:tok
30%24 = chk.conv i32 5 %23 %6
31%25 = conv i32 0 %6
32retv %24 %25
33end