一句话:提出 GenTree,用决策树迭代学习配置项与代码覆盖之间的交互公式,高效刻画可配置程序的配置空间。
现代软件常高度可配置,配置项之间复杂的交互使开发、测试与分析更加困难。GenTree 是一种新的动态分析,自动学习程序的交互,即描述配置项设置如何映射到代码覆盖的逻辑公式。它采用迭代精化方法:先在小规模配置样本上运行程序获得覆盖数据,用定制的分类算法构建表示交互候选的决策树,再分析这些树生成新配置,以在下一轮中进一步精化树和交互。作者在跨 4 种语言的 17 个可配置系统上实验,表明 GenTree 仅使用很小一部分配置空间就能高效找到精确交互。
Modern software systems are increasingly designed to be highly configurable, which increases flexibility but can make programs harder to develop, test, and analyze, e.g., how configuration options are set to reach certain locations, what characterizes the configuration space of an interesting or buggy program behavior? We introduce GenTree, a new dynamic analysis that automatically learns a program's interactions - logical formulae that describe how configuration option settings map to code coverage. GenTree uses an iterative refinement approach that runs the program under a small sample of configurations to obtain coverage data; uses a custom classifying algorithm on these data to build decision trees representing interaction candidates; and then analyzes the trees to generate new configurations to further refine the trees and interactions in the next iteration. Our experiments on 17 configurable systems spanning 4 languages show that GenTree efficiently finds precise interactions using a tiny fraction of the configuration space.