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 / profile / cases / p1-call.om
| 1 | note P1 mutant: a pure function calls a function that is not pure. |
| 2 | global g ulong 1 |
| 3 | fn side x ulong to ulong |
| 4 | put g 0 x |
| 5 | ret x |
| 6 | end |
| 7 | note p10 pure |
| 8 | fn calc x ulong to ulong |
| 9 | ret side x |
| 10 | end |
| 11 | fn main to int |
| 12 | v = calc 1 |
| 13 | ret int v |
| 14 | end |