US 12,204,896 B2
Code analysis method and system, and computing device
Guangtai Liang, Beijing (CN); Xiao Cheng, Shanghai (CN); Shanbin Cheng, Beijing (CN); and Lin Li, Beijing (CN)
Assigned to Huawei Cloud Computing Technologies Co., Ltd., Gui'an New District (CN)
Filed by Huawei Cloud Computing Technologies Co., Ltd., Guizhou (CN)
Filed on Jan. 11, 2023, as Appl. No. 18/152,942.
Application 18/152,942 is a continuation of application No. PCT/CN2021/103301, filed on Jun. 29, 2021.
Claims priority of application No. 202010689099.6 (CN), filed on Jul. 17, 2020; and application No. 202011433419.8 (CN), filed on Dec. 10, 2020.
Prior Publication US 2023/0168888 A1, Jun. 1, 2023
Int. Cl. G06F 8/75 (2018.01)
CPC G06F 8/751 (2013.01) 18 Claims
OG exemplary drawing
 
1. A code analysis method performed by a code analysis system, the method comprising:
providing a code analysis service for a user on a cloud service platform, and the code analysis service runs on a cloud server or a cloud server cluster in a cloud data center;
obtaining information about a service scenario, wherein the service scenario represents an objective of code analysis;
generating a code analysis algorithm for the service scenario based on the information about the service scenario;
obtaining information about source code and object code that are specified by the user;
analyzing a similarity between the source code and the object code according to the code analysis algorithm, to obtain an analysis result;
wherein the step of generating the code analysis algorithm comprises:
recommending an algorithm feature corresponding to the service scenario to the user based on the information about the service scenario; and
generating the code analysis algorithm based on a target algorithm feature confirmed by the user in the recommended algorithm feature.