I don't think autopilot programs are anywhere close to that complex. All the ones I've seen had modes like "hold course and speed" or "follow a series of pre-programmed waypoints". Some military aircraft will have a radar guided terrain following mode as well. In the (highly unlikely) event that the autopilot is engaged when the pilot ejects, the autopilot is just going to continue following whatever mode it's set to.