Skip to content

mutants: add ones for all-changes commit 94 (way geometry cache) and 2efbfd3 (Fixed7 guard) - #284

Merged
cldellow merged 3 commits into
bench-toolsfrom
mutant-way-geometry-cache
Nov 29, 2026
Merged

cldellow merged 3 commits into
bench-toolsfrom
mutant-way-geometry-cache

Conversation

@cldellow

@cldellow cldellow commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

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_members then skips the member ways that are not cached, so those relations lose their members' geometry.

Result: checked with the mutate workflow (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 guard if (!(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. The mutate workflow (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-changes was then restored and rebuilt, so the second commit re-keys it to 0f38cb2. The key is only a label: mutate.py applies the text replacement to whatever ref it checks out.

https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT


Generated by Claude Code

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
@cldellow cldellow changed the title mutants: add one for all-changes commit 94 (way geometry cache) mutants: add ones for all-changes commit 94 (way geometry cache) and 2efbfd3 (Fixed7 guard) Nov 29, 2026
@cldellow
cldellow merged commit b15ff91 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