Test Case Generation using Symbolic Execution

Authors

  • Saumendra Pattnaik Siksha ‘O’ Anusandhan Deemed to be University
  • Bidush Kumar Sahoo Gandhi institute for Education & Technology Bhubaneswar
  • Chhabi Rani Panigrahi Rama Devi Women's University
  • Binod Kumar Pattanayak Siksha ‘O’ Anusandhan Deemed to be University
  • Bibudhendu Pati Rama Devi Women's University

DOI:

https://doi.org/10.13053/cys-26-2-3887

Keywords:

Symbolic execution, path coverage, unreachable path, test input generation

Abstract

Testing is a well-known technique for identifying errors in software programs. Testing can be done in two ways: Static analysis and Dynamic analysis. Symbolic execution plays a vital role in static analysis for test case generation and to find the unreachable path with minimum test cases. Unreachable path is a part of a program which can never be executed i.e., the symbolic execution doesn’t continue for that path and the current execution stops there. It generates a test suite for loop-free programs that is achieved by path coverage. In the best case program loops implies increase in the number of paths exponentially and in the worst case the program will not terminate. The functions of symbolic execution are test input generation, unreachable path detection, finding bugs in software programs, debugging. In this paper, we focus on dead code detection and test input generation using symbolic execution. Our execution for Java programs uses Java Path Finder (JPF) model tester. Our analysis shows that the symbolic execution method can be used to reduce symbolic execution time and to find out the unreachable path with less number of test cases.

Author Biographies

Saumendra Pattnaik, Siksha ‘O’ Anusandhan Deemed to be University

Dept. of Computer Science & Engineering

Bidush Kumar Sahoo, Gandhi institute for Education & Technology Bhubaneswar

Dept. of Computer Science & Engineering

Chhabi Rani Panigrahi, Rama Devi Women's University

Department of Computer Science

Binod Kumar Pattanayak, Siksha ‘O’ Anusandhan Deemed to be University

Dept. of Computer Science & Engineering

Bibudhendu Pati, Rama Devi Women's University

Department of Computer Science

Downloads

Published

2022-06-15