GAssert:一个全自动的断言预言机改进工具
GAssert: A Fully Automated Tool to Improve Assertion Oracles
摘要:
这个演示展示了GASSERT的实现和使用细节,GASSERT是第一个自动改进断言预言机的工具。断言预言机是放置在程序中的可执行布尔表达式,对于所有正确的执行都应该通过(返回true),对于所有不正确的执行都应该失败(返回false)。因为设计完美的断言预言机是困难的,断言很容易出现误报(断言失败,但应该通过)和漏报(断言通过,但应该失败)。给定一个包含要改进的断言oracle的Java方法,GASSERT返回一个改进后的断言,其误报和漏报比初始断言少。在内部,GASSERT实现了一种新颖的协同进化算法,该算法探索了由两个适应度函数指导的可能断言空间,这些适应度函数奖励具有更少误报、更少误报和更小大小的断言。
英文摘要:
This demo presents the implementation and usage details of GASSERT, the first tool to automatically improve assertion oracles. Assertion oracles are executable boolean expressions placed inside the program that should pass (return true) for all correct executions and fail (return false) for all incorrect executions. Because designing perfect assertion oracles is difficult, assertions are prone to both false positives (the assertion fails but should pass) and false negatives (the assertion passes but should fail). Given a Java method containing an assertion oracle to improve, GASSERT returns an improved assertion with fewer false positives and false negatives than the initial assertion. Internally, GASSERT implements a novel co-evolutionary algorithm that explores the space of possible assertions guided by two fitness functions that reward assertions with fewer false positives, fewer false negatives, and smaller size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。