Cargando…

Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis

Interprocedural data-flow analyses form an expressive and useful paradigm of numerous static analysis applications, such as live variables analysis, alias analysis and null pointers analysis. The most widely-used framework for interprocedural data-flow analysis is IFDS, which encompasses distributiv...

Descripción completa

Detalles Bibliográficos
Autores principales: Chatterjee, Krishnendu, Goharshady, Amir Kafshdar, Ibsen-Jensen, Rasmus, Pavlogiannis, Andreas
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702249/
http://dx.doi.org/10.1007/978-3-030-44914-8_5
_version_ 1783616576327516160
author Chatterjee, Krishnendu
Goharshady, Amir Kafshdar
Ibsen-Jensen, Rasmus
Pavlogiannis, Andreas
author_facet Chatterjee, Krishnendu
Goharshady, Amir Kafshdar
Ibsen-Jensen, Rasmus
Pavlogiannis, Andreas
author_sort Chatterjee, Krishnendu
collection PubMed
description Interprocedural data-flow analyses form an expressive and useful paradigm of numerous static analysis applications, such as live variables analysis, alias analysis and null pointers analysis. The most widely-used framework for interprocedural data-flow analysis is IFDS, which encompasses distributive data-flow functions over a finite domain. On-demand data-flow analyses restrict the focus of the analysis on specific program locations and data facts. This setting provides a natural split between (i) an offline (or preprocessing) phase, where the program is partially analyzed and analysis summaries are created, and (ii) an online (or query) phase, where analysis queries arrive on demand and the summaries are used to speed up answering queries. In this work, we consider on-demand IFDS analyses where the queries concern program locations of the same procedure (aka same-context queries). We exploit the fact that flow graphs of programs have low treewidth to develop faster algorithms that are space and time optimal for many common data-flow analyses, in both the preprocessing and the query phase. We also use treewidth to develop query solutions that are embarrassingly parallelizable, i.e. the total work for answering each query is split to a number of threads such that each thread performs only a constant amount of work. Finally, we implement a static analyzer based on our algorithms, and perform a series of on-demand analysis experiments on standard benchmarks. Our experimental results show a drastic speed-up of the queries after only a lightweight preprocessing phase, which significantly outperforms existing techniques.
format Online
Article
Text
id pubmed-7702249
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-77022492020-12-01 Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis Chatterjee, Krishnendu Goharshady, Amir Kafshdar Ibsen-Jensen, Rasmus Pavlogiannis, Andreas Programming Languages and Systems Article Interprocedural data-flow analyses form an expressive and useful paradigm of numerous static analysis applications, such as live variables analysis, alias analysis and null pointers analysis. The most widely-used framework for interprocedural data-flow analysis is IFDS, which encompasses distributive data-flow functions over a finite domain. On-demand data-flow analyses restrict the focus of the analysis on specific program locations and data facts. This setting provides a natural split between (i) an offline (or preprocessing) phase, where the program is partially analyzed and analysis summaries are created, and (ii) an online (or query) phase, where analysis queries arrive on demand and the summaries are used to speed up answering queries. In this work, we consider on-demand IFDS analyses where the queries concern program locations of the same procedure (aka same-context queries). We exploit the fact that flow graphs of programs have low treewidth to develop faster algorithms that are space and time optimal for many common data-flow analyses, in both the preprocessing and the query phase. We also use treewidth to develop query solutions that are embarrassingly parallelizable, i.e. the total work for answering each query is split to a number of threads such that each thread performs only a constant amount of work. Finally, we implement a static analyzer based on our algorithms, and perform a series of on-demand analysis experiments on standard benchmarks. Our experimental results show a drastic speed-up of the queries after only a lightweight preprocessing phase, which significantly outperforms existing techniques. 2020-04-18 /pmc/articles/PMC7702249/ http://dx.doi.org/10.1007/978-3-030-44914-8_5 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
Chatterjee, Krishnendu
Goharshady, Amir Kafshdar
Ibsen-Jensen, Rasmus
Pavlogiannis, Andreas
Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title_full Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title_fullStr Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title_full_unstemmed Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title_short Optimal and Perfectly Parallel Algorithms for On-demand Data-Flow Analysis
title_sort optimal and perfectly parallel algorithms for on-demand data-flow analysis
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702249/
http://dx.doi.org/10.1007/978-3-030-44914-8_5
work_keys_str_mv AT chatterjeekrishnendu optimalandperfectlyparallelalgorithmsforondemanddataflowanalysis
AT goharshadyamirkafshdar optimalandperfectlyparallelalgorithmsforondemanddataflowanalysis
AT ibsenjensenrasmus optimalandperfectlyparallelalgorithmsforondemanddataflowanalysis
AT pavlogiannisandreas optimalandperfectlyparallelalgorithmsforondemanddataflowanalysis