Liste des Groupes | Revenir à theory |
Op 11.mrt.2025 om 00:41 schreef olcott:How may competent C programmers did you ask?typedef void (*ptr)();All competent C programmers see that HHH correctly reports that it cannot possibly reach the 'return' instruction.
int HHH(ptr P);
void Infinite_Loop()
{
HERE: goto HERE;
return;
}
void Infinite_Recursion()
{
Infinite_Recursion();
return;
}
void DDD()
{
HHH(DDD);
return;
}
int DD()
{
int Halt_Status = HHH(DD);
if (Halt_Status)
HERE: goto HERE;
return Halt_Status;
}
That when HHH correctly emulates N steps of the
above functions that none of these functions can
possibly reach their own "return" instruction
and terminate normally.Since HHH does see that same pattern that competent
C programmers see it correctly aborts its emulation
and rejects these inputs as non terminating.
Les messages affichés proviennent d'usenet.