CPC G06F 8/751 (2013.01) | 18 Claims |
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.
|