Cargando…
For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM
We present a framework to verify both, functional correctness and worst-case complexity of practically efficient algorithms. We implemented a stepwise refinement approach, using the novel concept of resource currencies to naturally structure the resource analysis along the refinement chain, and allo...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984530/ http://dx.doi.org/10.1007/978-3-030-72019-3_11 |
_version_ | 1783668084585791488 |
---|---|
author | Haslbeck, Maximilian P. L. Lammich, Peter |
author_facet | Haslbeck, Maximilian P. L. Lammich, Peter |
author_sort | Haslbeck, Maximilian P. L. |
collection | PubMed |
description | We present a framework to verify both, functional correctness and worst-case complexity of practically efficient algorithms. We implemented a stepwise refinement approach, using the novel concept of resource currencies to naturally structure the resource analysis along the refinement chain, and allow a fine-grained analysis of operation counts. Our framework targets the LLVM intermediate representation. We extend its semantics from earlier work with a cost model. As case study, we verify the correctness and [Formula: see text] worst-case complexity of an implementation of the introsort algorithm, whose performance is on par with the state-of-the-art implementation found in the GNU C++ Library. |
format | Online Article Text |
id | pubmed-7984530 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
record_format | MEDLINE/PubMed |
spelling | pubmed-79845302021-03-23 For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM Haslbeck, Maximilian P. L. Lammich, Peter Programming Languages and Systems Article We present a framework to verify both, functional correctness and worst-case complexity of practically efficient algorithms. We implemented a stepwise refinement approach, using the novel concept of resource currencies to naturally structure the resource analysis along the refinement chain, and allow a fine-grained analysis of operation counts. Our framework targets the LLVM intermediate representation. We extend its semantics from earlier work with a cost model. As case study, we verify the correctness and [Formula: see text] worst-case complexity of an implementation of the introsort algorithm, whose performance is on par with the state-of-the-art implementation found in the GNU C++ Library. 2021-03-23 /pmc/articles/PMC7984530/ http://dx.doi.org/10.1007/978-3-030-72019-3_11 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 Haslbeck, Maximilian P. L. Lammich, Peter For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title | For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title_full | For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title_fullStr | For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title_full_unstemmed | For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title_short | For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM |
title_sort | for a few dollars more: verified fine-grained algorithm analysis down to llvm |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984530/ http://dx.doi.org/10.1007/978-3-030-72019-3_11 |
work_keys_str_mv | AT haslbeckmaximilianpl forafewdollarsmoreverifiedfinegrainedalgorithmanalysisdowntollvm AT lammichpeter forafewdollarsmoreverifiedfinegrainedalgorithmanalysisdowntollvm |