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-float.oir
| 1 | omegair 1 |
| 2 | export @f0 flags 0 -> i32 |
| 3 | block ^0 |
| 4 | %1 = const f64 0x4000000000000000 |
| 5 | %2 = fsqrt f64 %1 |
| 6 | %3 = const f64 0x408f400000000000 |
| 7 | %4 = mul f64 %2 %3 |
| 8 | %5 = conv i64 0 %4 |
| 9 | %6 = const i64 1000 |
| 10 | %7 = sub i64 %5 %6 |
| 11 | %8 = conv i32 0 %7 |
| 12 | retv %0 %8 |
| 13 | end |