{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

View Full Document Right 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)
Image of page 2
CS427 14-3 Use formal specifications For particular kinds of applications compilers grammar denotational semantics safety critical
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right 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.)
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
Image of page 7

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern