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/qualification/om2/sec/s3s4/inline-rec-direct-plain.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 / qualification / om2 / sec / s3s4 / inline-rec-direct-plain.om` 16 lines ยท 463 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Control for inline-rec-direct.om with every inline removed: accepted, runs (section 4 line 97). 3 note Contract section 4 line 94: an inline function must not be recursive (error 9). f calls itself. 4 note Without inline (inline-rec-direct-plain.om) program-mode recursion is allowed (OMEGESE 9.2) and 5 note prints 55. 6 om2 7 fn f n ulong to ulong 8 if eq n 0 9 ret 0 10 end 11 ret add n f sub n 1 12 end 13 fn main to int 14 pu f 10 15 ret 0 16 end