Skip to content

Commit b010929

Browse files
Update src/systems/alias_elimination.jl
Co-authored-by: Aayush Sabharwal <aayush.sabharwal@gmail.com>
1 parent 2175ba7 commit b010929

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/systems/alias_elimination.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ function find_perfect_aliases!(
346346
# (`v - target` with `v→target` leaves neither). Substitution never
347347
# introduces new vars, so the new incidence is a subset of the old —
348348
# prune the row to entries actually present in the simplified RHS.
349-
new_vars = Symbolics.get_variables(eqs[e], fullvars)
349+
empty!(new_vars)
350+
SU.search_variables!(new_vars, eqs[e])
350351
new_row = filter(v_idx -> fullvars[v_idx] in new_vars, 𝑠neighbors(graph, e))
351352
BipartiteGraphs.set_neighbors!(graph, e, new_row)
352353
end

0 commit comments

Comments
 (0)