Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to --dep graph #3411

Merged
merged 6 commits into from
Jan 12, 2025
Merged

Conversation

mtzguido
Copy link
Member

Some work in progress to make dependency graphs more useful. Mostly 1) distinguish between interface and implementation instead of just coallescing the modules, and 2) do not bring into the graph the implementation of modules if they are unneeded.

With this, the dependency graph for FStar.Tactics.V2.fst goes from:

depgraph-FStar Tactics V2 fst

To:

depgraph-FStar Tactics V2 fst

Which allows to distinguish fst/fsti (e.g. we are not depending on FStar.UInt32.fst). Marking as WIP since I ripped out the full cycle detection for this.

@mtzguido
Copy link
Member Author

Updated on top of the current master, adding the rule to generic.mk. The broken patch to not look across interfaces is dropped for now, though it would be nice to get simpler graphs (though this can anyway be done at the graph level, finding only the nodes reachable from the one we care about).

@mtzguido mtzguido marked this pull request as ready for review January 12, 2025 18:49
@mtzguido mtzguido changed the title Dep graph visualization Improvements to --dep graph Jan 12, 2025
@mtzguido mtzguido enabled auto-merge January 12, 2025 18:50
@mtzguido mtzguido merged commit 7e04318 into FStarLang:master Jan 12, 2025
11 checks passed
@mtzguido mtzguido deleted the wip_depgraph branch January 12, 2025 19:24
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.

1 participant