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 / x-i8.oir

16 lines · 270 bytes Raw Blame History
1omegair 1
2fn @f0 flags 0 %1:i8 %2:i8 -> i8
3block ^0
4%3 = chk.add 1 %0 %1 %2
5%4 = add i8 %1 %2
6retv %3 %4
7end
8export @f1 flags 0 -> i32
9block ^0
10%1 = const i8 126
11%2 = const i8 1
12%3 %4 = call i8 %0 @f0 %1 %2
13%5 %6 = call i8 %3 @f0 %4 %2
14%7 = conv i32 0 %6
15retv %5 %7
16end