Try and replace unused blocks with unreached code, seeing some problems somewhere

This commit is contained in:
Adam
2015-08-08 20:45:16 -04:00
parent 12318efcaf
commit da0b7403b4
9 changed files with 203 additions and 67 deletions

View File

@@ -4,6 +4,7 @@ import info.sigterm.deob.ClassFile;
import info.sigterm.deob.ClassGroup;
import info.sigterm.deob.Deob;
import info.sigterm.deob.Method;
import info.sigterm.deob.attributes.code.Instruction;
import java.util.ArrayList;
import java.util.HashSet;
@@ -17,6 +18,7 @@ public class Execution
processedFrames = new ArrayList<>();
private List<Method> pendingMethods = new ArrayList<>(); // pending methods
public Set<Method> methods = new HashSet<>(); // all methods
public Set<Instruction> executed = new HashSet<>(); // executed instructions
public Execution(ClassGroup group)
{

View File

@@ -139,6 +139,8 @@ public class Frame
throw ex;
}
execution.executed.add(oldCur);
if (!executing)
break;