Detection method of code similarity based on digital fingerprints
A digital fingerprint and detection method technology, applied in the direction of electronic digital data processing, instrument, platform integrity maintenance, etc., can solve the problem of poor feature selection effect, reduce the probability of misjudgment, high reliability, improve calculation speed effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0043] A code similarity detection method based on digital fingerprints, such as figure 1 shown, for figure 2 The two sections shown use the source code written in C language for similarity detection, and the steps are as follows:
[0044] 1. The purpose of preprocessing the source codes of both parties is to reduce the influence of irrelevant information on the surface of the codes on the similarity determination. Specifically, the following operations are performed on the source codes of both parties: delete comments, delete macro commands, and delete content that has nothing to do with code semantics. The results obtained are as follows image 3 shown;
[0045] 2. Segment the codes of both parties processed in step 1. Specifically, it includes adding spacers and spaces between different types of words contained in the code, and retaining the original spaces. In the process of writing and modifying the code, there may be no separator between different types of words. In...
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