Download Z Notation

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Computational phylogenetics wikipedia , lookup

Cryptanalysis wikipedia , lookup

Data assimilation wikipedia , lookup

Reinforcement learning wikipedia , lookup

Computational fluid dynamics wikipedia , lookup

Theoretical computer science wikipedia , lookup

Computational chemistry wikipedia , lookup

Transcript
The problem of correctness
Consider the following program:
Read(ch)
WriteString(‘42’)
is this correct?
1
The problem of correctness
A program is meaningless
without a specification
It is nearly useless without a formal specification.
2
• Formal methods are essentially the
mathematical foundations of software
engineering
• In comparison with many other engineering
disciplines, SE is in its infancy
3
4
5
1. Formal methods can Guarantee the
software is bug free
2. Formal methods are about proofs
3. Formal methods are only useful for critical
systems
4. Formal methods require mathematicians
5. Formal methods increase the cost of
development
6. Formal methods are unacceptable to users
7. Formal methods are not used in real large
scale systems
6
Seven Myths of Formal Methods:
1. Formal methods can guarantee that software is perfect.
Rather: they are very helpful at finding errors early on and can nearly
eliminate some classes of error.
2. They are all about program proving.
Rather: they work largely by making you think very hard about the system
you propose to build.
3. They are useful only for safety-critical systems.
Rather: they are useful for almost any application.
4. They require highly trained mathematicians.
Rather: they are based on mathematical specifications, which are much
easier to understand than programs.
5. They increase the cost of development.
Rather: they can decrease the cost.
6. They are unacceptable to clients.
Rather: they help clients understand what they are buying.
7. They are not used on real, large scale software.
Rather: they are being used successfully on practical projects in industry.
7
Quoted from: J. Anthony Hall, Seven myths of formal methods, IEEE Software, 7(5):11-19, September
1990.
More..
7 more myths:
csdl.computer.org/dl/mags/so/1995/04/s4034.pdf
• More papers/publications
www.afm.sbu.ac.uk/pubs/
• B papers and publications
www.afm.sbu.ac.uk/b/
8