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 / omc / om2 / s3 / fuel-e16-inlsa.om
| 1 | note S3 E16 fuel: the order of oracle/s4fuel fuel-inl (main last). Every inline function is also compiled |
| 2 | note standalone in source order (OMEGESE 9.13), each with its own fuel, so f1 is expanded first without the |
| 3 | note call of f1 itself: f1 loop 64, 7 f2 expansions (58311), the 8th f2 call and loop (58376), 55 f3 |
| 4 | note expansions (65471), the 56th f3 call and loop (65536, still allowed), then its f4 call (line 11) is |
| 5 | note 65537: error 14 on line 11. |
| 6 | om2 |
| 7 | fn f4 to void inline |
| 8 | end |
| 9 | fn f3 to void inline |
| 10 | for i ulong 64 unroll |
| 11 | f4 |
| 12 | end |
| 13 | end |
| 14 | fn f2 to void inline |
| 15 | for i ulong 64 unroll |
| 16 | f3 |
| 17 | end |
| 18 | end |
| 19 | fn f1 to void inline |
| 20 | for i ulong 64 unroll |
| 21 | f2 |
| 22 | end |
| 23 | end |
| 24 | fn main to int |
| 25 | f1 |
| 26 | ret 0 |
| 27 | end |