Data-driven precondition inference with learned features
Authors:
Open Access
- 2 June 2016
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 51 (6) , 42-56
Abstract
We extend the data-driven approach to inferring preconditions for code from a set of test executions. Prior work requires a fixed set of features, atomic predicates that define the search space of possible preconditions, to be specified in advance. In contrast, we introduce a technique for on-demand feature learning, which automatically expands the search space of candidate preconditions in a targeted manner as necessary. We have instantiated our approach in a tool called PIE. In addition to making precondition inference more expressive, we show how to apply our feature-learning technique to the setting of data-driven loop invariant inference. We evaluate our approach by using PIE to infer rich preconditions for black-box OCaml library functions and using our loop-invariant inference algorithm as part of an automatic program verifier for C++ programs.Keywords
Funding Information
- NSF (1527923)
This publication has 48 references indexed in Scilit:
- Recursive Program Synthesis2013
- Explain: A Tool for Performing Abductive Inference2013
- Verification as Learning Geometric Concepts2013
- Compositional Shape Analysis by Means of Bi-AbductionJournal of the ACM, 2011
- From Tests to Proofs2009
- Sufficient Preconditions for Modular Assertion CheckingLecture Notes in Computer Science, 2008
- The Daikon system for dynamic detection of likely invariantsScience of Computer Programming, 2007
- Abductive analysis of modular logic programsJournal of Logic and Computation, 1998
- Support-vector networksMachine Learning, 1995
- Induction of decision treesMachine Learning, 1986