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
omega-mv / seed / ng / tests / ir / x-divmin.oir
| 1 | omegair 1 |
| 2 | fn @f0 flags 0 %1:i64 %2:i64 -> i64 |
| 3 | block ^0 |
| 4 | %3 = chk.divz 2 %0 %2 |
| 5 | %4 = chk.divovf 1 %3 %1 %2 |
| 6 | %5 = div i64 %1 %2 |
| 7 | retv %4 %5 |
| 8 | end |
| 9 | export @f1 flags 0 -> i32 |
| 10 | block ^0 |
| 11 | %1 = const i64 -9223372036854775808 |
| 12 | %2 = const i64 -1 |
| 13 | %3 %4 = call i64 %0 @f0 %1 %2 |
| 14 | %5 = conv i32 0 %4 |
| 15 | retv %3 %5 |
| 16 | end |