Just run once

This commit is contained in:
Adam
2016-03-24 15:13:11 -04:00
parent e73be15286
commit d4a74501b7

View File

@@ -34,8 +34,6 @@ public class IllegalStateExceptions implements Deobfuscator
if (c == null)
continue;
//assert execution.methods.contains(m);
Instructions instructions = c.getInstructions();
instructions.buildJumpGraph();
@@ -107,7 +105,6 @@ public class IllegalStateExceptions implements Deobfuscator
ilist.add(i, g);
++count;
break;
}
}
}
@@ -122,21 +119,9 @@ public class IllegalStateExceptions implements Deobfuscator
Execution execution = new Execution(group);
execution.populateInitialMethods();
execution.run();
int count = 0;
int passes = 0;
int i;
do
{
i = checkOnce(execution, group);
System.out.println("ise removal pass " + passes + " removed " + i);
int count = checkOnce(execution, group);
count += i;
++passes;
}
while (i > 0);
System.out.println("Removed " + count + " illegal state exceptions in " + passes + " passes");
System.out.println("Removed " + count + " illegal state exceptions");
}
}