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 / contracts / parity.omegese

19 lines · 186 bytes Raw Blame History
1fn check x int to int
2if not ge x 0
3trap 9
4end
5i = int 0
6if not le i 10
7trap 10
8end
9while lt i x bound 20
10i = add i 1
11if not le i 10
12trap 10
13end
14end
15if not le i 10
16trap 10
17end
18ret i
19end