Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: olcott Newsgroups: comp.lang.c Subject: Re: Incorrect requirements --- Computing the mapping from the input to HHH(DD) Followup-To: comp.theory Date: Thu, 8 May 2025 21:58:40 -0500 Organization: A noiseless patient Spider Lines: 55 Message-ID: References: <87msbmeo3b.fsf@nosuchdomain.example.com> <87ecwyekg2.fsf@nosuchdomain.example.com> <87bjs2cyj6.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 09 May 2025 04:58:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b8226b0a928845ead4a9adb4b3b34c7d"; logging-data="2632189"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P5FspddGHQ08/vOzS4TgX" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:wyfvMX0gIAbp0/gfxkgwE8OsCvU= In-Reply-To: <87bjs2cyj6.fsf@nosuchdomain.example.com> X-Antivirus-Status: Clean Content-Language: en-US X-Antivirus: Norton (VPS 250508-4, 5/8/2025), Outbound message On 5/8/2025 9:23 PM, Keith Thompson wrote: > Richard Damon writes: >> On 5/8/25 7:53 PM, olcott wrote: > [...] >>> void DDD() >>> { >>>   HHH(DDD); >>>   return; >>> } >>> We don't need to look at any of my code for me >>> to totally prove my point. For example when >>> the above DDD is correctly simulated by HHH >>> this simulated DDD cannot possibly reach its own >>> "return" instruction. >> >> And thus not correctly simulatd. >> >> Sorry, there is no "OS Exemption" to correct simulaiton;. > > Perhaps I've missed something. I don't see anything in the above that > implies that HHH does not correctly simulate DDD. Richard, you've read > far more of olcott's posts than I have, so perhaps you can clarify. > > If we assume that HHH correctly simulates DDD, then the above code is > equivalent to: > > void DDD() > { > DDD(); > return; > } > > which is a trivial case of infinite recursion. As far as I can tell, > assuming that DDD() is actually called at some point, neither the > outer execution of DDD nor the nested (simulated) execution of DDD > can reach the return statement. Infinite recursion might either > cause a stack overflow and a probable program crash, or an unending > loop if the compiler implements tail call optimization. > > I see no contradiction, just an uninteresting case of infinite > recursion, something that's well understood by anyone with a > reasonable level of programming experience. (And it has nothing to > do with the halting problem as far as I can tell, though of course > olcott has discussed the halting problem elsewhere.) > > Richard, what am I missing? > Now you are seeing what I was talking about. Now you are seeing why I needed to cross post to comp.lang.c -- Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius hits a target no one else can see." Arthur Schopenhauer