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-mutual1.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-mutual1.om` 20 lines ยท 397 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Contract section 4 line 94: an inline function must not be recursive (error 9). f is inline and 3 note recursive through the ordinary function g (f -> g -> f); g is not inline. 4 om2 5 fn f n ulong to ulong inline 6 if eq n 0 7 ret 0 8 end 9 ret add n g sub n 1 10 end 11 fn g n ulong to ulong 12 if eq n 0 13 ret 0 14 end 15 ret add n f sub n 1 16 end 17 fn main to int 18 pu f 10 19 ret 0 20 end