Tests, Proofs and Refinements
Counter-example driven refinement using predicate abstraction has been successfully used to find bugs and verify properties in programs . We describe two recent advances in counter-example driven refinement:
- We present a counter-example driven refinement technique that combines verification and testing . In our approach, we simultaneously use testing and proving, with the goal of either finding a test that demonstrates that P violates ϕ, or a proof that demonstrates that all executions of P satisfy ϕ. The most interesting aspect of the approach is that unsuccessful proof attempts are used to generate tests, and unsuccessful attempts to generate tests are used to refine proofs. Besides being theoretically elegant, the approach has practical advantages –precise alias information obtained during tests can be used to greatly aid the efficiency of constructing proofs .
- In the past, counter-example driven refinement schemes have worked with a particular form of abstraction called predicate abstraction . We present approaches to refine any abstract interpretation automatically using counterexamples. Several challenges arise: refining using disjunctions leads to powerset domains, and the use of joins forces us to consider counterexample DAGs instead of counterexample traces. We present our solutions to these problems [3,2]. We also present experiences implementing our techniques in a tool Dagger.
- 4.Gulavani, B.S., Henzinger, T.A., Kannan, Y., Nori, A.V., Rajamani, S.K.: SYNERGY: A new algorithm for property checking. In: FSE 2006: Foundations of Software Engineering, pp. 117–127. ACM Press, New York (2006)Google Scholar
- 6.Gopinathan, M., Rajamani, S.K.: Enforcing Object Protocols by Combining Static and Dynamic Analysis. In: OOPSLA 2008: ACM SIGPLAN Conference on Object Oriented Programming, Systems, Languages and Applications. ACM Press, New York (to appear, 2008)Google Scholar