Skip to content
Snippets Groups Projects
Commit 666fa8d6 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

new_filtered now also finds dependencies in main assignments

parent aa6b64dc
No related branches found
No related tags found
1 merge request!288Fix: AssignmentCollection's `new_filtered` now also finds dependencies in main assignments
...@@ -303,7 +303,7 @@ class AssignmentCollection: ...@@ -303,7 +303,7 @@ class AssignmentCollection:
if eq.lhs in symbols_to_extract: if eq.lhs in symbols_to_extract:
new_assignments.append(eq) new_assignments.append(eq)
new_sub_expr = [eq for eq in self.subexpressions new_sub_expr = [eq for eq in self.all_assignments
if eq.lhs in dependent_symbols and eq.lhs not in symbols_to_extract] if eq.lhs in dependent_symbols and eq.lhs not in symbols_to_extract]
return self.copy(new_assignments, new_sub_expr) return self.copy(new_assignments, new_sub_expr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment