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 / s1 / kw-long-om1.om

24 lines · 514 bytes Raw Blame History
1note S1 (OM-1 unit): a function name of 9..63 bytes whose first 8 bytes spell an 8-byte keyword (continue, truncate)
2note is a name, not that keyword: defined, called in a value, called as a statement, two of them told
3note apart in full. Exit 0, else the failing check's number.
4fn continue_x a long to long
5ret add a 1
6end
7fn continue_y a long to long
8ret add a 2
9end
10fn truncate_it to void
11ret
12end
13fn main to int
14x = continue_x 3
15if ne x 4
16ret 1
17end
18y = continue_y 10
19if ne y 12
20ret 2
21end
22truncate_it
23ret 0
24end