Checks a range of instructions.
(&mut self, range: InstRange)
| 129 | |
| 130 | /// Checks a range of instructions. |
| 131 | fn check_inst_range(&mut self, range: InstRange) -> Result<()> { |
| 132 | self.check_entity(Entity::Inst(range.from))?; |
| 133 | self.check_entity(Entity::Inst(range.last()))?; |
| 134 | ensure!(range.to >= range.from, "{range}: Invalid instruction range"); |
| 135 | Ok(()) |
| 136 | } |
| 137 | |
| 138 | /// Check the limits on the number of entities. |
| 139 | fn check_limits(&self) -> Result<()> { |
no test coverage detected