From 6eeeaf0716df33f28c2faddb66f35ad65b3d21f8 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 27 Feb 2016 16:10:13 -0500 Subject: [PATCH] I don't know if this is right. Seeing some dead code still left in which is concerning. --- .../deobfuscators/arithmetic/MultiplicationDeobfuscator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/runelite/deob/deobfuscators/arithmetic/MultiplicationDeobfuscator.java b/src/main/java/net/runelite/deob/deobfuscators/arithmetic/MultiplicationDeobfuscator.java index e3dc8fe725..2e1f603503 100644 --- a/src/main/java/net/runelite/deob/deobfuscators/arithmetic/MultiplicationDeobfuscator.java +++ b/src/main/java/net/runelite/deob/deobfuscators/arithmetic/MultiplicationDeobfuscator.java @@ -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();