interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / qualification / om2 / sec / s5s7 / f5-join-diff.om

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