/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter index associated with a move-param insn. Does * not verify that the insn is a move-param insn. * * @param insn {@code non-null;} a move-param insn * @return {@code >=0;} parameter index */ private int getParamIndex(NormalSsaInsn insn) { CstInsn cstInsn = (CstInsn)(insn.getOriginalRopInsn()); int param = ((CstInteger)cstInsn.getConstant()).getValue(); return param; }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Returns the parameter number that this move-param insn refers to * @param ndefInsn a move-param insn (otherwise, exceptions will be thrown) * @return parameter number (offset in the total parameter width) */ private int paramNumberFromMoveParam(NormalSsaInsn ndefInsn) { CstInsn origInsn = (CstInsn) ndefInsn.getOriginalRopInsn(); return ((CstInteger) origInsn.getConstant()).getValue(); } }
/** * Replaces an SsaInsn containing a PlainInsn with a new PlainInsn. The * new PlainInsn is contructed with a new RegOp and new sources. * * TODO move this somewhere else. * * @param insn {@code non-null;} an SsaInsn containing a PlainInsn * @param newSources {@code non-null;} new sources list for new insn * @param newOpcode A RegOp from {@link RegOps} */ private void replacePlainInsn(NormalSsaInsn insn, RegisterSpecList newSources, int newOpcode) { Insn originalRopInsn = insn.getOriginalRopInsn(); Rop newRop = Rops.ropFor(newOpcode, insn.getResult(), newSources, null); Insn newRopInsn = new PlainInsn(newRop, originalRopInsn.getPosition(), insn.getResult(), newSources); NormalSsaInsn newInsn = new NormalSsaInsn(newRopInsn, insn.getBlock()); List<SsaInsn> insns = insn.getBlock().getInsns(); ssaMeth.onInsnRemoved(insn); insns.set(insns.lastIndexOf(insn), newInsn); ssaMeth.onInsnAdded(newInsn); } }
RegisterSpecList newSources, int newOpcode, Constant cst) { Insn originalRopInsn = insn.getOriginalRopInsn(); Rop newRop = Rops.ropFor(newOpcode, insn.getResult(), newSources, cst); Insn newRopInsn;
RegisterSpecList newSources, int newOpcode, Constant cst) { Insn originalRopInsn = insn.getOriginalRopInsn(); Rop newRop = Rops.ropFor(newOpcode, insn.getResult(), newSources, cst); Insn newRopInsn;
RegisterSpecList newSources, int newOpcode, Constant cst) { Insn originalRopInsn = insn.getOriginalRopInsn(); Rop newRop = Rops.ropFor(newOpcode, insn.getResult(), newSources, cst); Insn newRopInsn;