Repository navigation
test(analog): sar_adc mutation census, 76 -> 85 killed, 14 -> 5 survived, rest accepted (Closes #12096) - #12108
Conversation
… -> 5 survived, rest accepted (Closes #12096) Three tests appended after the last original test of specs/analog/sar_adc.t27 (15 -> 18 tests, 0 vacuous): the ideal quantizer clamps at both ends (7 asserts), fit_cp equals a hand scan of the 41 Cp points on every one of the 41 offsets of the fit grid (164), and models one step past the end of a fit grid, or in the middle of an interval, are built by bisection on the model itself and found at the right point (290). The 5 survivors left are equal-value ties and clamp edges, the 8 hung mutants are dropped loop steps; all 13 are in docs/analog/mutation-accepted-sar_adc.txt, and the gate with --accepted ends green. Seal re-saved with the master-built t27c. The census and the arithmetic of each accepted line are in docs/analog/mutation-sar_adc-2026-10-25.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Summary by t27-beesChecked by the t27 compilert27c parse, parse-complete and typecheck on each changed .t27 file at
Read by the modelThis PR adds three tests to Worth a look
Read: 4 files, +252 -9, the whole diff. Head |
…n" -- the scan is written in the test (Refs #12117) (#12118) The t27-bees review of PR #12108 pointed at the phrase: the fit_cp test does not compare against a scan done by hand, it re-scores all 41 Cp points with match_count and miss_margins inside the test. Say that, and say what it does and does not check (the choice rule, not those two functions). No number changes. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Closes #12096. Part of epic #10486 (weak spots of the analog v0.1 release).
What changed
The mutation census of
specs/analog/sar_adc.t27(98 mutants) left 14 survivors and 8 hung mutants on master. This change appends three tests after the last original test (so no line number above moved), writes the survivors that no test can or must kill intodocs/analog/mutation-accepted-sar_adc.txt, and records the census indocs/analog/mutation-sar_adc-2026-10-25.md.The 5 survivors are equal-value ties (
>to>=where the tie writes the value already held) and two clamp edges where the fall-through cast gives the same integer; each has its arithmetic in the accepted file. The 8 hung mutants are dropped loop steps. The gate with--acceptedand--timeout 30ran on the final tree (04:02-04:06 +07): exit 0, "13 not killed (5 survived, 8 hung), 13 accepted by the file, 0 accepted line(s) now killed. Gate passed."tri coverage --strict:gaps 0 coverage 130/130.The tests
fit_cpreturns the first point of most matches and least margin, equal to a hand scan of the 41 Cp points, on every one of the 41 offsets of the fit grid (164 asserts);tri test specs/analog/sar_adc.t27: 18 tests pass, 0 vacuous. Seal re-saved with the master-builtt27c(tri seals changed;built_byends in+19a89f1e3).Not claimed
sar_adcis gated here; analog: pin the 12 surviving mutants of sar_kick.t27 (Refs #10486) #12097 (sar_kick), analog: pin the 13 surviving mutants of sar_cdac.t27 (Refs #10486) #12098 (sar_cdac) and analog: pin the 9 surviving mutants of sar_comparator_psp.t27 (Refs #10486) #12099 (sar_comparator_psp) stay open.🤖 Generated with Claude Code