Automatically testing string solvers
Authors:
Open Access
- 27 June 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1459-1470
Abstract
SMT solvers are at the basis of many applications, such as program verification, program synthesis, and test case generation. For all these applications to provide reliable results, SMT solvers must answer queries correctly. However, since they are complex, highly-optimized software systems, ensuring their correctness is challenging. In particular, state-of-the-art testing techniques do not reliably detect when an SMT solver is unsound. In this paper, we present an automatic approach for generating test cases that reveal soundness errors in the implementations of string solvers, as well as potential completeness and performance issues. We synthesize input formulas that are satisfiable or unsatisfiable by construction and use this ground truth as test oracle. We automatically apply satisfiability-preserving transformations to generate increasingly-complex formulas, which allows us to detect many errors with simple inputs and, thus, facilitates debugging. The experimental evaluation shows that our technique effectively reveals bugs in the implementation of widely-used SMT solvers and applies also to other types of solvers, such as automata-based solvers. We focus on strings here, but our approach carries over to other theories and their combinations.Keywords
This publication has 13 references indexed in Scilit:
- Survey of Approaches for Handling Static Analysis Alarms2016
- An efficient SMT solver for string constraintsFormal Methods in System Design, 2016
- A model counter for constraints over unbounded strings2014
- Z3-str: a z3-based string solver for web application analysis2013
- SMT proof checking using a logical frameworkFormal Methods in System Design, 2012
- Formal verification of a modern SAT solver by shallow embedding into Isabelle/HOLTheoretical Computer Science, 2010
- Automated Testing and Debugging of SAT and QBF Solvers2010
- Simplify: a theorem prover for program checkingJournal of the ACM, 2005
- Validating SAT solvers using an independent resolution-based checker: practical implementations and other applications2003
- Simplifying and isolating failure-inducing inputIEEE Transactions on Software Engineering, 2002