We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6580f5 commit 29fc650Copy full SHA for 29fc650
1 file changed
miasm/core/asmblock.py
@@ -729,6 +729,10 @@ def sanity_check(self):
729
for loc_key in self._nodes:
730
if loc_key not in self._loc_key_to_block:
731
raise RuntimeError("Not supported yet: every node must have a corresponding AsmBlock")
732
+
733
+ if not self.loc_key_to_block(loc_key).lines:
734
+ raise RuntimeError("Blocks cannot be empty")
735
736
# No next constraint to self
737
if (loc_key, loc_key) in next_edges:
738
raise RuntimeError('Bad constraint: self in next')
0 commit comments