diff options
| author | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 15:06:05 +0200 |
|---|---|---|
| committer | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 16:01:45 +0200 |
| commit | 15f35991116d813ed2b547f8f0f03a0d822867b1 (patch) | |
| tree | 981ae85d73d114f8b0834b059f0d69835e527b09 /runtime/src/bcpack.cpp | |
| parent | ea10ffd572c9af0298a98f6427209e2bde402b7c (diff) | |
semantic_mutants: mutate the Python logic around the emission too (MUTANTS-PY-LOGIC)
The tool only mutated SPIR-V emission (opcode pairs, self.cu constants, OpSelect arms, the last operand), so the
translator's analysis code - register liveness, lane-mask tracking, operand checks - got no mutants at all:
`--function read_before_write_vgprs` listed 0. Mutate its names and operators by token, so strings, f-strings and
comments stay as they are: comparisons flipped (== / !=, < / <=, > / >=, in / not in, is / is not; the `in` of a
for loop or comprehension stays), and / or, a `not` dropped, True / False, and a one-line statement that can fail
silently replaced by `pass` (a call that is not an emit, an augmented assignment, a rebinding of a name assigned
earlier in the range). The branch's own `if op ...` condition is left alone. Repeated labels on one line are
numbered from the left.
On #658's read_before_write_vgprs with its test file: 36 mutants, 27 caught; the survivors include the
`carried.difference_update(dst)` removal found equivalent by hand in that review, and `regs += x["r"]` (vlist
operands), which no case reaches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions