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 / bench / inference_cost / tasks / task04 / reference.om
| 1 | fn gcd_u32 a uint b uint to uint |
| 2 | x = a |
| 3 | y = b |
| 4 | while gt y 0 |
| 5 | t = rem x y |
| 6 | x = y |
| 7 | y = t |
| 8 | end |
| 9 | ret x |
| 10 | end |