A Program Source Code Encoding Method Based on Code Attribute Tensor
An encoding method and source code technology, applied in the field of program source code encoding based on code attribute tensor, can solve the problem that the encoding method of program source code cannot fully reflect the semantic characteristics of the program, the semantic information of the code is lost, and the high rate of false positives and omissions Questions such as rate of return
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0047] Below in conjunction with accompanying drawing, the present invention will be further described.
[0048] This embodiment is based on the program source code encoding method of the code attribute tensor, wherein the overall process is as follows figure 1 As shown, it mainly includes the following steps:
[0049] 1) Generate a code attribute map for the program source code, the process is as follows figure 2 As shown, the specific description is as follows:
[0050] 1a) Generate an AST for the program source code, assign a code attribute to each node, and its attribute value corresponds to the code represented by the node, and assign a type attribute to each node, and its attribute value corresponds to the statement type of the code represented by the node , assign an order attribute to each node to reflect the ordered structure of the tree, go to 1b).
[0051] 1b) Generate CFG for the program source code, mark the jump condition of the edge, and turn to 1c).
[005...
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