arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1204.4224cs.SE
收藏

软件突变稳健性

Software Mutational Robustness

Eric Schulte, Zachary P. Fry, Ethan Fast, Westley Weimer, Stephanie Forrest

摘要:

中性景观和突变鲁棒性被认为是生物学中进化性的重要推动因素。我们将这些概念应用于软件,将突变鲁棒性定义为使程序行为不变的随机突变的分数。测试用例用于度量程序行为,变异算子取自遗传编程。虽然软件通常被认为是脆弱的,小的变化会导致灾难性的行为变化,我们的研究结果显示出惊人的鲁棒性,面对随机的软件突变。本文描述了22个程序的突变鲁棒性的实证研究,包括14个生产软件项目,西门子基准测试,和4个专门构造的程序。我们发现,超过30%的随机突变相对于他们的测试套件是中性的。结果保持在所有类别的程序,在源代码和汇编指令级别的突变,在各种程序设计语言,只有弱相关的测试套件覆盖。我们得出结论,突变鲁棒性是软件的固有属性,并且中性变体(即,那些通过测试套件的)通常满足程序的原始目的或规范。基于这些结果,我们推测,中性突变可以作为一种机制,产生软件的多样性。我们证明了这一点,通过生成一个人口的中性程序的变种,并显示变种自动修复未知的错误的概率很高。中性景观也提供了一个部分的解释,最近的结果,使用演化计算自动修复软件错误。

英文摘要:

Neutral landscapes and mutational robustness are believed to be important enablers of evolvability in biology. We apply these concepts to software, defining mutational robustness to be the fraction of random mutations that leave a program's behavior unchanged. Test cases are used to measure program behavior and mutation operators are taken from genetic programming. Although software is often viewed as brittle, with small changes leading to catastrophic changes in behavior, our results show surprising robustness in the face of random software mutations. The paper describes empirical studies of the mutational robustness of 22 programs, including 14 production software projects, the Siemens benchmarks, and 4 specially constructed programs. We find that over 30% of random mutations are neutral with respect to their test suite. The results hold across all classes of programs, for mutations at both the source code and assembly instruction levels, across various programming languages, and are only weakly related to test suite coverage. We conclude that mutational robustness is an inherent property of software, and that neutral variants (i.e., those that pass the test suite) often fulfill the program's original purpose or specification. Based on these results, we conjecture that neutral mutations can be leveraged as a mechanism for generating software diversity. We demonstrate this idea by generating a population of neutral program variants and showing that the variants automatically repair unknown bugs with high probability. Neutral landscapes also provide a partial explanation for recent results that use evolutionary computation to automatically repair software bugs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑