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 / profile / cases / ok-b2-nested.om

22 lines · 316 bytes Raw Blame History
1note Positive B2 control: guard and call in one nested block, with an inner if/else between them.
2fn walk depth ulong to ulong
3if lt depth 100
4nd = add depth 1
5if gt nd 64
6ret 0
7end
8x = ulong 0
9if eq nd 3
10x = ulong 1
11else
12x = ulong 2
13end
14r = walk nd
15ret add x r
16end
17ret 0
18end
19fn main to int
20d = walk 0
21ret int d
22end