
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Software Engineering one of core subject in Computer Science. This lecture was delived by Dr. Shrya Gopal at Bengal Engineering and Science University as one of lecture from lecture series on course. This lecture includes: Formal, Specification, Nomadic, Laptops, Mathematical, Sequence, Matrices, Accuracy, Diagrams, Implementation, Function, Informal
Typology: Slides
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























Formal Specification
Nomadic laptops
Next Monday
Discussion about the first presentation
Ben Potter, Jane Sinclair, David Till,
An Introduction to Formal Specification and Z
(Prentice Hall) 1991
Jonathan Jacky
The Way of Z
(Cambridge University Press) 1997
Example of specification
1
2
k
is a sequence of m x m matrices
1
2
k
is a sequence of m x m elementary matrices
1
1
2
2
1
k
k ...
2
1
The numerical accuracy must be such that, for all k,
k
k
digit
unsigned integer
digit
unsigned integer unsigned integer
unsigned number
1 + 3 + 5 + ... (2 n - 1) = n
2
int intrt (int a)
/* Calculate integer square root */
int i, term, sum;
term = 1; sum = 1;
for (i = 0; sum <= a; i++)
term = term + 2;
sum = sum + term;
return i;
Example:
Therapy control console
[informal description]
Patients Fields Setup Ready
Beam
on
Enter Enter
Start
Stop
Select field
Select patient
(interlock)
(ok)
STATE ::= patients | fields | setup | ready | beam_on
EVENT ::= select_patient | select_field | enter | start | stop
| ok | interlock
no_change, transitions, control : FSM
Continued on next slide
control = no_change transitions
no_change = { s : STATE ; e : EVENT • ( s , e ) s }
transitions = { ( patients , enter ) fields ,
( fields, select_patient ) patients , ( fields , enter ) setup ,
( setup , select_patient ) patients , ( setup , select_field ) fields ,
( setup , ok ) ready ,
( ready , select_patient ) patients , ( ready , select_field ) fields ,
( ready , start ) beam_on , ( ready , interlock ) setup ,
( beam_on , stop ) ready , ( beam_on , interlock ) setup }
Library system:
for loan.
loan.