public static void writeCall(FunctionContext context, GimpleCall call, String callExpr, JimpleType returnType) {
if(call.getLhs() == null) {
context.getBuilder().addStatement(callExpr.toString());
} else {
ImLValue lvalue = (ImLValue) context.resolveExpr(call.getLhs());
ImExpr rhs = JvmExprs.toExpr(context, new JimpleExpr(callExpr), returnType, false);
lvalue.writeAssignment(context, rhs);
}
}