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.om
| 1 | note x-float: sqrt 2 x 1000 truncated to an integer, minus 1000 (414; exit status 414 mod 256) |
| 2 | fn main to int |
| 3 | r = fsqrt 2.0f64 |
| 4 | x = long mul r 1000.0 |
| 5 | ret int sub x 1000 |
| 6 | end |