Efficient Bounded Model Checking of Heap-Manipulating Programs using Tight Field Bounds
Open Access
- 20 March 2021
- book chapter
- Published by Springer Nature
- Vol. 12649, 218-239
Abstract
Software model checkers are able to exhaustively explore different bounded program executions arising from various sources of non-determinism. These tools provide statements to produce non-deterministic values for certain variables, thus forcing the corresponding model checker to considerallpossible values for these during verification. While these statements offer an effective way of verifying programs handling basic data types and simple structured types, they are inappropriate as a mechanism for nondeterministic generation of pointers, favoring the use of insertion routines to produce dynamic data structures when verifying, via model checking, programs handling such data types.We present a technique to improve model checking of programs handling heap-allocated data types, by taming the explosion of candidate structures that can be built when non-deterministically initializing heap object fields. The technique exploits precomputedrelational bounds, that disregard values deemed invalid by the structure’s type invariant, thus reducing the state space to be explored by the model checker. Precomputing the relational bounds is a challenging costly task too, for which we also present an efficient algorithm, based on incremental SAT solving.We implement our approach on top of the bounded model checker, and show that, for a number of data structures implementations, we can handle significantly larger input structures and detect faults that is unable to detect.Keywords
This publication has 14 references indexed in Scilit:
- Field-exhaustive testing2016
- Efficient Tight Field Bounds Computation Based on Shape PredicatesLecture Notes in Computer Science, 2014
- Improving Test Generation under Rich Contracts by Tight Bounds and Incremental SAT Solving2013
- Shape Analysis for Composite Data Structures2007
- Modular verification of code with SAT2006
- Test input generation for java containers using state matching2006
- DynAlloy2005
- Model Checking Programs with Java PathFinderLecture Notes in Computer Science, 2005
- KoratACM SIGSOFT Software Engineering Notes, 2002
- Solving the incremental satisfiability problemThe Journal of Logic Programming, 1993