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 / omc / om2 / s1 / s1-mutants.cases

51 lines · 2830 bytes Raw Blame History
1# S1 compiled mutants of omc.om (each built by the compiler under test from a one-place mutation of
2# seed/omc/omc.om). Expected verdicts, fixed in advance: every ctl-* case PASS (a self-built compiler
3# without a mutation), every m-* case FAIL (the mutation is detected). The list ends OM2GATE FAIL.
4deadline 60
5cc seed/omc/omc.om
6ctl-rot run seed/omc/om2/s1/rot.om - - - 0
7ctl-rot-trap run seed/omc/om2/s1/rot-trap-var.om - - - 107
8ctl-hex-max run seed/omc/om2/s1/hex-max.om - - - 0
9ctl-hex-upper refuse seed/omc/om2/s1/bad-hex-upper.om 6
10ctl-om1-names run seed/omc/om2/s1/om1-names.om - - - 2
11ctl-kw-long-names run seed/omc/om2/s1/kw-long-names.om - - - 0
12ctl-fmt emit seed/omc/om2/s1/fmt-in.om file:seed/omc/om2/s1/fmt-out.txt - 0
13ctl-diag-unknown emit seed/omc/om2/s1/diag-unknown.om - file:seed/omc/om2/s1/diag-unknown.err 3
14ctl-diag-newpt emit seed/omc/om2/s1/diag-newpt.om - file:seed/omc/om2/s1/diag-newpt.err 16
15# rotl by a number becomes rotr
16subst seed/omc/om2/s1/mut/rotl.from seed/omc/om2/s1/mut/rotl.to
17cc seed/omc/omc.om
18m-rotl run seed/omc/om2/s1/rot.om - - - 0
19# the rotate amount check (trap 7) is dropped
20subst seed/omc/om2/s1/mut/rchk.from seed/omc/om2/s1/mut/rchk.to
21cc seed/omc/omc.om
22m-rchk run seed/omc/om2/s1/rot-trap-var.om - - - 107
23# hex digit a..f value off by one
24subst seed/omc/om2/s1/mut/hexd.from seed/omc/om2/s1/mut/hexd.to
25cc seed/omc/omc.om
26m-hexd run seed/omc/om2/s1/hex-max.om - - - 0
27# uppercase hex digits accepted
28subst seed/omc/om2/s1/mut/hexU.from seed/omc/om2/s1/mut/hexU.to
29cc seed/omc/omc.om
30m-hexU refuse seed/omc/om2/s1/bad-hex-upper.om 6
31# OM-2 words leak into OM-1 units (opt-in check removed)
32subst seed/omc/om2/s1/mut/optin.from seed/omc/om2/s1/mut/optin.to
33cc seed/omc/omc.om
34m-optin run seed/omc/om2/s1/om1-names.om - - - 2
35# fmt respaces next to a parenthesis
36subst seed/omc/om2/s1/mut/paren.from seed/omc/om2/s1/mut/paren.to
37cc seed/omc/omc.om
38m-paren emit seed/omc/om2/s1/fmt-in.om file:seed/omc/om2/s1/fmt-out.txt - 0
39# diag: an undeclared function is no longer sev=unknown
40subst seed/omc/om2/s1/mut/unk.from seed/omc/om2/s1/mut/unk.to
41cc seed/omc/omc.om
42m-unk emit seed/omc/om2/s1/diag-unknown.om - file:seed/omc/om2/s1/diag-unknown.err 3
43# an undeclared type name (a struct not yet declared) is no longer sev=unknown expect=name
44subst seed/omc/om2/s1/mut/tyunk.from seed/omc/om2/s1/mut/tyunk.to
45cc seed/omc/omc.om
46m-tyunk emit seed/omc/om2/s1/diag-newpt.om - file:seed/omc/om2/s1/diag-newpt.err 16
47# fn name: the keyword test applied to the first 8 bytes of a name of 9..63 bytes (continue_x read as continue)
48# kwlong: the keyword check of a name of 9..63 bytes reads its first 8 bytes (tw8), so continue_x is read as continue
49subst seed/omc/om2/s1/mut/kwlong.from seed/omc/om2/s1/mut/kwlong.to
50cc seed/omc/omc.om
51m-kwlong run seed/omc/om2/s1/kw-long-names.om - - - 0