Open Access Open Access  Restricted Access Subscription or Fee Access

Automated Tool to Generate Optimized Control Flow Graph for C Language

Dr. Aruna Malapati, Dr.S. China Venkateswarlu, A. Sree Lakshmi, P. Suma Latha

Abstract


Path Testing is considered to be one of the best techniques since it ensures that every statement, predicate, branch is executed at least once. But the draw back is that, as the program size increases the test paths also increases and exhaustive testing is impossible. Hence we need techniques to identify the test paths so as to cover statements, predicates and branch. In our work we explore the graph theory approach and apply several operations so as to reduce the no of test paths. The main aim of this work is optimize Test paths for the given program. Consider a program that consists of loops, conditions etc., while writing test cases we will consider it as single test case but internally it contains more statements. The intent of path testing is to execute every statement at least once. To satisfy this control flow graph is generated and test cases are written. In our proposed system we try to explore the graph matrix and Euler graph methods to identify 1) Number of Test paths 2) Optimized test paths and many other operations to analyze the test paths. We automate the process of conversion of a structured program to a control flow graph represented in the form of adjacency matrix and determine minimum no of test cases needed for path testing. Manual process of determining test cases can be replaced with this automated system.

Keywords


Path Testing, Graph Matrix, Node Reduction Algorithm, Control Flow Graph

Full Text:

PDF

References


LEE J. WHITE, BOGDAN WISZNIEWSKI ―Path Testing of Computer Programs withLoops using a Tool for Simple Loop Patterns‖-

SOFTWARE—PRACTICE AND EXPERIENCE, VOL. 21(10). 1075–1102 (OCTOBER 1991)

Philipp Hoschka, Christian Huitema ―Control flow graph analysis for automatic fast path implementation‖ Published in: Proceedings «Second IEEE Workshop on the Architecture and Implementation of High Performance Communication Subsystems», Williamsburg, Virginia Sep. 1-3 1993.

Vasanth Bala, Evelyn Duesterwald, and Sanjeev Banerjia. Dynamo: A transparent dynamic

Praveen Ranjan Srivastava1 and Tai-hoon Kim ―Application of Genetic Algorithm in Software Testing‖ International Journal of Software Engineering and Its ApplicationsVol. 3, No.4, October 2009

optimization system. Proceedings of the ACM SIGPLAN ‘00 Conference on Programming Language Design and Implementation, pages 1–12, June 2000.

Fran Berman, Andrew Chien, Keith Cooper, Jack Dongarra, Ian Foster, Dennis Gannon, Lennart Johnsson, Ken Kennedy, Carl Kesselman, John Mellor-Crummey, Dan Reed, Linda Torczon, and Rich Wolski. The GrADS project: Software support for high-level grid applicationdevelopment. Inernational Journal of High Performance Computing Applications, 15(4), Winter 2001.

Preston Briggs. Drawing control-flow graphs with style. July 1994.

Preston Briggs, Keith D. Cooper, and L. Taylor Simpson. Value numbering. Software Practice and Experience, 27(6):701–724, June 1997.

David Callahan, Alan Carle, Mary W. Hall, and Ken Kennedy. Constructing the procedure call multigraph. IEEE Transactions on Software Engineering, 16(4), April 1990.


Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.