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
omega-mv / seed / qualification / om2 / sec / s3s4 / inline-depth6-diag.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 lines 109-111: inlining at most 4 levels deep, beyond that error 14 |
| 3 | note (obligation=growth). main calls the inline chain f1 -> ... -> f6: 6 nested inlined bodies, |
| 4 | note beyond 4 (erratum E7). om2 diag: record has code=14 obligation=growth. |
| 5 | om2 diag |
| 6 | fn f1 a ulong to ulong inline |
| 7 | ret add f2 mul a 3 1 |
| 8 | end |
| 9 | fn f2 a ulong to ulong inline |
| 10 | ret add f3 mul a 5 2 |
| 11 | end |
| 12 | fn f3 a ulong to ulong inline |
| 13 | ret add f4 mul a 7 3 |
| 14 | end |
| 15 | fn f4 a ulong to ulong inline |
| 16 | ret add f5 mul a 11 4 |
| 17 | end |
| 18 | fn f5 a ulong to ulong inline |
| 19 | ret add f6 mul a 13 5 |
| 20 | end |
| 21 | fn f6 a ulong to ulong inline |
| 22 | ret add mul a 17 6 |
| 23 | end |
| 24 | fn id v ulong to ulong |
| 25 | ret v |
| 26 | end |
| 27 | fn main to int |
| 28 | pu f1 2 |
| 29 | pu f1 id 1000 |
| 30 | ret 0 |
| 31 | end |