• DocumentCode
    2086693
  • Title

    Semantic Mutation Analysis of Floating-Point Comparison

  • Author

    Dan, Hanbing ; Hierons, Robert M.

  • Author_Institution
    Sch. of Inf. Syst., Comput. & Math., Brunel Univ., Uxbridge, UK
  • fYear
    2012
  • fDate
    17-21 April 2012
  • Firstpage
    290
  • Lastpage
    299
  • Abstract
    Semantic Mutation Testing (SMT) is a technique that aims to capture errors caused by possible misunderstandings of the semantics of a description language. This paper focuses on the use of SMT to represent possible problems caused by the use of Floating Point Comparison (FPC) since this feature of programming languages can lead to subtle errors. We describe six FPC semantic mutation operators that have been implemented in a C SMT tool. These operators mutate a C program by introducing tolerances using three different algorithms. The paper reports on the results of experiments that explored the proposed mutation operators. It was found that random test suites were not good at killing the resultant mutants, suggesting also that random test suites are poor at revealing FPC problems. We therefore devised a new approach to generate test data to kill these mutants. The manually generated test suites produced using the new approach were more effective in killing FPC mutants. In addition, the random test suites and manual test suites killed different sets of FPC mutants. The impact of using three different algorithms in FPC mutation was also investigated with no dominates relationships being found between the three types of FPC operators. Finally, we ran the same experiments on a computer with a different configuration. We found that slightly different sets of mutants were killed on the two computers, indicating that portability problems can be introduced by FPC.
  • Keywords
    C language; program testing; C program; SMT; description language; floating-point comparison; programming languages; semantic mutation analysis; semantic mutation testing; Algorithm design and analysis; Computers; Libraries; Optimization; Semantics; Software; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification and Validation (ICST), 2012 IEEE Fifth International Conference on
  • Conference_Location
    Montreal, QC
  • Print_ISBN
    978-1-4577-1906-6
  • Type

    conf

  • DOI
    10.1109/ICST.2012.109
  • Filename
    6200085