-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry-picking the dependency graph building recipe
- Loading branch information
1 parent
423e19f
commit 28e1b98
Showing
9 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ Makefile.coq.conf | |
*.cache | ||
|
||
_opam | ||
|
||
*.dot |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
print "digraph logrel_deps {\n"; | ||
print " node [shape = ellipse,style=filled];\n"; | ||
print " subgraph cluster_autosubst { label=\"AutoSubst\" \n}"; | ||
print " subgraph cluster_logrel { label=\"LogicalRelation\" \n}"; | ||
print " subgraph cluster_subst { label=\"Validity\" \n}"; | ||
print " subgraph cluster_dec { label=\"Decidability\" \n}"; | ||
while (<>) { | ||
if (m/.*?theories\/([^\s]*)\.vo.*:(.*)/) { | ||
$dests = $2 ; | ||
($path,$src) = ($1 =~ s/\//\./rg =~ m/(.*\.)?([^.]*)$/); | ||
if ($path =~ m/AutoSubst\./) { | ||
print "subgraph cluster_autosubst { \"$path$src\"[label=\"$src\",fillcolor=firebrick]}" | ||
}elsif ($path =~ m/LogicalRelation\./) { | ||
print "subgraph cluster_logrel { \"$path$src\"[label=\"$src\",fillcolor=forestgreen]}" | ||
}elsif ($path =~ m/Substitution\./) { | ||
print "subgraph cluster_subst { \"$path$src\"[label=\"$src\",fillcolor=goldenrod1]}" | ||
}elsif ($path =~ m/Decidability\./) { | ||
print "subgraph cluster_dec { \"$path$src\"[label=\"$src\",fillcolor=deeppink3]}" | ||
}else { | ||
print "\"$path$src\"[label=\"$src\",fillcolor=dodgerblue1]" | ||
} | ||
for my $dest (split(" ", $dests)) { | ||
$dest =~ s/\//\./g ; | ||
print " \"$1\" -> \"$path$src\";\n" if ($dest =~ m/theories\.(.*)\.vo/); | ||
} | ||
} | ||
} | ||
print "}\n"; |
This file contains 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
This file contains 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
This file contains 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