...
首页> 外文期刊>The Journal of Systems and Software >What to expect of predicates: An empirical analysis of predicates in real world programs
【24h】

What to expect of predicates: An empirical analysis of predicates in real world programs

机译:对谓词的期望:对现实世界程序中谓词的经验分析

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

One source of complexity in programs is logic expressions, i.e., predicates. Predicates define much of the functional behavior of the software. Many logic-based test criteria have been developed, including the active clause coverage (ACC) criteria and the modified condition/decision coverage (MCDC). The MCDC/ACC criteria is viewed as being expensive, which motivated us to evaluate the cost of applying these criteria using a basic proxy: the number of clauses. We looked at the frequency and percentage of predicates in 63 Java programs. Moreover, we also compared these Java programs with three programs in the safety-critical domain, in which logic-basic testing is often used. Although around 99% of the predicates within Java programs contain at most three clauses, there is a positive linear correlation between overall measures of size and the number of predicates that have more than three clauses. Furthermore, safety-critical C/C++ programs have more complex predicates than non-safety-critical programs. However, similar to the predicates in non-safety-critical programs, most predicates in safety-critical programs have up to three clauses. We conclude that non-safety-critical and safety-critical programs do not have many complex predicates. Thus, MCDC/ACC is only needed on a small fraction of the predicates.
机译:程序复杂性的一种来源是逻辑表达式,即谓词。谓词定义了软件的许多功能行为。已经开发了许多基于逻辑的测试标准,包括有效条款覆盖(ACC)标准和修改后的条件/决策覆盖(MCDC)。 MCDC / ACC标准被认为是昂贵的,这促使我们使用基本代理(子句数)来评估应用这些标准的成本。我们研究了63个Java程序中谓词的频率和百分比。此外,我们还将这些Java程序与安全关键领域中的三个程序进行了比较,在这三个程序中经常使用基于逻辑的测试。尽管Java程序中大约99%的谓词最多包含三个子句,但是在大小的总体度量与具有三个以上子句的谓词数量之间存在线性正相关。此外,安全关键的C / C ++程序比非安全关键的程序具有更复杂的谓词。但是,类似于非安全关键程序中的谓词,安全关键程序中的大多数谓词最多包含三个子句。我们得出结论,非安全关键和安全关键程序没有很多复杂的谓词。因此,仅在很小一部分谓词上就需要MCDC / ACC。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号