The application provides a code analysis path
pruning method and device, equipment and a storage medium, wherein the method comprises the following steps: extracting
control flow information of to-be-analyzed code and splitting a composite conditional statement, generating a
control flow graph corresponding to the to-be-analyzed code, a node block of the
control flow graph representing an
execution unit or a conditional judgment unit, and an edge representing a path direction of the control flow; marking a conditional judgment unit to be tracked as a
record unit; traversing the
control flow graph in a multi-
branch parallel mode, performing normalization
processing on the statement in the traversal process, if the conditional statement of a certain
record unit is first appeared in a single
branch, maintaining all possible conditional states, otherwise, querying the value of the conditional state corresponding to the conditional statement from a dynamically maintained
list, and
pruning the out-degree edge of the
record unit which does not match the conditional state; for the first appearance of the conditional statement and the unpruned condition after the query, a copy of the dynamically maintained
list is generated, which is used for independent update and query in the subsequent conditional state of each
branch.