Skip to content

Add same-net trace merge phase#404

Open
jamilahmadzai wants to merge 2 commits into
tscircuit:mainfrom
jamilahmadzai:same-net-trace-merge-phase
Open

Add same-net trace merge phase#404
jamilahmadzai wants to merge 2 commits into
tscircuit:mainfrom
jamilahmadzai:same-net-trace-merge-phase

Conversation

@jamilahmadzai
Copy link
Copy Markdown

@jamilahmadzai jamilahmadzai commented May 21, 2026

/claim #29
/claim #34

Summary

  • add a dedicated same-net trace merge phase after trace cleanup
  • align nearby overlapping horizontal/vertical same-net internal segments onto a shared axis
  • preserve terminal pin legs and skip moves that would collide with a different-net trace
  • export the solver helper and add focused coverage for horizontal, vertical, different-net, and blocked-collision cases

Validation

  • ./node_modules/.bin/tsc --noEmit
  • npm run build
  • npx biome check lib/solvers/SameNetTraceMergeSolver/SameNetTraceMergeSolver.ts lib/solvers/SameNetTraceMergeSolver/mergeSameNetTraceSegments.ts tests/solvers/SameNetTraceMergeSolver/same-net-trace-merge-solver.test.ts
  • direct Node smoke test against the built dist/index.js

Payout

Payment method: Algora bounty-platform payout to GitHub user @jamilahmadzai.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment May 21, 2026 9:20pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant