Automated Verification of Floating-Point Computations in Ada Programs
暂无分享,去创建一个
In critical software systems like the ones related to transport and defense, it is common to
perform numerical computations implemented using floating-point arithmetic. Safety conditions for such
systems typically require strong guarantees on the functional behavior of the performed computations.
Automatically verifying that these guarantees are fulfilled is thus desirable.
Deductive program verification is a promising approach for verifying that a given code fulfills a functional
specification, with a very high level of confidence. Yet, formally proving correct a program performing
floating-point computations remains a challenge, because floating-point arithmetic is not easily handled by
automated theorem provers.
We address this challenge by combining multiple techniques to separately prove parts of the desired proper-
ties. On the one hand, abstract interpretation computes numerical bounds for expressions that appear either
in the original program, or in the ghost code added to instrument the program. On the other hand, we gen-
erate verification conditions for different automated provers, relying on different strategies for representing
floating-point computations. Among these strategies, we try to exploit the native support for floating-point
arithmetic recently added in the SMT-LIB standard.
Our approach is partly implemented in the Why3 environment for deductive program verification, and partly
implemented in its front-end environment SPARK for the development of safety-critical Ada programs. We
report on several examples and case studies used to validate our approach experimentally.