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 / seed / ng / a64 / tests / ref / ck.om
| 1 | note ref/ck.om: omc reference of mkir fixture ck (the second add overflows int: trap 1, exit 101) |
| 2 | fn ck a int b int to int |
| 3 | ret add a b |
| 4 | end |
| 5 | |
| 6 | fn main to int |
| 7 | x = ck 5 7 |
| 8 | y = ck 2147483000 1000 |
| 9 | ret add x y |
| 10 | end |