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

9 lines · 136 bytes Raw Blame History
1note x-conv: u64 255 converts to u8, 256 traps 5
2fn f a ulong to uchar
3ret uchar a
4end
5fn main to int
6x = f 255
7y = f 256
8ret int y
9end