lambda-graphs 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lambda_graphs-0.1.4/src/lambda_graphs.egg-info → lambda_graphs-0.1.5}/PKG-INFO +1 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/setup.cfg +1 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/cli.py +1 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/SDFG/SDFG.py +15 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/combined_graph/combined_driver.py +8 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/postprocessor.py +5 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5/src/lambda_graphs.egg-info}/PKG-INFO +1 -1
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/LICENSE +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/README.md +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/setup.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/__main__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/AST/AST.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/AST/AST_driver.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/AST/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/CFG.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/CFG_c.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/CFG_cpp.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/CFG_driver.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/CFG_java.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CFG/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CST/CST_driver.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/CST/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/DFG/DFG_driver.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/DFG/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/SDFG/SDFG_c.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/SDFG/SDFG_cpp.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/SDFG/SDFG_java.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/SDFG/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/combined_graph/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/c_parser.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/cpp_parser.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/custom_parser.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/java_parser.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/tree_parser/parser_driver.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/DFG_utils.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/__init__.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/c_nodes.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/cpp_nodes.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/java_nodes.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/multi_file_merger.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/preprocessor.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/utils/src_parser.py +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs.egg-info/SOURCES.txt +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs.egg-info/dependency_links.txt +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs.egg-info/entry_points.txt +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs.egg-info/requires.txt +0 -0
- {lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs.egg-info/top_level.txt +0 -0
|
@@ -41,7 +41,7 @@ def main(
|
|
|
41
41
|
help="Custom name for combined file (without extension), e.g., 'myproject'",
|
|
42
42
|
),
|
|
43
43
|
graphs: str = typer.Option("ast,dfg", help="ast, cfg, dfg"),
|
|
44
|
-
output: str = typer.Option("dot", help="all/json/dot (dot generates png as well)"),
|
|
44
|
+
output: str = typer.Option("dot", help="all/json/dot/svg (dot generates png as well)"),
|
|
45
45
|
blacklisted: str = typer.Option("", help="Nodes to be removed from the AST"),
|
|
46
46
|
collapsed: bool = typer.Option(
|
|
47
47
|
False, help="Collapses all occurrences of a variable into one node"
|
|
@@ -65,13 +65,27 @@ class DfgRda:
|
|
|
65
65
|
self.graph,
|
|
66
66
|
output_file.rsplit(".", 1)[0] + ".dot",
|
|
67
67
|
output_png=True,
|
|
68
|
+
output_svg=(graph_format == "all"),
|
|
68
69
|
src_language=self.src_language,
|
|
69
70
|
)
|
|
70
|
-
if graph_format == "all" or graph_format == "dot":
|
|
71
71
|
postprocessor.write_to_dot(
|
|
72
72
|
self.debug_graph,
|
|
73
73
|
output_file.rsplit(".", 1)[0] + "_debug.dot",
|
|
74
74
|
output_png=True,
|
|
75
|
+
output_svg=(graph_format == "all"),
|
|
76
|
+
src_language=self.src_language,
|
|
77
|
+
)
|
|
78
|
+
if graph_format == "svg":
|
|
79
|
+
postprocessor.write_to_dot(
|
|
80
|
+
self.graph,
|
|
81
|
+
output_file.rsplit(".", 1)[0] + ".dot",
|
|
82
|
+
output_svg=True,
|
|
83
|
+
src_language=self.src_language,
|
|
84
|
+
)
|
|
85
|
+
postprocessor.write_to_dot(
|
|
86
|
+
self.debug_graph,
|
|
87
|
+
output_file.rsplit(".", 1)[0] + "_debug.dot",
|
|
88
|
+
output_svg=True,
|
|
75
89
|
src_language=self.src_language,
|
|
76
90
|
)
|
|
77
91
|
self.json = postprocessor.write_networkx_to_json(self.graph, output_file)
|
|
@@ -52,6 +52,14 @@ class CombinedDriver:
|
|
|
52
52
|
self.graph,
|
|
53
53
|
output_file.split(".")[0] + ".dot",
|
|
54
54
|
output_png=True,
|
|
55
|
+
output_svg=(graph_format == "all"),
|
|
56
|
+
src_language=self.src_language,
|
|
57
|
+
)
|
|
58
|
+
if graph_format == "svg":
|
|
59
|
+
postprocessor.write_to_dot(
|
|
60
|
+
self.graph,
|
|
61
|
+
output_file.split(".")[0] + ".dot",
|
|
62
|
+
output_svg=True,
|
|
55
63
|
src_language=self.src_language,
|
|
56
64
|
)
|
|
57
65
|
|
|
@@ -27,7 +27,7 @@ def to_dot(graph):
|
|
|
27
27
|
return nx.nx_pydot.to_pydot(graph)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
def write_to_dot(og_graph, filename, output_png=False, src_language=None):
|
|
30
|
+
def write_to_dot(og_graph, filename, output_png=False, output_svg=False, src_language=None):
|
|
31
31
|
graph = copy.deepcopy(og_graph)
|
|
32
32
|
if not os.getenv("GITHUB_ACTIONS"):
|
|
33
33
|
dot_reserved_keywords = {
|
|
@@ -81,3 +81,7 @@ def write_to_dot(og_graph, filename, output_png=False, src_language=None):
|
|
|
81
81
|
check_call(
|
|
82
82
|
["dot", "-Tpng", filename, "-o", filename.rsplit(".", 1)[0] + ".png"]
|
|
83
83
|
)
|
|
84
|
+
if output_svg:
|
|
85
|
+
check_call(
|
|
86
|
+
["dot", "-Tsvg", filename, "-o", filename.rsplit(".", 1)[0] + ".svg"]
|
|
87
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lambda_graphs-0.1.4 → lambda_graphs-0.1.5}/src/lambda_graphs/codeviews/combined_graph/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|