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 / b2-reset.om
| 1 | note B2 mutant: the checked depth is reassigned between guard and call. |
| 2 | fn walk depth ulong to ulong |
| 3 | nd = add depth 1 |
| 4 | if gt nd 16 |
| 5 | ret 0 |
| 6 | end |
| 7 | nd = ulong 0 |
| 8 | ret walk nd |
| 9 | end |
| 10 | fn main to int |
| 11 | d = walk 0 |
| 12 | ret int d |
| 13 | end |