Repository navigation
mutants: add one for all-changes a2912e3 (around radius-0 tolerance) - #264
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-7becomesstd::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.aroundradius 0 then matches nodes one storage unit apart in longitude again.Result
bench/props/mutate.py --only a2912e3 --seeds 1-60, againstupstream/master555f744, with abetter-importsbuild 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