Skip to content

mutants: add one for all-changes a2912e3 (around radius-0 tolerance) - #264

Merged
cldellow merged 1 commit into
bench-toolsfrom
mutant-around-tolerance
Nov 29, 2026
Merged

cldellow merged 1 commit into
bench-toolsfrom
mutant-around-tolerance

Conversation

@cldellow

@cldellow cldellow commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Adds a mutant for all-changes commit 88, a2912e3 ("around: test input points through the tile index, not every point's bbox", #262). Targets bench-tools.

Mutant

In src/overpass_api/statements/around.cc, std::abs(cit->lon - lon) < 0.5e-7 becomes std::abs(cit->lon - lon) < 1e-7. That's the half-unit radius-0 tolerance applied to latitude only, a plausible slip in the line the commit changes. around radius 0 then matches nodes one storage unit apart in longitude again.

Result

bench/props/mutate.py --only a2912e3 --seeds 1-60, against upstream/master 555f744, with a better-imports build for history imports, 4-core VM: caught in 8 checks: "date around rel = around members" (nodes: 7 differ, 15 fewer fixed; ways: 6 fewer fixed), "filter placement" (nwr around set, then tags, and the reverse), and "type decomposition" (nr, nr + tag, nw and nwr around set).

The other half of the commit, dropping the node pre-check, has no mutant. Putting the pre-check back changes speed, not results: its only effect on results is the radius-0 edge, which this mutant covers.

https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT


Generated by Claude Code

The mutant applies the half-unit radius-0 tolerance to latitude only,
leaving longitude at 1e-7, so around radius 0 matches nodes one unit apart
in longitude again. mutate.py --only a2912e3 (seeds 1-60) catches it in 8
around checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
@cldellow
cldellow merged commit b31c374 into bench-tools Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants