Hi Raghunathan,

Yor code looks fine for the IR detector, but when program execution reaches
the end of Main, it will fall-through to the lower sub routines, land on RETURN,
and eventually crash since no valid return address has been pushed on the
stack.

Place a GOTO Main at the end of Main.