Skip to content

Commit

Permalink
Better dot/png naming
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Nov 20, 2024
1 parent 6d08394 commit 84c3bb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions control_flow/build_control_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def build_and_analyze_control_flow(
version = ".".join((str(n) for n in code_version_tuple[:2]))
if graph_options in ("all", "control-flow"):
write_dot(
f"{file_part}{func_or_code_name}",
f"/tmp/flow-{version}-",
f"{file_part}-{func_or_code_name}",
f"/tmp/flow-{version}",
cfg.graph,
write_png=True,
exit_node=cfg.exit_node,
Expand All @@ -88,8 +88,8 @@ def build_and_analyze_control_flow(

if graph_options in ("all", "dominators"):
write_dot(
f"{file_part}{func_or_code_name}",
f"/tmp/flow-dom-{version}-",
f"{file_part}-{func_or_code_name}",
f"/tmp/flow-dom-{version}",
cfg.dom_forest,
write_png=True,
exit_node=cfg.exit_node,
Expand All @@ -98,8 +98,8 @@ def build_and_analyze_control_flow(
cfg.classify_edges()
if graph_options in ("all",):
write_dot(
f"{file_part}{func_or_code_name}",
f"/tmp/flow+dom-{version}-",
f"{file_part}-{func_or_code_name}",
f"/tmp/flow+dom-{version}",
cfg.graph,
write_png=True,
is_dominator_format=True,
Expand Down

0 comments on commit 84c3bb0

Please sign in to comment.