diff --git a/src/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java b/src/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java index 5980d29f..91aeba6e 100644 --- a/src/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java +++ b/src/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java @@ -570,7 +570,8 @@ public class TypeUnifyTask extends RecursiveTask>> { .collect(Collectors.toCollection(HashSet::new)); //Set vars = durchschnitt.stream().map(x -> (PlaceholderType)x.getLhsType()).collect(Collectors.toCollection(HashSet::new)); int len = nextSetasList.size(); - if (!durchschnitt.isEmpty()) { + //if (!durchschnitt.isEmpty()) + { //UnifyPair groundBasepair = res.iterator().next().iterator().next().getGroundBasePair().get(); Set undefRes = res.stream().reduce((y,z) -> { y.addAll(z); return y;}).get(); //flatten aller undef results Set, UnifyPair>> reducedUndefResSubstGroundedBasePair = undefRes.stream() @@ -594,8 +595,8 @@ public class TypeUnifyTask extends RecursiveTask>> { })//.filter(y -> couldBecorrect(reducedUndefResSubstGroundedBasePair, y)) fuer testzwecke auskommentiert um nofstred zu bestimmen PL 2018-10-10 .collect(Collectors.toCollection(ArrayList::new)); nofstred = nextSetasList.size(); - //nextSetasList = nextSetasList.stream().filter(y -> couldBecorrect(reducedUndefResSubstGroundedBasePair, y)) - // .collect(Collectors.toCollection(ArrayList::new)); + nextSetasList = nextSetasList.stream().filter(y -> couldBecorrect(reducedUndefResSubstGroundedBasePair, y)) + .collect(Collectors.toCollection(ArrayList::new)); } writeLog("abhSubst: " + abhSubst.toString()); writeLog("a: " + a.toString());