institutions property aware programming and testing
play

Institutions , Property-Aware Programming and Testing Ali Alnajjar - PowerPoint PPT Presentation

Institutions , Property-Aware Programming and Testing Ali Alnajjar Supervisor:Magne Haveraaen Investigate the relationship between Institutions specifications and models at a general, theoretical level Implementation Specification Run the


  1. Institutions , Property-Aware Programming and Testing Ali Alnajjar Supervisor:Magne Haveraaen

  2. Investigate the relationship between Institutions specifications and models at a general, theoretical level Implementation Specification

  3. Run the algorithms on selected data sets in Testing order to increase our belief in their correctness .

  4. Declaring syntactic and semantic properties Property-Aware on generic parameters. Programming (institutions)

  5. Sophus - A medium-sized C++ software library developed for solving coordinate-free partial differential equations. - Developed using algebraic specifications (with a focus on reusability). - Axiomatic specification. - Implementation were targeted to be as general as possible.

  6. Sophus

  7. Sophus Cart Shape uses extends Cart Point extends Cont Shape Cont Point satisfies Mesh Shape BN Shape satisfies uses uses Mesh Point BN Point

  8. Sophus When a specification B in Sophus uses another specification A, it means that specification A defines operations and axioms on a sort-set and B on another sort-set, even though the sorts of A may be used by operations in B. When a specification B in Sophus extends another specification A, it means that specification A defines operations and axioms on a sort-set and B provides more functiins and axioms on the same set .

  9. Institutions: Signatures ● Sorts (Types). ● Operations (functions,methods) + arities (arguments and return types). ● Variables. ● Terms (expressions).

  10. Institutions: Signature Morphism S1 S’ (renaming and combining) S2

  11. Institutions: Specification ● Can be combined and renamed. Signatures Axioms Equational Axioms Conditional Axioms

  12. Institutions: Models ● Provide the semantic for each signature. S int ● For each sort define a data structure. ● For each function define an algorithm.

  13. Institutions: Satisfaction ●

  14. Implementation ● Sorts data structures (data invariants) ● Functions Algorithms

  15. Implementation ● Every algorithm must preserve the data invariants : if the input data satisfies the data invariant, so must the output data. ● Every algorithm must preserve equality

  16. Testing ● Preservation of the data invariants ● Preservation of the equality. (provided data needed) ● Checking of axioms. (provided data needed)

  17. Testing : Test Set ●

  18. Testing : test reduction hypothesis. ● Random selection hypothesis ● Domain partitioning hypothesis (Discontinuity hypothesis)

  19. Random selection hypothesis

  20. Domain partitioning hypothesis ( Discontinuity hypothesis)

  21. Domain partitioning hypothesis ( Discontinuity hypothesis)

  22. Questions

  23. Reference to specifications as models Models Models provide the semantics for each signature. Models transform in the opposite direction of signatures. That is, one may think of a signature renaming as one signature pointing at compo- nents of another signature. Then the latter components are used as models for the former.

  24. The equivalence of satisfaction relation in OO What is the equivalence of satisfaction relation in OO??

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend