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

19 lines · 340 bytes Raw Blame History
1omegair 1
2fn @f0 flags 0 %1:i64 %2:i64 -> i64
3block ^0
4%3 = chk.divz 2 %0 %2
5%4 = rem i64 %1 %2
6retv %3 %4
7end
8export @f1 flags 0 -> i32
9block ^0
10%1 = const i64 -9223372036854775808
11%2 = const i64 -1
12%3 %4 = call i64 %0 @f0 %1 %2
13%5 = const i64 0
14%6 = eq bool %4 %5
15%7 = const i32 5
16%8 = const i32 6
17%9 = select i32 %6 %7 %8
18retv %3 %9
19end