Creating and sharing knowledge for telecommunications

Tezla, an Intermediate Representation for Static Analysis of Michelson Smart Contracts

Reis, JSR ; Melo de Sousa, - ; Crocker, P.

Tezla, an Intermediate Representation for Static Analysis of Michelson Smart Contracts, Proc i-cav International Conference on Computer-Aided Verification CAV, Los Angeles, United States, Vol. , pp. - , July, 2020.

Digital Object Identifier:

Abstract
This paper introduces Tezla, an intermediate representation of Michelson smart contracts that eases the design of static smart contract analysers. This intermediate representation uses a store and preserves the semantics, flow and resource usage of the original smart contract. This enables properties like gas consumption to be statically verified. We provide an automated decompiler of Michelson smart contracts to Tezla. In order to support our claim about the adequacy of Tezla, we develop a static analyser that takes advantage of the Tezla representation of Michelson smart contracts to prove simple but non-trivial properties.