|
1
|
|
package net.bmahe.genetics4j.moo; |
|
2
|
|
|
|
3
|
|
import java.util.ArrayList; |
|
4
|
|
import java.util.Comparator; |
|
5
|
|
import java.util.HashMap; |
|
6
|
|
import java.util.HashSet; |
|
7
|
|
import java.util.List; |
|
8
|
|
import java.util.Map; |
|
9
|
|
import java.util.Set; |
|
10
|
|
|
|
11
|
|
import org.apache.commons.lang3.Validate; |
|
12
|
|
|
|
13
|
|
public class ParetoUtils { |
|
14
|
|
|
|
15
|
|
private ParetoUtils() { |
|
16
|
|
|
|
17
|
|
} |
|
18
|
|
|
|
19
|
|
public static <T> List<Set<Integer>> rankedPopulation(final Comparator<T> dominance, final List<T> fitnessScore) { |
|
20
|
|
Validate.notNull(dominance); |
|
21
|
|
Validate.notNull(fitnessScore); |
|
22
|
|
Validate.isTrue(fitnessScore.isEmpty() == false); |
|
23
|
|
|
|
24
|
1
1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
|
final Map<Integer, Set<Integer>> dominating = new HashMap<>(); |
|
25
|
1
1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
|
final Map<Integer, Integer> dominatedCount = new HashMap<>(); |
|
26
|
|
|
|
27
|
1
1. rankedPopulation : removed call to java/util/ArrayList::<init> → KILLED
|
final List<Set<Integer>> rankedPopulation = new ArrayList<>(); |
|
28
|
2
1. rankedPopulation : removed call to java/util/List::add → KILLED
2. rankedPopulation : removed call to java/util/HashSet::<init> → KILLED
|
rankedPopulation.add(new HashSet<>()); |
|
29
|
2
1. rankedPopulation : removed call to java/util/List::get → KILLED
2. rankedPopulation : Substituted 0 with 1 → KILLED
|
final Set<Integer> firstFront = rankedPopulation.get(0); |
|
30
|
|
|
|
31
|
6
1. rankedPopulation : changed conditional boundary → KILLED
2. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : Substituted 0 with 1 → KILLED
5. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
6. rankedPopulation : removed call to java/util/List::size → KILLED
|
for (int i = 0; i < fitnessScore.size(); i++) { |
|
32
|
|
|
|
33
|
1
1. rankedPopulation : removed call to java/util/List::get → KILLED
|
final T individualFitness = fitnessScore.get(i); |
|
34
|
1
1. rankedPopulation : Substituted 0 with 1 → KILLED
|
int dominated = 0; |
|
35
|
|
|
|
36
|
6
1. rankedPopulation : Substituted 0 with 1 → KILLED
2. rankedPopulation : changed conditional boundary → KILLED
3. rankedPopulation : removed call to java/util/List::size → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
5. rankedPopulation : negated conditional → KILLED
6. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
|
for (int otherIndex = 0; otherIndex < fitnessScore.size(); otherIndex++) { |
|
37
|
3
1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
|
if (otherIndex != i) { |
|
38
|
1
1. rankedPopulation : removed call to java/util/List::get → KILLED
|
final T otherFitness = fitnessScore.get(otherIndex); |
|
39
|
|
|
|
40
|
1
1. rankedPopulation : removed call to java/util/Comparator::compare → KILLED
|
final int comparison = dominance.compare(individualFitness, otherFitness); |
|
41
|
4
1. rankedPopulation : changed conditional boundary → SURVIVED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
|
if (comparison > 0) { |
|
42
|
5
1. lambda$rankedPopulation$0 : replaced return value with Collections.emptySet for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$0 → KILLED
2. lambda$rankedPopulation$0 : removed call to java/util/HashSet::<init> → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
4. rankedPopulation : removed call to java/util/Map::computeIfAbsent → KILLED
5. rankedPopulation : replaced call to java/util/Map::computeIfAbsent with argument → KILLED
|
dominating.computeIfAbsent(i, (k) -> new HashSet<>()); |
|
43
|
5
1. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
2. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
3. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
4. rankedPopulation : removed call to java/util/Map::get → KILLED
5. rankedPopulation : removed call to java/util/Set::add → KILLED
|
dominating.get(i).add(otherIndex); |
|
44
|
4
1. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
4. rankedPopulation : changed conditional boundary → KILLED
|
} else if (comparison < 0) { |
|
45
|
2
1. rankedPopulation : Changed increment from 1 to -1 → KILLED
2. rankedPopulation : Removed increment 1 → KILLED
|
dominated++; |
|
46
|
|
} |
|
47
|
|
} |
|
48
|
|
} |
|
49
|
4
1. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
2. rankedPopulation : removed call to java/util/Map::put → KILLED
3. rankedPopulation : replaced call to java/util/Map::put with argument → KILLED
4. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
|
dominatedCount.put(i, dominated); |
|
50
|
|
|
|
51
|
|
// it dominates everything -> it is part of the first front |
|
52
|
3
1. rankedPopulation : removed conditional - replaced equality check with false → KILLED
2. rankedPopulation : removed conditional - replaced equality check with true → KILLED
3. rankedPopulation : negated conditional → KILLED
|
if (dominated == 0) { |
|
53
|
2
1. rankedPopulation : removed call to java/util/Set::add → KILLED
2. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
|
firstFront.add(i); |
|
54
|
|
} |
|
55
|
|
} |
|
56
|
|
|
|
57
|
1
1. rankedPopulation : Substituted 0 with 1 → KILLED
|
int frontIndex = 0; |
|
58
|
10
1. rankedPopulation : removed conditional - replaced comparison check with true → SURVIVED
2. rankedPopulation : changed conditional boundary → SURVIVED
3. rankedPopulation : removed conditional - replaced equality check with true → TIMED_OUT
4. rankedPopulation : removed call to java/util/Set::isEmpty → TIMED_OUT
5. rankedPopulation : removed call to java/util/List::size → KILLED
6. rankedPopulation : removed conditional - replaced equality check with false → KILLED
7. rankedPopulation : removed call to java/util/List::get → KILLED
8. rankedPopulation : negated conditional → KILLED
9. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
10. rankedPopulation : negated conditional → KILLED
|
while (frontIndex < rankedPopulation.size() && rankedPopulation.get(frontIndex).isEmpty() == false) { |
|
59
|
1
1. rankedPopulation : removed call to java/util/List::get → KILLED
|
final Set<Integer> currentFront = rankedPopulation.get(frontIndex); |
|
60
|
|
|
|
61
|
1
1. rankedPopulation : removed call to java/util/HashSet::<init> → KILLED
|
final Set<Integer> nextFront = new HashSet<>(); |
|
62
|
|
|
|
63
|
1
1. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
|
for (final int i : currentFront) { |
|
64
|
5
1. rankedPopulation : removed call to java/util/Map::containsKey → KILLED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
4. rankedPopulation : removed conditional - replaced equality check with true → KILLED
5. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
|
if (dominating.containsKey(i)) { |
|
65
|
3
1. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
2. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
3. rankedPopulation : removed call to java/util/Map::get → KILLED
|
for (final Integer dominatedByI : dominating.get(i)) { |
|
66
|
7
1. lambda$rankedPopulation$1 : replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → KILLED
2. rankedPopulation : removed call to java/util/Map::computeIfPresent → KILLED
3. lambda$rankedPopulation$1 : Replaced integer subtraction with addition → KILLED
4. lambda$rankedPopulation$1 : Substituted 1 with 0 → KILLED
5. rankedPopulation : replaced call to java/util/Map::computeIfPresent with argument → KILLED
6. lambda$rankedPopulation$1 : removed call to java/lang/Integer::intValue → KILLED
7. lambda$rankedPopulation$1 : removed call to java/lang/Integer::valueOf → KILLED
|
final Integer updatedDominatedCount = dominatedCount.computeIfPresent(dominatedByI, (k, v) -> v - 1); |
|
67
|
|
|
|
68
|
7
1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : removed conditional - replaced equality check with false → KILLED
5. rankedPopulation : removed conditional - replaced equality check with true → KILLED
6. rankedPopulation : removed conditional - replaced equality check with false → KILLED
7. rankedPopulation : negated conditional → KILLED
|
if (updatedDominatedCount != null && updatedDominatedCount == 0) { |
|
69
|
1
1. rankedPopulation : removed call to java/util/Set::add → KILLED
|
nextFront.add(dominatedByI); |
|
70
|
|
} |
|
71
|
|
} |
|
72
|
|
|
|
73
|
|
} |
|
74
|
|
} |
|
75
|
|
|
|
76
|
1
1. rankedPopulation : removed call to java/util/List::add → KILLED
|
rankedPopulation.add(nextFront); |
|
77
|
1
1. rankedPopulation : Changed increment from 1 to -1 → KILLED
|
frontIndex++; |
|
78
|
|
} |
|
79
|
|
|
|
80
|
1
1. rankedPopulation : replaced return value with Collections.emptyList for net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
|
return rankedPopulation; |
|
81
|
|
} |
|
82
|
|
} |
| | Mutations |
| 24 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/HashMap::<init> → KILLED
|
| 25 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/HashMap::<init> → KILLED
|
| 27 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/ArrayList::<init> → KILLED
|
| 28 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::add → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/HashSet::<init> → KILLED
|
| 29 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::get → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 0 with 1 → KILLED
|
| 31 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] changed conditional boundary → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 0 with 1 → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with false → KILLED
6.6 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::size → KILLED
|
| 33 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::get → KILLED
|
| 34 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 0 with 1 → KILLED
|
| 36 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 0 with 1 → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] changed conditional boundary → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::size → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with true → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
6.6 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with false → KILLED
|
| 37 |
|
1.1 Location : rankedPopulation Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest]/[method:simple()]
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
|
| 38 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::get → KILLED
|
| 40 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Comparator::compare → KILLED
|
| 41 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : rankedPopulation Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest]/[method:simple()]
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with false → KILLED
|
| 42 |
|
1.1 Location : lambda$rankedPopulation$0 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced return value with Collections.emptySet for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$0 → KILLED
2.2 Location : lambda$rankedPopulation$0 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/HashSet::<init> → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::computeIfAbsent → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced call to java/util/Map::computeIfAbsent with argument → KILLED
|
| 43 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced call to java/util/Map::get with argument → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::get → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Set::add → KILLED
|
| 44 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced comparison check with true → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with false → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] changed conditional boundary → KILLED
|
| 45 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Changed increment from 1 to -1 → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Removed increment 1 → KILLED
|
| 49 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::put → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced call to java/util/Map::put with argument → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
|
| 52 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with true → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
|
| 53 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Set::add → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
|
| 57 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 0 with 1 → KILLED
|
| 58 |
|
1.1 Location : rankedPopulation Killed by : none removed conditional - replaced equality check with true → TIMED_OUT
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::size → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::get → KILLED
5.5 Location : rankedPopulation Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest]/[method:simple()]
6.6 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
7.7 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced comparison check with false → KILLED
8.8 Location : rankedPopulation Killed by : none removed call to java/util/Set::isEmpty → TIMED_OUT
9.9 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
10.10 Location : rankedPopulation Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest]/[method:simple()]
|
| 59 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::get → KILLED
|
| 61 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/HashSet::<init> → KILLED
|
| 63 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::intValue → KILLED
|
| 64 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::containsKey → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with true → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
|
| 65 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced call to java/util/Map::get with argument → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::get → KILLED
|
| 66 |
|
1.1 Location : lambda$rankedPopulation$1 Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Map::computeIfPresent → KILLED
3.3 Location : lambda$rankedPopulation$1 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Replaced integer subtraction with addition → KILLED
4.4 Location : lambda$rankedPopulation$1 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Substituted 1 with 0 → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced call to java/util/Map::computeIfPresent with argument → KILLED
6.6 Location : lambda$rankedPopulation$1 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::intValue → KILLED
7.7 Location : lambda$rankedPopulation$1 Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/lang/Integer::valueOf → KILLED
|
| 68 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed call to java/lang/Integer::intValue → KILLED
2.2 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
3.3 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
4.4 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()] removed conditional - replaced equality check with true → KILLED
5.5 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed conditional - replaced equality check with false → KILLED
6.6 Location : rankedPopulation Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
- net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
- net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.TournamentNSGA2SelectorTest]/[method:simple()]
7.7 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] negated conditional → KILLED
|
| 69 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/Set::add → KILLED
|
| 76 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] removed call to java/util/List::add → KILLED
|
| 77 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] Changed increment from 1 to -1 → KILLED
|
| 80 |
|
1.1 Location : rankedPopulation Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()] replaced return value with Collections.emptyList for net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
|