Skip to content
Snippets Groups Projects
Commit 00ab8c78 authored by ehuang32's avatar ehuang32
Browse files
parents ac72a6ad bc1bd112
No related branches found
No related tags found
Loading
Pipeline #58969 passed
...@@ -25,3 +25,4 @@ ...@@ -25,3 +25,4 @@
# ignore all compiled C files in the whitelisted folders # ignore all compiled C files in the whitelisted folders
**/*.o **/*.o
**/*.a **/*.a
/src/vuln-2.1/
...@@ -13,7 +13,7 @@ import java.util.Scanner; ...@@ -13,7 +13,7 @@ import java.util.Scanner;
/* a stub for your team's fuzzer */ /* a stub for your team's fuzzer */
public class Fuzzer { public class Fuzzer {
// Blah - Test 3 // Blah - Test 2
private static final String OUTPUT_FILE = "fuzz.txt"; private static final String OUTPUT_FILE = "fuzz.txt";
...@@ -146,8 +146,12 @@ public class Fuzzer { ...@@ -146,8 +146,12 @@ public class Fuzzer {
*/ */
private static void addCountProb(Instruction instruction) { private static void addCountProb(Instruction instruction) {
int index = instruction.ordinal(); int index = instruction.ordinal();
counts[index] += 1; for (int i = 0; i < 12; i++) {
addProb[index] += instruction.getProbability(); if (i != index) {
counts[i] += 1;
addProb[i] += Instruction.values()[i].getProbability();
}
}
} }
......
0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment