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 / e1-else.om
| 1 | note E1 mutant: the result is read only in the sibling else branch, not on the continuation. |
| 2 | fn get1 to ulong |
| 3 | ret 1 |
| 4 | end |
| 5 | fn main to int |
| 6 | x = get1 |
| 7 | if gt x 1 |
| 8 | r = get1 |
| 9 | else |
| 10 | r = ulong 0 |
| 11 | if ne r 0 |
| 12 | ret 2 |
| 13 | end |
| 14 | end |
| 15 | ret 0 |
| 16 | end |