发明名称 |
Systems and Methods for Generating Function-Relation Call Trees |
摘要 |
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. |
申请公布号 |
US2014289705(A1) |
申请公布日期 |
2014.09.25 |
申请号 |
US201414296526 |
申请日期 |
2014.06.05 |
申请人 |
Tencent Technology (Shenzhen) Company Limited |
发明人 |
Lu Sixi |
分类号 |
G06F9/44 |
主分类号 |
G06F9/44 |
代理机构 |
|
代理人 |
|
主权项 |
1. A method for generating a function-relation call tree, the method comprising:
acquiring an externally-specified global variable name; inquiring whether a first function matches the externally-specified global variable name; in response to the first function matching the externally-specified global variable name, determining whether a code of the first function includes a branch-judgment code; in response to the code of the first function including the branch judgment code, dividing the code of the first function to acquire a pre-branch-judgment code, a branch-judgment code and a post-branch-judgment code; analyzing the branch-judgment code 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, generating a function-relation call tree between the code section associated with the attribute value and the related function. |
地址 |
Shenzhen CN |