fn will_exit(action: &InterpreterAction) -> bool
Helper function to check if frame execution will exit.