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 / tests / ir / x-ovf64ok.om
| 1 | note x-ovf64ok: i64 add reaches exactly the maximum 2^63-1 without a trap; exit = its low byte |
| 2 | fn f a long b long to long |
| 3 | ret add a b |
| 4 | end |
| 5 | fn main to int |
| 6 | x = f 9223372036854775806 1 |
| 7 | ret int and x 255 |
| 8 | end |