Try and replace unused blocks with unreached code, seeing some problems somewhere
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -139,6 +139,8 @@ public class Frame
|
||||
throw ex;
|
||||
}
|
||||
|
||||
execution.executed.add(oldCur);
|
||||
|
||||
if (!executing)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user