'Apply the expansions computed in .match().'

def apply(self):

    block = self.block
    rewrites = self.rewrites
    for inst in block.body:
        if (isinstance(inst, ir.Assign) and (inst.value in rewrites)):
            inst.value = rewrites[inst.value]
    return block
