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 7, 2025
1 parent e344430 commit a383eee
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 a383eee

Please sign in to comment.