Skip to content
Snippets Groups Projects
Commit 2283dac9 authored by ehuang32's avatar ehuang32
Browse files

changes to dynamic prob

parent e9c440d4
No related branches found
No related tags found
No related merge requests found
Pipeline #58958 passed
...@@ -137,8 +137,12 @@ public class Fuzzer { ...@@ -137,8 +137,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