Deutsch   English   Français   Italiano  
<vqpebd$202b2$4@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: olcott <polcott333@gmail.com>
Newsgroups: comp.theory
Subject: Re: Every sufficiently competent C programmer knows
Date: Tue, 11 Mar 2025 08:37:49 -0500
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <vqpebd$202b2$4@dont-email.me>
References: <vqntaq$1jut5$1@dont-email.me> <vqotps$1snjg$1@dont-email.me>
 <vqp3n7$1u2l3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Mar 2025 14:37:50 +0100 (CET)
Injection-Info: dont-email.me; posting-host="21ad3ceb157a21d404b41b865b615184";
	logging-data="2099554"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/IEMAQtuF2/VE2JxsQR9Ev"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WzEGMObltyTn/QwUEelu4ThDtHE=
X-Antivirus-Status: Clean
X-Antivirus: Norton (VPS 250311-0, 3/10/2025), Outbound message
Content-Language: en-US
In-Reply-To: <vqp3n7$1u2l3$1@dont-email.me>
Bytes: 2975

On 3/11/2025 5:36 AM, Mikko wrote:
> On 2025-03-11 08:55:22 +0000, Fred. Zwarts said:
> 
>> Op 11.mrt.2025 om 00:41 schreef olcott:
>>> 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.
> 
> How may competent C programmers did you ask?
> 

Two C programmers with masters degrees in computer
science both agreed that DDD correctly emulated by HHH
cannot possibly reach its own "return" instruction and
terminate normally.

> The information given is clearly insufficient to determine whether HHH
> 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".
> 

HHH simply sees that same non-terminating pattern that
every competent C programmer sees.

-- 
Copyright 2025 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer