Compositional may-must program analysis
Authors:
Open Access
- 2 January 2010
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 45 (1) , 43-56
Abstract
Program analysis tools typically compute two types of information: (1) may information that is true of all program executions and is used to prove the absence of bugs in the program, and (2) must information that is true of some program executions and is used to prove the existence of bugs in the program. In this paper, we propose a new algorithm, dubbed SMASH, which computes both may and must information compositionally . At each procedure boundary, may and must information is represented and stored as may and must summaries, respectively. Those summaries are computed in a demand driven manner and possibly using summaries of the opposite type. We have implemented SMASH using predicate abstraction (as in SLAM) for the may part and using dynamic test generation (as in DART) for the must part. Results of experiments with 69 Microsoft Windows 7 device drivers show that SMASH can significantly outperform may-only, must-only and non-compositional may-must algorithms. Indeed, our empirical results indicate that most complex code fragments in large programs are actually often either easy to prove irrelevant to the specific property of interest using may analysis or easy to traverse using directed testing. The fine-grained coupling and alternation of may (universal) and must (existential) summaries allows SMASH to easily navigate through these code fragments while traditional may-only, must-only or non-compositional may-must algorithms are stuck in their specific analyses.Keywords
This publication has 25 references indexed in Scilit:
- The Yogi Project: Software Property Checking via Static Analysis and TestingLecture Notes in Computer Science, 2009
- Proving non-termination2008
- Model Checking Recursive Programs with Exact Predicate AbstractionLecture Notes in Computer Science, 2008
- Yasm: A Software Model-Checker for Verification and RefutationLecture Notes in Computer Science, 2006
- Abstraction for Falsification2005
- Test input generation with java PathFinder2004
- Interpolation and SAT-Based Model Checking2003
- ESP2002
- Verification by Augmented Finitary AbstractionInformation and Computation, 2000
- Demand interprocedural dataflow analysis1995