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 / opt / x-ovf64.oir
| 1 | omegair 1 |
| 2 | fn @f0 flags 0 %1:i64 %2:i64 -> i64 |
| 3 | block ^0 |
| 4 | %3 = chk.add 1 %0 %1 %2 |
| 5 | %4 = add i64 %1 %2 |
| 6 | retv %3 %4 |
| 7 | end |
| 8 | export @f1 flags 0 -> i32 |
| 9 | block ^0 |
| 10 | %1 = const i64 9223372036854775806 |
| 11 | %2 = const i64 1 |
| 12 | %3 %4 = call i64 %0 @f0 %1 %2 |
| 13 | %5 = const i64 1 |
| 14 | %6 %7 = call i64 %3 @f0 %4 %5 |
| 15 | %8 = chk.conv i32 5 %6 %7 |
| 16 | %9 = conv i32 0 %7 |
| 17 | retv %8 %9 |
| 18 | end |