assignPrimitive(lhs, new JimpleExpr("neg " + expr.translateToPrimitive(context, type)));
}
private void assignBinaryOp(ImExpr lhs, String operator, List<ImExpr> operands) {
ImPrimitiveType type = TypeChecker.assertSamePrimitiveType(lhs, operands.get(0), operands.get(1));
JimpleExpr a = operands.get(0).translateToPrimitive(context, type);
JimpleExpr b = operands.get(1).translateToPrimitive(context, type);
assignPrimitive(lhs, JimpleExpr.binaryInfix(operator, a, b));