Experience Report on Formally Verifying Parts of OpenJDK's API with KeY
Open Access
- 27 November 2018
- journal article
- Published by Open Publishing Association in Electronic Proceedings in Theoretical Computer Science
- Vol. 284, 53-70
Abstract
Deductive verification of software has not yet found its way into industry, as complexity and scalability issues require highly specialized experts. The long-term perspective is, however, to develop verification tools aiding industrial software developers to find bugs or bottlenecks in software systems faster and more easily. The KeY project constitutes a framework for specifying and verifying software systems, aiming at making formal verification tools applicable for mainstream software development. To help the developers of KeY, its users, and the deductive verification community, we summarize our experiences with KeY 2.6.1 in specifying and verifying real-world Java code from a users perspective. To this end, we concentrate on parts of the Collections-API of OpenJDK 6, where an informal specification exists. While we describe how we bridged informal and formal specification, we also exhibit accompanied challenges that we encountered. Our experiences are that (a) in principle, deductive verification for API-like code bases is feasible, but requires high expertise, (b) developing formal specifications for existing code bases is still notoriously hard, and (c) the under-specification of certain language constructs in Java is challenging for tool builders. Our initial effort in specifying parts of OpenJDK 6 constitutes a stepping stone towards a case study for future research.Keywords
All Related Versions
This publication has 35 references indexed in Scilit:
- Lessons Learned From Microkernel Verification — Specification is the New BottleneckElectronic Proceedings in Theoretical Computer Science, 2012
- Behavioral interface specification languagesACM Computing Surveys, 2012
- Specification and verificationCommunications of the ACM, 2011
- Checking JML specifications using an extensible software model checking frameworkInternational Journal on Software Tools for Technology Transfer, 2006
- ESC/Java2: Uniting ESC/Java and JML2005
- An overview of JML tools and applicationsInternational Journal on Software Tools for Technology Transfer, 2004
- Formal methodsACM Computing Surveys, 1996
- A behavioral notion of subtypingACM Transactions on Programming Languages and Systems, 1994
- Safety-critical systems, formal methods and standardsSoftware Engineering Journal, 1993
- Assigning meanings to programs1967