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 / cflow / pl-frneg.om

13 lines · 312 bytes Raw Blame History
1note for test at the latch on a signed counter that the body makes negative (B.LT, not B.LO): the first pass
2note sets i to -5, so i = 0, -4 .. 2 runs 8 passes (exit 8); an unsigned latch test leaves after 1 pass
3om2
4fn main to int
5n = long 0
6for i long 3
7if eq n 0
8i = sub i 5
9end
10n = add n 1
11end
12ret int n
13end