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 Dec 27, 2024
1 parent 17cd635 commit 125eb05
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 125eb05

Please sign in to comment.