Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.1k questions

1.2k answers

1.6k comments

529 users

0 votes
Hello,

I have some questions about exercise 1 of exercice sheet 6 for MBES. For question b) does the value of i changes at each macro step? Also, how many things can we do in the same macro step? For example, if we check the value of i and it's true so we leave the abort, do we also do the emit(o3) in the same macro step or in the next one?

Thank you
in * TF "Emb. Sys. and Rob." by (460 points)

1 Answer

+1 vote
 
Best answer
For a synchronous program, every variable has a unique value at any point of time. The input variables are thereby determined by the environment, i.e., they receive a new value (randomly) at every point of time. The local and output variables are determined by the module.

In one macro step, a finite number of micro steps can take place. The number of micro steps is not bounded, but it must be finite. Which actions (micro steps) are executed is precisely determined by the operational semantics. For the statement [weak] abort S when(i); emit(o3), it is the case that if we are inside of S and i holds, then the abort statement terminates and emit(o3) is executed as a further micro step in the same macro step. The SOS rules precisely define that behavior.
by (166k points)
selected by

Related questions

0 votes
1 answer
asked Jan 15, 2023 in * TF "Emb. Sys. and Rob." by lu (460 points)
0 votes
1 answer
asked Dec 3, 2022 in * TF "Emb. Sys. and Rob." by lu (460 points)
0 votes
1 answer
0 votes
1 answer
Imprint | Privacy Policy
...