×

Method and system for generating a computer program test suite using dynamic symbolic execution

  • US 5,761,408 A
  • Filed: 02/12/1996
  • Issued: 06/02/1998
  • Est. Priority Date: 01/16/1996
  • Status: Expired due to Term
First Claim
Patent Images

1. A method using a computer for generating a test suite for a computer program, the computer program comprising program statements and program variables, including at least one input statement having one or more input variables, grouped into code blocks and stored in a program database, the test suite comprising sets of inputs, each of the sets of inputs corresponding to each of the input statements, comprising the steps of:

  • reading the program statements corresponding to a candidate code block from the program database;

    representing each of the input variables for each input statement and each of the program variables in symbolic form as a symbolic memory value and transforming each program statement dependent on such an input variable into a symbolic expression;

    creating a trial set of inputs for each of the input statements by finding a solution to the symbolic expression comprising actual input values corresponding to each symbolic memory value using dynamic symbolic exeuction;

    performing an execution run of the computer program using the trial set of inputs and analyzing results obtained from the execution run for coverage of the candidate code block; and

    storing the trial set of inputs into the test suite if coverage of the candidate code block was obtained.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×