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-convu.om
| 1 | note x-convu: u64 to i32 at the signed bound: 2147483647 converts, 2^64 - 1 traps 5 (it is not -1). ngrun read |
| 2 | note an unsigned source below 64 bits as signed (bug hunt, ledger L1060) |
| 3 | fn f a ulong to int |
| 4 | ret int a |
| 5 | end |
| 6 | fn main to int |
| 7 | x = f 2147483647 |
| 8 | y = f 18446744073709551615 |
| 9 | ret y |
| 10 | end |