Static Analysis of Run-Time Errors in Embedded Real-Time Parallel C Programs
Author:
Open Access
- 26 March 2012
- journal article
- research article
- Published by Centre pour la Communication Scientifique Directe (CCSD) in Logical Methods in Computer Science
- Vol. ume 8, Iss (1)
Abstract
We present a static analysis by Abstract Interpretation to check for run-time errors in parallel and multi-threaded C programs. Following our work on Astr\'ee, we focus on embedded critical programs without recursion nor dynamic memory allocation, but extend the analysis to a static set of threads communicating implicitly through a shared memory and explicitly using a finite set of mutual exclusion locks, and scheduled according to a real-time scheduling policy and fixed priorities. Our method is thread-modular. It is based on a slightly modified non-parallel analysis that, when analyzing a thread, applies and enriches an abstract set of thread interferences. An iterator then re-analyzes each thread in turn until interferences stabilize. We prove the soundness of our method with respect to the sequential consistency semantics, but also with respect to a reasonable weakly consistent memory semantics. We also show how to take into account mutual exclusion and thread priorities through a partitioning over an abstraction of the scheduler state. We present preliminary experimental results analyzing an industrial program with our prototype, Th\'es\'ee, and demonstrate the scalability of our approach.Keywords
All Related Versions
This publication has 46 references indexed in Scilit:
- Soundness of Data Flow Analyses for Weak Memory ModelsLecture Notes in Computer Science, 2011
- Litmus: Running Tests against Hardware2011
- Static Analysis and Verification of Aerospace Software by Abstract Interpretation2010
- On the verification problem for weak memory models2010
- Relational inductive shape analysis2008
- Efficient chaotic iteration strategies with widenings2006
- A static analyzer for large safety-critical software2003
- Shared memory consistency models: a tutorialComputer, 1996
- Constructive versions of Tarski’s fixed point theoremsPacific Journal of Mathematics, 1979
- Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints1977