Deutsch English Français Italiano |
<v28q6r$2e3qc$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: olcott <polcott333@gmail.com> Newsgroups: comp.theory Subject: Re: Every D(D) simulated by H presents non-halting behavior to H ### Date: Fri, 17 May 2024 18:45:31 -0500 Organization: A noiseless patient Spider Lines: 78 Message-ID: <v28q6r$2e3qc$1@dont-email.me> References: <v18e32$1vbql$1@dont-email.me> <v1gid8$4ilc$1@dont-email.me> <v1h9eu$9faf$1@dont-email.me> <v1iqli$nsva$1@dont-email.me> <v1ln3c$vfh$1@news.muc.de> <v1s6e6$397iq$2@dont-email.me> <v1slmi$3cjtp$1@dont-email.me> <v1t8tt$3gu9t$3@dont-email.me> <v1vc8j$3jmr$1@dont-email.me> <v1vsru$7eqc$1@dont-email.me> <v21r4i$otc2$2@dont-email.me> <v22k4b$umr4$1@dont-email.me> <v24oah$1h4u3$1@dont-email.me> <v256fc$1kais$1@dont-email.me> <v25bf0$ecc$1@news.muc.de> <v25crp$1lmq1$1@dont-email.me> <v28d3q$nic$1@news.muc.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 18 May 2024 01:45:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="95afb1fc0a4871125108def5044e156a"; logging-data="2559820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pvyer5qp461msw7CBR8qU" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:SMSAW4uAOyGxnDYXsF5DPjcaWjQ= Content-Language: en-US In-Reply-To: <v28d3q$nic$1@news.muc.de> Bytes: 3813 On 5/17/2024 3:02 PM, Alan Mackenzie wrote: > olcott <polcott333@gmail.com> wrote: >> On 5/16/2024 11:15 AM, Alan Mackenzie wrote: >>> olcott <polcott333@gmail.com> wrote: >>>> On 5/16/2024 5:48 AM, Mikko wrote: >>>>> On 2024-05-15 15:24:57 +0000, olcott said: > >>> [ .... ] > >>>>> Normal semantics is that the program is not executed. > >>> Indeed. > >>>>>> typedef int (*ptr)(); // ptr is pointer to int function >>>>>> 00 int H(ptr x, ptr x); >>>>>> 01 int D(ptr x) >>>>>> 02 { >>>>>> 03 int Halt_Status = H(x, x); >>>>>> 04 if (Halt_Status) >>>>>> 05 HERE: goto HERE; >>>>>> 06 return Halt_Status; >>>>>> 07 } >>>>>> 08 >>>>>> 09 int main() >>>>>> 10 { >>>>>> 11 H(D,D); >>>>>> 12 return 0; >>>>>> 13 } > >>>>> Can you find any compiler that is liberal enough to accept that? > >>>> It has been fully operational code under Windows and >>>> Linux for two years. > >>> That is another of your lies. It's largely why I despise you so much. > >>> Although you've fixed the missing semicolon on line 0 (at last), it still >>> fails to compile under any C compiler worthy of the name. With all the >>> errors in it it still would have failed to compile under Linux or Windows >>> ever since it was written. > >>> Quit lying. And fix that program fragment, assuming your C skills are up >>> to it. > >> There are many postings in this group providing the >> actual execution trace output of that program. > > That "program" doesn't compile. It's ill-formed. *This <is> the code that you said would not compile* *This <is> the code that you said would not compile* *This <is> the code that you said would not compile* typedef int (*ptr)(); int H(ptr P, ptr I); int D(ptr x) { int Halt_Status = H(x, x); if (Halt_Status) HERE: goto HERE; return Halt_Status; } int main() { H(D,D); return 0; } *Not only does this code compile, it also meets C11 and C17 standards* *Not only does this code compile, it also meets C11 and C17 standards* *Not only does this code compile, it also meets C11 and C17 standards* -- Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius hits a target no one else can see." Arthur Schopenhauer