SMT-Friendly Formalization of the Solidity Memory Model

Ákos Hajdu, Dejan Jovanović
1/9/2020
cs.PLcs.LOcs.SE

Official code: SRI-CSL/solidity (53 stars, C++, GPL-3.0, last commit 2023-09-05).

Abstract

Solidity is the dominant programming language for Ethereum smart contracts. This paper presents a high-level formalization of the Solidity language with a focus on the memory model.

Show full abstract

The presented formalization covers all features of the language related to managing state and memory. In addition, the formalization we provide is effective: all but few features can be encoded in the quantifier-free fragment of standard SMT theories. This enables precise and efficient reasoning about the state of smart contracts written in Solidity. The formalization is implemented in the solc-verify verifier and we provide an extensive set of tests that covers the breadth of the required semantics. We also provide an evaluation on the test set that validates the semantics and shows the novelty of the approach compared to other Solidity-level contract analysis tools.

View on arXivView PDF

Code Implementations(1)

SRI-CSL/solidityOfficial100%
GPL-3.0

This is solc-verify, a modular verifier for Solidity.

5316C++, SolidityNov 17, 20183 years agoGPL-3.0
ethereumformal-specificationformal-verificationsolidity

Similar Papers

Cite this paper

@article{hajdu2020smtfriendly,
  title  = {SMT-Friendly Formalization of the Solidity Memory Model},
  author = {Ákos Hajdu and Dejan Jovanović},
  year   = {2020},
  eprint = {2001.03256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.03256}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.03256.svg)](https://codeofpaper.com/paper/2001.03256)

Discussion