Liste des Groupes | Revenir à c theory |
On 3/11/2025 5:01 AM, Richard Heathfield wrote:The stipulation does not include the value of N (although a reasonableOn 11/03/2025 08:55, Fred. Zwarts wrote:It is stipulated that HHH correctly emulates NOp 11.mrt.2025 om 00:41 schreef olcott:First, my credentials. I've been programming in C for over 35 years; I'm told that my book on C has been used on two undergraduate Comp Sci courses (one in the States and one in the UK); and I have my Knuth cheque. I don't claim to be any kind of programming guru, but I hope I do not overstate the case when I suggest that I can be regarded as competent not just as a programmer but specifically in the C language.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.
And yet I can't even /see/ HHH, let alone judge what it does or does not do correctly. All I see is a call to it.
steps of the x86 machine code of its input functions.
This may or may not include HHH emulating itself
emulating an input.
Les messages affichés proviennent d'usenet.