Skip to content
Snippets Groups Projects
Commit 00ab8c78 authored by ehuang32's avatar ehuang32
Browse files
parents ac72a6ad bc1bd112
Branches
No related tags found
No related merge requests found
Pipeline #58969 passed
......@@ -25,3 +25,4 @@
# ignore all compiled C files in the whitelisted folders
**/*.o
**/*.a
/src/vuln-2.1/
......@@ -13,7 +13,7 @@ import java.util.Scanner;
/* a stub for your team's fuzzer */
public class Fuzzer {
// Blah - Test 3
// Blah - Test 2
private static final String OUTPUT_FILE = "fuzz.txt";
......@@ -146,8 +146,12 @@ public class Fuzzer {
*/
private static void addCountProb(Instruction instruction) {
int index = instruction.ordinal();
counts[index] += 1;
addProb[index] += instruction.getProbability();
for (int i = 0; i < 12; i++) {
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