Skip to content

Commit

Permalink
resolve: update references collection cycle detect logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Jan 6, 2025
1 parent 1171a97 commit 549c546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public void registerVariable(GeneralizedVar var) {

var deps = collectReferences(var);
dependencies.put(var, deps);
visiting.remove(var);

// Recursively register dependencies
for (var dep : deps) {
registerVariable(dep);
}

visiting.remove(var);
visited.add(var);
}

Expand Down

0 comments on commit 549c546

Please sign in to comment.