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 / literal_bare.om

24 lines · 199 bytes Raw Blame History
1fn main to int
2a = qty 1
3b = add a 1
4c = add 1 a
5if ne b 2
6ret 1
7end
8if ne 2 c
9ret 2
10end
11if not lt a 2
12ret 3
13end
14if not gt 2 a
15ret 4
16end
17if ne sub b 1 a
18ret 5
19end
20if ne mul a 2 b
21ret 6
22end
23ret 0
24end