Question: Consider the following PROMELA program that sorts two non - zero numbers in order: proctype sort ( int x , y ) { int temp;
Consider the following PROMELA program that sorts two
nonzero numbers in order:
proctype sortint xy
int temp;
do
:: x goto done
:: xy temp x;
xy;
ytemp
:: xy goto done
od;
done:
printfThe order is: ddFollowing
x y
init run sort
Following the style of program illustrated in the above example of using
expression run, rewrite PROMELA program Maximum we
discussed in Lecture Two the attached image and run it using SPIN.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
