kirancodes.me
To Proof Maintenance & Beyond!

Efficiently Adapting Stateless Model Checking for C11/C++11 to Mixed-Size Accesses

Shigeyuki Sato, Taiyo Mizuhashi, Genki Kimura, Kenjiro Taura

Abstract

Abstract Stateless model checking (SMC) is crucial for productivity in verified concurrent programming, and its recent developments for C/C++ and weak memory models are remarkable. The state-of-the-art SMC for C, GenMC, efficiently verifies C programs based on C11 atomics and pthreads. However, it does not support mixed-size accesses, accesses to the same memory region with different-sized types, even though they are ubiquitous in C/C++, particularly the code for memory management. As a result, GenMC does not work for C/C++ programs containing memory management. To resolve this problem, we develop a method of adapting GenMC to mixed-size accesses preserving its optimality. We experimentally evaluate the efficiency of our extended implementation of GenMC and its efficacy for memory management programs.

BibTeX
@inproceedings{Sato-al:APLAS24,
  author    = {Shigeyuki Sato and
               Taiyo Mizuhashi and
               Genki Kimura and
               Kenjiro Taura},
  title     = {Efficiently Adapting Stateless Model Checking for {C11/C++11} to {Mixed-Size} Accesses},
  booktitle = {APLAS},
  pages     = {346--364},
  series    = {LNCS},
  volume    = {15194},
  publisher = {Springer},
  year      = {2024},
  doi       = {10.1007/978-981-97-8943-6\_17},
}