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 / qualification / om2 / sec / s5s7 / f5-join-diff.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, line 122: the then arm writes element 0, the else arm element 1; the |
| 3 | note intersection at the join is empty, so get s 0 is error 27. Union-join mutant: {0,1} accepts; |
| 4 | note main passes c = 2 and a filled with 99, so the mutant prints 99 (exp/f5-join-diff.mutant). |
| 5 | om2 |
| 6 | fn f s edit uchar 8 fresh c ulong to ulong |
| 7 | if eq c 1 |
| 8 | put s 0 11 |
| 9 | else |
| 10 | put s 1 22 |
| 11 | end |
| 12 | ret ulong get s 0 |
| 13 | end |
| 14 | fn main to int |
| 15 | a = new uchar 8 99 |
| 16 | putd f a 2 |
| 17 | ret 0 |
| 18 | end |