The invention discloses an Armv8-a
assembly code-oriented
formal verification method, which comprises the following steps of: analyzing an Armv8-a processor architecture and an
instruction set system, extracting module components to be modeled, including an abnormal level, an execution state, a
data value, a register block, a memory, an
instruction set and an
assembly code, and modeling each module component; determining a non-formalized requirement of the corresponding
assembly instruction according to the function and the
security specification of each assembly instruction in the assembly code, and then generating a formalized logic expression of each assembly instruction in combination with the defined model, so as to obtain a formalized specification; and finally, carrying out formalized
verification by adopting a theorem prover. According to the method, modeling is carried out on each module component of a physical
machine, then a formalized logic expression of each assembly instruction in an assembly code is generated based on a constructed model, and formalized
verification of the Armv8-a assembly code is completed by using a theorem prover.