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 / tests / one_layer / omegese / trial2 / dev05.omegese

12 lines · 129 bytes Raw Blame History
1fn checked_mul a i16 b i16 to i16
2p = mul a b
3if lt p short 32767
4if ge p short -32768
5ret p
6else
7trap 1
8end
9else
10trap 1
11end
12end