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 / tests / quantity / float_domain_control.om
| 1 | fn main to int |
| 2 | a = f64 1.0 |
| 3 | if ne fsqrt a a |
| 4 | ret 1 |
| 5 | end |
| 6 | if ne fabs a a |
| 7 | ret 2 |
| 8 | end |
| 9 | if ne fmin a a a |
| 10 | ret 3 |
| 11 | end |
| 12 | if ne fmax a a a |
| 13 | ret 4 |
| 14 | end |
| 15 | ret 0 |
| 16 | end |