Towards a Notion of Coverage for Incomplete Program-Correctness Proofs
- 527 Downloads
Deductive program verification can give high assurances for program correctness. But incomplete partial proofs do not provide any information as to what degree or with what probability the program is correct.
In this paper, we introduce the concept of state space coverage for partial proofs, which estimates to what degree the proof covers the state space and the possible inputs of the program. Thus, similar to testing, the degree of assurance grows with the effort invested in constructing a correctness proof. The concept brings together deductive verification techniques with runtime techniques used to empirically estimate the coverage. We have implemented a prototypical tool that uses test data to estimate the coverage of partial proofs constructed with the program verification system KeY.
KeywordsProgram verification Coverage Sequent proofs
- 4.Dwyer, M.B., Filieri, A., Geldenhuys, J., Gerrard, M., Păsăreanu, C.S., Visser, W.: Probabilistic program analysis. In: Cunha, J., Fernandes, J.P., Lämmel, R., Saraiva, J., Zaytsev, V. (eds.) GTTSE 2015. LNCS, vol. 10223, pp. 1–25. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-60074-1_1CrossRefGoogle Scholar
- 5.Gentzen, G.: Untersuchungen über das logische Schließen. Mathematische Zeitschrift 39 176–210, 405–431 (1935)Google Scholar
- 8.Kobischke, S.: Sampling-based Execution Coverage Estimation for Partially Proved Java Program Specifications. Master’s thesis, Karlsruhe Institute of Technology (2018)Google Scholar
- 9.Leavens, G.T., et al.: JML Reference Manual, draft Revision 2344, 31 May 2013Google Scholar
- 10.ben Nasr Omri, F.: Weighted Statistical Testing based on Active Learning and Formal Verification Techniques for Software Reliability Assessment. Ph.D. thesis, Karlsruhe Institute of Technology (2015). http://digbib.ubka.uni-karlsruhe.de/volltexte/1000050941