skip to main content
10.1145/1101908.1101958acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
Article

Constraint-based test data generation in the presence of stack-directed pointers

Published:07 November 2005Publication History

ABSTRACT

Constraint-Based Test data generation (CBT) exploits constraint satisfaction techniques to generate test data able to kill a given mutant or to reach a selected branch in a program. When pointer variables are present in the program, aliasing problems may arise and may lead to the failure of current CBT approaches. In our work, we propose an overall CBT method that exploits the results of an intraprocedural points-to analysis and provides two specific constraint combinators for automatically generating test data able to reach a selected branch. Our approach correctly handles multi-levels stack-directed pointers that are mainly used in real-time control systems. The method has been fully implemented in the test data generation tool INKA and first experiences in applying it to a variety of existing programs tend to show the interest of the approach.

References

  1. DeMillo, R.A. and Offut, J.A., "Constraint-based automatic test data generation", IEEE Trans on Software Eng., vol. 17, no. 9, pp. 900--910, Sep. 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Offut, J.A. and Jin, Z. and Pan J., "The dynamic domain reduction procedure for test data generation", Software--Practice and Exp., vol. 29, no. 2, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Gotlieb, A. and Botella, B. and Rueher, M., "Automatic test data generation using constraint solving techniques", in Proc. of the Int. Symp. on Software Testing and Analysis (ISSTA'98), Clearwater Beach, FL, USA, Mar. 1998, pp. 53--62.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Gotlieb, A. and Botella, B. and Rueher, M., "A clp framework for computing structural test data", in Proceedings of Computational Logic (CL'2000), London, UK, July 2000, LNAI 1891, pp. 399--413.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Meudec, C., "ATGen: automatic test data generation using constraint logic programming and symbolic execution", Software Testing, Verification and Reliability, vol. 11, no. 2, pp. 81--96, June 2001.]]Google ScholarGoogle ScholarCross RefCross Ref
  6. K. Marriott and P.J. Stuckey, Programming with Constraints: An Introduction, The MIT Press, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Axlog Ingenierie and Thales Airborne Systems, INKA--V1 User's Manual, december 2002.]]Google ScholarGoogle Scholar
  8. Lapkowski, C. and Hendren, L.J., "Extended SSA numbering: Introducing SSA properties to languages with multi--level pointers", in 7th Proc. of the Conf. on Compilers Construction (CC'98), Lisbon, Portugal, Mar. 1998, pp. 128--143, LNCS 1383.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Ostrand, T.J. and Weyuker, E.J., "Data flow-based test adequacy analysis for languages with pointers", in In Proceedings of the Symposium on Testing, Analysis, and Verification (TAV'91), Oct. 1991, pp. 74--86.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Livshits, V. and Lam, M., "Tracking pointers with path and context sensitivity for bug detection in c programs", in ACM Symp. on the Foundations of Soft. Eng. (ESEC/FSE'03), Sep. 2003, pp. 317--326.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Binkley, D.W. and Lyle, J.R., "Application of the pointer state subgraph to static program slicing", Jour. of Sys. and Soft., vol. 40, no. 1, pp. 17--27,1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Constraint-based test data generation in the presence of stack-directed pointers

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      ASE '05: Proceedings of the 20th IEEE/ACM International Conference on Automated Software Engineering
      November 2005
      482 pages
      ISBN:1581139934
      DOI:10.1145/1101908

      Copyright © 2005 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 7 November 2005

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      Overall Acceptance Rate82of337submissions,24%

      Upcoming Conference

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader