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 / literal_wrong_expectation.om
| 1 | fn main to int |
| 2 | a = qty 1 |
| 3 | b = add a qty 1 |
| 4 | c = add qty 1 qty 1 |
| 5 | if ne b qty 1 |
| 6 | ret 1 |
| 7 | end |
| 8 | if ne c b |
| 9 | ret 2 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |