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

21 lines · 352 bytes Raw Blame History
1omegair 1
2export @f0 flags 0 -> i32
3block ^0
4%1 = const u64 0
5br ^1 %0 %1
6block ^1 %2:tok %3:u64
7%4 = const u64 0
8%5 = lt bool %3 %4
9cbr %2 %5 ^2 ^3
10block ^2 %6:tok
11%7 = const bool false
12%8 = chk.true 9 %6 %7
13%9 = const u64 0
14%10 = div u64 %3 %9
15%11 = const u64 1
16%12 = add u64 %10 %11
17br ^1 %8 %12
18block ^3 %13:tok
19%14 = const i32 42
20retv %13 %14
21end