Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Generating method and system of function relationship call tree

A technology of function relationship and generation system, applied in the computer field, can solve the problems of large granularity, inability to accurately judge the influence scope of code segment changes, and aggravate the burden of system assessment, so as to achieve the effect of reducing the burden.

Active Publication Date: 2014-07-02
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] figure 1 A schematic diagram of an existing functional relationship call tree, in figure 1 In the function relationship call tree shown, when the changed function code is in the code segment case 'IE' to which the attribute value "IE" in Function1 belongs, ideally it only needs to be evaluated that the affected related function is related to the code segment Case'IE' has a call relationship to Function2, but, figure 1 The structure of the function relationship call tree shown limits the granularity used to evaluate the scope of influence to the function level only, that is, when the code segment case'IE' to which the attribute value "IE" in Function1 belongs changes, it will be evaluated and the existence of Function1 will be evaluated. Both Function2 and Function3 of the call relationship are affected
[0004] It can be seen that the structure of the above-mentioned function relationship call tree limits the granularity used to evaluate the scope of influence, which makes it impossible to accurately determine the scope of influence of the code segment change to which a certain attribute value belongs in the function, but also aggravates the impact of system assessment. range burden

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
  • Generating method and system of function relationship call tree
  • Generating method and system of function relationship call tree
  • Generating method and system of function relationship call tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] 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 making creative efforts belong to the protection scope of the present invention.

[0026] The embodiment of the present invention provides a method and system for generating a function relationship call tree. The structure of the function relationship call tree generated by the method and system has a smaller granularity for evaluating the scope of influence, and can accurately determine the The scope of influence of the change of the code segment to which an attribute value belongs, reducing the burden on the system to evaluate the scope of ...

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

Systems and methods are provided for generating a function-relation call tree. For example, an externally-specified global variable name is acquired; whether a first function matches the externally-specified global variable name is inquired; in response to the first function matching the externally-specified global variable name, whether a code of the first function includes a branch-judgment code is determined; in response to the code of the first function including the branch-judgment code, the code of the first function is divided to acquire a pre-branch-judgment code, a branch-judgment code and a post-branch-judgment code; the branch judgment code is analyzed to determine whether a related function is called by a code section associated with an attribute value of the branch-judgment code; and in response to the related function being called by the code section associated with the attribute value of the branch-judgment code, a function-relation call tree between the code section associated with the attribute value and the related function is generated.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for generating a function relation calling tree. Background technique [0002] In the software development process, when the function code is changed, it is necessary to evaluate the scope of influence of the function code change, so as to evaluate whether the function code change will cause compatibility problems, so as to guide the test scope more accurately. In practical applications, the function relationship call tree is usually used to evaluate the scope of influence of function code changes, that is, when there is a function code change, first determine the function to which the changed function code belongs, and then evaluate by looking at the upper and lower layer call relationships of the function Affected related functions. [0003] figure 1 A schematic diagram of an existing functional relationship call tree, in figure 1 In the function relati...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/44G06F8/75
Inventor 鲁四喜
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products