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 / profile / mutants.cases

61 lines · 4611 bytes Raw Blame History
1# SPDX-License-Identifier: AGPL-3.0-only
2# seed/profile/mutants.cases: one profile.om mutant per enforced rule (five for B2: guard limit,
3# DRA-311 leaf removal, stop in the guard's then-block, same block instance, NAME value assignment
4# without =). Each mutant disables one check; its control row (ok-unit) must PASS and its kill row
5# (the matching rule fixture) must FAIL.
6# Expected: OM2GATE FAIL cases=22 pass=11 fail=11 invalid=0 not_run=0
7# --- mutant b1-cap
8subst seed/profile/mutants/b1-cap.from seed/profile/mutants/b1-cap.to
9ctl-b1-cap run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
10subst seed/profile/mutants/b1-cap.from seed/profile/mutants/b1-cap.to
11m-b1-cap run seed/profile/profile.om - line:PROFILE-REFUSED:B1:4 - 1 seed/profile/cases/b1-while.om
12# --- mutant b2-limit
13subst seed/profile/mutants/b2-limit.from seed/profile/mutants/b2-limit.to
14ctl-b2-limit run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
15subst seed/profile/mutants/b2-limit.from seed/profile/mutants/b2-limit.to
16m-b2-limit run seed/profile/profile.om - line:PROFILE-REFUSED:B2:7 - 1 seed/profile/cases/b2-limit.om
17# --- mutant b2-leaf
18subst seed/profile/mutants/b2-leaf.from seed/profile/mutants/b2-leaf.to
19ctl-b2-leaf run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
20subst seed/profile/mutants/b2-leaf.from seed/profile/mutants/b2-leaf.to
21m-b2-leaf run seed/profile/profile.om - line:PROFILE-REFUSED:B2:2 - 1 seed/profile/cases/b2-mutual.om
22# --- mutant b2-else: the optional guard line may again be any line (else included)
23subst seed/profile/mutants/b2-else.from seed/profile/mutants/b2-else.to
24ctl-b2-else run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
25subst seed/profile/mutants/b2-else.from seed/profile/mutants/b2-else.to
26m-b2-else run seed/profile/profile.om - line:PROFILE-REFUSED:B2:7 - 1 seed/profile/cases/b2-else.om
27# --- mutant b2-block: equal nesting depth again counts as the same block
28subst seed/profile/mutants/b2-block.from seed/profile/mutants/b2-block.to
29ctl-b2-block run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
30subst seed/profile/mutants/b2-block.from seed/profile/mutants/b2-block.to
31m-b2-block run seed/profile/profile.om - line:PROFILE-REFUSED:B2:9 - 1 seed/profile/cases/b2-arm.om
32# --- mutant b2-noeq: the shared assignment classifier again recognises only NAME = value
33subst seed/profile/mutants/b2-noeq.from seed/profile/mutants/b2-noeq.to
34ctl-b2-noeq run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
35subst seed/profile/mutants/b2-noeq.from seed/profile/mutants/b2-noeq.to
36m-b2-noeq run seed/profile/profile.om - line:PROFILE-REFUSED:B2:7 - 1 seed/profile/cases/b2-noeq-nd.om
37# --- mutant b3-total
38subst seed/profile/mutants/b3-total.from seed/profile/mutants/b3-total.to
39ctl-b3-total run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
40subst seed/profile/mutants/b3-total.from seed/profile/mutants/b3-total.to
41m-b3-total run seed/profile/profile.om - line:PROFILE-REFUSED:B3:4 - 1 seed/profile/cases/b3-total.om
42# --- mutant e1-used
43subst seed/profile/mutants/e1-used.from seed/profile/mutants/e1-used.to
44ctl-e1-used run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
45subst seed/profile/mutants/e1-used.from seed/profile/mutants/e1-used.to
46m-e1-used run seed/profile/profile.om - line:PROFILE-REFUSED:E1:9 - 1 seed/profile/cases/e1-drop.om
47# --- mutant x1-effect
48subst seed/profile/mutants/x1-effect.from seed/profile/mutants/x1-effect.to
49ctl-x1-effect run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
50subst seed/profile/mutants/x1-effect.from seed/profile/mutants/x1-effect.to
51m-x1-effect run seed/profile/profile.om - line:PROFILE-REFUSED:X1:3 - 1 seed/profile/cases/x1-boundary.om
52# --- mutant p1-put
53subst seed/profile/mutants/p1-put.from seed/profile/mutants/p1-put.to
54ctl-p1-put run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
55subst seed/profile/mutants/p1-put.from seed/profile/mutants/p1-put.to
56m-p1-put run seed/profile/profile.om - line:PROFILE-REFUSED:P1:5 - 1 seed/profile/cases/p1-put.om
57# --- mutant c1-mode
58subst seed/profile/mutants/c1-mode.from seed/profile/mutants/c1-mode.to
59ctl-c1-mode run seed/profile/profile.om - line:PROFILE-PASS - 0 seed/profile/cases/ok-unit.om
60subst seed/profile/mutants/c1-mode.from seed/profile/mutants/c1-mode.to
61m-c1-mode run seed/profile/profile.om - line:PROFILE-REFUSED:C1:3 - 1 seed/profile/cases/c1-mode.om