def _is_right_op_and_rhs_is_init(inst, redvar_name, op):
    """Is ``inst`` an inplace-binop and the RHS is the reduction init?
    """
    if not isinstance(inst, ir.Assign):
        return False
    rhs = inst.value
    if not isinstance(rhs, ir.Expr):
        return False
    if rhs.op != op:
        return False
    if rhs.rhs.name != f"{redvar_name}#init":
        return False
    return True
Is ``inst`` an inplace-binop and the RHS is the reduction init?
    
numba/parfors/parfor_lowering.py