Mercurial > lcfOS
comparison python/ppci/irutils.py @ 317:e30a77ae359b
Added glue blocks
author | Windel Bouwman |
---|---|
date | Sun, 22 Dec 2013 15:50:59 +0100 |
parents | 2c9768114877 |
children | e84047f29c78 |
comparison
equal
deleted
inserted
replaced
316:56e6ff84f646 | 317:e30a77ae359b |
---|---|
255 self.verify_block(b) | 255 self.verify_block(b) |
256 | 256 |
257 def verify_block_termination(self, block): | 257 def verify_block_termination(self, block): |
258 assert not block.Empty | 258 assert not block.Empty |
259 assert block.LastInstruction.IsTerminator | 259 assert block.LastInstruction.IsTerminator |
260 for i in block.Instructions[:-1]: | |
261 assert not isinstance(i, ir.LastStatement) | |
260 | 262 |
261 def verify_block(self, block): | 263 def verify_block(self, block): |
262 for instruction in block.Instructions: | 264 for instruction in block.Instructions: |
263 self.verify_instruction(instruction) | 265 self.verify_instruction(instruction) |
264 | 266 |