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-depth4.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-depth4.om` 26 lines ยท 725 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Contract section 4 lines 93-98 and 109-111: inlining at most 4 levels deep. main calls the 3 note inline chain f1 -> f2 -> f3 -> f4 (4 nested inlined bodies), which is within the bound and runs. 4 note f1 a = f2(3a)+1, f2 a = f3(5a)+2, f3 a = f4(7a)+3, f4 a = 11a+4; id is an ordinary call. 5 note Expected stdout: oracle/s3s4/exp/inline-depth4.out (python3, oracle/s3s4/oracle.py). 6 om2 7 fn f1 a ulong to ulong inline 8 ret add f2 mul a 3 1 9 end 10 fn f2 a ulong to ulong inline 11 ret add f3 mul a 5 2 12 end 13 fn f3 a ulong to ulong inline 14 ret add f4 mul a 7 3 15 end 16 fn f4 a ulong to ulong inline 17 ret add mul a 11 4 18 end 19 fn id v ulong to ulong 20 ret v 21 end 22 fn main to int 23 pu f1 2 24 pu f1 id 1000 25 ret 0 26 end