Liste des Groupes | Revenir à theory |
On 2025-03-11 08:55:22 +0000, Fred. Zwarts said:Two C programmers with masters degrees in computer
Op 11.mrt.2025 om 00:41 schreef olcott:How may competent C programmers did you ask?typedef void (*ptr)();>
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.
All competent C programmers see that HHH correctly reports that it cannot possibly reach the 'return' instruction.
The information given is clearly insufficient to determine whether HHHHHH simply sees that same non-terminating pattern that
reports at all or what it reports. That HHH returns an int is given but
not how that int (or anything else) relates to "HHH cannot possibly reach
the return instruction".
Les messages affichés proviennent d'usenet.