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 / constant_integer.om
| 1 | const ZERO qty 0 |
| 2 | const ONE qty 1 |
| 3 | const MAX qty 18446744073709551615 |
| 4 | fn main to int |
| 5 | if ne ZERO qty 0 |
| 6 | ret 1 |
| 7 | end |
| 8 | if ne add ONE 1 qty 2 |
| 9 | ret 2 |
| 10 | end |
| 11 | if ne MAX qty 18446744073709551615 |
| 12 | ret 3 |
| 13 | end |
| 14 | ret 0 |
| 15 | end |