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-conv.om
| 1 | note x-conv: u64 255 converts to u8, 256 traps 5 |
| 2 | fn f a ulong to uchar |
| 3 | ret uchar a |
| 4 | end |
| 5 | fn main to int |
| 6 | x = f 255 |
| 7 | y = f 256 |
| 8 | ret int y |
| 9 | end |