Commit 223a1051 authored by Frederik Hennig's avatar Frederik Hennig Committed by Markus Holzer
Browse files

Fix: AssignmentCollection's `new_filtered` now also finds dependencies in main assignments

parent 1f3b1300
......@@ -303,7 +303,7 @@ class AssignmentCollection:
if eq.lhs in symbols_to_extract:
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]
return self.copy(new_assignments, new_sub_expr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment