首页    期刊浏览 2024年12月03日 星期二
登录注册

文章基本信息

  • 标题:Reinforcing Random Testing of Arithmetic Optimization of C Compilers by Scaling up Size and Number of Expressions
  • 本地全文:下载
  • 作者:Eriko Nagai ; Atsushi Hashimoto ; Nagisa Ishiura
  • 期刊名称:Information and Media Technologies
  • 电子版ISSN:1881-0896
  • 出版年度:2014
  • 卷号:9
  • 期号:4
  • 页码:456-465
  • DOI:10.11185/imt.9.456
  • 出版社:Information and Media Technologies Editorial Board
  • 摘要:This paper presents an enhanced method of testing validity of arithmetic optimization of C compilers using randomly generated programs. Its bug detection capability is improved over an existing method by 1) generating longer arithmetic expressions and 2) accommodating multiple expressions in test programs. Undefined behavior in long expressions is successfully eliminated by modifying problematic subexpressions during computation of expected values for the expressions. A new method for including floating point operations into compiler random testing is also proposed. Furthermore, an efficient method for minimizing error inducing test programs is presented, which utilizes binary search. Experimental results show that a random test system based on our method has higher bug detection capability than existing methods; it has detected more bugs than previous method in earlier versions of GCCs and has revealed new bugs in the latest versions of GCCs and LLVMs.
  • 关键词:compiler validation;random testing
国家哲学社会科学文献中心版权所有