The application relates to the field of
computer program analysis, and discloses a multilingual
symbolic execution framework construction method and
system based on
bytecode simulation, which comprises the following steps: analyzing a target language
bytecode program, binding instruction parameters and instruction implementation into a unified instruction object, and establishing a
program structure; establishing a
simulation value, a program state and an object mapping table according to an execution entrance and an execution environment by using a common
simulation value representation and a common program
state representation to form an initial path constraint; calling instruction implementation to perform operation and condition
processing, submitting an execution result, and maintaining program state isolation through an object mapping table; constructing a candidate path, solving path constraints and performing assignment
verification, generating a program state according to an execution strategy, continuously exploring and generating an analysis result. Through the unified instruction object, the unified calling interface and the common simulation value representation and the common program
state representation, the application realizes common
symbolic execution processes of different target languages, and reduces repeated implementation during language
adaptation.