The invention discloses a
program analysis method and device, a readable storage medium and
electronic equipment. A to-be-analyzed program is determined, an
abstract syntax tree of the to-be-analyzed program is determined through a
compiler corresponding to a
programming language used by the to-be-analyzed program, nodes in the
abstract syntax tree are standardized, and a standard
syntax tree is determined. And determining each
control flow edge and each data flow edge in the standard
syntax tree through the standard
syntax tree, adding each
control flow edge and each data flow edge to the standard syntax tree, and determining the code attribute graph of the program to be analyzed. The
abstract syntax tree is converted into the standard syntax tree, the abstract syntax trees of the programs to be analyzed in different
programming languages are unified, and the code attribute graph is constructed based on the standard syntax tree, so that the method can be suitable for
program analysis of the programs to be analyzed in various
programming languages; different analysis algorithms do not need to be developed for different programming languages, the
program analysis efficiency is improved, and the development cost is reduced.