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