Detecting floating-point errors via atomic conditions
Open Access
- 20 December 2019
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 4 (POPL) , 1-27
Abstract
This paper tackles the important, difficult problem of detecting program inputs that trigger large floating-point errors in numerical code. It introduces a novel, principled dynamic analysis that leverages the mathematically rigorously analyzed condition numbers for atomic numerical operations, which we call atomic conditions , to effectively guide the search for large floating-point errors. Compared with existing approaches, our work based on atomic conditions has several distinctive benefits: (1) it does not rely on high-precision implementations to act as approximate oracles, which are difficult to obtain in general and computationally costly; and (2) atomic conditions provide accurate, modular search guidance. These benefits in combination lead to a highly effective approach that detects more significant errors in real-world code (e.g., widely-used numerical library functions) and achieves several orders of speedups over the state-of-the-art, thus making error analysis significantly more practical. We expect the methodology and principles behind our approach to benefit other floating-point program analysis tasks such as debugging, repair and synthesis. To facilitate the reproduction of our work, we have made our implementation, evaluation data and results publicly available on GitHub at https://github.com/FP-Analysis/atomic-condition.Keywords
This publication has 22 references indexed in Scilit:
- Automated backward error analysis for numerical code2015
- Automatically improving accuracy for floating point expressions2015
- A Genetic Algorithm for Detecting Significant Floating-Point Inaccuracies2015
- Efficient search for inputs causing high floating-point errors2014
- A dynamic program analysis to find floating-point accuracy problems2012
- Valgrind2007
- MPFRACM Transactions on Mathematical Software, 2007
- Interval arithmeticJournal of the ACM, 2001
- What every computer scientist should know about floating-point arithmeticACM Computing Surveys, 1991
- A Precision Approximation of the Gamma FunctionJournal of the Society for Industrial and Applied Mathematics Series B Numerical Analysis, 1964