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 / s2 / bad-recur-g.om
| 1 | om2 |
| 2 | note an inline function recursive through a non-inline function is error 9 (D-S2-1) |
| 3 | fn f x int to int inline |
| 4 | if lt x 1 |
| 5 | ret 0 |
| 6 | end |
| 7 | ret g sub x 1 |
| 8 | end |
| 9 | fn g x int to int |
| 10 | ret f x |
| 11 | end |
| 12 | fn main to int |
| 13 | ret g 3 |
| 14 | end |