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 / omc / om2 / hex / signed-min.om

15 lines · 372 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note spec/omegese-om2.md section 2 lines 53-58 (#745): signed minima are written in decimal (no - before hex); hex
3note operands compare and add with them under the decimal range rule. Exit 0.
4om2
5fn main to int
6x = byte -128
7y = long -9223372036854775808
8if ge int x 0x0
9ret 1
10end
11if ge y 0x0
12ret 2
13end
14ret int add int x 0x80
15end