Race checking by context inference
Authors:
Open Access
- 9 June 2004
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 39 (6) , 1-13
Abstract
Software model checking has been successful for sequential programs, where predicate abstraction offers suitable models, and counterexample-guided abstraction refinement permits the automatic inference of models. When checking concurrent programs, we need to abstract threads as well as the contexts in which they execute. Stateless context models, such as predicates on global variables, prove insufficient for showing the absence of race conditions in many examples. We therefore use richer context models, which combine (1) predicates for abstracting data state, (2) control flow quotients for abstracting control state, and (3) counters for abstracting an unbounded number of threads. We infer suitable context models automatically by a combination of counterexample-guided abstraction refinement, bisimulation minimization, circular assume-guarantee reasoning, and parametric reasoning about an unbounded number of threads. This algorithm, called CIRC, has been implemented in BLAST and succeeds in checking many examples of NESC code for data races. In particular, BLAST proves the absence of races in several cases where previous race checkers give false positives.Keywords
This publication has 23 references indexed in Scilit:
- Abstractions from proofs2004
- Static conflict analysis for multi-threaded object-oriented programs2003
- The nesC language2003
- The S LAM project2002
- Ownership types for safe programming2002
- Detecting race conditions in large programs2001
- Bandera2000
- EraserACM Transactions on Computer Systems, 1997
- Model checking for programming languages using VeriSoft1997
- An approach to automating the verification of compact parallel coordination programs. IActa Informatica, 1984