Compositional May-Must Program Analysis: Unleashing the Power of Alternation

被引:90
作者
Godefroid, Patrice [1 ]
Nori, Aditya V. [1 ]
Rajamani, Sriram K. [1 ]
Tetali, Sai Deep [1 ]
机构
[1] Microsoft Res Redmond, Redmond, WA USA
来源
POPL'10: PROCEEDINGS OF THE 37TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES | 2010年
关键词
Abstraction refinement; Directed testing; Software model checking;
D O I
10.1145/1706299.1706307
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:43 / 55
页数:13
相关论文
共 33 条
[1]  
Anand S, 2008, LECT NOTES COMPUT SC, V4963, P367, DOI 10.1007/978-3-540-78800-3_28
[2]  
[Anonymous], SPIN WORKSH MOD CHEC
[3]  
[Anonymous], P 26 ACM SIGPLAN SIG
[4]  
[Anonymous], EMSOFT
[5]  
[Anonymous], 2002, ACM SIGPLAN NOTICES, DOI [10.1145/503272.503286, DOI 10.1145/565816.503286]
[6]  
Ball T, 2000, LECT NOTES COMPUT SC, V1885, P113
[7]  
BALL T, 2005, CAV 05 COMPUTER AIDE
[8]  
Beckman NelsE., 2008, Proceedings of the 2008 international symposium on Software testing and analysis, ISSTA '08, P3, DOI DOI 10.1145/1390630.1390634
[9]  
BEYER D, 2008, ASE 08 AUTOMATED SOF
[10]  
Bush WR, 2000, SOFTWARE PRACT EXPER, V30, P775, DOI 10.1002/(SICI)1097-024X(200006)30:7<775::AID-SPE309>3.0.CO