期刊文献+
共找到15篇文章
< 1 >
每页显示 20 50 100
Developing a Clang Libtooling-Based Refactoring Tool for CUDA GPU Programming
1
作者 Kian Nejadfard Janche Sang 《Journal of Software Engineering and Applications》 2024年第2期89-108,共20页
Refactoring tools, whether fully automated or semi-automated, are essential components of the software development life cycle. As software libraries and frameworks evolve over time, it’s crucial for programs utilizin... Refactoring tools, whether fully automated or semi-automated, are essential components of the software development life cycle. As software libraries and frameworks evolve over time, it’s crucial for programs utilizing them to also evolve to remain compatible with modern advancements. Take, for example, NVIDIA CUDA’s platform for general-purpose GPU programming. Embracing the more contemporary unified memory architecture offers several benefits, such as simplifying program source code, reducing bugs stemming from manual memory management between host and device memory, and optimizing memory transfer through automated memory handling. This paper describes our development of a refactoring tool based on Clang’s Libtooling to facilitate this transition automatically, thereby relieving developers from the burden and risks associated with manually refactoring large code bases. 展开更多
关键词 refactoring CUDA Unified Memory Clang Libtooling
下载PDF
用Refactoring来改善设计
2
作者 周警伟 罗晓沛 《计算机仿真》 CSCD 2002年第4期124-125,共2页
面向对象的技术提高了软件重用能力 ,人们经验的不断总结也不断地改善了设计方法。如何去改善我们原有的系统是一个比较复杂的课题 ,也是一个不可回避的问题。这篇论文论述了如何使用Refactoring技术来改善原有设计。
关键词 refactoring 软件开发 面向对象 软件重用 软件重构
下载PDF
Source-to-Source Refactoring and Elimination of Global Variables in C Programs
3
作者 Hemaiyer Sankaranarayanan Prasad A. Kulkarni 《Journal of Software Engineering and Applications》 2013年第5期264-273,共10页
A global variable in C/C++ is one that is declared outside a function, and whose scope extends the lifetime of the entire program. Global variables cause problems for program dependability, maintainability, extensibil... A global variable in C/C++ is one that is declared outside a function, and whose scope extends the lifetime of the entire program. Global variables cause problems for program dependability, maintainability, extensibility, verification, and thread-safety. However, global variables can also make coding more convenient and improve program performance. We have found the use of global variables to remain unabated and extensive in real-world software. In this paper we present a source-to-source refactoring tool to automatically detect and localize global variables in a program. We implement a compiler based transformation to find the best location to redefine each global variable as a local. For each global, our algorithm initializes the corresponding new local variable, passes it as an argument to necessary functions, and updates the source lines that used the global to now instead use the corresponding local or argument. We also characterize the use of global variables in standard benchmark programs. We study the effect of our transformation on static program properties, such as change in the number of function arguments and program state visibility. Additionally, we quantify dynamic program features, including memory and runtime performance, before and after our localizing transformation. 展开更多
关键词 GLOBAL Variable Program refactoring COMPILER TRANSFORMATIONS
下载PDF
Experimental study on surface integrity refactoring changes of Ti-17 under milling-ultrasonic rolling composite process 被引量:2
4
作者 Zheng Zhou Chang-Feng Yao +2 位作者 Liang Tan Ya Zhang Yi Fan 《Advances in Manufacturing》 SCIE EI CAS CSCD 2023年第3期492-508,共17页
Ultrasonic rolling is an advanced non-cutting surface strengthening method that combines traditional rolling with ultrasonic vibration.In this research,the experiment of orthogonal end milling-ultrasonic rolling compo... Ultrasonic rolling is an advanced non-cutting surface strengthening method that combines traditional rolling with ultrasonic vibration.In this research,the experiment of orthogonal end milling-ultrasonic rolling composite process has been carried out.The surface integrity refactoring changes and its mechanism of Ti-17 titanium alloy during the milling-ultrasonic rolling composite process has been studied and analyzed by the test and analysis of the surface geometric characteristics,residual stress,microhardness and microstructure before and after ultrasonic rolling.The residual stress and microhardness gradient distribution were characterized by cosine decay function and exponential decay function.All indicators of surface integrity were significantly improved after ultrasonic rolling.The study demonstrates that the reduction effect of the surface roughness by ultrasonic rolling process is inversely proportional to the initial surface roughness value.The ultrasonic rolling can only change the distribution form of the surface topography when the initial surface roughness is small.In addition,the improvement effect of ultrasonic rolling on surface compressive residual stress and microhardness decreased with the increase of initial milled surface roughness and surface compressive residual stress due to the factors such as energy absorption efficiency and mechanical properties changes of surface materials.A better ultrasonic rolled surface can be obtained by controlling the roughness and residual compressive stress of the initial milling surface to a small level. 展开更多
关键词 Ti-17 End milling Ultrasonic rolling Surface integrity refactoring changes
原文传递
Refactoring Software Packages via Community Detection in Complex Software Networks 被引量:4
5
作者 Wei-Feng Pan Bo Jiang Bing Li 《International Journal of Automation and computing》 EI CSCD 2013年第2期157-166,共10页
An intrinsic property of software in a real-world environment is its need to evolve, which is usually accompanied by the increase of software complexity and deterioration of software quality, making software maintenan... An intrinsic property of software in a real-world environment is its need to evolve, which is usually accompanied by the increase of software complexity and deterioration of software quality, making software maintenance a tough problem. Refactoring is regarded as an effective way to address this problem. Many refactoring approaches at the method and class level have been proposed. But the research on software refactoring at the package level is very little. This paper presents a novel approach to refactor the package structures of object oriented software. It uses software networks to represent classes and their dependencies. It proposes a constrained community detection algorithm to obtain the optimized community structures in software networks, which also correspond to the optimized package structures. And it finally provides a list of classes as refactoring candidates by comparing the optimized package structures with the real package structures. The empirical evaluation of the proposed approach has been performed in two open source Java projects, and the benefits of our approach are illustrated in comparison with the other three approaches. 展开更多
关键词 refactoring community detection complex networks PACKAGE SOFTWARE
原文传递
A Feature Model Based Framework for Refactoring Software Product Line Architecture 被引量:3
6
作者 Mohammad Tanhaei Jafar Habibi Seyed-Hassan Mirian-Hosseinabadi 《Journal of Computer Science & Technology》 SCIE EI CSCD 2016年第5期951-986,共36页
Software product line (SPL) is an approach used to develop a range of software products with a high degree of similarity. In this approach, a feature model is usually used to keep track of similarities and differenc... Software product line (SPL) is an approach used to develop a range of software products with a high degree of similarity. In this approach, a feature model is usually used to keep track of similarities and differences. Over time, as modifications are made to the SPL, inconsistencies with the feature model could arise. The first approach to dealing with these inconsistencies is refactoring. Refactoring consists of small steps which, when accumulated, may lead to large-scale changes in the SPL, resulting in features being added to or eliminated from the SPL. In this paper, we propose a framework for refactoring SPLs, which helps keep SPLs consistent with the feature model. After some introductory remarks, we describe a formal model for representing the feature model. We express various refactoring patterns applicable to the feature model and the SPL formally, and then introduce an algorithm for finding them in the SPL. In the end, we use a real-world case study of an SPL to illustrate the applicability of the framework introduced in the paper. 展开更多
关键词 software product line feature model refactoring software architecture
原文传递
Major motivations for extract method refactorings: analysis based on interviews and change histories
7
作者 Wenmei LIU Hui LIU 《Frontiers of Computer Science》 SCIE EI CSCD 2016年第4期644-656,共13页
Extract method is one of the most popular soft- ware refactorings. However, little work has been done to investigate or validate the major motivations for such refactorings. Digging into this issue might help research... Extract method is one of the most popular soft- ware refactorings. However, little work has been done to investigate or validate the major motivations for such refactorings. Digging into this issue might help researchers to improve tool support for extract method refactorings, e.g., proposing better tools to recommend refactoring opportunities, and to select fragments to be extracted. To this end, we conducted an interview with 25 developers, and our results suggest that current reuse, decomposition of long methods, clone resolution, and future reuse are the major motivations for extract method refactorings. We also validated the results by analyzing the refactoring history of seven open-source applications. Analysis results suggest that current reuse was the primary motivation for 56% of extract method refactorings, decomposition of methods was the primary motivation for 28% of extract method refactorings, and clone resolution was the primary motivation for 16% of extract method refactorings. These findings might suggest that recommending extract method opportunities by analyzing only the inner structure (e.g., complexity and length) of methods alone would miss many extract method opportunities. These findings also suggest that extract method refactorings are often driven by current and immediate reuse. Consequently, how to recognize or predict reuse requirements timely during software evolution may play a key role in the recommendation and automation of extract method refactorings. We also investigated the likelihood for the extracted methods to be reused in future, and our results suggest that such methods have a small chance (12%) to be reused in future unless the extracted fragment could be reused immediately in software evolution and extracting such a fragment can resolve existing clones at the same time. 展开更多
关键词 software refactoring extract method MOTIVATION data mining software quality
原文传递
Pragmatic model transformations for refactoring in Scilab/Xcos
8
作者 Umut Durak 《International Journal of Modeling, Simulation, and Scientific Computing》 EI 2016年第1期39-61,共23页
Model-Based Development has become an industry wide standard paradigm.As an open source alternative,Scilab/Xcos is being widely employed as a hybrid dynamic systems modeling tool.With the increasing efficiency in impl... Model-Based Development has become an industry wide standard paradigm.As an open source alternative,Scilab/Xcos is being widely employed as a hybrid dynamic systems modeling tool.With the increasing efficiency in implementation using graphical model development and code generation,the modeling and simulation community is struggling with assuring quality as well as maintainability and extendibility.Refactoring is defined as an evolutionary modernization activity where,most of the time,the structure of the artifact is changed to alter its quality characteristics,while keeping its behavior unchanged.It has been widely established as a technique for textual programming languages to improve the code structure and quality.While refactoring is also regarded as one of the key practices of model engineering,the methodologies and approaches for model refactoring are still under development.Architecture-Driven Modernization(ADM)has been introduced by the software engineering community as a model-based approach to software modernization,in which the implicit information that lies in software artifacts is extracted to models and model transformations are applied for modernization tasks.Regarding refactoring as a low level modernization task,the practices from ADM are adaptable.Accordingly,this paper proposes a model-based approach for model refactoring in order to come up with more efficient and effective model refactoring methodology that is accessible and extendable by modelers.Like other graphical modeling tools,Scilab/Xcos also possesses a formalized model specification conforming to its implicit metamodel.Rather than proposing another metamodel for knowledge extraction,this pragmatic approach proposes to conduct in place model-to-model transformations for refactoring employing the Scilab/Xcos model specification.To construct a structured model-based approach,the implicit Scilab/Xcos metamodel is explicitly presented utilizing ECORE as a meta-metamodel.Then a practical model transformation approach is established based on Scilab scripting.A Scilab toolset is provided to the modeler for in-place model-to-model transformations.Using a sample case study,it is demonstrated that proposed model transformation functions in Scilab provide a valuable refactoring tool. 展开更多
关键词 Model refactoring Scilab/Xcos model engineering model transformations
原文传递
Script-Based GPU-Ready ELM Development for Continuous Code Integration
9
作者 Peter Schwartz Dali Wang +1 位作者 Fengming Yuan Peter Thornton 《Journal of Computer and Communications》 2024年第5期102-106,共5页
Designing and optimizing complex scientific code for new computing architectures is a challenging task. To address this issue in the E3SM land model (ELM) development, we developed a software tool called SPEL, which f... Designing and optimizing complex scientific code for new computing architectures is a challenging task. To address this issue in the E3SM land model (ELM) development, we developed a software tool called SPEL, which facilitates code generation, verification, and performance tuning using compiler directives within a Function Unit Test framework. In this paper, we present a SPEL extension that leverages the version control system (e.g., Git) to autonomous code generation and demonstrate its application to continuous code integration and development of the ELM software system. The study can benefit the scientific software development community. 展开更多
关键词 E3SM Land Model GPU Code Porting Continuous Code Integration SPEL Scientific Software Refactorization
下载PDF
基于面向对象技术重构遗留系统 被引量:1
10
作者 薛峰 曹晓黎 《计算机与数字工程》 2007年第5期51-52,59,共3页
针对目前正在运行中的部分遗留系统,通过面向对象的分析和设计方法,将其由面向过程的设计和实现重构改造成面向对象的实现,运用POSIX线程模式来取代遗留系统中的进程模式,以提升系统的功能、性能以及系统的可维护性,节省研发和维护成本。
关键词 遗留系统 消息队列 OOA/D UML POSIX线程 模式 Refactor
下载PDF
A Recommendation Approach Based on Bayesian Networks for Clone Refactor
11
作者 Ye Zhai Celimuge Wu +1 位作者 Dongsheng Liu Rongrong She 《Computers, Materials & Continua》 SCIE EI 2020年第9期1999-2012,共14页
Reusing code fragments by copying and pasting them with or without minor adaptation is a common activity in software development.As a result,software systems often contain sections of code that are very similar,called... Reusing code fragments by copying and pasting them with or without minor adaptation is a common activity in software development.As a result,software systems often contain sections of code that are very similar,called code clones.Code clones are beneficial in reducing software development costs and development risks.However,recent studies have indicated some negative impacts as a result.In order to effectively manage and utilize the clones,we design an approach for recommending refactoring clones based on a Bayesian network.Firstly,clone codes are detected from the source code.Secondly,the clones that need to be refactored are identified,and the static and evolutions features are extracted to build the feature database.Finally,the Bayesian network classifier is used for training and evaluating the classification results.Based on more than 640 refactor examples of five open source software developed in C,we observe a considerable enhancement.The results show that the accuracy of the approach is larger than 90%.We believe our approach will provide a more accurate and reasonable code refactoring and maintenance advice for software developers. 展开更多
关键词 Clone code clone refactor feature extraction Bayesian network
下载PDF
浅谈代码重构
12
作者 杨娴艳 《中文科技期刊数据库(全文版)工程技术》 2016年第9期0330-0330,共1页
本文揭示了代码重构的详细过程,阐述和解释了重构的原理和最佳实践方式,并给出了代码重构的改善建议。本文提出的重构过程将帮助我们改善代码的质量和可读性,减少软件开发过程的风险。
关键词 重构 面向对象分析 面向对象设计 Refactor 代码
下载PDF
Search-Based Cost-Effective Software Remodularization
13
作者 Rim Mahouachi 《Journal of Computer Science & Technology》 SCIE EI CSCD 2018年第6期1320-1336,共17页
Software modularization is a technique used to divide a software system into independent modules (packages)that are expected to be cohesive and loosely coupled. However, as software systems evolve over time to meet ... Software modularization is a technique used to divide a software system into independent modules (packages)that are expected to be cohesive and loosely coupled. However, as software systems evolve over time to meet new require-ments, their modularizations become complex and gradually loose their quality. Thus, it is challenging to automaticallyoptimize the classes' distribution in packages, also known as remodularization. To alleviate this issue, we introduce a newapproach to optimize software modularization by moving classes to more suitable packages. In addition to improving designquality and preserving semantic coherence, our approach takes into consideration the refactoring effort as an objective initself while optimizing software modularization. We adapt the Elitist Non-dominated Sorting Genetic Algorithm (NSGA-Ⅱ)of Deb et al. to find the best sequence of refactorings that 1) maximize structural quality, 2) maximize semantic cohesivenessof packages (evaluated by a semantic measure based on WordNet), and 3) minimize the refactoring effort. We report theresults of an evaluation of our approach using open-source projects, and we show that our proposal is able to produce acoherent and useful sequence of recommended refactorings both in terms of quality metrics and from the developer's pointsof view. 展开更多
关键词 remodularization search-based SOFTWARE engineering refactoring effort multi-objective optimization seman-tics dependency
原文传递
Code Smell Detection Based on Multi-dimensional Software Data and Complex Networks
14
作者 Heng Tong Cheng Zhang Futian Wang 《国际计算机前沿大会会议论文集》 2020年第2期490-505,共16页
Code smell is the product of improper design and operation,which may be introduced in many situations.It will cause serious problems for further software development and maintenance.Currently,most code smell detection... Code smell is the product of improper design and operation,which may be introduced in many situations.It will cause serious problems for further software development and maintenance.Currently,most code smell detection methods detect through a single type of software data.There are restrictions on detecting code smells with complex definitions and characteristics.In this paper,an approach of applying multi-dimensional software data is proposed.A complex network was built through structural data and historical version data,and code smell instances were determined by searching the network.We designed two smells detection strategies were designed and evaluated them in four open source projects.The results demonstrate that the proposed method has 23%and 15%higher F-measures on Shotgun Surgery and Parallel Inheritance Hierarchy than the existing mainstream detection ways.The code smell detection based on multi-dimensional software data and complex network is effective,and this method of processing multidimensional software data is also applicable for data-driven software research. 展开更多
关键词 Code smell Detection technique Software refactoring Software maintenance
原文传递
Toward an accurate method renaming approach via structural and lexical analyses
15
作者 Junpeng LUO Jingxuan ZHANG +2 位作者 Zhiqiu HUANG Yong XU Chenxing SUN 《Frontiers of Information Technology & Electronic Engineering》 SCIE EI CSCD 2022年第5期732-748,共17页
Methods in programs must be accurately named to facilitate source code analysis and comprehension.With the evolution of software,method names may be inconsistent with their implemented method bodies,leading to inaccur... Methods in programs must be accurately named to facilitate source code analysis and comprehension.With the evolution of software,method names may be inconsistent with their implemented method bodies,leading to inaccurate or buggy method names.Debugging method names remains an important topic in the literature.Although researchers have proposed several approaches to suggest accurate method names once the method bodies have been modified,two main drawbacks remain to be solved:there is no analysis of method name structure,and the programming context information is not captured efficiently.To resolve these drawbacks and suggest more accurate method names,we propose a novel automated approach based on the analysis of the method name structure and lexical analysis with the programming context information.Our approach first leverages deep feature representation to embed method names and method bodies in vectors.Then,it obtains useful verb-tokens from a large method corpus through structural analysis and noun-tokens from method bodies through lexical analysis.Finally,our approach dynamically combines these tokens to form and recommend high-quality and project-specific method names.Experimental results over 2111 Java testing methods show that the proposed approach can achieve a Hit Ratio,or Hit@5,of 33.62%and outperform the state-of-the-art approach by 14.12%in suggesting accurate method names.We also demonstrate the effectiveness of structural and lexical analyses in our approach. 展开更多
关键词 Method renaming Code refactor Deep learning Convolutional neural networks
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部