Commit 69ec458c authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'fix_new_filtered' into 'master'

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

See merge request !288
parents c7addcf7 223a1051
......@@ -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