(
&self,
loc: impl Into<AnyEntity>,
e: Block,
errors: &mut VerifierErrors,
)
| 760 | } |
| 761 | |
| 762 | fn verify_block( |
| 763 | &self, |
| 764 | loc: impl Into<AnyEntity>, |
| 765 | e: Block, |
| 766 | errors: &mut VerifierErrors, |
| 767 | ) -> VerifierStepResult { |
| 768 | if !self.func.dfg.block_is_valid(e) || !self.func.layout.is_block_inserted(e) { |
| 769 | return errors.fatal((loc, format!("invalid block reference {e}"))); |
| 770 | } |
| 771 | if let Some(entry_block) = self.func.layout.entry_block() { |
| 772 | if e == entry_block { |
| 773 | return errors.fatal((loc, format!("invalid reference to entry block {e}"))); |
| 774 | } |
| 775 | } |
| 776 | Ok(()) |
| 777 | } |
| 778 | |
| 779 | fn verify_sig_ref( |
| 780 | &self, |
no test coverage detected