Just run once
This commit is contained in:
@@ -34,8 +34,6 @@ public class IllegalStateExceptions implements Deobfuscator
|
|||||||
if (c == null)
|
if (c == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//assert execution.methods.contains(m);
|
|
||||||
|
|
||||||
Instructions instructions = c.getInstructions();
|
Instructions instructions = c.getInstructions();
|
||||||
instructions.buildJumpGraph();
|
instructions.buildJumpGraph();
|
||||||
|
|
||||||
@@ -107,7 +105,6 @@ public class IllegalStateExceptions implements Deobfuscator
|
|||||||
ilist.add(i, g);
|
ilist.add(i, g);
|
||||||
|
|
||||||
++count;
|
++count;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -123,20 +120,8 @@ public class IllegalStateExceptions implements Deobfuscator
|
|||||||
execution.populateInitialMethods();
|
execution.populateInitialMethods();
|
||||||
execution.run();
|
execution.run();
|
||||||
|
|
||||||
int count = 0;
|
int count = checkOnce(execution, group);
|
||||||
int passes = 0;
|
|
||||||
int i;
|
|
||||||
do
|
|
||||||
{
|
|
||||||
i = checkOnce(execution, group);
|
|
||||||
|
|
||||||
System.out.println("ise removal pass " + passes + " removed " + i);
|
System.out.println("Removed " + count + " illegal state exceptions");
|
||||||
|
|
||||||
count += i;
|
|
||||||
++passes;
|
|
||||||
}
|
|
||||||
while (i > 0);
|
|
||||||
|
|
||||||
System.out.println("Removed " + count + " illegal state exceptions in " + passes + " passes");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user