A Unified Proof Technique for Verifying Program Correctness with Big-Step Semantics

Ximeng Li,Qianying Zhang,Guohui Wang,Zhiping Shi,Yong Guan
DOI: https://doi.org/10.1016/j.sysarc.2022.102820
IF: 5.836
2023-01-01
Journal of Systems Architecture
Abstract:The deductive verification of computer programs helps ascertain the absence of errors for all possible inputs and executions. Computer programs can be written in a plethora of languages. The identification of mechanisms for reasoning about the common features of different languages gives rise to language-independent program verification techniques. Existing language-independent verification techniques either work with small-step operational semantics or require the definition of a special-purpose logic. In addition, these techniques have only been demonstrated in verification tasks where the code of the target program is completely known. We present a language-independent verification technique that works with big-step operational semantics and a general-purpose logic. We illustrate the technique by verifying programs in languages of different paradigms. We use the technique to develop a method for verifying blockchain smart contracts that could call into unknown code and be reentered from the callee. All the theoretical results and verification examples are formalized in the Coq proof assistant.
What problem does this paper attempt to address?