(inst: Instruction | PseudoInstruction)
| 101 | pushed_data: list[tuple[str, str]] = [] |
| 102 | |
| 103 | def add(inst: Instruction | PseudoInstruction) -> None: |
| 104 | stack = get_stack_effect(inst) |
| 105 | popped = (-stack.base_offset).to_c() |
| 106 | pushed = (stack.logical_sp - stack.base_offset).to_c() |
| 107 | popped_data.append((inst.name, popped)) |
| 108 | pushed_data.append((inst.name, pushed)) |
| 109 | |
| 110 | for inst in analysis.instructions.values(): |
| 111 | add(inst) |
no test coverage detected