n =
base case (
if n == 1
)
Step
Run to end
Reset
CALL STACK (top = active)
WHAT JUST HAPPENED
A simulation of
factorial(n)
. The pretend stack here holds 8 frames so the limit is easy to see; real limits are much larger.