DataLoaders.java

1
package net.bmahe.genetics4j.gpu.spec.fitness.cldata;
2
3
import org.apache.logging.log4j.LogManager;
4
import org.apache.logging.log4j.Logger;
5
import org.jocl.CL;
6
import org.jocl.Pointer;
7
import org.jocl.Sizeof;
8
import org.jocl.cl_mem;
9
10
import net.bmahe.genetics4j.core.Genotype;
11
import net.bmahe.genetics4j.core.chromosomes.DoubleChromosome;
12
import net.bmahe.genetics4j.core.chromosomes.FloatChromosome;
13
14
public class DataLoaders {
15
	final static public Logger logger = LogManager.getLogger(DataLoaders.class);
16
17
	private DataLoaders() {
18
	}
19
20
	public static DataLoader ofFloatSupplier(final DataSupplier<float[]> floatSupplier) {
21 1 1. ofFloatSupplier : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofFloatSupplier → NO_COVERAGE
		return (openCLExecutionContext, generation, genotypes) -> {
22 1 1. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE
			final var clContext = openCLExecutionContext.clContext();
23
24 1 1. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE
			final float[] data = floatSupplier.get(openCLExecutionContext, generation, genotypes);
25
			logger.trace("Allocating memory on GPU for float[] of {} elements", data.length);
26
27 1 1. lambda$ofFloatSupplier$0 : removed call to org/jocl/Pointer::to → NO_COVERAGE
			final Pointer dataPtr = Pointer.to(data);
28 4 1. lambda$ofFloatSupplier$0 : Substituted 4 with 5 → NO_COVERAGE
2. lambda$ofFloatSupplier$0 : Substituted 36 with 37 → NO_COVERAGE
3. lambda$ofFloatSupplier$0 : Replaced integer multiplication with division → NO_COVERAGE
4. lambda$ofFloatSupplier$0 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE
			final cl_mem inputMem = CL.clCreateBuffer(clContext,
29
					CL.CL_MEM_COPY_HOST_PTR | CL.CL_MEM_READ_ONLY,
30
					Sizeof.cl_float * data.length,
31
					dataPtr,
32
					null);
33
34 3 1. lambda$ofFloatSupplier$0 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofFloatSupplier$0 → NO_COVERAGE
2. lambda$ofFloatSupplier$0 : Substituted 4 with 5 → NO_COVERAGE
3. lambda$ofFloatSupplier$0 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE
			return CLData.of(inputMem, Sizeof.cl_float, data.length);
35
		};
36
	}
37
38
	public static DataLoader ofIntSupplier(final DataSupplier<int[]> intSupplier) {
39 1 1. ofIntSupplier : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofIntSupplier → NO_COVERAGE
		return (openCLExecutionContext, generation, genotypes) -> {
40 1 1. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE
			final var clContext = openCLExecutionContext.clContext();
41
42 1 1. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE
			final int[] data = intSupplier.get(openCLExecutionContext, generation, genotypes);
43
			logger.trace("Allocating memory on GPU for int[] of {} elements", data.length);
44
45 1 1. lambda$ofIntSupplier$1 : removed call to org/jocl/Pointer::to → NO_COVERAGE
			final Pointer dataPtr = Pointer.to(data);
46 4 1. lambda$ofIntSupplier$1 : Substituted 4 with 5 → NO_COVERAGE
2. lambda$ofIntSupplier$1 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE
3. lambda$ofIntSupplier$1 : Replaced integer multiplication with division → NO_COVERAGE
4. lambda$ofIntSupplier$1 : Substituted 36 with 37 → NO_COVERAGE
			final cl_mem inputMem = CL.clCreateBuffer(clContext,
47
					CL.CL_MEM_COPY_HOST_PTR | CL.CL_MEM_READ_ONLY,
48
					Sizeof.cl_int * data.length,
49
					dataPtr,
50
					null);
51
52 3 1. lambda$ofIntSupplier$1 : Substituted 4 with 5 → NO_COVERAGE
2. lambda$ofIntSupplier$1 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE
3. lambda$ofIntSupplier$1 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofIntSupplier$1 → NO_COVERAGE
			return CLData.of(inputMem, Sizeof.cl_int, data.length);
53
		};
54
	}
55
56
	public static DataLoader ofGenerationAndPopulationSize(final boolean readOnly) {
57 1 1. ofGenerationAndPopulationSize : Substituted 32 with 33 → NO_COVERAGE
		long bufferFlags = CL.CL_MEM_COPY_HOST_PTR;
58
59 3 1. ofGenerationAndPopulationSize : removed conditional - replaced equality check with true → NO_COVERAGE
2. ofGenerationAndPopulationSize : negated conditional → NO_COVERAGE
3. ofGenerationAndPopulationSize : removed conditional - replaced equality check with false → NO_COVERAGE
		if (readOnly) {
60 2 1. ofGenerationAndPopulationSize : Replaced bitwise OR with AND → NO_COVERAGE
2. ofGenerationAndPopulationSize : Substituted 4 with 5 → NO_COVERAGE
			bufferFlags |= CL.CL_MEM_READ_ONLY;
61
		}
62
		final long fBufferFlags = bufferFlags;
63
64 1 1. ofGenerationAndPopulationSize : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE
		return (openCLExecutionContext, generation, genotypes) -> {
65 1 1. lambda$ofGenerationAndPopulationSize$2 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE
			final var clContext = openCLExecutionContext.clContext();
66
67 1 1. lambda$ofGenerationAndPopulationSize$2 : Substituted 2 with 3 → NO_COVERAGE
			int[] data = new int[2];
68 1 1. lambda$ofGenerationAndPopulationSize$2 : Substituted 0 with 1 → NO_COVERAGE
			data[0] = (int) generation;
69 2 1. lambda$ofGenerationAndPopulationSize$2 : Substituted 1 with 0 → NO_COVERAGE
2. lambda$ofGenerationAndPopulationSize$2 : removed call to java/util/List::size → NO_COVERAGE
			data[1] = genotypes.size();
70
71 1 1. lambda$ofGenerationAndPopulationSize$2 : removed call to org/jocl/Pointer::to → NO_COVERAGE
			final Pointer dataPtr = Pointer.to(data);
72 3 1. lambda$ofGenerationAndPopulationSize$2 : Replaced integer multiplication with division → NO_COVERAGE
2. lambda$ofGenerationAndPopulationSize$2 : Substituted 4 with 5 → NO_COVERAGE
3. lambda$ofGenerationAndPopulationSize$2 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE
			final cl_mem inputMem = CL.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_int * data.length, dataPtr, null);
73
74 3 1. lambda$ofGenerationAndPopulationSize$2 : Substituted 4 with 5 → NO_COVERAGE
2. lambda$ofGenerationAndPopulationSize$2 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofGenerationAndPopulationSize$2 → NO_COVERAGE
3. lambda$ofGenerationAndPopulationSize$2 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE
			return CLData.of(inputMem, Sizeof.cl_int, data.length);
75
		};
76
	}
77
78
	public static DataLoader ofGenerationAndPopulationSize() {
79 3 1. ofGenerationAndPopulationSize : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE
2. ofGenerationAndPopulationSize : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE
3. ofGenerationAndPopulationSize : Substituted 1 with 0 → NO_COVERAGE
		return ofGenerationAndPopulationSize(true);
80
	}
81
82
	public static DataLoader ofLinearizeFloatChromosome(final int chromosomeIndex, final boolean readOnly) {
83
84 1 1. ofLinearizeFloatChromosome : Substituted 32 with 33 → NO_COVERAGE
		long bufferFlags = CL.CL_MEM_COPY_HOST_PTR;
85
86 3 1. ofLinearizeFloatChromosome : negated conditional → NO_COVERAGE
2. ofLinearizeFloatChromosome : removed conditional - replaced equality check with true → NO_COVERAGE
3. ofLinearizeFloatChromosome : removed conditional - replaced equality check with false → NO_COVERAGE
		if (readOnly) {
87 2 1. ofLinearizeFloatChromosome : Replaced bitwise OR with AND → NO_COVERAGE
2. ofLinearizeFloatChromosome : Substituted 4 with 5 → NO_COVERAGE
			bufferFlags |= CL.CL_MEM_READ_ONLY;
88
		}
89
		final long fBufferFlags = bufferFlags;
90
91 1 1. ofLinearizeFloatChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE
		return (openCLExecutionContext, generation, genotypes) -> {
92 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE
			final var clContext = openCLExecutionContext.clContext();
93
94 2 1. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::get → NO_COVERAGE
			final var firstchromosome = genotypes.get(0)
95 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE
					.getChromosome(chromosomeIndex, FloatChromosome.class);
96 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getSize → NO_COVERAGE
			final int chromosomeSize = firstchromosome.getSize();
97
98 2 1. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::size → NO_COVERAGE
			final float[] data = new float[genotypes.size() * chromosomeSize];
99
100 6 1. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with true → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : changed conditional boundary → NO_COVERAGE
3. lambda$ofLinearizeFloatChromosome$3 : negated conditional → NO_COVERAGE
4. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with false → NO_COVERAGE
5. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::size → NO_COVERAGE
6. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE
			for (int i = 0; i < genotypes.size(); i++) {
101 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to java/util/List::get → NO_COVERAGE
				final Genotype genotype = genotypes.get(i);
102 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE
				final var chromosome = genotype.getChromosome(chromosomeIndex, FloatChromosome.class);
103
104 6 1. lambda$ofLinearizeFloatChromosome$3 : negated conditional → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with true → NO_COVERAGE
3. lambda$ofLinearizeFloatChromosome$3 : changed conditional boundary → NO_COVERAGE
4. lambda$ofLinearizeFloatChromosome$3 : removed conditional - replaced comparison check with false → NO_COVERAGE
5. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getNumAlleles → NO_COVERAGE
6. lambda$ofLinearizeFloatChromosome$3 : Substituted 0 with 1 → NO_COVERAGE
				for (int j = 0; j < chromosome.getNumAlleles(); j++) {
105 3 1. lambda$ofLinearizeFloatChromosome$3 : Replaced integer addition with subtraction → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE
3. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getAllele → NO_COVERAGE
					data[i * chromosomeSize + j] = (float) chromosome.getAllele(j);
106
				}
107
108
			}
109
110 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to org/jocl/Pointer::to → NO_COVERAGE
			final Pointer inputPtr = Pointer.to(data);
111 2 1. lambda$ofLinearizeFloatChromosome$3 : Replaced integer multiplication with division → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : Substituted 4 with 5 → NO_COVERAGE
			final cl_mem inputMem = CL
112 1 1. lambda$ofLinearizeFloatChromosome$3 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE
					.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_float * data.length, inputPtr, null);
113
114 3 1. lambda$ofLinearizeFloatChromosome$3 : Substituted 4 with 5 → NO_COVERAGE
2. lambda$ofLinearizeFloatChromosome$3 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeFloatChromosome$3 → NO_COVERAGE
3. lambda$ofLinearizeFloatChromosome$3 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE
			return CLData.of(inputMem, Sizeof.cl_float, data.length);
115
		};
116
	}
117
118
	public static DataLoader ofLinearizeFloatChromosome(final int chromosomeIndex) {
119 3 1. ofLinearizeFloatChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE
2. ofLinearizeFloatChromosome : Substituted 1 with 0 → NO_COVERAGE
3. ofLinearizeFloatChromosome : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE
		return ofLinearizeFloatChromosome(chromosomeIndex, true);
120
	}
121
122
	public static DataLoader ofLinearizeDoubleChromosome(final int chromosomeIndex, final boolean readOnly) {
123
124 1 1. ofLinearizeDoubleChromosome : Substituted 32 with 33 → NO_COVERAGE
		long bufferFlags = CL.CL_MEM_COPY_HOST_PTR;
125
126 3 1. ofLinearizeDoubleChromosome : negated conditional → NO_COVERAGE
2. ofLinearizeDoubleChromosome : removed conditional - replaced equality check with false → NO_COVERAGE
3. ofLinearizeDoubleChromosome : removed conditional - replaced equality check with true → NO_COVERAGE
		if (readOnly) {
127 2 1. ofLinearizeDoubleChromosome : Substituted 4 with 5 → NO_COVERAGE
2. ofLinearizeDoubleChromosome : Replaced bitwise OR with AND → NO_COVERAGE
			bufferFlags |= CL.CL_MEM_READ_ONLY;
128
		}
129
		final long fBufferFlags = bufferFlags;
130
131 1 1. ofLinearizeDoubleChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE
		return (openCLExecutionContext, generation, genotypes) -> {
132 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE
			final var clContext = openCLExecutionContext.clContext();
133
134 2 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::get → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE
			final var firstchromosome = genotypes.get(0)
135 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE
					.getChromosome(chromosomeIndex, DoubleChromosome.class);
136 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getSize → NO_COVERAGE
			final int chromosomeSize = firstchromosome.getSize();
137
138 2 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::size → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE
			final double[] data = new double[genotypes.size() * chromosomeSize];
139
140 6 1. lambda$ofLinearizeDoubleChromosome$4 : changed conditional boundary → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : negated conditional → NO_COVERAGE
3. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with true → NO_COVERAGE
4. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE
5. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with false → NO_COVERAGE
6. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::size → NO_COVERAGE
			for (int i = 0; i < genotypes.size(); i++) {
141 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to java/util/List::get → NO_COVERAGE
				final Genotype genotype = genotypes.get(i);
142 2 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE
				final var chromosome = genotype.getChromosome(0, DoubleChromosome.class);
143
144 6 1. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with true → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : changed conditional boundary → NO_COVERAGE
3. lambda$ofLinearizeDoubleChromosome$4 : negated conditional → NO_COVERAGE
4. lambda$ofLinearizeDoubleChromosome$4 : Substituted 0 with 1 → NO_COVERAGE
5. lambda$ofLinearizeDoubleChromosome$4 : removed conditional - replaced comparison check with false → NO_COVERAGE
6. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getNumAlleles → NO_COVERAGE
				for (int j = 0; j < chromosome.getNumAlleles(); j++) {
145 3 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE
3. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer addition with subtraction → NO_COVERAGE
					data[i * chromosomeSize + j] = chromosome.getAllele(j);
146
				}
147
148
			}
149
150 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to org/jocl/Pointer::to → NO_COVERAGE
			final Pointer dataPtr = Pointer.to(data);
151 2 1. lambda$ofLinearizeDoubleChromosome$4 : Substituted 8 with 9 → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : Replaced integer multiplication with division → NO_COVERAGE
			final cl_mem dataMem = CL
152 1 1. lambda$ofLinearizeDoubleChromosome$4 : removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE
					.clCreateBuffer(clContext, fBufferFlags, Sizeof.cl_double * data.length, dataPtr, null);
153
154 3 1. lambda$ofLinearizeDoubleChromosome$4 : Substituted 8 with 9 → NO_COVERAGE
2. lambda$ofLinearizeDoubleChromosome$4 : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeDoubleChromosome$4 → NO_COVERAGE
3. lambda$ofLinearizeDoubleChromosome$4 : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE
			return CLData.of(dataMem, Sizeof.cl_double, data.length);
155
		};
156
	}
157
158
	public static DataLoader ofLinearizeDoubleChromosome(final int chromosomeIndex) {
159 3 1. ofLinearizeDoubleChromosome : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE
2. ofLinearizeDoubleChromosome : removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE
3. ofLinearizeDoubleChromosome : Substituted 1 with 0 → NO_COVERAGE
		return ofLinearizeDoubleChromosome(chromosomeIndex, true);
160
	}
161
}

Mutations

21

1.1
Location : ofFloatSupplier
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofFloatSupplier → NO_COVERAGE

22

1.1
Location : lambda$ofFloatSupplier$0
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE

24

1.1
Location : lambda$ofFloatSupplier$0
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE

27

1.1
Location : lambda$ofFloatSupplier$0
Killed by : none
removed call to org/jocl/Pointer::to → NO_COVERAGE

28

1.1
Location : lambda$ofFloatSupplier$0
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : lambda$ofFloatSupplier$0
Killed by : none
Substituted 36 with 37 → NO_COVERAGE

3.3
Location : lambda$ofFloatSupplier$0
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

4.4
Location : lambda$ofFloatSupplier$0
Killed by : none
removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE

34

1.1
Location : lambda$ofFloatSupplier$0
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofFloatSupplier$0 → NO_COVERAGE

2.2
Location : lambda$ofFloatSupplier$0
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

3.3
Location : lambda$ofFloatSupplier$0
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE

39

1.1
Location : ofIntSupplier
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofIntSupplier → NO_COVERAGE

40

1.1
Location : lambda$ofIntSupplier$1
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE

42

1.1
Location : lambda$ofIntSupplier$1
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataSupplier::get → NO_COVERAGE

45

1.1
Location : lambda$ofIntSupplier$1
Killed by : none
removed call to org/jocl/Pointer::to → NO_COVERAGE

46

1.1
Location : lambda$ofIntSupplier$1
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : lambda$ofIntSupplier$1
Killed by : none
removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE

3.3
Location : lambda$ofIntSupplier$1
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

4.4
Location : lambda$ofIntSupplier$1
Killed by : none
Substituted 36 with 37 → NO_COVERAGE

52

1.1
Location : lambda$ofIntSupplier$1
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : lambda$ofIntSupplier$1
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE

3.3
Location : lambda$ofIntSupplier$1
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofIntSupplier$1 → NO_COVERAGE

57

1.1
Location : ofGenerationAndPopulationSize
Killed by : none
Substituted 32 with 33 → NO_COVERAGE

59

1.1
Location : ofGenerationAndPopulationSize
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

2.2
Location : ofGenerationAndPopulationSize
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : ofGenerationAndPopulationSize
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

60

1.1
Location : ofGenerationAndPopulationSize
Killed by : none
Replaced bitwise OR with AND → NO_COVERAGE

2.2
Location : ofGenerationAndPopulationSize
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

64

1.1
Location : ofGenerationAndPopulationSize
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE

65

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE

67

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Substituted 2 with 3 → NO_COVERAGE

68

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

69

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

2.2
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
removed call to java/util/List::size → NO_COVERAGE

71

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
removed call to org/jocl/Pointer::to → NO_COVERAGE

72

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

2.2
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

3.3
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE

74

1.1
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofGenerationAndPopulationSize$2 → NO_COVERAGE

3.3
Location : lambda$ofGenerationAndPopulationSize$2
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE

79

1.1
Location : ofGenerationAndPopulationSize
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE

2.2
Location : ofGenerationAndPopulationSize
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofGenerationAndPopulationSize → NO_COVERAGE

3.3
Location : ofGenerationAndPopulationSize
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

84

1.1
Location : ofLinearizeFloatChromosome
Killed by : none
Substituted 32 with 33 → NO_COVERAGE

86

1.1
Location : ofLinearizeFloatChromosome
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : ofLinearizeFloatChromosome
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

3.3
Location : ofLinearizeFloatChromosome
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

87

1.1
Location : ofLinearizeFloatChromosome
Killed by : none
Replaced bitwise OR with AND → NO_COVERAGE

2.2
Location : ofLinearizeFloatChromosome
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

91

1.1
Location : ofLinearizeFloatChromosome
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE

92

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE

94

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to java/util/List::get → NO_COVERAGE

95

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE

96

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getSize → NO_COVERAGE

98

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to java/util/List::size → NO_COVERAGE

100

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
changed conditional boundary → NO_COVERAGE

3.3
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

5.5
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to java/util/List::size → NO_COVERAGE

6.6
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

101

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to java/util/List::get → NO_COVERAGE

102

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE

104

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

3.3
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
changed conditional boundary → NO_COVERAGE

4.4
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

5.5
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getNumAlleles → NO_COVERAGE

6.6
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

105

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

3.3
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/FloatChromosome::getAllele → NO_COVERAGE

110

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to org/jocl/Pointer::to → NO_COVERAGE

111

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

112

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE

114

1.1
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeFloatChromosome$3 → NO_COVERAGE

3.3
Location : lambda$ofLinearizeFloatChromosome$3
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE

119

1.1
Location : ofLinearizeFloatChromosome
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE

2.2
Location : ofLinearizeFloatChromosome
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

3.3
Location : ofLinearizeFloatChromosome
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeFloatChromosome → NO_COVERAGE

124

1.1
Location : ofLinearizeDoubleChromosome
Killed by : none
Substituted 32 with 33 → NO_COVERAGE

126

1.1
Location : ofLinearizeDoubleChromosome
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : ofLinearizeDoubleChromosome
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

3.3
Location : ofLinearizeDoubleChromosome
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

127

1.1
Location : ofLinearizeDoubleChromosome
Killed by : none
Substituted 4 with 5 → NO_COVERAGE

2.2
Location : ofLinearizeDoubleChromosome
Killed by : none
Replaced bitwise OR with AND → NO_COVERAGE

131

1.1
Location : ofLinearizeDoubleChromosome
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE

132

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/OpenCLExecutionContext::clContext → NO_COVERAGE

134

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to java/util/List::get → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

135

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE

136

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getSize → NO_COVERAGE

138

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to java/util/List::size → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

140

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

4.4
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

5.5
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

6.6
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to java/util/List::size → NO_COVERAGE

141

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to java/util/List::get → NO_COVERAGE

142

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getChromosome → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

144

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
changed conditional boundary → NO_COVERAGE

3.3
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

5.5
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

6.6
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getNumAlleles → NO_COVERAGE

145

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

3.3
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

150

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to org/jocl/Pointer::to → NO_COVERAGE

151

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 8 with 9 → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

152

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to org/jocl/CL::clCreateBuffer → NO_COVERAGE

154

1.1
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
Substituted 8 with 9 → NO_COVERAGE

2.2
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::lambda$ofLinearizeDoubleChromosome$4 → NO_COVERAGE

3.3
Location : lambda$ofLinearizeDoubleChromosome$4
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/CLData::of → NO_COVERAGE

159

1.1
Location : ofLinearizeDoubleChromosome
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE

2.2
Location : ofLinearizeDoubleChromosome
Killed by : none
removed call to net/bmahe/genetics4j/gpu/spec/fitness/cldata/DataLoaders::ofLinearizeDoubleChromosome → NO_COVERAGE

3.3
Location : ofLinearizeDoubleChromosome
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.6