Program slicing-based function reusability measurement method

A technology of program slicing and measuring methods, which is applied in the direction of software reuse, program control device, creation/generation of source code, etc., can solve the problems of increasing the scale of reuse objects, increasing the risk of reuse, and low accuracy of associated codes, etc., to achieve Improve the average measurement time, reduce the operation complexity, and improve the effect of multiplexing efficiency

Active Publication Date: 2017-07-25
SOUTHEAST UNIV
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Most of the objects measured for reusability are components, which are not refined to a specific function in the component, which increases the scale of reusable objects and increases the risk of reusability
[0005] (2) The accuracy of the associated code of the reused object is low
The reusable object is associated with related functions or components through the established UML diagram...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program slicing-based function reusability measurement method
  • Program slicing-based function reusability measurement method
  • Program slicing-based function reusability measurement method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The present invention will be further described below in conjunction with the accompanying drawings.

[0059] The principle process of the present invention is as figure 1 shown, including the following steps:

[0060] S1: Traverse the source program, delete invalid code lines, such as blank lines, comment lines, etc. Through preprocessing, the compactness of effective code line arrangement can be realized, and the error generated in the measurement process can be reduced;

[0061] S2: Analyze the source program and construct the program dependency graph. The dependency graph contains dependencies between statements and variables. Dependencies mainly include control dependencies, data dependencies, etc. Through direct dependencies and indirect dependencies between statements, you can obtain information related to the running results of specified statements or variables. collection of statements;

[0062] S3: Analyze the source program, use all interfaces as the init...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a program slicing-based function reusability measurement method. The method comprises the following steps of: constructing a program dependence graph for a source program, and calculating slicing results by taking a code behavior slicing criterion where a functional interface is located, wherein each slicing result is a statement associated with a corresponding functional module; constructing measurement indexes of the functional modules on the basis of the slicing results, wherein the measurement indexes comprise a clustering degree, a cohesion degree, a cyclomatic complexity, a public method number, a maximum nesting layer number and a coupling degree average value of the functional modules; and constructing a functional module reusability measurement value calculation formula according to the measurement indexes, and obtaining reusability relative values of the functional modules so as to screen the functional modules with relatively high reusability.

Description

technical field [0001] The invention relates to the field of function reusability measurement in the field of software evolution, in particular to a function reusability measurement method based on program slicing. Background technique [0002] Modular development has become an important core idea in the software development process. Its purpose is to effectively reduce the coupling between modules in large-scale software products with complex business logic, to facilitate later software maintenance, and to facilitate functional modules Extraction and effective reuse in other software to achieve the purpose of reducing development costs and shortening the development cycle, which has very practical significance for improving software reliability and development quality. The measurement of the reusability of related codes in software usually includes two steps, first extracting or locating the reused code, and then measuring from the complexity of dependencies and other aspec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
CPCG06F8/36
Inventor 李必信王桐万晨
Owner SOUTHEAST UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products