I don't know if this is right. Seeing some dead code still left in which is concerning.

This commit is contained in:
Adam
2016-02-27 16:10:13 -05:00
parent fc82bb8a21
commit 6eeeaf0716

View File

@@ -14,6 +14,7 @@ import net.runelite.deob.attributes.code.instruction.types.PushConstantInstructi
import net.runelite.deob.attributes.code.instructions.BiPush;
import net.runelite.deob.attributes.code.instructions.IAdd;
import net.runelite.deob.attributes.code.instructions.IConst_M1;
import net.runelite.deob.attributes.code.instructions.IInc;
import net.runelite.deob.attributes.code.instructions.IMul;
import net.runelite.deob.attributes.code.instructions.ISub;
import net.runelite.deob.attributes.code.instructions.LAdd;
@@ -75,6 +76,9 @@ public class MultiplicationDeobfuscator implements Deobfuscator
LVTInstruction storelvt = (LVTInstruction) storeCtx.getInstruction();
if (storelvt instanceof IInc)
throw new IllegalStateException();
assert storelvt.store();
InstructionContext pushed = storeCtx.getPops().get(0).getPushed();