Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/profile/cases/ok-b2-nested.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / profile / cases / ok-b2-nested.om` 22 lines ยท 316 bytes Raw Blame History 1 note Positive B2 control: guard and call in one nested block, with an inner if/else between them. 2 fn walk depth ulong to ulong 3 if lt depth 100 4 nd = add depth 1 5 if gt nd 64 6 ret 0 7 end 8 x = ulong 0 9 if eq nd 3 10 x = ulong 1 11 else 12 x = ulong 2 13 end 14 r = walk nd 15 ret add x r 16 end 17 ret 0 18 end 19 fn main to int 20 d = walk 0 21 ret int d 22 end