Java statement block cloning detection method based on bytecode sequence matching
A technology of sequence matching and detection methods, which is applied in the fields of electronic digital data processing, other database retrieval, instruments, etc., and can solve problems such as granularity limitation and method level
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0021] The specific implementation of the code clone detection method of Java sentence blocks based on bytecode sequence matching provided by the present invention is mainly divided into 3 steps (such as figure 1 , 3 Shown):
[0022] (1) According to the two input Java files, using Oracle JDK and batch compiler, the source code is compiled into bytecode files and further converted into text form files, and from the bytecode files according to the execution of instructions and In the case of jump, extract the code fragment at the statement block level; (2) Extract the instruction sequence required by this method from the bytecode code fragment at the statement block level, and use a unique character for each instruction according to the realized function Representation, thereby forming a single-character instruction sequence; (3) In the code cloning detection stage, the single-character instruction sequence is used to calculate the similarity between sequence matching and bytecode...
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