An Operational Semantics for Yul
File Type:
PDFItem Type:
Conference PaperDate:
2024Access:
restrictedAccessEmbargo End Date:
2025-11-26Citation:
Vasileios Koutavas, Yu-Yang Lin, Nikos Tzevelekos, An Operational Semantics for Yul, Lecture Notes in Computer Science, Software Engineering and Formal Methods. SEFM 2024, Aveiro, Portugal, 4-8 November 2024, Madeira, Alexandreand Knapp, Alexander, 15280, Springer Nature Switzerland, 2024, 328 - 346Download Item:
Abstract:
We present a big-step and small-step operational semantics for
Yul — the intermediate language used by the Solidity compiler to produce
EVM bytecode — in a mathematical notation that is congruous with the
literature of programming languages, lends itself to language proofs, and
can serve as a precise, widely accessible specification for the language.
Our two semantics stay faithful to the original, informal specification of
the language but also clarify under-specified cases such as void function
calls. Our presentation allows us to prove the equivalence between the two
semantics. We also implement the small-step semantics in an interpreter
for Yul which avails of optimisations that are provably correct. We have
tested the interpreter using tests from the Solidity compiler and our own.
We envisage that this work will enable the development of verification
and symbolic execution technology directly in Yul, contributing to the
Ethereum security ecosystem, as well as aid the development of a provably
sound future type system.
Sponsor
Grant Number
Other
FY23-1127
Science Foundation Ireland (SFI for RF)
13/RC/2094_2
Other
Author's Homepage:
http://people.tcd.ie/vkoutavhttp://people.tcd.ie/linhouy
Author: Koutavas, Vasileios; Lin Hou, Yu
Other Titles:
Lecture Notes in Computer ScienceSoftware Engineering and Formal Methods. SEFM 2024
Publisher:
Springer Nature SwitzerlandType of material:
Conference PaperCollections
Series/Report no:
15280;Availability:
Full text availableSubject (TCD):
Blockchain , Computer Programming Languages , Computer Science , Software EngineeringDOI:
https://doi.org/10.1007/978-3-031-77382-2_19Metadata
Show full item recordLicences: