Counterexample- and Simulation-Guided Floating-Point Loop Invariant Synthesis

Anastasiia Izycheva, Eva Darulova, Helmut Seidl

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We present an automated procedure for synthesizing sound inductive invariants for floating-point numerical loops. Our procedure generates invariants of the form of a convex polynomial inequality that tightly bounds the values of loop variables. Such invariants are a prerequisite for reasoning about the safety and roundoff errors of floating-point programs. Unlike previous approaches that rely on policy iteration, linear algebra or semi-definite programming, we propose a heuristic procedure based on simulation and counterexample-guided refinement. We observe that this combination is remarkably effective and general and can handle both linear and nonlinear loop bodies, nondeterministic values as well as conditional statements. Our evaluation shows that our approach can efficiently synthesize loop invariants for existing benchmarks from literature, but that it is also able to find invariants for nonlinear loops that today’s tools cannot handle.

Original languageEnglish
Title of host publicationStatic Analysis - 27th International Symposium, SAS 2020, Proceedings
EditorsDavid Pichardie, Mihaela Sighireanu
PublisherSpringer Science and Business Media Deutschland GmbH
Pages156-177
Number of pages22
ISBN (Print)9783030654733
DOIs
StatePublished - 2020
Event27th International Symposium on Static Analysis, SAS 2020 - Virtual, Online
Duration: 18 Nov 202020 Nov 2020

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume12389 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference27th International Symposium on Static Analysis, SAS 2020
CityVirtual, Online
Period18/11/2020/11/20

Keywords

  • CEGIS
  • Floating-point arithmetic
  • Invariant synthesis
  • Simulation

Fingerprint

Dive into the research topics of 'Counterexample- and Simulation-Guided Floating-Point Loop Invariant Synthesis'. Together they form a unique fingerprint.

Cite this