Skip to content

Conversation

@EagleoutIce
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to extract a sub call graph from a full call graph based on selective entry point IDs. The implementation allows users to create a filtered call graph containing only the nodes reachable from specified starting points.

  • Implements getSubCallGraph function to extract sub-graphs from call graphs
  • Adds comprehensive test coverage for the new sub-graph extraction feature
  • Exports helper function mapProblematicNodesToIds for better test utility reuse
  • Refactors slice-call.ts for improved code maintainability

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/dataflow/graph/call-graph.ts Adds getSubCallGraph function to extract sub call graphs from given entry points using depth-first traversal
test/functionality/dataflow/call-graph/call-graph-sub.test.ts Introduces new test suite for sub call graph extraction with test helper function
test/functionality/_helper/shell.ts Exports mapProblematicNodesToIds helper function with documentation for reuse in tests
src/slicing/static/slice-call.ts Refactors code by extracting constant PotentialFollowOnReturn, using destructuring, and moving fingerprint calculation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@EagleoutIce EagleoutIce merged commit 19c47a6 into main Jan 4, 2026
19 checks passed
@EagleoutIce EagleoutIce deleted the 2171-feat-provide-call-graph-for-a-selective-id-only branch January 4, 2026 14:17
@EagleoutIce
Copy link
Member Author

This pull request is included in v2.8.2 (see Release v2.8.2 (Project Discovery Fixes, Call-Graph Slices)).

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.

Feat: Provide Call-Graph for a selective Id only

2 participants