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-convu.oir
| 1 | omegair 1 |
| 2 | fn @f0 flags 0 %1:u64 -> i32 |
| 3 | block ^0 |
| 4 | %2 = chk.conv i32 5 %0 %1 |
| 5 | %3 = conv i32 0 %1 |
| 6 | retv %2 %3 |
| 7 | end |
| 8 | export @f1 flags 0 -> i32 |
| 9 | block ^0 |
| 10 | %1 = const u64 2147483647 |
| 11 | %2 %3 = call i32 %0 @f0 %1 |
| 12 | %4 = const u64 18446744073709551615 |
| 13 | %5 %6 = call i32 %2 @f0 %4 |
| 14 | retv %5 %6 |
| 15 | end |