Code: | EIC0039 | Acronym: | MFES |
Keywords | |
---|---|
Classification | Keyword |
OFICIAL | Software Engineering |
Active? | Yes |
Web Page: | http://moodle.up.pt/ |
Responsible unit: | Department of Informatics Engineering |
Course/CS Responsible: | Master in Informatics and Computing Engineering |
Acronym | No. of Students | Study Plan | Curricular Years | Credits UCN | Credits ECTS | Contact hours | Total Time |
---|---|---|---|---|---|---|---|
MIEIC | 146 | Syllabus since 2009/2010 | 4 | - | 6 | 56 | 162 |
1- BACKGROUND Students should have knowledge about software processes and software modelling.
2- SPECIFIC AIMS To develop abstraction capabilities in order to describe what the system should do and not the way to do it. Be familiar with formal methods and the way they can contribute to increase the quality of software systems.
3- PREVIOUS KNOWLEDGE Software engineering; Computing Theory; Algorithm design and analysis.
4- PERCENT DISTRIBUTION Scientific component:75% Technological component:25%
5- LEARNING OUTCOMES At the end of the course students should be able to: - Apply formal methods of specification (based on models, based on properties, based on behavior) and verification ("Model-checking, formal proofs and test) in the development of software systems. - Identify existing formal methods and know when they should be applied and which are most suitable in each case.
At the end of the course, students should be able to specify a software system in a declarative way, to distinguish the various existing formal methods and when to apply them and realize the usefulness of these techniques for improving the quality of software systems.
1. Introduction
1.1 What are formal methods?
1.2 Importance and applicability of formal methods in the development of software
1.3 Life cycle models and software development processes by incorporating formal methods.
1.4 Specification, refinement, implementation, verification and validation
1.5 Classification of formal methods
1.6 Explicit vs. implicit models, executable vs. non-executable
1.7 Formal verification techniques
2. Formal Events
2.1 Proof of program correction. Application of Hoare logic to proof of algorithm correction.
2.2 A correct programming approach by construction. Program refinement techniques.
2.3 The Dafny tool.
3. Alloy Constraint Analyser for modelling and semantic analysis
3.1 Declarative modelling
3.2 Difference related to model checking
3.3 Alloy commands
3.4 Functions; predicates; facts; assertions and verifications (checks)
3.5 Static vs. dynamic modelling
3.6 Simulation of an operation
3.7 Check safety properties
3.8 Alloy analyser tool
4. Model Based Specification
4.1 VDM-SL and VDM++ languages
4.2 Data representation based on mathematical structures (sets, sequences, finite functions)
4.3 State and non-state specification
4.4 Definition of types, values and functions
4.5 Definition of classes, instance variables and operations
4.6 Expressions and instructions
4.7 Design-by-contact: definition of invariables, preconditions and postconditions
4.8 Description of algorithms, executable specifications
4.9 Analysis of specification consistency
4.10 Connection of VDM++ to UML
4.11 Code generation from a formal specification
4.12 VDMTools
Theoretical classes will be based on the presentation of the themes of the course. Practical classes will be based on exercises, so that students can contact with the various tools available and to do their assignments.
Designation | Weight (%) |
---|---|
Teste | 60,00 |
Trabalho laboratorial | 40,00 |
Total: | 100,00 |
Designation | Time (hours) |
---|---|
Estudo autónomo | 60,00 |
Frequência das aulas | 52,00 |
Trabalho laboratorial | 50,00 |
Total: | 162,00 |
Students have to reach a minimum mark of 40% in the continuous assessment component. The presence in the practical classes is recorded and mandatory according to existing legislation.
Minimum of 40% in every interim exam.
Distributed evaluation without final exam, with the following components:
(A) Practical work - (40% of the final mark), minimum grade of 40%.
(B) Open book interim exam1 - 1h30m (30% of the final mark), minimum grade of 40%.
(C) Open book interim exam2 - 1h30m (30% of the final mark), minimum grade of 40%.
Final grade = (A) * 40% + (B) * 30% + (C) * 30%
Practical work of VDM++: delivery on the 3rd January; defense of practical work between 4 and 10 January.
The defense of practical work is mandatory for ALL students.
Students excused from attendance at practical classes should contact the teacher for special sessions of follow up. The defense of practical work is mandatory for ALL students.
- The marks obtained in practical work can be improved in the next edition of the discipline
- The classification of the interim tests can be improved by in the appeal exame.
Students with class attendance in the previous year will have to take both interim exams. The marks obtained in the previous year in the work of VDM++ will be used as a mark for the work in VDM++ of this edition.