Repository navigation
mutants: add ones for all-changes commit 94 (way geometry cache) and 2efbfd3 (Fixed7 guard) - #284
Merged
Merged
Conversation
The mutant inverts the cache test in Relation_Geometry_Store, so member ways whose geometry is not cached are skipped instead of the cached ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
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 94, 0f38cb2 ("way geometry: reuse the way geometry this query has already built", #282). Targets
bench-tools.Mutant: in
data/relation_geometry_store.cc, the test that collects the ids of relation member ways whose geometry is already cached is negated.relation_way_membersthen skips the member ways that are not cached, so those relations lose their members' geometry.Result: checked with the
mutateworkflow (run),only=0f38cb2,ref=all-changes,tools_ref=mutant-way-geometry-cache, seeds 1–60: caught by three checks: "out geom rels" (40 differ, 40 more fail), "out center" (10 differ) and "out json geom" (10 differ).Second mutant, for all-changes 2efbfd3 ("Fixed7: take the fast path only for |value| <= 360", from #17): in
output_formats/fixed7.h, it restores the old guardif (!(std::abs(value) <= 1e9)). It is equivalent on every value Overpass prints, as its note records. Coordinates, centres and bounds are all within 360, where both guards take the same path; the old guard only misprints values above about 1e8. Themutateworkflow (run,only=2efbfd3, seeds 1–60) reports it not caught, as expected. #17 has the exhaustive check and the proof for this commit.The branch first keyed the way-cache mutant to e8e5a2a.
all-changeswas then restored and rebuilt, so the second commit re-keys it to 0f38cb2. The key is only a label:mutate.pyapplies the text replacement to whateverrefit checks out.https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
Generated by Claude Code