D correctly simulated by H cannot possibly reach its own line 06

Liste des GroupesRevenir à l c 
Sujet : D correctly simulated by H cannot possibly reach its own line 06
De : polcott333 (at) *nospam* gmail.com (olcott)
Groupes : comp.lang.c
Date : 18. May 2024, 21:10:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2aufl$2tsp6$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 5/18/2024 2:03 PM, Keith Thompson wrote:
James Kuyper <jameskuyper@alumni.caltech.edu> writes:
[...]
"Undefined behavior" is a piece of C jargon. You cannot understand the
meaning of the term by treating it as an ordinary English phrase:
"behavior which has no definition'.
[...]
           This is important, because strictly conforming code cannot
have undefined behavior. If the C standard has no definition for the
behavior of some code, it cannot be strictly conforming, even if some
other document does define the behavior.
[...]
 It's also important to note that "strictly conforming" is a piece of C
jargon.  I don't know (or care) whether strict conformance is relevant
to the discussion that should have stayed in comp.theory.
 If something in comp.theory raises a question about C, I suggest
starting a new thread in comp.lang.c rather than cross-posting.
 Followups redirected back to comp.theory.
 
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.
--
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 * Re: Every D(D) simulated by H presents non-halting behavior to H ###89Mikko
18 May 24 +* Re: Every D(D) simulated by H presents non-halting behavior to H ###71olcott
18 May 24 i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
19 May 24 i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###69DFS
19 May 24 i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###8immibis
20 May 24 i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Chris M. Thomasson
20 May 24 i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###6Keith Thompson
20 May 24 i i  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Chris M. Thomasson
20 May 24 i i  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Keith Thompson
21 May 24 i i  i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
20 May 24 i i  +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
20 May 24 i i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Kenny McCormack
19 May 24 i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###58olcott
19 May 24 i i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
19 May 24 i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###56Richard Damon
19 May 24 i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###55Chris M. Thomasson
20 May 24 i i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###54immibis
20 May 24 i i   `* Re: Every D(D) simulated by H presents non-halting behavior to H ###53David Brown
20 May 24 i i    +* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Kenny McCormack
20 May 24 i i    i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Alan Mackenzie
20 May 24 i i    i `* Topicality: Who really cares? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2Kenny McCormack
21 May 24 i i    i  `- Re: Topicality: Who really cares? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1David Brown
20 May 24 i i    +* Re: Every D(D) simulated by H presents non-halting behavior to H ###16Chris M. Thomasson
21 May 24 i i    i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###15David Brown
21 May 24 i i    i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###14James Kuyper
21 May 24 i i    i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###13David Brown
21 May 24 i i    i   +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i    i   +* Re: Every D(D) simulated by H presents non-halting behavior to H ###10Keith Thompson
22 May 24 i i    i   i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###9David Brown
22 May 24 i i    i   i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###8olcott
23 May 24 i i    i   i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Mikko
23 May 24 i i    i   i   `* Re: Every D(D) simulated by H presents non-halting behavior to H ###6olcott
24 May 24 i i    i   i    +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
24 May 24 i i    i   i    `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Mikko
24 May 24 i i    i   i     `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3olcott
25 May 24 i i    i   i      `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Mikko
25 May 24 i i    i   i       `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
24 May 24 i i    i   `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i    `* Re: Every D(D) simulated by H presents non-halting behavior to H ###32immibis
21 May 24 i i     +* Lying meets the standard of losing defamation cases2olcott
21 May 24 i i     i`- Re: Lying meets the standard of losing defamation cases1Richard Damon
21 May 24 i i     +* Lying meets the standard of losing defamation cases3olcott
21 May 24 i i     i`* Re: Lying meets the standard of losing defamation cases2Richard Damon
21 May 24 i i     i `- Re: Lying meets the standard of losing defamation cases1Mikko
21 May 24 i i     +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Keith Thompson
21 May 24 i i     i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Kenny McCormack
21 May 24 i i     i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1immibis
21 May 24 i i     +* Re: Every D(D) simulated by H presents non-halting behavior to H ###13David Brown
21 May 24 i i     i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###12James Kuyper
21 May 24 i i     i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###11immibis
21 May 24 i i     i  +- Thought control??? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i     i  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###5Richard Damon
22 May 24 i i     i  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Keith Thompson
22 May 24 i i     i  i `* Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)3Kenny McCormack
22 May 24 i i     i  i  `* Re: Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2immibis
22 May 24 i i     i  i   `- Re: Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i     i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
22 May 24 i i     i   +* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Kenny McCormack
22 May 24 i i     i   i`- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Kaz Kylheku
22 May 24 i i     i   `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1David Brown
21 May 24 i i     `* Re: Every D(D) simulated by H presents non-halting behavior to H ###10Chris M. Thomasson
21 May 24 i i      +* Subway (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2Kenny McCormack
21 May 24 i i      i`- Re: Subway (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Chris M. Thomasson
21 May 24 i i      `* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Keith Thompson
21 May 24 i i       +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Chris M. Thomasson
21 May 24 i i       i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i       i`- Welcome! (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i       `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3immibis
24 May 24 i i        `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2James Kuyper
24 May 24 i i         `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
19 May 24 i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Chris M. Thomasson
19 May 24 i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Jeff Barnett
18 May 24 `* Re: Every D(D) simulated by H presents non-halting behavior to H ###17James Kuyper
18 May 24  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###15Richard Damon
18 May 24  i+* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Fred. Zwarts
18 May 24  ii+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
18 May 24  ii+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
18 May 24  ii`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
18 May 24  ii +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
19 May 24  ii `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Mikko
19 May 24  ii  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1James Kuyper
18 May 24  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###7James Kuyper
18 May 24  i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###5Richard Damon
18 May 24  i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
18 May 24  i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Keith Thompson
18 May 24  i i  +- D correctly simulated by H cannot possibly reach its own line 061olcott
19 May 24  i i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Mikko
18 May 24  i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
27 May 24  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal