Verification of parameterized concurrent programs by modular reasoning about data and control
Authors:
Open Access
- 18 January 2012
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 47 (1) , 297-308
Abstract
In this paper, we consider the problem of verifying thread-state properties of multithreaded programs in which the number of active threads cannot be statically bounded. Our approach is based on decomposing the task into two modules, where one reasons about data and the other reasons about control. The data module computes thread-state invariants (e.g., linear constraints over global variables and local variables of one thread) using the thread interference information computed by the control module. The control module computes a representation of thread interference, as an incrementally constructed data flow graph , using the data invariants provided by the data module. These invariants are used to rule out patterns of thread interference that can not occur in a real program execution. The two modules are incorporated into a feedback loop, so that the abstractions of data and interference are iteratively coarsened as the algorithm progresses (that is, they become weaker) until a fixed point is reached. Our approach is sound and terminating, and applicable to programs with infinite state (e.g., unbounded integers) and unboundedly many threads. The verification method presented in this paper has been implemented into a tool, called Duet. We demonstrate the effectiveness of our technique by verifying properties of a selection of Linux device drivers using Duet, and also compare Duet with previous work on verification of parameterized Boolean program using the Boolean abstractions of these drivers.Keywords
This publication has 19 references indexed in Scilit:
- Predicate abstraction with indexed predicatesACM Transactions on Computational Logic, 2007
- Conditional must not aliasing for static race detectionACM SIGPLAN Notices, 2007
- LOCKSMITHACM SIGPLAN Notices, 2006
- Effective static race detection for JavaACM SIGPLAN Notices, 2006
- SATABS: SAT-Based Predicate Abstraction for ANSI-C2005
- Cloning-based context-sensitive pointer alias analysis using binary decision diagramsACM SIGPLAN Notices, 2004
- RacerXACM SIGOPS Operating Systems Review, 2003
- Efficient and precise datarace detection for multithreaded object-oriented programsACM SIGPLAN Notices, 2002
- Symmetry and model checkingFormal Methods in System Design, 1996
- A new solution of Dijkstra's concurrent programming problemCommunications of the ACM, 1974