MCPcopy Index your code
hub / github.com/python/cpython / stacks

Function stacks

Tools/cases_generator/stack.py:407–414  ·  view source on GitHub ↗
(inst: Instruction | PseudoInstruction)

Source from the content-addressed store, hash-verified

405
406
407def 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
417def apply_stack_effect(stack: Stack, effect: StackEffect) -> None:

Callers 1

get_stack_effectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…