September 2003
Intermediate to advanced
608 pages
14h 14m
English
“I hear and I forget; I see and I remember; I do and I understand.” | ||
| --(Confucius, 551–479 BC) | ||
How many reachable states do you predict the following PROMELA model will generate?
init { /* example ex1 */
byte i = 0;
do
:: i = i+1
od
}
Try a simulation run:
$ spin -p -l -u100 ex1
Will the simulation terminate if the -u100 argument is omitted? Try it.
Estimate the total number of reachable states that should be inspected in an exhaustive verification run. Is it a finite number? Will a verification run terminate? Try it as follows, and explain the result.
$ spin -a ex1 $ cc -o pan pan.c $ ./pan
What would happen if you had declared local variable i to be a short or an int instead of a byte?
Predict accurately ...
Read now
Unlock full access