Abstractions from proofs

被引:267
作者
Henzinger, TA [1 ]
Jhala, R
Majumdar, R
McMillan, KL
机构
[1] Univ Calif Berkeley, Dept EECS, Berkeley, CA 94720 USA
[2] Cadence Berkeley Labs, Berkeley, CA USA
关键词
software model checking; predicate abstraction; counterexample analysis;
D O I
10.1145/982962.964021
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The success of model checking for large programs depends crucially on the ability to efficiently construct parsimonious abstractions. A predicate abstraction is parsimonious if at each control location, it specifies only relationships between current values of variables, and only those which are required for proving correctness. Previous methods for automatically refining predicate abstractions until sufficient precision is obtained do not systematically construct parsimonious abstractions: predicates usually contain symbolic variables, and are added heuristically and often uniformly to many or all control locations at once. We use Craig interpolation to efficiently construct, from a given abstract error trace which cannot be concretized, a parsominous abstraction that removes the trace. At each location of the trace, we infer the relevant predicates as an interpolant between the two formulas that define the past and the future segment of the trace. Each interpolant is a relationship between current values of program variables, and is relevant only at that particular program location. It can be found by a linear scan of the proof of infeasibility of the trace. We develop our method for programs with arithmetic and pointer expressions, and call-by-value function calls. For function calls Craig interpolation offers a systematic way of generating relevant predicates that contain only the local variables of the function and the values of the formal parameters when the function was called. We have extended our model checker BLAST with predicate discovery by Craig interpolation, and applied it successfully to C programs with more than 130,000 lines of code, which was not possible with approaches that build less parsimonious abstractions.
引用
收藏
页码:232 / 244
页数:13
相关论文
共 30 条
  • [1] [Anonymous], 1981, SCI PROGRAMMING, DOI DOI 10.1007/978-1-4612-5983-1
  • [2] [Anonymous], PRINCIPLES PROGRAMMI
  • [3] BALL T, COMMUNICATION
  • [4] Ball T., 2003, ACM T PROGRAMMING LA
  • [5] BALL T, 2002, MSRTR200209 MICR RES
  • [6] Ball VE, 2002, STUD PRODUCT EFF, V2, P1
  • [7] Bodík R, 1997, LECT NOTES COMPUT SC, V1301, P361, DOI 10.1145/267896.267921
  • [8] Bush WR, 2000, SOFTWARE PRACT EXPER, V30, P775, DOI 10.1002/(SICI)1097-024X(200006)30:7<775::AID-SPE309>3.0.CO
  • [9] 2-H
  • [10] Chaki S, 2003, LECT NOTES COMPUT SC, V2860, P19