Learning a strategy for adapting a program analysis via bayesian optimisation
Authors:
Open Access
- 23 October 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 572-588
Abstract
Building a cost-effective static analyser for real-world programs is still regarded an art. One key contributor to this grim reputation is the difficulty in balancing the cost and the precision of an analyser. An ideal analyser should be adaptive to a given analysis task, and avoid using techniques that unnecessarily improve precision and increase analysis cost. However, achieving this ideal is highly nontrivial, and it requires a large amount of engineering efforts. In this paper we present a new approach for building an adaptive static analyser. In our approach, the analyser includes a sophisticated parameterised strategy that decides, for each part of a given program, whether to apply a precision-improving technique to that part or not. We present a method for learning a good parameter for such a strategy from an existing codebase via Bayesian optimisation. The learnt strategy is then used for new, unseen programs. Using our approach, we developed partially flow- and context-sensitive variants of a realistic C static analyser. The experimental results demonstrate that using Bayesian optimisation is crucial for learning from an existing codebase. Also, they show that among all program queries that require flow- or context-sensitivity, our partially flow- and context-sensitive analysis answers the 75% of them, while increasing the analysis cost only by 3.3x of the baseline flow- and context-insensitive analysis, rather than 40x or more of the fully sensitive version.Keywords
This publication has 32 references indexed in Scilit:
- A Data Driven Approach for Algebraic Loop Invariants2013
- Verification as Learning Geometric Concepts2013
- From tests to proofsInternational Journal on Software Tools for Technology Transfer, 2012
- Typestate-based semantic code search over partial programsACM SIGPLAN Notices, 2012
- Interpolants as Classifiers2012
- HSF(C): A Software Verifier Based on Horn ClausesLecture Notes in Computer Science, 2012
- Sequential Model-Based Optimization for General Algorithm Configuration2011
- Automatically Refining Abstract Interpretations2008
- Software Verification with BLAST2003
- Application of Bayesian approach to numerical methods of global and stochastic optimizationJournal of Global Optimization, 1994