Multi-granularity code clone detection method based on Java byte codes under cloud environment
A detection method and bytecode technology, applied in electrical digital data processing, instruments, program control devices, etc., can solve the problems of high accuracy, difficulty in detecting Type-3 code cloning, and low recall rate, and achieve cloning The effect of accurate detection results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0024] The specific implementation of the multi-granularity code clone detection method based on Java bytecode under the cloud environment provided by the present invention is mainly divided into 3 steps (such as figure 1 shown):
[0025] 1) Pretreatment
[0026] The preprocessing stage mainly includes the following two steps:
[0027] (1) Source code compilation
[0028] First, the Java source code distributed in different places in the cloud environment is compiled into a .class file, and the .class file is converted into a Java bytecode file in txt format, which is used as the input for the next clone detection. Each Java bytecode file contains one or more methods, and each method consists of a series of instructions and related method calls. Since Java compiles and automatically processes blank lines and comments, and also removes the impact of variable renaming, there is no need to preprocess blank lines, comments, and variable names.
[0029] (2) Method extraction an...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com