MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / check_inst_range

Method check_inst_range

src/debug_utils/validate_func.rs:131–136  ·  view source on GitHub ↗

Checks a range of instructions.

(&mut self, range: InstRange)

Source from the content-addressed store, hash-verified

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<()> {

Callers 1

check_blockMethod · 0.80

Calls 2

check_entityMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected