Failure-Directed Program Trimming (Extended Version)
Abstract
This paper describes a new program simplification technique called program trimming that aims to improve the scalability and precision of safety checking tools. Given a program , program trimming generates a new program such that and are equi-safe (i.e., has a bug if and only if has a bug), but has fewer execution paths than . Since many program analyzers are sensitive to the number of execution paths, program trimming has the potential to improve the effectiveness of safety checking tools. In addition to introducing the concept of program trimming, this paper also presents a lightweight static analysis that can be used as a pre-processing step to remove program paths while retaining equi-safety. We have implemented the proposed technique in a tool called Trimmer and evaluate it in the context of two program analysis techniques, namely abstract interpretation and dynamic symbolic execution. Our experiments show that program trimming significantly improves the effectiveness of both techniques.
Cite
@article{arxiv.1706.04468,
title = {Failure-Directed Program Trimming (Extended Version)},
author = {Kostas Ferles and Valentin Wüstholz and Maria Christakis and Isil Dillig},
journal= {arXiv preprint arXiv:1706.04468},
year = {2017}
}