keep track of which reduction created each result (if any)
[sbp.git] / src / edu / berkeley / sbp / Reduction.java
index 5eb3f63..4ef2013 100644 (file)
@@ -40,7 +40,9 @@ final class Reduction implements Comparable<Reduction> {
         return 1;
     }
 
         return 1;
     }
 
-    public void perform() { new Result(forest, pred, reduction, phase); }
+    public void perform() {
+        Result.newResult(forest, pred, reduction, phase);
+    }
     public GSS.Phase predPhase() { return pred.phase(); }
     public Pos reduction() { return reduction; }
     public GSS.Phase targetPhase() { return phase; }
     public GSS.Phase predPhase() { return pred.phase(); }
     public Pos reduction() { return reduction; }
     public GSS.Phase targetPhase() { return phase; }