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

Fix bug in cutout #1933

Merged
merged 5 commits into from
Feb 19, 2025
Merged

Fix bug in cutout #1933

merged 5 commits into from
Feb 19, 2025

Conversation

ThrudPrimrose
Copy link
Collaborator

This fixes a bug in cutout for me.

@@ -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.out_edges(original_state.parent_graph):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThrudPrimrose Off the top of my head, I think this actually needs more adaptation: original_state.parent still is an 'old-style' reference to the SDFG the original state belongs to. I believe this may need to be original_state.parent_graph.out_edges(original_state.parent_graph). can you see if that fixes the tests?

@phschaad phschaad added this pull request to the merge queue Feb 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 19, 2025
@phschaad phschaad added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit c377d16 Feb 19, 2025
9 checks passed
@phschaad phschaad deleted the cutout_fix branch February 19, 2025 17:34
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.

2 participants