Skip to content

Commit

Permalink
Actually add demoted element to aliases of canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp authored and zapashcanon committed Feb 10, 2025
1 parent 6819918 commit 359c03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_structures/union_find.ml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module Make (X : VariableType) : S with type key = X.t = struct
| Some lhs_datum, Some rhs_datum -> Some (merge lhs_datum rhs_datum)
in
let node =
{ aliases = SX.union lhs_node.aliases rhs_node.aliases;
{ aliases = SX.add demoted (SX.union lhs_node.aliases rhs_node.aliases);
cardinal = lhs_node.cardinal + rhs_node.cardinal + 1;
datum
}
Expand Down

0 comments on commit 359c03b

Please sign in to comment.