講演名 2009-03-11
算術式の最適化を対象としたCコンパイラのランダムテスト(コンパイラ,システムオンシリコンを支える設計技術)
粟津 裕亘, 石浦 菜岐佐,
PDFダウンロードページ PDFダウンロードページへ
抄録(和) 本稿では,Cコンパイラの誤りを検出する一手法として,算術式の最適化を対象としたランダムテストを提案する.本手法では,種々の整数型の変数と暗黙の型変換を含む整数型算術演算に対するコード生成,特に最適化が正しく行われていることを,ランダムに生成したプログラムによりテストする.ランダムに決定するものは,変数の型,初期値,算術式である.演算結果の期待値は生成時に計算し,テストプログラム内で比較する.この際,ゼロ除算,オーバーフロー,負の値の左シフト等未定義の動作を引き起こすプログラムを生成しないようにする.本手法に基づくランダムテストシステムのプロトタイプを実装した結果,x86用コンパイラGCC-4.1.2の誤りを1つ検出することができた.
抄録(英) This article presents random testing of C compilers focusing on arithmetic optimization. It tests if code generation and optimization are properly performed for integer arithmetic expressions containing various integer type variables and implicit casting. The types and the initial values of the variables are randomly selected and the arithmetic expressions are randomly composed to form a test program. The expected values of the expressions are precomputed by the random test program generator so that the comparison between the computed values and the expected values is done within the test program. During the preparation of the expected values, all the intermediate values are tested so that the generator do not produce programs that results in undefined behavior by zero division, overflow, nor left-shift of negative values, etc. An implemented random test system successfully detected a bug in GCC 4.1.2 for x86.
キーワード(和) Cコンパイラ / ランダムテスト / 最適化 / 算術式
キーワード(英) C compilers / random test / optimization / arithmetic expressions
資料番号 VLD2008-127
発行日

研究会情報
研究会 VLD
開催期間 2009/3/4(から1日開催)
開催地(和)
開催地(英)
テーマ(和)
テーマ(英)
委員長氏名(和)
委員長氏名(英)
副委員長氏名(和)
副委員長氏名(英)
幹事氏名(和)
幹事氏名(英)
幹事補佐氏名(和)
幹事補佐氏名(英)

講演論文情報詳細
申込み研究会 VLSI Design Technologies (VLD)
本文の言語 JPN
タイトル(和) 算術式の最適化を対象としたCコンパイラのランダムテスト(コンパイラ,システムオンシリコンを支える設計技術)
サブタイトル(和)
タイトル(英) Random Testing for Arithmetic Optimization of C compilers
サブタイトル(和)
キーワード(1)(和/英) Cコンパイラ / C compilers
キーワード(2)(和/英) ランダムテスト / random test
キーワード(3)(和/英) 最適化 / optimization
キーワード(4)(和/英) 算術式 / arithmetic expressions
第 1 著者 氏名(和/英) 粟津 裕亘 / Hironobu AWAZU
第 1 著者 所属(和/英) 関西学院大学理工学部
School of Science and Technology, Kwansei Gakuin University
第 2 著者 氏名(和/英) 石浦 菜岐佐 / Nagisa ISHIURA
第 2 著者 所属(和/英) 関西学院大学理工学部
School of Science and Technology, Kwansei Gakuin University
発表年月日 2009-03-11
資料番号 VLD2008-127
巻番号(vol) vol.108
号番号(no) 478
ページ範囲 pp.-
ページ数 4
発行日