Counterexample- and Simulation-Guided Floating-Point Loop Invariant Synthesis [chapter]

Anastasiia Izycheva, Eva Darulova, Helmut Seidl
2020 Lecture Notes in Computer Science  
AbstractWe 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
more » ... re 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.
doi:10.1007/978-3-030-65474-0_8 fatcat:g62rmena2ranrmrobp6jmwqhde