Projects per year
Abstract
MATLAB/Simulink is a popular toolset for developing embedded software. The main target of the toolset is numerical computing applications and the tools offer a rich language for manipulating matrices. This paper presents an approach to automatic, modular, contract-based verification of programs written in a subset of the MATLAB programming language. We focus on efficient handling of the built-in matrix manipulation functions commonly used in MATLAB. We restrict ourselves to the subset of MATLAB suitable for code generation, which means matrix types and shapes can be determined statically. We present an approach to static type and shape inference for matrices that is more strict than MATLAB, but aids verification. The type and shape information is then used in the verification. From the programs and contracts we generate verification conditions that are discharged with an off-the-shelf SMT solver. We discuss two approaches to encode matrix functions and evaluate them on a number of examples. We also investigate the use of k-induction to decrease the need for user annotations. We found our approach to be efficient for programs that manipulate relatively small matrices, which are common in embedded applications.
Original language | Undefined/Unknown |
---|---|
Pages (from-to) | 79–107 |
Journal | Formal Aspects of Computing |
Volume | 28 |
Issue number | 1 |
DOIs | |
Publication status | Published - 2016 |
MoE publication type | A1 Journal article-refereed |
Projects
- 1 Finished
-
MERGE: Merging digital hydraulic systems and supercomputing (Academy of Finland)
Walden, M. (Co-Investigator), Westerholm, J. (Principal Investigator), Boström, P. (Co-Investigator), Ersfolk, J. (Co-Investigator) & Wiik, J. (Co-Investigator)
01/01/15 → 31/12/16
Project: Research Council of Finland/Other Research Councils