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 / n-convtz.oir
| 1 | omegair 1 |
| 2 | export @f0 flags 0 -> i32 |
| 3 | block ^0 |
| 4 | %1 = const f64 0x3ff0000000000000 |
| 5 | %2 = conv f32 1 %1 |
| 6 | %3 = bitcast u32 %2 |
| 7 | %4 = const u32 1065353216 |
| 8 | %5 = eq bool %3 %4 |
| 9 | %6 = const i32 1 |
| 10 | %7 = const i32 0 |
| 11 | %8 = select i32 %5 %7 %6 |
| 12 | retv %0 %8 |
| 13 | end |