add intermediate result between a Node and the "also"s it spawns
authoradam <adam@megacz.com>
Mon, 26 Feb 2007 01:24:06 +0000 (20:24 -0500)
committeradam <adam@megacz.com>
Mon, 26 Feb 2007 01:24:06 +0000 (20:24 -0500)
darcs-hash:20070226012406-5007d-162be5177239df1a2e10d98b1eab7fe8dae335bd.gz

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.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)
 
         state.invokeReductions(phase().token, this, true, null);
         if (!fromEmptyReduction)