Add same-net trace merging phase#291
Open
chacu wants to merge 2 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
/claim #29
Closes #29
Summary
SameNetTraceMergingSolverpipeline phase after overlap shiftingReproduction / Verification
The focused test reproduces the core failure mode from the bounty: two routed same-net traces have close, overlapping horizontal runs on separate axes. The new solver collapses those runs onto a shared axis while preserving anchored endpoint-only traces.
The test suite also covers the guard case where the tempting merge axis would create a colinear overlap with a different net, so the solver leaves both traces untouched.
The visual fixture at
site/SameNetTraceMergingSolver/SameNetTraceMergingSolver.page.tsxshows the same scenario side-by-side: before merging and after the solver collapses the same-net runs.Test Plan
./node_modules/.bin/bun test tests/solvers/SameNetTraceMergingSolver/SameNetTraceMergingSolver.test.tsnpm run format:check./node_modules/.bin/bun testnpm run build