(self, var: StackItem, check_liveness: bool)
| 230 | self.push(Local.register(f"_stack_item_{i}")) |
| 231 | |
| 232 | def drop(self, var: StackItem, check_liveness: bool) -> None: |
| 233 | self.logical_sp = self.logical_sp.pop(var) |
| 234 | if self.variables: |
| 235 | popped = self.variables.pop() |
| 236 | if popped.is_dead() or not var.used: |
| 237 | return |
| 238 | if check_liveness: |
| 239 | raise StackError(f"Dropping live value '{var.name}'") |
| 240 | |
| 241 | def pop(self, var: StackItem, out: CWriter) -> Local: |
| 242 | if self.variables: |
no test coverage detected