可组合归纳规划中中间值的可组合性
The Composability of Intermediate Values in Composable Inductive Programming
摘要:
据信,包括中间值的机制使得可组合归纳编程(CIP)能够用于产生任何大小的软件。我们提出了一项研究的结果,调查程序大小,中间值的数量和测试用例的数量之间的关系,用于指定程序使用CIP。在这项研究中,96,000个不同大小的程序被随机生成,分解成片段并转化为测试用例。然后,测试用例被用于使用Zoea重新生成原始程序的新版本。结果表明,在所研究的大小范围内,中间值的数量与再生程序大小之间以及测试用例的数量与再生程序大小之间存在线性关系。此外,随着程序规模的增加,权衡测试用例数量和中间值数量的范围也在增加,反之亦然。
英文摘要:
It is believed that mechanisms including intermediate values enable composable inductive programming (CIP) to be used to produce software of any size. We present the results of a study that investigated the relationships between program size, the number of intermediate values and the number of test cases used to specify programs using CIP. In the study 96,000 programs of various sizes were randomly generated, decomposed into fragments and transformed into test cases. The test cases were then used to regenerate new versions of the original programs using Zoea. The results show linear relationships between the number of intermediate values and regenerated program size, and between the number of test cases and regenerated program size within the size range studied. In addition, as program size increases there is increasing scope for trading off the number of test cases against the number of intermediate values and vice versa.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。