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 / bridge / kit / samples / gcd.om
| 1 | fn gcd a long b long to long |
| 2 | while ne b 0 |
| 3 | t = rem a b |
| 4 | a = b |
| 5 | b = t |
| 6 | end |
| 7 | ret a |
| 8 | end |
| 9 | fn lcm a long b long to long |
| 10 | ret mul div a gcd a b b |
| 11 | end |