Sujet : Re: Sequence of sequence, selection and iteration matters -- Professor Hehner
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theoryDate : 16. Jul 2024, 08:54:51
Autres entêtes
Organisation : -
Message-ID : <v755fr$15jl6$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 23 24 25 26 27 28 29
User-Agent : Unison/2.2
On 2024-07-15 13:07:47 +0000, olcott said:
On 7/15/2024 2:25 AM, Mikko wrote:
On 2024-07-14 15:02:33 +0000, olcott said:
Going to the assembly language level provides a directed
graph of control flow.
So does the C level.
A directed graph only uses jmps from one specific
machine address to another. This a node and a path
to another node. The C level has no jmps and no
machine addresses.
At C level there are jumps, at least the return at the end. In case of
DDD shown below, there is also a jump to HHH and the return from it.
Although neither C nor machine code tells whether HHH returns they both
specify where it should return if it does.
As the meaning of the program does not depend on its location in the menory
the machine addresses are not relevant.
It also shows the final state that
is not shown at the C level.
How is that different from the final state that is shown at the C level?
void DDD()
{
HHH(DDD);
}
The C level conflates all of these instructions together
as if there was only one instruction. There is no final
state at C level.
Of course there is a final state at the C level. The execution is in the
final state when the program returns, which by C rules happen when the
program executes a return instruction or at the end of the program.
_DDD()
[00002163] 55 push ebp ; housekeeping
[00002164] 8bec mov ebp,esp ; housekeeping
[00002166] 6863210000 push 00002163 ; push DDD
[0000216b] e853f4ffff call 000015c3 ; call HHH(DDD)
[00002170] 83c404 add esp,+04
[00002173] 5d pop ebp
[00002174] c3 ret
Size in bytes:(0018) [00002174]
Note the ret instruction at 2174: it is there because the C code specifies
that the program returns if the end of the program is executed.
-- Mikko
Date | Sujet | # | | Auteur |
7 Jul 24 | Sequence of sequence, selection and iteration matters | 133 | | olcott |
7 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 3 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 2 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Richard Damon |
8 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 129 | | Mikko |
8 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 128 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 46 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 45 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 40 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 39 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 38 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 12 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 11 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 10 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 9 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 8 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees to something different. | 7 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 6 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 5 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 4 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 3 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 2 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings | 1 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 15 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 14 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 4 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 3 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 2 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 9 | | Mikko |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 8 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 7 | | Mikko |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 2 | | Richard Damon |
11 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | Mikko |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 4 | | olcott |
11 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | Richard Damon |
11 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 2 | | Mikko |
11 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 10 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 9 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 8 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 7 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 2 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 1 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 4 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 3 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 2 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected) | 1 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 4 | | Mikko |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 3 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- Ben agrees | 1 | | Mikko |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 81 | | Mikko |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 80 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 77 | | Fred. Zwarts |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 76 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 74 | | Fred. Zwarts |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 73 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 68 | | Fred. Zwarts |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 67 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | joes |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 64 | | Fred. Zwarts |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 61 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 31 | | joes |
10 Jul 24 | DDD correctly emulated by HHH cannot possibly halt | 30 | | olcott |
10 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 29 | | joes |
10 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 28 | | olcott |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 27 | | Richard Damon |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 26 | | olcott |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does. | 25 | | Richard Damon |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does. | 24 | | olcott |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does. | 23 | | Richard Damon |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 22 | | olcott |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 21 | | Richard Damon |
11 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 20 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 19 | | Richard Damon |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 18 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 17 | | Richard Damon |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 16 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 10 | | joes |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 9 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 4 | | Fred. Zwarts |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 3 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | Fred. Zwarts |
13 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | Mikko |
13 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | Richard Damon |
14 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 3 | | joes |
14 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 2 | | olcott |
14 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | Richard Damon |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt Because HHH that correctly simulates does not Halt | 5 | | Richard Damon |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 4 | | olcott |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | Fred. Zwarts |
12 Jul 24 | Re: DDD correctly emulated by HHH cannot possibly halt | 1 | | joes |
13 Jul 24 | Re: DDD correctly but partially emulated by HHH cannot possibly be seen to halt by HHH, but do halt | 1 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 29 | | Fred. Zwarts |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 28 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 27 | | Fred. Zwarts |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 26 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 25 | | Fred. Zwarts |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 24 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 3 | | Fred. Zwarts |
11 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 20 | | Mikko |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters ---clarification | 1 | | olcott |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters --- one more freaking time | 1 | | olcott |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Richard Damon |
9 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 3 | | joes |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Richard Damon |
10 Jul 24 | Re: Sequence of sequence, selection and iteration matters | 1 | | Mikko |