add intermediate result between a Node and the "also"s it spawns
[sbp.git] / src / edu / berkeley / sbp / Node.java
index 8710863..b360071 100644 (file)
@@ -76,7 +76,7 @@ final class Node
         phase.hash.put(state, result.phase(), this);
 
         for(Object s : state.also)
-            phase.newNode(result, (State)s, fromEmptyReduction);
+            phase.newNode(new Result(null, this, null), (State)s, fromEmptyReduction);
 
         state.invokeReductions(phase().token, this, true, null);
         if (!fromEmptyReduction)