From 07b6335c60fad186498c72cd9ff341ba46388210 Mon Sep 17 00:00:00 2001
From: ehuang32 <ericchristopherwong@gmail.com>
Date: Fri, 23 Oct 2020 13:01:14 +1100
Subject: [PATCH] removed print statement, can execute max_stack10

---
 fuzzer/Fuzzer.java      | 6 +++---
 fuzzer/Instruction.java | 1 +
 runCount.txt            | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java
index abb7b03..2bd6937 100644
--- a/fuzzer/Fuzzer.java
+++ b/fuzzer/Fuzzer.java
@@ -52,7 +52,7 @@ public class Fuzzer {
     // Current stack of instructions
     private static ArrayList<Instruction> instructionStack = new ArrayList<Instruction>();
     // 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 {
         System.out.println(Instruction.getBNF());
@@ -202,12 +202,12 @@ public class Fuzzer {
         if (instructionStack.size() >= MAX_STACK) {
             instructionStack.clear();
         }
-        System.out.println("stack: " + Arrays.toString(instructionStack.toArray()));
+        /*System.out.println("stack: " + Arrays.toString(instructionStack.toArray()));
         for (List<Instruction> list: pathwayProb.keySet()) {
             String key = list.toString();
             String value = pathwayProb.get(list).toString();
             System.out.println("map: " + key + " " + value);
-        }
+        }*/
 
     }
 
diff --git a/fuzzer/Instruction.java b/fuzzer/Instruction.java
index d3d2690..ea21857 100644
--- a/fuzzer/Instruction.java
+++ b/fuzzer/Instruction.java
@@ -86,6 +86,7 @@ public enum Instruction {
         Map<List<Instruction>, Integer> pathwayProb) {
         // Check if cumlative probabilities have been calculated
         checkProbability(instructionStack, pathwayProb);
+        System.out.println(max);
 
         ArrayList<Instruction> instructions;
         ArrayList<Integer> instCumlProbs;
diff --git a/runCount.txt b/runCount.txt
index c227083..62f9457 100644
--- a/runCount.txt
+++ b/runCount.txt
@@ -1 +1 @@
-0
\ No newline at end of file
+6
\ No newline at end of file
-- 
GitLab