Skip to content

Commit

Permalink
Update TopologicalSort.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaybit0 committed Jan 29, 2025
1 parent d885d53 commit 0d5651f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ public static void sort(RewriterStatement root, BiFunction<RewriterStatement, Re
//setupAddresses(lowestUncertainties);
buildAddresses(root, ctx);
resolveAmbiguities(root, ctx, uncertainParents);
System.out.println("After resolving: " + root.toParsableString(ctx));
// TODO: Propagate address priorities and thus implicit orderings up the DAG
resetAddresses(uncertainParents);
System.out.println("After resetting: " + root.toParsableString(ctx));

int factCtr = 0;

Expand Down Expand Up @@ -179,7 +177,8 @@ private static List<RewriterStatement> setupOrderFacts(RewriterStatement root, B
knownOrder.addAll(el.getOperands());
}

System.out.println("Initial known order of " + el.toParsableString(ctx) + ": " + knownOrder);
if (DEBUG)
System.out.println("Initial known order of " + el.toParsableString(ctx) + ": " + knownOrder);
}, false);

return uncertainParents;
Expand Down

0 comments on commit 0d5651f

Please # to comment.