Skip to content

Commit

Permalink
Fix bug in cutout (#1933)
Browse files Browse the repository at this point in the history
This fixes a bug in cutout for me.
  • Loading branch information
ThrudPrimrose authored Feb 19, 2025
1 parent bd7b0d6 commit c377d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/sdfg/analysis/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def from_transformation(
cutout.translate_transformation_into(transformation)
return cutout
raise Exception('Unsupported transformation type: {}'.format(type(transformation)))

@classmethod
def singlestate_cutout(cls,
state: SDFGState,
Expand Down Expand Up @@ -1059,7 +1059,7 @@ def _cutout_determine_output_configuration(ct: SDFG, cutout_reach: Set[SDFGState
check_for_read_after.add(dn.data)

original_state: SDFGState = out_translation[state]
for edge in original_state.parent.out_edges(original_state):
for edge in original_state.parent_graph.out_edges(original_state):
if edge.dst in cutout_reach:
border_out_edges.add(edge.data)

Expand Down

0 comments on commit c377d16

Please sign in to comment.