• DocumentCode
    707993
  • Title

    Generating Succinct Test Cases Using Don´t Care Analysis

  • Author

    Cuong Nguyen ; Yoshida, Hiroaki ; Prasad, Mukul ; Ghosh, Indradeep ; Sen, Koushik

  • Author_Institution
    Dept. of Comput. Sci., Univ. of California, Berkeley, Berkeley, CA, USA
  • fYear
    2015
  • fDate
    13-17 April 2015
  • Firstpage
    1
  • Lastpage
    10
  • Abstract
    We study the problem of reducing test cases generated by bit vector based symbolic execution test generators. In particular, we first consider a guileless test case generation approach that generates assignment statements for each symbolic scalars, array and structure elements and object fields. We show that test cases generated by this approach can be significantly verbose. We then propose a method for making the generated test cases more succinct using a novel analysis entitled don´t care analysis. Don´t care analysis identifies assignment statements that can be safely removed from the test cases without affecting the overall code coverage. Our algorithm is based on binary and delta-debugging search. Because it exploits the knowledge of the internal SAT solver, it is effective and efficient in practice. To our knowledge, this is the first fully automatic approach that reduces the sizes of test cases generated using symbolic execution. We implement our test case reduction technique for the KLEE test generation tool and evaluate on 295 programs and functions. Our results are encouraging: in average, the reduced test cases are 50 times smaller than the test cases generated by the guileless test case generator. In addition, since our don´t care analysis is tightly integrated into the test case generation tool, its overhead to the overall test generation process is negligible.
  • Keywords
    computability; program testing; symbol manipulation; SAT solver; bit vector; dont care analysis; symbolic execution test generator; test case generation; Aggregates; Algorithm design and analysis; Arrays; Context; Electronic mail; Engines; Generators;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification and Validation (ICST), 2015 IEEE 8th International Conference on
  • Conference_Location
    Graz
  • Type

    conf

  • DOI
    10.1109/ICST.2015.7102590
  • Filename
    7102590