Effective abstractions for verification under relaxed memory models

Andrei Dan, Yuri Meshman, Martin Vechev, Eran Yahav

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We present a new abstract interpretation based approach for automatically verifying concurrent programs running on relaxed memory models.

Our approach is based on three key insights: (i) behaviors of relaxed models (e.g. TSO and PSO) are naturally captured using explicit encodings of store buffers. Directly using such encodings for program analysis is challenging due to shift operations on buffer contents that result in significant loss of analysis precision. We present a new abstraction of the memory model that eliminates expensive shifting of store buffer contents and significantly improves the precision and scalability of program analysis, (ii) an encoding of store buffer sizes that leverages knowledge of the abstract interpretation domain, further improving analysis precision, and (iii) a source-to-source transformation that realizes the above two techniques: given a program P and a relaxed memory model M, it produces a new program PMwhere the behaviors of P running on M are over-approximated by the behavior of PMrunning on sequential consistency (SC). This step makes it possible to directly use state-of-the-art analyzers under SC.

We implemented our approach and evaluated it on a set of finite and infinite-state concurrent algorithms under two memory models: Intel’s x86 TSO and PSO. Experimental results indicate that our technique achieves better precision and efficiency than prior work: we can automatically verify algorithms with fewer fences, faster and with lower memory consumption.

Original languageEnglish
Title of host publicationVerification, Model Checking and Abstract Interpretation - 16th International Conference, VMCAI 2015, Proceedings
EditorsDeepak D’Souza, Akash Lal, Kim Guldstrand Larsen
Pages449-466
Number of pages18
ISBN (Electronic)9783662460801
DOIs
StatePublished - 2015
Event16th International Conference on Verification, Model Checking, and Abstract Interpretation, VMCAI 2015 - Mumbai, India
Duration: 12 Jan 201514 Jan 2015

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume8931

Conference

Conference16th International Conference on Verification, Model Checking, and Abstract Interpretation, VMCAI 2015
Country/TerritoryIndia
CityMumbai
Period12/01/1514/01/15

All Science Journal Classification (ASJC) codes

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Effective abstractions for verification under relaxed memory models'. Together they form a unique fingerprint.

Cite this