Skip to content
Snippets Groups Projects
Commit 24616e85 authored by Ewen Smith's avatar Ewen Smith
Browse files

Line Error back to 1%

parent 4793ed76
No related branches found
No related tags found
No related merge requests found
Pipeline #58984 passed
...@@ -22,7 +22,7 @@ public class Fuzzer { ...@@ -22,7 +22,7 @@ public class Fuzzer {
// The percentage of inputs that will be incorrect // The percentage of inputs that will be incorrect
private static final int INPUT_ERROR_PERCENTAGE = 5; private static final int INPUT_ERROR_PERCENTAGE = 5;
// The percentage of instructions that will be incorrect // The percentage of instructions that will be incorrect
private static final int LINE_ERROR_PERCENTAGE = 2; private static final int LINE_ERROR_PERCENTAGE = 1;
// Limit on generation of inputs // Limit on generation of inputs
private static final int NUMBER_TO_GENERATE = 10; private static final int NUMBER_TO_GENERATE = 10;
// Instruction number range for each input // Instruction number range for each input
...@@ -242,7 +242,7 @@ public class Fuzzer { ...@@ -242,7 +242,7 @@ public class Fuzzer {
} else { } else {
while (counter < numInstructions) { while (counter < numInstructions) {
Instruction newInstr; Instruction newInstr;
if (rand.nextInt(1000) < LINE_ERROR_PERCENTAGE){ if (rand.nextInt(100) < LINE_ERROR_PERCENTAGE){
newInstr = Instruction.getRandomInstruction(2, instructionStack, pathwayProb); newInstr = Instruction.getRandomInstruction(2, instructionStack, pathwayProb);
result.append(completeInstruction(false, newInstr, longVarNames)); result.append(completeInstruction(false, newInstr, longVarNames));
if (dynamicProb) { if (dynamicProb) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment