Constraints in Dynamic Symbolic Execution: Bitvectors or Integers? [chapter]

Timotej Kapus, Martin Nowack, Cristian Cadar
2019 Lecture Notes in Computer Science  
Dynamic symbolic execution is a technique that analyses programs by gathering mathematical constraints along execution paths. To achieve bit-level precision, one must use the theory of bitvectors. However, other theories might achieve higher performance, justifying in some cases the possible loss of precision. In this paper, we explore the impact of using the theory of integers on the precision and performance of dynamic symbolic execution of C programs. In particular, we compare an
more » ... on of the symbolic executor KLEE using a partial solver based on the theory of integers, with a standard implementation of KLEE using a solver based on the theory of bitvectors, both employing the popular SMT solver Z3. To our surprise, our evaluation on a synthetic sort benchmark, the ECA set of Test-Comp 2019 benchmarks, and GNU Coreutils revealed that for most applications the integer solver did not lead to any loss of precision, but the overall performance difference was rarely significant.
doi:10.1007/978-3-030-31157-5_3 fatcat:vjtzswdbz5dqrpsuk6vmj33b44