Efficiently Adapting Stateless Model Checking for C11/C++11 to Mixed-Size Accesses
Open Access
- 28 October 2024
- book chapter
- Published by Springer Nature
- p. 346-364
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.Keywords
This publication has 27 references indexed in Scilit:
- GenMC: A Model Checker for Weak Memory Models2021
- Parallel Graph-Based Stateless Model Checking2020
- Stateless model checking of the Linux kernel’s read–copy update (RCU)International Journal on Software Tools for Technology Transfer, 2019
- Stateless model checking for TSO and PSOActa Informatica, 2016
- Stateless Model Checking for TSO and PSO2015
- Mathematizing C++ concurrencyACM SIGPLAN Notices, 2011
- Foundations of the C++ concurrency memory model2008
- Iterative context bounding for systematic testing of multithreaded programs2007
- Software Model Checking: The VeriSoft ApproachFormal Methods in System Design, 2005
- Dynamic partial-order reduction for model checking software2005