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-convlo.om

11 lines · 206 bytes Raw Blame History
1note x-convlo: f64 -2147483648.5 truncates to the i32 minimum, inside the range (no trap)
2fn f a f64 to int
3ret int a
4end
5fn main to int
6x = f -2147483648.5f64
7if ne add x 2147483647 -1
8ret 9
9end
10ret 3
11end