ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersFormal MethodsAssertion-based VerificationDeductive VerificationDesign For TestabilityMemory ModelingSoftware TestingAssertion CheckingAssertion-based DebuggingConstraintsMemory Model SemanticsModel-based DebuggingTest Cases
Memory models are hard to reason about due to their complexity, which stems from the need to strike a balance between ease-of-programming and allowing compiler and hardware optimizations. In this paper, we present an automated tool, MemSAT, that helps in debugging and reasoning about memory models. Given an axiomatic specification of a memory model and a multi-threaded test program containing assertions, MemSAT outputs a trace of the program in which both the assertions and the memory model axioms are satisfied, if one can be found. The tool is fully automatic and is based on a SAT solver. If it cannot find a trace, it outputs a minimal subset of the memory model and program constraints that are unsatisfiable. We used MemSAT to check several existing memory models against their published test cases, including the current Java Memory Model by Manson et al. and a revised version of it by Sevcik and Aspinall. We found subtle discrepancies between what was expected and the actual results of test programs.
17
Software abstractions: logic, language and analysis
Choice Reviews Online · 2007 · 1.5K citations
Shared memory consistency models: a tutorial
Sarita V. Adve, Kourosh Gharachorloo · Computer · 1996 · 1.1K citations
Jeremy Manson, William Pugh, Sarita V. Adve · 2005 · 732 citations · Full text
Sebastian Burckhardt, Rajeev Alur, Milo M. K. Martin · 2007 · 228 citations