Data-Driven Loop Invariant Inference with Automatic Feature Synthesis
Preprint
Abstract
We present LoopInvGen, a tool for generating loop invariants that can provably guarantee correctness of a program with respect to a given specification. We extend the data-driven approach to inferring sufficient loop invariants from a collection of program states. In contrast to existing data-driven techniques, LoopInvGen is not restricted to a fixed set of features -- atomic predicates that are composed together to build complex loop invariants. Instead, we start with no initial features, and use program synthesis techniques to grow the set on demand. We compare with existing static and dynamic tools for loop invariant inference, and show that LoopInvGen enables a less onerous and more expressive form of inference.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- Data-driven precondition inference with learned featuresACM SIGPLAN Notices, 2016
- Learning invariants using decision trees and implication counterexamplesACM SIGPLAN Notices, 2016
- Inductive invariant generation via abductive inferenceACM SIGPLAN Notices, 2013
- Recursive Program Synthesis2013
- An Introduction to Computational Learning Theory1994