Predicting serializability violations: SMT-Based search vs. DPOR-Based search

  • Authors:
  • Arnab Sinha;Sharad Malik;Chao Wang;Aarti Gupta

  • Affiliations:
  • Princeton University;Princeton University;Virginia Polytechnic Institute;NEC Laboratories America

  • Venue:
  • HVC'11 Proceedings of the 7th international Haifa Verification conference on Hardware and Software: verification and testing
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

In our recent work, we addressed the problem of detecting serializability violations in a concurrent program using predictive analysis, where we used a graph-based method to derive a predictive model from a given test execution. The exploration of the predictive model to check alternate interleavings of events in the execution was performed explicitly, based on stateless model checking using dynamic partial order reduction (DPOR). Although this was effective on some benchmarks, the explicit enumeration was too expensive on other examples. This motivated us to examine alternatives based on symbolic exploration using SMT solvers. In this paper, we propose an SMT-based encoding for detecting serializability violations in our predictive model. SMT-based encodings for detecting simpler atomicity violations (with two threads and a single variable) have been used before, but to our knowledge, our work is the first to use them for serializability violations with any number of threads and variables. We also describe details of our DPOR-based explicit search and pruning, and present an experimental evaluation comparing the two search techniques. This provides some insight into the characteristics of the instances when one of these is superior to the other. These characteristics can then be used to predict the preferred technique for a given instance.