interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / tests / ir / x-convu.om

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