cs427-14

cs427-14 - Specification and Design Chapters 9,10,11 1 Use...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Specification and Design Chapters 9,10,11
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS427 14-2 Use formal specification To develop models of parts of system Finite state machines, abstract data types To develop model of one aspect of system Data-flow diagram, security, architecture To learn how to think about problem pre/post conditions set,sequence,mappings (generic ADTs)
Background image of page 2
CS427 14-3 Use formal specifications For particular kinds of applications compilers grammar denotational semantics safety critical
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS427 14-4 What you should know about formal methods What is in the book – chapter 10 Be familiar with the controversy Don’t need to learn Prolog
Background image of page 4
CS427 14-5 Tests as specification Formal specification Balance after you add money to an account  will be the balance beforehand plus the  amount of money you added Test Create account with balance of $100 Add $20 to account Account has balance of $120
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS427 14-6 Advantages of tests as specifications Concrete, easy to understand Don’t need new language Easy to see if program meets the  specifications Making tests forces you to talk to  customer and learn the problem Making tests forces you to think about  design of system (classes, methods, etc.)
Background image of page 6
CS427 14-7 Disadvantages of tests as specification Hard to test that something can’t happen Can’t withdraw more money than you have in  the system Can’t break into the system Can’t cause a very long transaction that  hangs the system Tends to be verbose
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 29

cs427-14 - Specification and Design Chapters 9,10,11 1 Use...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online