Minimizing Test Suites with Unfoldings of Multithreaded Programs

Olli Saarikivi, Hernán Ponce de León, Kari Kähkönen, Keijo Heljanko und Javier Esparza

ACM Trans. Embedded Comput. Syst., 16(2):45:1–45:24

2017 · DOI: 10.1145/3012281


This article focuses on computing minimal test suites for multithreaded programs. Based on previous work on test case generation for multithreaded programs using unfoldings, this article shows how this unfolding can be used to generate minimal test suites covering all local states of the program. Generating such minimal test suites is shown to be NP-complete in the size of the unfolding. We propose an SMT encoding for this problem and two methods based on heuristics which only approximate the solution, but scale better in practice. Finally, we apply our methods to compute the minimal test suites for several benchmarks.

Stichworte: Model-based Systems Engineering, MbSE