olcott
unread,Jan 30, 2023, 1:55:55 PM1/30/23You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
olcott:
int D(int (*x)())
{
int Halt_Status = H(x, x);
return Halt_Status;
}
int main()
{
H(D,D);
}
H continues to simulate D until D reaches its return instruction.
Does D correctly simulated by H continue to call H in recursive
simulation if H never aborts its simulation of H?
ChatGPT:
No, the code would result in an infinite recursion, as H continuously
simulates D, which in turn continuously calls H. This would cause a
stack overflow error as the call stack grows infinitely.
--
Copyright 2023 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer