Cargando…

An SMT Theory of Fixed-Point Arithmetic

Fixed-point arithmetic is a popular alternative to floating-point arithmetic on embedded systems. Existing work on the verification of fixed-point programs relies on custom formalizations of fixed-point arithmetic, which makes it hard to compare the described techniques or reuse the implementations....

Descripción completa

Detalles Bibliográficos
Autores principales: Baranowski, Marek, He, Shaobo, Lechner, Mathias, Nguyen, Thanh Son, Rakamarić, Zvonimir
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7324132/
http://dx.doi.org/10.1007/978-3-030-51074-9_2
_version_ 1783551887205728256
author Baranowski, Marek
He, Shaobo
Lechner, Mathias
Nguyen, Thanh Son
Rakamarić, Zvonimir
author_facet Baranowski, Marek
He, Shaobo
Lechner, Mathias
Nguyen, Thanh Son
Rakamarić, Zvonimir
author_sort Baranowski, Marek
collection PubMed
description Fixed-point arithmetic is a popular alternative to floating-point arithmetic on embedded systems. Existing work on the verification of fixed-point programs relies on custom formalizations of fixed-point arithmetic, which makes it hard to compare the described techniques or reuse the implementations. In this paper, we address this issue by proposing and formalizing an SMT theory of fixed-point arithmetic. We present an intuitive yet comprehensive syntax of the fixed-point theory, and provide formal semantics for it based on rational arithmetic. We also describe two decision procedures for this theory: one based on the theory of bit-vectors and the other on the theory of reals. We implement the two decision procedures, and evaluate our implementations using existing mature SMT solvers on a benchmark suite we created. Finally, we perform a case study of using the theory we propose to verify properties of quantized neural networks.
format Online
Article
Text
id pubmed-7324132
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-73241322020-06-30 An SMT Theory of Fixed-Point Arithmetic Baranowski, Marek He, Shaobo Lechner, Mathias Nguyen, Thanh Son Rakamarić, Zvonimir Automated Reasoning Article Fixed-point arithmetic is a popular alternative to floating-point arithmetic on embedded systems. Existing work on the verification of fixed-point programs relies on custom formalizations of fixed-point arithmetic, which makes it hard to compare the described techniques or reuse the implementations. In this paper, we address this issue by proposing and formalizing an SMT theory of fixed-point arithmetic. We present an intuitive yet comprehensive syntax of the fixed-point theory, and provide formal semantics for it based on rational arithmetic. We also describe two decision procedures for this theory: one based on the theory of bit-vectors and the other on the theory of reals. We implement the two decision procedures, and evaluate our implementations using existing mature SMT solvers on a benchmark suite we created. Finally, we perform a case study of using the theory we propose to verify properties of quantized neural networks. 2020-05-30 /pmc/articles/PMC7324132/ http://dx.doi.org/10.1007/978-3-030-51074-9_2 Text en © Springer Nature Switzerland AG 2020 This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic.
spellingShingle Article
Baranowski, Marek
He, Shaobo
Lechner, Mathias
Nguyen, Thanh Son
Rakamarić, Zvonimir
An SMT Theory of Fixed-Point Arithmetic
title An SMT Theory of Fixed-Point Arithmetic
title_full An SMT Theory of Fixed-Point Arithmetic
title_fullStr An SMT Theory of Fixed-Point Arithmetic
title_full_unstemmed An SMT Theory of Fixed-Point Arithmetic
title_short An SMT Theory of Fixed-Point Arithmetic
title_sort smt theory of fixed-point arithmetic
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7324132/
http://dx.doi.org/10.1007/978-3-030-51074-9_2
work_keys_str_mv AT baranowskimarek ansmttheoryoffixedpointarithmetic
AT heshaobo ansmttheoryoffixedpointarithmetic
AT lechnermathias ansmttheoryoffixedpointarithmetic
AT nguyenthanhson ansmttheoryoffixedpointarithmetic
AT rakamariczvonimir ansmttheoryoffixedpointarithmetic
AT baranowskimarek smttheoryoffixedpointarithmetic
AT heshaobo smttheoryoffixedpointarithmetic
AT lechnermathias smttheoryoffixedpointarithmetic
AT nguyenthanhson smttheoryoffixedpointarithmetic
AT rakamariczvonimir smttheoryoffixedpointarithmetic