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 / quantity / constant_integer.om

15 lines · 197 bytes Raw Blame History
1const ZERO qty 0
2const ONE qty 1
3const MAX qty 18446744073709551615
4fn main to int
5if ne ZERO qty 0
6ret 1
7end
8if ne add ONE 1 qty 2
9ret 2
10end
11if ne MAX qty 18446744073709551615
12ret 3
13end
14ret 0
15end