+ public void check() { if (successors.size()==0) destroy(); }
+ public void destroy() {
+ if (destroyed) return;
+ if (pred==null) return; // never destroy the "primordeal" result
+ destroyed = true;
+ pred.removeSucc(this);
+ while(successors.size() > 0)
+ for(Node n : successors) {
+ removeSucc(n);
+ n.removeResult(this);
+ break;
+ }
+ }
+
+ public Result(Forest f, Node pred, Pos reduction) {
+ this(f, pred, reduction, null);
+ }
+ public Result(Forest f, Node pred, Pos reduction, GSS.Phase target) {