Logo image
When Does My Program Do This? Learning Circumstances of Software Behavior
Conference proceeding

When Does My Program Do This? Learning Circumstances of Software Behavior

Alexander Kampmann, Nikolas Havrikov, Ezekiel O. Soremekun and Andreas Zeller
Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp.1228-1239
01/01/2020

Abstract

Computer Science Computer Science, Software Engineering Science & Technology Technology
A program fails. Under which circumstances does the failure occur? Our ALHAZEN approach starts with a run that exhibits a particular behavior and automatically determines input features associated with the behavior in question: (1) We use a grammar to parse the input into individual elements. (2) We use a decision tree learner to observe and learn which input elements are associated with the behavior in question. (3) We use the grammar to generate additional inputs to further strengthen or refute hypotheses as learned associations. (4) By repeating steps 2 and 3, we obtain a theory that explains and predicts the given behavior. In our evaluation using inputs for find, grep, NetHack, and a JavaScript transpiler, the theories produced by ALHAZEN predict and produce failures with high accuracy and allow developers to focus on a small set of input features: "grep fails whenever the --fixed st rings option is used in conjunction with an empty search string".
url
https://doi.org/10.1145/3368089.3409687View
Published (Version of record) Open

Metrics

1 Record Views

Details

Logo image