Excvate: Spoofing Exceptions and Solving Constraints to Test Exception Handling in Numerical Libraries

Testing a numerical library's exception handling is often left to its regression tests. However, designing floating-point inputs that exercise exceptional behavior is difficult. Further-more, existing input generation techniques are designed with the view that any exception-causing input is of interest when most are unremarkable from the standpoint of exception handling: most functions should handle exceptions correctly by construction, i.e., by returning exceptional values (NaN, <tex>$+\text{Inf})$</tex> due to IEEE 754's mandate that most operations propagate such values. To test library exception handling, we propose an approach which - given only a set of regression test executables and a set of function prototypes - cheaply identifies potential failures via exception-spoofing and then reifies these failures using an off-the-shelf SMT solver that generates concrete inputs inducing buggy behavior. We implement this approach in a prototype tool Excvate,present an evaluation that targets 26 BLAS functions across three implementations, two compilers, and multiple compiler optimizations, and ultimately identify exception-handling failures in five functions in multiple BLAS versions.

Authors

Institutions

Publication Details

Published
2025-05-04
DOI
https://doi.org/10.1109/arith64983.2025.00026
Primary Topic
Mathematics, Computing, and Information Processing
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Excvate: Spoofing Exceptions and Solving Constraints to Test Exception Handling in Numerical Libraries

Xiaoye Sherry Li, Cindy Rubio-González, Jackson Vanover, James Demmel
1 links
Mathematics, Computing, and Information Processing
article

Excvate: Spoofing Exceptions and Solving Constraints to Test Exception Handling in Numerical Libraries

Xiaoye Sherry Li, Cindy Rubio-González, Jackson Vanover, James Demmel
article en

Abstract

Testing a numerical library's exception handling is often left to its regression tests. However, designing floating-point inputs that exercise exceptional behavior is difficult. Further-more, existing input generation techniques are designed with the view that any exception-causing input is of interest when most are unremarkable from the standpoint of exception handling: most functions should handle exceptions correctly by construction, i.e., by returning exceptional values (NaN, <tex>$+\text{Inf})$</tex> due to IEEE 754's mandate that most operations propagate such values. To test library exception handling, we propose an approach which - given only a set of regression test executables and a set of function prototypes - cheaply identifies potential failures via exception-spoofing and then reifies these failures using an off-the-shelf SMT solver that generates concrete inputs inducing buggy behavior. We implement this approach in a prototype tool Excvate,present an evaluation that targets 26 BLAS functions across three implementations, two compilers, and multiple compiler optimizations, and ultimately identify exception-handling failures in five functions in multiple BLAS versions.

Lawrence Berkeley National Laboratory (US), University of California, Davis (US), University of California, Berkeley (US)
National Science Foundation
Openalex Percentile: Top 84%
Mathematics, Computing, and Information Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Excvate: Spoofing Exceptions and Solving Constraints to Test Exception Handling in Numerical Libraries — Xiaoye Sherry Li, Cindy Rubio-González, et al. · (2025) | TGRS Research Map | TGRS