04 int D(ptr x)
05 {
06 int Halt_Status = H(x, x);
07 if (Halt_Status)
08 HERE: goto HERE;
09 return Halt_Status;
10 }
11
12 void main()
13 {
14 H(D,D);
15 }
What is step by step line-by-line correct sequence of steps
when the simulation of D by H reaches line 06?
On 1/9/2024 8:42 AM, Mikko wrote:
On 2024-01-09 03:16:49 +0000, olcott said:
04 int D(ptr x)
05 {
06 int Halt_Status = H(x, x);
07 if (Halt_Status)
08 HERE: goto HERE;
09 return Halt_Status;
10 }
11
12 void main()
13 {
14 H(D,D);
15 }
What is step by step line-by-line correct sequence of steps
when the simulation of D by H reaches line 06?
There are two possibilities.
For a superficial simulation it is sufficient to
determine what H(x, x) returns and assign that
to Halt_Status and then simulate forward.
For detailed simulation the calling sequence to H must be
simulated and then one by whatever instructions there are
in H.
Mikko
OK great so you are saying that when D correctly simulated by H
reaches line 06 that H must simulate the invocation of H(D,D).
That <is> correct. It also means that D correctly simulated
by any H that can possibly exist cannot possibly reaches its
own line 09, thus cannot possibly reach its own final instruction
and terminate normally, thus never halts.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 88:45:02 |
Calls: | 6,697 |
Calls today: | 2 |
Files: | 12,232 |
Messages: | 5,348,340 |