| Deutsch English Français Italiano |
|
<1030ccl$3o3db$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Mikko <mikko.levanto@iki.fi>
Newsgroups: comp.lang.c
Subject: Re: How do simulating termination analyzers work? (in C and C++)
Date: Thu, 19 Jun 2025 09:57:25 +0300
Organization: -
Lines: 55
Message-ID: <1030ccl$3o3db$1@dont-email.me>
References: <102stfv$2mgvq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Jun 2025 08:57:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3795b2b31d9ed69cd0c8b5cdd7fda16b";
logging-data="3935659"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZDOAyFGQjCrXIzXUiZjvD"
User-Agent: Unison/2.2
Cancel-Lock: sha1:AZJbBfc4zi5SliOOpK9pr6fW6Wc=
On 2025-06-17 23:24:45 +0000, olcott said:
> void Infinite_Recursion()
> {
> Infinite_Recursion();
> return;
> }
>
> void Infinite_Loop()
> {
> HERE: goto HERE;
> return;
> }
>
> void DDD()
> {
> HHH(DDD);
> return;
> }
>
> When it is understood that HHH does simulate itself
> simulating DDD then any first year CS student knows
> that when each of the above are correctly simulated
> by HHH that none of them ever stop running unless aborted.
> (recursive simulation is similar to infinite recursion).
>
> The same thing equally applies to these two, yet they may
> be too difficult for a first year CS student.
>
> int Sipser_D()
> {
> if (HHH(Sipser_D) == 1)
> return 0;
> return 1;
> }
>
> int DD()
> {
> int Halt_Status = HHH(DD);
> if (Halt_Status)
> HERE: goto HERE;
> return Halt_Status;
> }
>
> *Fully operational code*
> https://github.com/plolcott/x86utm/blob/master/Halt7.c
Your "fully operational code" uses non-standard extensions to
C language. It does not work and cannot be made to work in an
environment where it is not possible to read the machine code
of a function as data.
--
Mikko