Skip to content
Snippets Groups Projects
Commit 07b6335c authored by ehuang32's avatar ehuang32
Browse files

removed print statement, can execute max_stack10

parent 04556680
Branches
No related tags found
No related merge requests found
Checking pipeline status
...@@ -52,7 +52,7 @@ public class Fuzzer { ...@@ -52,7 +52,7 @@ public class Fuzzer {
// Current stack of instructions // Current stack of instructions
private static ArrayList<Instruction> instructionStack = new ArrayList<Instruction>(); private static ArrayList<Instruction> instructionStack = new ArrayList<Instruction>();
// Max stack of instructions before resetting stack // Max stack of instructions before resetting stack
private static final int MAX_STACK = 2; private static final int MAX_STACK = 10;
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
System.out.println(Instruction.getBNF()); System.out.println(Instruction.getBNF());
...@@ -202,12 +202,12 @@ public class Fuzzer { ...@@ -202,12 +202,12 @@ public class Fuzzer {
if (instructionStack.size() >= MAX_STACK) { if (instructionStack.size() >= MAX_STACK) {
instructionStack.clear(); instructionStack.clear();
} }
System.out.println("stack: " + Arrays.toString(instructionStack.toArray())); /*System.out.println("stack: " + Arrays.toString(instructionStack.toArray()));
for (List<Instruction> list: pathwayProb.keySet()) { for (List<Instruction> list: pathwayProb.keySet()) {
String key = list.toString(); String key = list.toString();
String value = pathwayProb.get(list).toString(); String value = pathwayProb.get(list).toString();
System.out.println("map: " + key + " " + value); System.out.println("map: " + key + " " + value);
} }*/
} }
......
...@@ -86,6 +86,7 @@ public enum Instruction { ...@@ -86,6 +86,7 @@ public enum Instruction {
Map<List<Instruction>, Integer> pathwayProb) { Map<List<Instruction>, Integer> pathwayProb) {
// Check if cumlative probabilities have been calculated // Check if cumlative probabilities have been calculated
checkProbability(instructionStack, pathwayProb); checkProbability(instructionStack, pathwayProb);
System.out.println(max);
ArrayList<Instruction> instructions; ArrayList<Instruction> instructions;
ArrayList<Integer> instCumlProbs; ArrayList<Integer> instCumlProbs;
......
0 6
\ No newline at end of file \ 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