Supercharge Your Innovation With Domain-Expert AI Agents!

A code path analysis method and device

A path analysis and path technology, applied in the field of data processing, can solve the problems of difficult to understand the function call path relationship clearly, and there is no function call path relationship.

Active Publication Date: 2021-05-28
TENCENT TECH (SHENZHEN) CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The development language used by the Apple operating system is Object-c. Object-c is mainly used in MAC system software development, iOS system software development, etc. There are usually complex function call relationships in Object-c codes. For developers, It is difficult to understand the complete function call path relationship between various functions in the code, and there is no research on the function call path relationship in Object-c code in the prior art

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
  • A code path analysis method and device
  • A code path analysis method and device
  • A code path analysis method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0022] The following will be combined with figure 1 - attached image 3 , the code path analysis method provided by the embodiment of the present invention is introduced in detail.

[0023] Please refer to figure 1 , is a flow chart of a code path analysis method provided by an embodiment of the present invention; the method may include the following steps S100-S102.

[0024] S100. Generate a syntax analysis tree for each function in the code to be executed, whe...

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

An embodiment of the present invention provides a code path analysis method and device, wherein the method may include: generating a syntax analysis tree for each function in the code to be executed, and the syntax analysis tree is used to represent the function with the function as the root node Call relationship; for each syntax analysis tree of the function, traverse the syntax analysis tree to obtain each call path of the syntax analysis tree, and the call path includes at least one node; determine each syntax analysis tree The complete call path formed by the combination of call paths. The invention can realize the research and analysis of the function call path relationship in the code to be executed, and the analysis method is simple.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a code path analysis method and device. Background technique [0002] The development language used by the Apple operating system is Object-c. Object-c is mainly used in MAC system software development, iOS system software development, etc. There are usually complex function call relationships in Object-c codes. For developers, It is difficult to clearly understand the complete function call path relationship between various functions in the code, and there is no research specifically on the function call path relationship in the Objective-c code in the prior art. Contents of the invention [0003] The embodiment of the present invention provides a code path analysis method and device, which can realize the research and analysis of the function call path relationship in the code to be executed, and the analysis method is simple. [0004] The first aspect of the present...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41
Inventor 程春林王琳霍举振张锦铭
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More