Cargando…

The Decidability of Verification under PS 2.0

We consider the reachability problem for finite-state multi-threaded programs under the promising semantics (PS 2.0) of Lee et al., which captures most common program transformations. Since reachability is already known to be undecidable in the fragment of PS 2.0 with only release-acquire accesses (...

Descripción completa

Detalles Bibliográficos
Autores principales: Abdulla, Parosh Aziz, Atig, Mohamed Faouzi, Godbole, Adwait, Krishna, S., Vafeiadis, Viktor
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984576/
http://dx.doi.org/10.1007/978-3-030-72019-3_1
_version_ 1783668095037997056
author Abdulla, Parosh Aziz
Atig, Mohamed Faouzi
Godbole, Adwait
Krishna, S.
Vafeiadis, Viktor
author_facet Abdulla, Parosh Aziz
Atig, Mohamed Faouzi
Godbole, Adwait
Krishna, S.
Vafeiadis, Viktor
author_sort Abdulla, Parosh Aziz
collection PubMed
description We consider the reachability problem for finite-state multi-threaded programs under the promising semantics (PS 2.0) of Lee et al., which captures most common program transformations. Since reachability is already known to be undecidable in the fragment of PS 2.0 with only release-acquire accesses (PS 2.0-ra), we consider the fragment with only relaxed accesses and promises (PS 2.0-rlx). We show that reachability under PS 2.0-rlx is undecidable in general and that it becomes decidable, albeit non-primitive recursive, if we bound the number of promises. Given these results, we consider a bounded version of the reachability problem. To this end, we bound both the number of promises and of “view-switches”, i.e., the number of times the processes may switch their local views of the global memory. We provide a code-to-code translation from an input program under PS 2.0 (with relaxed and release-acquire memory accesses along with promises) to a program under SC, thereby reducing the bounded reachability problem under PS 2.0 to the bounded context-switching problem under SC. We have implemented a tool and tested it on a set of benchmarks, demonstrating that typical bugs in programs can be found with a small bound.
format Online
Article
Text
id pubmed-7984576
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79845762021-03-23 The Decidability of Verification under PS 2.0 Abdulla, Parosh Aziz Atig, Mohamed Faouzi Godbole, Adwait Krishna, S. Vafeiadis, Viktor Programming Languages and Systems Article We consider the reachability problem for finite-state multi-threaded programs under the promising semantics (PS 2.0) of Lee et al., which captures most common program transformations. Since reachability is already known to be undecidable in the fragment of PS 2.0 with only release-acquire accesses (PS 2.0-ra), we consider the fragment with only relaxed accesses and promises (PS 2.0-rlx). We show that reachability under PS 2.0-rlx is undecidable in general and that it becomes decidable, albeit non-primitive recursive, if we bound the number of promises. Given these results, we consider a bounded version of the reachability problem. To this end, we bound both the number of promises and of “view-switches”, i.e., the number of times the processes may switch their local views of the global memory. We provide a code-to-code translation from an input program under PS 2.0 (with relaxed and release-acquire memory accesses along with promises) to a program under SC, thereby reducing the bounded reachability problem under PS 2.0 to the bounded context-switching problem under SC. We have implemented a tool and tested it on a set of benchmarks, demonstrating that typical bugs in programs can be found with a small bound. 2021-03-23 /pmc/articles/PMC7984576/ http://dx.doi.org/10.1007/978-3-030-72019-3_1 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Abdulla, Parosh Aziz
Atig, Mohamed Faouzi
Godbole, Adwait
Krishna, S.
Vafeiadis, Viktor
The Decidability of Verification under PS 2.0
title The Decidability of Verification under PS 2.0
title_full The Decidability of Verification under PS 2.0
title_fullStr The Decidability of Verification under PS 2.0
title_full_unstemmed The Decidability of Verification under PS 2.0
title_short The Decidability of Verification under PS 2.0
title_sort decidability of verification under ps 2.0
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984576/
http://dx.doi.org/10.1007/978-3-030-72019-3_1
work_keys_str_mv AT abdullaparoshaziz thedecidabilityofverificationunderps20
AT atigmohamedfaouzi thedecidabilityofverificationunderps20
AT godboleadwait thedecidabilityofverificationunderps20
AT krishnas thedecidabilityofverificationunderps20
AT vafeiadisviktor thedecidabilityofverificationunderps20
AT abdullaparoshaziz decidabilityofverificationunderps20
AT atigmohamedfaouzi decidabilityofverificationunderps20
AT godboleadwait decidabilityofverificationunderps20
AT krishnas decidabilityofverificationunderps20
AT vafeiadisviktor decidabilityofverificationunderps20