Font Size: a A A

Study On The Methodology And The Technology Of Code Refactoring On Requirement Of Code Structural Analysis

Posted on:2018-11-23Degree:MasterType:Thesis
Country:ChinaCandidate:Y SunFull Text:PDF
GTID:2348330515483291Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Refactoring is a kind of important means of software evolution.It adjust or modify the internal structure of the program on the basis of the software external behavior remaining unchanged,to improve the readability,the scalability and the maintainability of the code.The code refactoring adapting to the need of the structural analysis,the key is adjusting the logical structure of the program.The multiple nested of the conditional branch statements lead to the unclear logic structure and poor readability of the code,and reduce the efficiency of dividing basic block when we generating the basic path sets.Conditional branch statements are the key statements to affect the complexity of the logic structural of the code.With the increase of nested branches,the logic complexity of the program will increase and affect the structure analysis program to a certain extent,such as the analysis and the generation of the basic path of the program.To solve these problems,a kind of code automation refactoring method adapting to the need of the structural analysis is put forward,using the compile technical to analyze the structure of the branching statements,building clear logic and non-nested branching structure,providing support for the code analysis and the generation of the basic path of the program.Multiple cases are used to evaluate the reconstruction method,further illustrate that the proposed method could reduce the complexity of the program code significantly.And after refactoring the code efficiency was not reduced significantly.The foregoing reconstruction technology is applied to the basic path generation tool which is developed by laboratory.Further improve the efficiency and accuracy of the tool.
Keywords/Search Tags:Structural analysis of program, Code refactoring, Nested branches, Compiling technology, Basic path of program
PDF Full Text Request
Related items