(inst: Instruction | PseudoInstruction)
| 405 | |
| 406 | |
| 407 | def stacks(inst: Instruction | PseudoInstruction) -> Iterator[StackEffect]: |
| 408 | if isinstance(inst, Instruction): |
| 409 | for uop in inst.parts: |
| 410 | if isinstance(uop, Uop): |
| 411 | yield uop.stack |
| 412 | else: |
| 413 | assert isinstance(inst, PseudoInstruction) |
| 414 | yield inst.stack |
| 415 | |
| 416 | |
| 417 | def apply_stack_effect(stack: Stack, effect: StackEffect) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…