def process(self, root, trace=False): self.trace=trace # Visit the blocks in postorder. post = list(postorder(BlockWrapper(), root)) for block in post: self(block) if block.isRegion(): self.process(block.entry())
def cfgPostorder(root): return list(postorder(BlockWrapper(), root))