Cargando…

Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting

The goal of probabilistic static analysis is to quantify the probability that a given program satisfies/violates a required property (assertion). In this work, we use a static analysis by abstract interpretation and model counting to construct probabilistic analysis of deterministic programs with un...

Descripción completa

Detalles Bibliográficos
Autores principales: Dimovski, Aleksandar S., Legay, Axel
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7418140/
http://dx.doi.org/10.1007/978-3-030-45234-6_9
_version_ 1783569634276933632
author Dimovski, Aleksandar S.
Legay, Axel
author_facet Dimovski, Aleksandar S.
Legay, Axel
author_sort Dimovski, Aleksandar S.
collection PubMed
description The goal of probabilistic static analysis is to quantify the probability that a given program satisfies/violates a required property (assertion). In this work, we use a static analysis by abstract interpretation and model counting to construct probabilistic analysis of deterministic programs with uncertain input data, which can be used for estimating the probabilities of assertions (program reliability). In particular, we automatically infer necessary preconditions in order a given assertion to be satisfied/violated at run-time using a combination of forward and backward static analyses. The focus is on numeric properties of variables and numeric abstract domains, such as polyhedra. The obtained preconditions in the form of linear constraints are then analyzed to quantify how likely is an input to satisfy them. Model counting techniques are employed to count the number of solutions that satisfy given linear constraints. These counts are then used to assess the probability that the target assertion is satisfied/violated. We also present how to extend our approach to analyze non-deterministic programs by inferring sufficient preconditions. We built a prototype implementation and evaluate it on several interesting examples.
format Online
Article
Text
id pubmed-7418140
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-74181402020-08-11 Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting Dimovski, Aleksandar S. Legay, Axel Fundamental Approaches to Software Engineering Article The goal of probabilistic static analysis is to quantify the probability that a given program satisfies/violates a required property (assertion). In this work, we use a static analysis by abstract interpretation and model counting to construct probabilistic analysis of deterministic programs with uncertain input data, which can be used for estimating the probabilities of assertions (program reliability). In particular, we automatically infer necessary preconditions in order a given assertion to be satisfied/violated at run-time using a combination of forward and backward static analyses. The focus is on numeric properties of variables and numeric abstract domains, such as polyhedra. The obtained preconditions in the form of linear constraints are then analyzed to quantify how likely is an input to satisfy them. Model counting techniques are employed to count the number of solutions that satisfy given linear constraints. These counts are then used to assess the probability that the target assertion is satisfied/violated. We also present how to extend our approach to analyze non-deterministic programs by inferring sufficient preconditions. We built a prototype implementation and evaluate it on several interesting examples. 2020-03-13 /pmc/articles/PMC7418140/ http://dx.doi.org/10.1007/978-3-030-45234-6_9 Text en © The Author(s) 2020 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
Dimovski, Aleksandar S.
Legay, Axel
Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title_full Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title_fullStr Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title_full_unstemmed Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title_short Computing Program Reliability Using Forward-Backward Precondition Analysis and Model Counting
title_sort computing program reliability using forward-backward precondition analysis and model counting
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7418140/
http://dx.doi.org/10.1007/978-3-030-45234-6_9
work_keys_str_mv AT dimovskialeksandars computingprogramreliabilityusingforwardbackwardpreconditionanalysisandmodelcounting
AT legayaxel computingprogramreliabilityusingforwardbackwardpreconditionanalysisandmodelcounting