Test Case Generation for Adequacy of Floating-point to Fixed-point Conversion

  • Authors:
  • Tuan-Hung Pham;Anh-Hoang Truong;Wei-Ngan Chin;Takenobu Aoshima

  • Affiliations:
  • Department of Software Engineering, College of Technology, Vietnam National University, Hanoi, 144 Xuan Thuy, Hanoi, Vietnam;Department of Software Engineering, College of Technology, Vietnam National University, Hanoi, 144 Xuan Thuy, Hanoi, Vietnam;Department of Computer Science, School of Computing, National University of Singapore, 3 Science Drive 2, Singapore 117543;Panasonic R&D Center Vietnam, No. 1 Lang-Hoa Lac, Hanoi, Vietnam

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Porting an application written for personal computer to embedded devices requires conversion of floating-point numbers and operations into fixed-point ones. Testing the conversion hence requires the latter be as close as possible to the former. The closeness is orthogonal to code coverage and requires different strategies to generate a test suite that reveals the gap between the two functions. We introduce a new test adequacy criterion and propose several metrics to quantify the closeness of two functions. After that we propose a method to generate a better test suite from a given one for the test adequacy criteria. We also show experimental results on some well-known mathematical functions.