Liste des Groupes | Revenir à c theory |
typedef void (*ptr)();All competent C programmers see that HHH correctly reports that it cannot possibly reach the 'return' instruction. (Not more and not less.) It is unable to reach the end of the simulation. An end that exists as proven by direct execution and other world-class simulators for exactly the same finite string as input.
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.