Open Access 2022 | OriginalPaper | Buchkapitel
Verifying Fortran Programs with CIVL
verfasst von : Wenhao Wu, Jan Hückelheim, Paul D. Hovland, Stephen F. Siegel
Erschienen in: Tools and Algorithms for the Construction and Analysis of Systems
Fortran is widely used in computational science, engineering, and high performance computing. This paper presents an extension to the CIVL verification framework to check correctness properties of Fortran programs. Unlike previous work that translates Fortran to C, LLVM IR, or other intermediate formats before verification, our work allows CIVL to directly consume Fortran source files. We extended the parsing, translation, and analysis phases to support Fortran-specific features such as array slicing and reshaping, and to find program violations that are specific to Fortran, such as argument aliasing rule violations, invalid use of variable and function attributes, or defects due to Fortran’s unspecified expression evaluation order. We demonstrate the usefulness of our tool on a verification benchmark suite and kernels extracted from a real world application.