Remove pool entry pool reference

This commit is contained in:
Adam
2015-07-07 12:49:37 -04:00
parent be127c55cb
commit c92387e089
18 changed files with 78 additions and 94 deletions

View File

@@ -749,7 +749,7 @@ public class ModularArithmeticDeobfuscation
//assert m.setter == modInverse(m.getter);
int newConstant = constant * m.setter;
pc.setConstant(new info.sigterm.deob.pool.Integer(pc.getConstant().getPool(), newConstant));
pc.setConstant(new info.sigterm.deob.pool.Integer(newConstant));
if (newConstant != 1)
System.out.println("new constant: " + newConstant);
else
@@ -777,7 +777,7 @@ public class ModularArithmeticDeobfuscation
// field = setter * value, solve for value by * modInverse(setter)
int newConstant = constant * m.getter;
pi.setConstant(new info.sigterm.deob.pool.Integer(pi.getConstant().getPool(), newConstant));
pi.setConstant(new info.sigterm.deob.pool.Integer(newConstant));
++replaced;
}
else if (value.getPushed().getInstruction() instanceof IMul)
@@ -812,7 +812,7 @@ public class ModularArithmeticDeobfuscation
// field = expression * constant
int newConstant = constant * m.getter;
pc.setConstant(new info.sigterm.deob.pool.Integer(pc.getConstant().getPool(), newConstant));
pc.setConstant(new info.sigterm.deob.pool.Integer(newConstant));
++replaced;
}
}