use of soot.dexpler.typing.UntypedConstant in project soot by Sable.
the class ConstInstruction method jimplify.
@Override
public void jimplify(DexBody body) {
int dest = ((OneRegisterInstruction) instruction).getRegisterA();
Constant cst = getConstant(dest, body);
AssignStmt assign = Jimple.v().newAssignStmt(body.getRegisterLocal(dest), cst);
setUnit(assign);
addTags(assign);
body.add(assign);
if (IDalvikTyper.ENABLE_DVKTYPER) {
if (cst instanceof UntypedConstant) {
DalvikTyper.v().addConstraint(assign.getLeftOpBox(), assign.getRightOpBox());
} else {
DalvikTyper.v().setType(assign.getLeftOpBox(), cst.getType(), false);
}
}
}
Aggregations