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 / ir / n-addu.oir

20 lines · 390 bytes Raw Blame History
1omegair 1
2fn @f0 flags 0 %1:u64 %2:u64 -> u64
3block ^0
4%3 = chk.add 1 %0 %1 %2
5%4 = add u64 %1 %2
6retv %3 %4
7end
8export @f1 flags 0 -> i32
9block ^0
10%1 = const u64 18446744073709551614
11%2 = const u64 1
12%3 %4 = call u64 %0 @f0 %1 %2
13%5 = const u64 18446744073709551615
14%6 = const u64 1
15%7 %8 = call u64 %3 @f0 %5 %6
16%9 = const u64 255
17%10 = and u64 %8 %9
18%11 = conv i32 0 %10
19retv %7 %11
20end