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

Function get_stack_effect

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

Source from the content-addressed store, hash-verified

430
431
432def get_stack_effect(inst: Instruction | PseudoInstruction) -> Stack:
433 stack = Stack()
434 for s in stacks(inst):
435 apply_stack_effect(stack, s)
436 return stack
437
438
439@dataclass

Callers 3

addFunction · 0.90
declare_variablesFunction · 0.90
get_poppedFunction · 0.90

Calls 3

StackClass · 0.85
stacksFunction · 0.85
apply_stack_effectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…