Using Off-the-Shelf Exception Support Components in C++ Verification
Authors:
- Vladimir StillVSVladimir Still
- Petr RockaiPRPetr Rockai
- Jiri BarnatJBJiri Barnat
- 1 July 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 54-64
Abstract
An important step toward adoption of formal methods in software development is support for mainstream programming languages. Unfortunately, these languages are often rather complex and come with substantial standard libraries. However, by choosing a suitable intermediate language, most of the complexity can be delegated to existing execution-oriented (as opposed to verification-oriented) compiler frontends and standard library implementations. In this paper, we describe how support for C++ exceptions can take advantage of the same principle. Our work is based on DiVM, an LLVM-derived, verification-friendly intermediate language. Our implementation consists of 2 parts: an implementation of the 'libunwind' platform API which is linked to the program under test and consists of 9 C functions. The other part is a preprocessor for LLVM bitcode which prepares exception-related metadata and replaces associated special-purpose LLVM instructions.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Model checking C++ programs with exceptionsScience of Computer Programming, 2016
- CBMC – C Bounded Model Checker2014
- SMT-Based Bounded Model Checking of C++ Programs2013
- Improved State Space Reductions for LTL Model Checking of C and C++ Programs2013
- LLBMC: A Bounded Model Checker for LLVM’s Intermediate Representation2012
- Interprocedural Exception Analysis for C++2011