Re: Sequence of sequence, selection and iteration matters -- Professor Hehner

Liste des GroupesRevenir à c theory 
Sujet : Re: Sequence of sequence, selection and iteration matters -- Professor Hehner
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theory
Date : 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 matters133olcott
7 Jul 24 +* Re: Sequence of sequence, selection and iteration matters3Richard Damon
9 Jul 24 i`* Re: Sequence of sequence, selection and iteration matters2olcott
10 Jul 24 i `- Re: Sequence of sequence, selection and iteration matters1Richard Damon
8 Jul 24 `* Re: Sequence of sequence, selection and iteration matters129Mikko
8 Jul 24  `* Re: Sequence of sequence, selection and iteration matters128olcott
9 Jul 24   +* Re: Sequence of sequence, selection and iteration matters46Richard Damon
9 Jul 24   i`* Re: Sequence of sequence, selection and iteration matters --- Ben agrees45olcott
9 Jul 24   i +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees40Richard Damon
9 Jul 24   i i`* Re: Sequence of sequence, selection and iteration matters --- Ben agrees39olcott
9 Jul 24   i i `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees38Richard Damon
9 Jul 24   i i  +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees12olcott
9 Jul 24   i i  i`* Re: Sequence of sequence, selection and iteration matters --- Ben agrees11Richard Damon
9 Jul 24   i i  i `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees10olcott
9 Jul 24   i i  i  `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees9Richard Damon
9 Jul 24   i i  i   `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees8olcott
9 Jul 24   i i  i    `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees to something different.7Richard Damon
9 Jul 24   i i  i     `* Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings6olcott
9 Jul 24   i i  i      `* Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings5Richard Damon
9 Jul 24   i i  i       `* Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings4olcott
9 Jul 24   i i  i        `* Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings3Richard Damon
9 Jul 24   i i  i         `* Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings2olcott
10 Jul 24   i i  i          `- Re: Sequence of sequence, selection and iteration matters --- Ben proves that he agrees to my meanings1Richard Damon
9 Jul 24   i i  +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees15olcott
9 Jul 24   i i  i`* Re: Sequence of sequence, selection and iteration matters --- Ben agrees14Richard Damon
9 Jul 24   i i  i +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees4olcott
9 Jul 24   i i  i i`* Re: Sequence of sequence, selection and iteration matters --- Ben agrees3Richard Damon
9 Jul 24   i i  i i `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees2olcott
9 Jul 24   i i  i i  `- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1Richard Damon
9 Jul 24   i i  i `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees9Mikko
9 Jul 24   i i  i  `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees8Richard Damon
10 Jul 24   i i  i   `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees7Mikko
10 Jul 24   i i  i    +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees2Richard Damon
11 Jul 24   i i  i    i`- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1Mikko
10 Jul 24   i i  i    `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees4olcott
11 Jul 24   i i  i     +- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1Richard Damon
11 Jul 24   i i  i     `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees2Mikko
11 Jul 24   i i  i      `- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1olcott
9 Jul 24   i i  `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)10olcott
9 Jul 24   i i   `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)9Richard Damon
9 Jul 24   i i    `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)8olcott
9 Jul 24   i i     `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)7Richard Damon
9 Jul 24   i i      +* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)2olcott
9 Jul 24   i i      i`- Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)1Richard Damon
9 Jul 24   i i      `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)4olcott
9 Jul 24   i i       `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)3Richard Damon
9 Jul 24   i i        `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)2olcott
10 Jul 24   i i         `- Re: Sequence of sequence, selection and iteration matters --- Ben agrees (typo corrected)1Richard Damon
9 Jul 24   i `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees4Mikko
9 Jul 24   i  `* Re: Sequence of sequence, selection and iteration matters --- Ben agrees3olcott
10 Jul 24   i   +- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1Richard Damon
10 Jul 24   i   `- Re: Sequence of sequence, selection and iteration matters --- Ben agrees1Mikko
9 Jul 24   `* Re: Sequence of sequence, selection and iteration matters81Mikko
9 Jul 24    `* Re: Sequence of sequence, selection and iteration matters80olcott
9 Jul 24     +* Re: Sequence of sequence, selection and iteration matters77Fred. Zwarts
9 Jul 24     i`* Re: Sequence of sequence, selection and iteration matters76olcott
9 Jul 24     i +* Re: Sequence of sequence, selection and iteration matters74Fred. Zwarts
9 Jul 24     i i`* Re: Sequence of sequence, selection and iteration matters73olcott
9 Jul 24     i i +* Re: Sequence of sequence, selection and iteration matters68Fred. Zwarts
9 Jul 24     i i i`* Re: Sequence of sequence, selection and iteration matters67olcott
9 Jul 24     i i i +- Re: Sequence of sequence, selection and iteration matters1joes
9 Jul 24     i i i +* Re: Sequence of sequence, selection and iteration matters64Fred. Zwarts
9 Jul 24     i i i i+* Re: Sequence of sequence, selection and iteration matters61olcott
10 Jul 24     i i i ii+* Re: Sequence of sequence, selection and iteration matters31joes
10 Jul 24     i i i iii`* DDD correctly emulated by HHH cannot possibly halt30olcott
10 Jul 24     i i i iii `* Re: DDD correctly emulated by HHH cannot possibly halt29joes
10 Jul 24     i i i iii  `* Re: DDD correctly emulated by HHH cannot possibly halt28olcott
11 Jul 24     i i i iii   `* Re: DDD correctly emulated by HHH cannot possibly halt27Richard Damon
11 Jul 24     i i i iii    `* Re: DDD correctly emulated by HHH cannot possibly halt26olcott
11 Jul 24     i i i iii     `* Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does.25Richard Damon
11 Jul 24     i i i iii      `* Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does.24olcott
11 Jul 24     i i i iii       `* Re: DDD correctly emulated by HHH cannot possibly halt, thinks olcott, but it does.23Richard Damon
11 Jul 24     i i i iii        `* Re: DDD correctly emulated by HHH cannot possibly halt22olcott
11 Jul 24     i i i iii         `* Re: DDD correctly emulated by HHH cannot possibly halt21Richard Damon
11 Jul 24     i i i iii          `* Re: DDD correctly emulated by HHH cannot possibly halt20olcott
12 Jul 24     i i i iii           `* Re: DDD correctly emulated by HHH cannot possibly halt19Richard Damon
12 Jul 24     i i i iii            `* Re: DDD correctly emulated by HHH cannot possibly halt18olcott
12 Jul 24     i i i iii             `* Re: DDD correctly emulated by HHH cannot possibly halt17Richard Damon
12 Jul 24     i i i iii              `* Re: DDD correctly emulated by HHH cannot possibly halt16olcott
12 Jul 24     i i i iii               +* Re: DDD correctly emulated by HHH cannot possibly halt10joes
12 Jul 24     i i i iii               i`* Re: DDD correctly emulated by HHH cannot possibly halt9olcott
12 Jul 24     i i i iii               i +* Re: DDD correctly emulated by HHH cannot possibly halt4Fred. Zwarts
12 Jul 24     i i i iii               i i`* Re: DDD correctly emulated by HHH cannot possibly halt3olcott
12 Jul 24     i i i iii               i i +- Re: DDD correctly emulated by HHH cannot possibly halt1Fred. Zwarts
13 Jul 24     i i i iii               i i `- Re: DDD correctly emulated by HHH cannot possibly halt1Mikko
13 Jul 24     i i i iii               i +- Re: DDD correctly emulated by HHH cannot possibly halt1Richard Damon
14 Jul 24     i i i iii               i `* Re: DDD correctly emulated by HHH cannot possibly halt3joes
14 Jul 24     i i i iii               i  `* Re: DDD correctly emulated by HHH cannot possibly halt2olcott
14 Jul 24     i i i iii               i   `- Re: DDD correctly emulated by HHH cannot possibly halt1Richard Damon
12 Jul 24     i i i iii               `* Re: DDD correctly emulated by HHH cannot possibly halt Because HHH that correctly simulates does not Halt5Richard Damon
12 Jul 24     i i i iii                `* Re: DDD correctly emulated by HHH cannot possibly halt4olcott
12 Jul 24     i i i iii                 +- Re: DDD correctly emulated by HHH cannot possibly halt1Fred. Zwarts
12 Jul 24     i i i iii                 +- Re: DDD correctly emulated by HHH cannot possibly halt1joes
13 Jul 24     i i i iii                 `- Re: DDD correctly but partially emulated by HHH cannot possibly be seen to halt by HHH, but do halt1Richard Damon
10 Jul 24     i i i ii`* Re: Sequence of sequence, selection and iteration matters29Fred. Zwarts
10 Jul 24     i i i ii `* Re: Sequence of sequence, selection and iteration matters28olcott
10 Jul 24     i i i ii  `* Re: Sequence of sequence, selection and iteration matters27Fred. Zwarts
10 Jul 24     i i i ii   `* Re: Sequence of sequence, selection and iteration matters26olcott
10 Jul 24     i i i ii    `* Re: Sequence of sequence, selection and iteration matters25Fred. Zwarts
10 Jul 24     i i i ii     `* Re: Sequence of sequence, selection and iteration matters24olcott
10 Jul 24     i i i ii      +* Re: Sequence of sequence, selection and iteration matters3Fred. Zwarts
11 Jul 24     i i i ii      `* Re: Sequence of sequence, selection and iteration matters20Mikko
9 Jul 24     i i i i+- Re: Sequence of sequence, selection and iteration matters ---clarification1olcott
9 Jul 24     i i i i`- Re: Sequence of sequence, selection and iteration matters --- one more freaking time1olcott
10 Jul 24     i i i `- Re: Sequence of sequence, selection and iteration matters1Richard Damon
9 Jul 24     i i +* Re: Sequence of sequence, selection and iteration matters3joes
10 Jul 24     i i `- Re: Sequence of sequence, selection and iteration matters1Richard Damon
10 Jul 24     i `- Re: Sequence of sequence, selection and iteration matters1Richard Damon
10 Jul 24     +- Re: Sequence of sequence, selection and iteration matters1Richard Damon
10 Jul 24     `- Re: Sequence of sequence, selection and iteration matters1Mikko

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal