The program dependence graph in a software development environment

1984 ◽  
Vol 19 (5) ◽  
pp. 177-184 ◽  
Author(s):  
Karl J. Ottenstein ◽  
Linda M. Ottenstein
Author(s):  
Songsakdi Rongviriyapanish ◽  
Nopphawit Karunlanchakorn ◽  
Panita Meananeatra

Automatic application of refactoring techniques can help developer save effort in removing bad smells from their code which improves software maintainability. To automatically remove long method bad smell, which is one of the most serious bad smells, we need an automatic application of six refactoring techniques. However, only one refactoring technique “Extract Method” can be automated. In this research, we propose an algorithm to identify code locations which will be extracted for creating a query method. We create a program dependence graph from the code with a long method bad smell and use a technique of program slicing to identify the code of a query method to replace a temporary variable. This is the most important step towards an automatic application of refactoring technique “replace temp with query”. We conducted an experiment to compare the correctness of refactored code between using our algorithm and using IntelliJ IDEA that is a java integrated development environment (IDE) with a feature of automatic refactoring. The result confirmed that our proposed algorithm can identify codes to form a query method for replacing a temporary variable in a long method with higher accuracy than IntelliJ IDEA almost three times


Author(s):  
N. V. Goryuk ◽  

The article investigates automation methods and means of integration of static source security analysis technology. The process of software security analysis, which is implemented by the technology of static analysis of the source code, is studied, and the methods of solving the problem of automation and integration of the technology into the source code development environment are offered. The perspective direction of further development of the technology of static analysis of the source code is established.


Sign in / Sign up

Export Citation Format

Share Document