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-convlo.om
| 1 | note x-convlo: f64 -2147483648.5 truncates to the i32 minimum, inside the range (no trap) |
| 2 | fn f a f64 to int |
| 3 | ret int a |
| 4 | end |
| 5 | fn main to int |
| 6 | x = f -2147483648.5f64 |
| 7 | if ne add x 2147483647 -1 |
| 8 | ret 9 |
| 9 | end |
| 10 | ret 3 |
| 11 | end |