Build an automaton to visualize it here

Execution Trace
Run a simulation to see the step-by-step trace.