Re: Can someone please verify the execution trace of this?

Liste des GroupesRevenir à cl c++ 
Sujet : Re: Can someone please verify the execution trace of this?
De : polcott333 (at) *nospam* gmail.com (olcott)
Groupes : comp.lang.c++
Date : 20. May 2024, 21:07:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2g728$4nu0$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 5/20/2024 1:23 PM, wij wrote:
On Mon, 2024-05-20 at 12:23 -0500, olcott wrote:
On 5/20/2024 11:21 AM, wij wrote:
On Mon, 2024-05-20 at 10:02 -0500, olcott wrote:
On 5/20/2024 7:37 AM, wij wrote:
On Sun, 2024-05-19 at 21:43 -0500, olcott wrote:
On 5/19/2024 8:52 PM, Bonita Montero wrote:
Am 19.05.2024 um 21:00 schrieb olcott:
On 5/19/2024 1:08 PM, Bonita Montero wrote:
Am 18.05.2024 um 23:40 schrieb olcott:
People are saying that they have no idea what this code does
because they do not believe it conforms to c11 or c17.
>
typedef int (*ptr)();  // ptr is pointer to int function
00 int H(ptr x, ptr y);
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 }
>
In the above case a simulator is an x86 emulator that correctly
emulates
at least one of the x86 instructions of D in the order specified by the
x86 instructions of D.
>
This may include correctly emulating the x86 instructions of H in the
order specified by the x86 instructions of H thus calling H(D,D) in
recursive simulation.
>
*Execution Trace*
Line 11: main() invokes H(D,D);
>
*keeps repeating* (unless aborted)
Line 01:
Line 02:
Line 03: simulated D(D) invokes simulated H(D,D) that simulates D(D)
>
*Simulation invariant*
D correctly simulated by H cannot possibly reach past its own line 03.
>
The key thing to note is that no D correctly simulated by any H of
every
H/D pair specified by the above template ever reaches its own line 06
and halts.
>
>
Other people think 30s about this, you think years about that.
>
>
It is the basis for my two decades long primary research into
termination analysis. People on another forum have written
hundreds of posts claiming that D correctly simulated by H
reaches its own line 06 and halts.
>
*I have only gotten truthful answers on this forum*
>
>
That's not research, that's nonsense.
>
>
This is not the forum to show that it is not nonsense this is
a simple C question that I should not even have to ask except
for a few people in another forum that consistently lie about
the answer.
>
I have been a professional C++ developer since Y2K. So I already
know the answer, I just need some competent people in this forum
to attest to this answer. I met Bjarne Stroustrup back when he
was going around the country promoting his new language.
>
>
typedef int (*ptr)();  // ptr is pointer to int function
int H(ptr x, ptr y);
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;
}
>
The code above does not compile:
>
*It does compile*
*It does compile*
*It does compile*
*It does 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;
}
>
cl  /GS- /std:c11 /c /arch:IA32 Test_Compile.c
cl  /GS- /std:c17 /c /arch:IA32 Test_Compile.c
if ERRORLEVEL 1 pause
>
>
D:\__HP_Stream\__NLU_Notes\__Work_In_Progress\__Halt_Decider_X86\___x86utm_VS>echo
off
>
D:\__HP_Stream\__NLU_Notes\__Work_In_Progress\__Halt_Decider_X86\___x86utm_VS>REM
2022
>
D:\__HP_Stream\__NLU_Notes\__Work_In_Progress\__Halt_Decider_X86\___x86utm_VS>call
"C:\Program Files\Microsoft Visual
Studio\2022\Community\Common7\Tools\VsDevCmd.BAT"
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.6.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32535 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
>
Test_Compile.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32535 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
>
Test_Compile.c
Press any key to continue . . .
>
OK, My fault, gcc can compile (g++ can't. No idea why D's protocol doesn't match
type ptr and get compiled in C).
>
>
>
In the above case a simulator is an x86 emulator that correctly emulates
at least one of the x86 instructions of D in the order specified by the
x86 instructions of D.
>
This may include correctly emulating the x86 instructions of H in the
order specified by the x86 instructions of H thus calling H(D,D) in
recursive simulation.
>
*I just need to people that have persistently lied*
*about this for two years to be put in their place*
>
*Can you see that*
For every H/D pair of the above template D correctly simulated by pure
function (thus computable function) H cannot possibly reach its own
final state at line 06 and halt.
 People understand "H cannot possibly reach its own final state at line 06
and halt".
That is nothing like what I said.

People should be saying that your H cannot stop 'simulation' so as
to be called a simolation of D.
Every element of an infinite set of H/D pairs matching the above
template where H correctly simulates 1 to ∞ steps of D thus including
0 to ∞ recursive simulations of H simulating itself simulating D.
*D correctly simulated by H never reaches its own line 06 and halts*

Your H surely can stop and make whatever decision, but since D is defined on
the behavior of H, D knows it, D will also change its behavior. This change
of behavior of D to behave differently can never be simulated and decided by H,
whatever H tries.
 The logic is the same as the liar's paradox. H cannot return yes/no correctly.
All others are whatever you like to say, nothing to do with the HP. Godel,Sisper,Tarsky....
 
You are correct that this is just like the Liar Paradox.
I have a way around this that cannot be discussed in a C/C++ forum.
comp.theory is my main forum for discussing this, those people
seem clueless of the semantics of C.
--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Date Sujet#  Auteur
18 May 24 * Can someone please verify the execution trace of this?136olcott
19 May 24 +- Re: Can someone please verify the execution trace of this?1Richard Damon
19 May 24 +* Re: Can someone please verify the execution trace of this?3Sam
19 May 24 i`* Re: Can someone please verify the execution trace of this?2olcott
19 May 24 i `- Re: Can someone please verify the execution trace of this?1jak
19 May 24 +* Re: Can someone please verify the execution trace of this?128Bonita Montero
19 May 24 i`* Re: Can someone please verify the execution trace of this?127olcott
19 May 24 i +- Re: Can someone please verify the execution trace of this?1Richard Damon
20 May 24 i `* Re: Can someone please verify the execution trace of this?125Bonita Montero
20 May 24 i  `* Re: Can someone please verify the execution trace of this?124olcott
20 May 24 i   +* Re: Can someone please verify the execution trace of this?54Bonita Montero
20 May 24 i   i`* Re: Can someone please verify the execution trace of this?53olcott
20 May 24 i   i +* Re: Can someone please verify the execution trace of this?44Bonita Montero
20 May 24 i   i i`* Re: Can someone please verify the execution trace of this?43olcott
20 May 24 i   i i `* Re: Can someone please verify the execution trace of this?42Bonita Montero
20 May 24 i   i i  `* Re: Can someone please verify the execution trace of this?41olcott
20 May 24 i   i i   `* Re: Can someone please verify the execution trace of this?40Bonita Montero
20 May 24 i   i i    `* Re: Can someone please verify the execution trace of this?39olcott
20 May 24 i   i i     +* Re: Can someone please verify the execution trace of this?2Richard Harnden
20 May 24 i   i i     i`- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i i     `* Re: Can someone please verify the execution trace of this?36Chris M. Thomasson
20 May 24 i   i i      `* Re: Can someone please verify the execution trace of this?35olcott
20 May 24 i   i i       `* Re: Can someone please verify the execution trace of this?34Chris M. Thomasson
20 May 24 i   i i        +* Re: Can someone please verify the execution trace of this?13olcott
20 May 24 i   i i        i`* Re: Can someone please verify the execution trace of this?12Chris M. Thomasson
20 May 24 i   i i        i `* Re: Can someone please verify the execution trace of this?11olcott
20 May 24 i   i i        i  +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        i  +* Re: Can someone please verify the execution trace of this?3Chris M. Thomasson
20 May 24 i   i i        i  i`* Re: Can someone please verify the execution trace of this?2olcott
20 May 24 i   i i        i  i `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        i  `* Re: Can someone please verify the execution trace of this?6Chris M. Thomasson
20 May 24 i   i i        i   `* Re: Can someone please verify the execution trace of this?5olcott
20 May 24 i   i i        i    `* Re: Can someone please verify the execution trace of this?4Chris M. Thomasson
20 May 24 i   i i        i     `* Re: Can someone please verify the execution trace of this?3olcott
20 May 24 i   i i        i      `* Re: Can someone please verify the execution trace of this?2Chris M. Thomasson
20 May 24 i   i i        i       `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        `* Re: Can someone please verify the execution trace of this?20Chris M. Thomasson
20 May 24 i   i i         `* Re: Can someone please verify the execution trace of this?19olcott
20 May 24 i   i i          `* Re: Can someone please verify the execution trace of this?18Chris M. Thomasson
20 May 24 i   i i           `* Re: Can someone please verify the execution trace of this?17olcott
20 May 24 i   i i            `* Re: Can someone please verify the execution trace of this?16Chris M. Thomasson
20 May 24 i   i i             `* Re: Can someone please verify the execution trace of this?15olcott
20 May 24 i   i i              `* Re: Can someone please verify the execution trace of this?14Chris M. Thomasson
20 May 24 i   i i               `* Re: Can someone please verify the execution trace of this?13olcott
20 May 24 i   i i                `* Re: Can someone please verify the execution trace of this?12Chris M. Thomasson
20 May 24 i   i i                 +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i                 `* Re: Can someone please verify the execution trace of this?10olcott
20 May 24 i   i i                  `* Re: Can someone please verify the execution trace of this?9Chris M. Thomasson
20 May 24 i   i i                   `* Re: Can someone please verify the execution trace of this?8Chris M. Thomasson
20 May 24 i   i i                    `* Re: Can someone please verify the execution trace of this?7olcott
20 May 24 i   i i                     +* Re: Can someone please verify the execution trace of this?5Chris M. Thomasson
20 May 24 i   i i                     i`* Re: Can someone please verify the execution trace of this?4olcott
20 May 24 i   i i                     i `* Re: Can someone please verify the execution trace of this?3Chris M. Thomasson
20 May 24 i   i i                     i  +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i                     i  `- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i i                     `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i `* Re: Can someone please verify the execution trace of this?8Fred. Zwarts
20 May 24 i   i  `* Re: Can someone please verify the execution trace of this?7olcott
20 May 24 i   i   +* Re: Can someone please verify the execution trace of this?2Paavo Helde
20 May 24 i   i   i`- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i   `* Re: Can someone please verify the execution trace of this?4Bonita Montero
20 May 24 i   i    `* Re: Can someone please verify the execution trace of this?3olcott
21 May 24 i   i     `* Re: Can someone please verify the execution trace of this?2Fred. Zwarts
21 May 24 i   i      `- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   +* Re: Can someone please verify the execution trace of this?37wij
20 May 24 i   i+* Re: Can someone please verify the execution trace of this?5olcott
20 May 24 i   ii`* Re: Can someone please verify the execution trace of this?4wij
20 May 24 i   ii `* Re: Can someone please verify the execution trace of this?3olcott
20 May 24 i   ii  `* Re: Can someone please verify the execution trace of this?2wij
20 May 24 i   ii   `- Re: Can someone please verify the execution trace of this?1olcott
21 May 24 i   i`* Re: Can someone please verify the execution trace of this?31Keith Thompson
21 May 24 i   i +- Re: Can someone please verify the execution trace of this?1Keith Thompson
21 May 24 i   i `* Re: Can someone please verify the execution trace of this?29olcott
21 May 24 i   i  +- Re: Can someone please verify the execution trace of this?1Fred. Zwarts
21 May 24 i   i  `* Re: Can someone please verify the execution trace of this?27Janis Papanagnou
21 May 24 i   i   `* Re: Can someone please verify the execution trace of this?26olcott
21 May 24 i   i    `* Re: Can someone please verify the execution trace of this?25Bonita Montero
21 May 24 i   i     `* Can D correctly simulated by H reach its own line 06 and halt?24olcott
21 May 24 i   i      `* Re: Can D correctly simulated by H reach its own line 06 and halt?23Bonita Montero
21 May 24 i   i       `* Re: Can D correctly simulated by H reach its own line 06 and halt?22olcott
21 May 24 i   i        `* Re: Can D correctly simulated by H reach its own line 06 and halt?21Bonita Montero
21 May 24 i   i         `* Re: Can D correctly simulated by H reach its own line 06 and halt?20olcott
21 May 24 i   i          `* Re: Can D correctly simulated by H reach its own line 06 and halt?19Bonita Montero
21 May 24 i   i           `* Re: Can D correctly simulated by H reach its own line 06 and halt?18olcott
22 May 24 i   i            +* Re: Can D correctly simulated by H reach its own line 06 and halt?7Bonita Montero
22 May 24 i   i            i`* Re: Can D correctly simulated by H reach its own line 06 and halt?6olcott
22 May 24 i   i            i `* Re: Can D correctly simulated by H reach its own line 06 and halt?5Bonita Montero
22 May 24 i   i            i  `* Re: Can D correctly simulated by H reach its own line 06 and halt?4olcott
22 May 24 i   i            i   `* Re: Can D correctly simulated by H reach its own line 06 and halt?3Bonita Montero
22 May 24 i   i            i    `* Re: Can D correctly simulated by H reach its own line 06 and halt?2olcott
22 May 24 i   i            i     `- Re: Can D correctly simulated by H reach its own line 06 and halt?1Bonita Montero
22 May 24 i   i            `* D correctly simulated by H remains stuck in recursive simulation10olcott
22 May 24 i   i             +* Re: D correctly simulated by H remains stuck in recursive simulation8wij
22 May 24 i   i             i+* Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]3olcott
22 May 24 i   i             ii`* Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]2olcott
22 May 24 i   i             ii `- Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]1wij
22 May 24 i   i             i`* Re: D correctly simulated by H remains stuck in recursive simulation4olcott
23 May 24 i   i             i `* Re: D correctly simulated by H remains stuck in recursive simulation3Chris M. Thomasson
23 May 24 i   i             i  `* Re: D correctly simulated by H remains stuck in recursive simulation2olcott
23 May 24 i   i             i   `- Re: D correctly simulated by H remains stuck in recursive simulation1Chris M. Thomasson
22 May 24 i   i             `- Re: D correctly simulated by H remains stuck in recursive simulation1Fred. Zwarts
21 May 24 i   `* Re: Can someone please verify the execution trace of this?32Sam
20 May 24 `* Re: Can someone please verify the execution trace of this?3Marcel Mueller

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal