@Test @Ignore public void testRun() { ConstantParameter cp = new ConstantParameter(); cp.run(group); }
@Override public void run(ClassGroup group) { Execution execution = new Execution(group); execution.addExecutionVisitor(i -> findParameters(i)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(mc -> findDeadParameters(mc)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(m -> count += removeDeadOperations(m)); execution.populateInitialMethods(); execution.run(); logger.info("Removed {} logically dead conditional jumps", count); }
ConstantParameter implements Deobfuscator { @Override public void run(ClassGroup group) { Execution execution = new Execution(group); execution.addExecutionVisitor(i -> findParameters(i)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(mc -> findDeadParameters(mc)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(m -> count += removeDeadOperations(m)); execution.populateInitialMethods(); execution.run(); logger.info("Removed {} logically dead conditional jumps", count); } }
ConstantParameter implements Deobfuscator { @Override public void run(ClassGroup group) { Execution execution = new Execution(group); execution.addExecutionVisitor(i -> findParameters(i)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(mc -> findDeadParameters(mc)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(m -> count += removeDeadOperations(m)); execution.populateInitialMethods(); execution.run(); logger.info("Removed {} logically dead conditional jumps", count); }  }
ConstantParameter implements Deobfuscator { @Override public void run(ClassGroup group) { Execution execution = new Execution(group); execution.addExecutionVisitor(i -> findParameters(i)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(mc -> findDeadParameters(mc)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(m -> count += removeDeadOperations(m)); execution.populateInitialMethods(); execution.run(); logger.info("Removed {} logically dead conditional jumps", count); }  @Override void run(ClassGroup group); }
ConstantParameter implements Deobfuscator { @Override public void run(ClassGroup group) { Execution execution = new Execution(group); execution.addExecutionVisitor(i -> findParameters(i)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(mc -> findDeadParameters(mc)); execution.populateInitialMethods(); execution.run(); execution = new Execution(group); execution.addMethodContextVisitor(m -> count += removeDeadOperations(m)); execution.populateInitialMethods(); execution.run(); logger.info("Removed {} logically dead conditional jumps", count); }  @Override void run(ClassGroup group);  }