Solvable Polynomial Ideals: The Ideal Reflection for Program Analysis
Preprint
Abstract
This paper presents a program analysis method that generates program summaries involving polynomial arithmetic. Our approach builds on prior techniques that use solvable polynomial maps for summarizing loops. These techniques are able to generate all polynomial invariants for a restricted class of programs, but cannot be applied to programs outside of this class -- for instance, programs with nested loops, conditional branching, unstructured control flow, etc. There currently lacks approaches to apply these prior methods to the case of general programs. This paper bridges that gap. Instead of restricting the kinds of programs we can handle, our method abstracts every loop into a model that can be solved with prior techniques, bringing to bear prior work on solvable polynomial maps to general programs. While no method can generate all polynomial invariants for arbitrary programs, our method establishes its merit through a monotonicty result. We have implemented our techniques, and tested them on a suite of benchmarks from the literature. Our experiments indicate our techniques show promise on challenging verification tasks requiring non-linear reasoning.Keywords
All Related Versions
This publication has 33 references indexed in Scilit:
- Competition on Software Verification and Witness Validation: SV-COMP 20232023
- Solving Invariant Generation for Unsolvable Loops2022
- Algebraic Program Analysis2021
- Reflections on Termination of Linear Loops2021
- Termination of Polynomial Loops2020
- Loop Summarization with Rational Vector Addition Systems2019
- Invariant Generation for Multi-Path Loops with Polynomial Assignments2017
- Polynomial Invariants by Linear Algebra2016
- Ideals, Varieties, and Algorithms2015
- A Note on Karr’s Algorithm2004