@staticmethod
    def _get_cidr_match(item):
        cidr = ""
        for loop in range(4):
            if loop != 0:
                cidr += "."
            cidr += str(0xff & (item["prefix"] >> ((loop * 8) - 24)))

        mask = item["mask"]
        mask_length = 32
        for loop in range(32):
            if (mask & 1) == 0:
                mask_length -= 1
                mask >>= 1
            else:
                break
        cidr += "/" + str(mask_length)

        return cidr
dataset/ETHPy150Open openstack/dragonflow/dragonflow/controller/sg_app.py/SGApp._get_cidr_match/swapped operands of `-`