2021
DOI: 10.1145/3473572
|View full text |Cite
|
Sign up to set email alerts
|

Modular, compositional, and executable formal semantics for LLVM IR

Abstract: This paper presents a novel formal semantics, mechanized in Coq, for a large, sequential subset of the LLVM IR. In contrast to previous approaches, which use relationally-specified operational semantics, this new semantics is based on monadic interpretation of interaction trees, a structure that provides a more compositional approach to defining language semantics while retaining the ability to extract an executable interpreter. Our semantics handles many of the LLVM IR's non-trivial language features and is c… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2023
2023
2024
2024

Publication Types

Select...
3
2
1

Relationship

0
6

Authors

Journals

citations
Cited by 15 publications
(1 citation statement)
references
References 70 publications
0
1
0
Order By: Relevance
“…We plan to explore semantics-preserving compilation from Q# to QIR using our formalization. This project will require formally specifying the semantics of QIR, for which we will draw upon the Verified LLVM (Vellvm) project [61,62]. We also aim to formalize QIR's profiles, which specify what kinds of quantum operations are allowed on a given quantum architecture.…”
Section: Discussionmentioning
confidence: 99%
“…We plan to explore semantics-preserving compilation from Q# to QIR using our formalization. This project will require formally specifying the semantics of QIR, for which we will draw upon the Verified LLVM (Vellvm) project [61,62]. We also aim to formalize QIR's profiles, which specify what kinds of quantum operations are allowed on a given quantum architecture.…”
Section: Discussionmentioning
confidence: 99%