Incremental units-of-measure verification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Danish, Matthew, Orchard, Dominic, Rice, Andrew
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916273804279808
author Danish, Matthew
Orchard, Dominic
Rice, Andrew
author_facet Danish, Matthew
Orchard, Dominic
Rice, Andrew
contents Despite an abundance of proposed systems, the verification of units-of-measure within programs remains rare in scientific computing. We attempt to address this issue by providing a lightweight static verification system for units-of-measure in Fortran programs which supports incremental annotation of large projects. We take the opposite approach to the most mainstream existing deployment of units-of-measure typing (in F#) and generate a global, rather than local, constraints system for a program. We show that such a system can infer (and check) polymorphic units specifications for under-determined parts of the program. Not only does this ability allow checking of partially annotated programs but it also allows the global constraint problem to be partitioned. This partitioning means we can scale to large programs by solving constraints for each program module independently and storing inferred units at module boundaries (separate verification). We provide an implementation of our approach as an extension to an open-source Fortran analysis tool.
format Preprint
id arxiv_https___arxiv_org_abs_2406_02174
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Incremental units-of-measure verification
Danish, Matthew
Orchard, Dominic
Rice, Andrew
Programming Languages
Despite an abundance of proposed systems, the verification of units-of-measure within programs remains rare in scientific computing. We attempt to address this issue by providing a lightweight static verification system for units-of-measure in Fortran programs which supports incremental annotation of large projects. We take the opposite approach to the most mainstream existing deployment of units-of-measure typing (in F#) and generate a global, rather than local, constraints system for a program. We show that such a system can infer (and check) polymorphic units specifications for under-determined parts of the program. Not only does this ability allow checking of partially annotated programs but it also allows the global constraint problem to be partitioned. This partitioning means we can scale to large programs by solving constraints for each program module independently and storing inferred units at module boundaries (separate verification). We provide an implementation of our approach as an extension to an open-source Fortran analysis tool.
title Incremental units-of-measure verification
topic Programming Languages
url https://arxiv.org/abs/2406.02174