arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09347cs.PLcs.LO
收藏

SSA的指称语义

The Denotational Semantics of SSA

Jad Elkhaleq Ghalayini, Neel Krishnaswami

AI总结:

该研究提出SSA变体的类型论与范畴语义,证明其可靠完备,给出含TSO弱内存模型的实例,且相关证明已在Lean中机械化,为编译器变换验证提供语义基础。

摘要:

静态单赋值形式(即SSA)数十年来一直是主流的编译器中间表示。本文提出了一种SSA变体的类型论,包括其等式理论,该理论强度足以验证多种控制流与数据流变换。我们还为SSA给出了范畴语义,并证明该类型论相对于范畴公理化是可靠且完备的。我们通过展示多种满足公理的具体模型(尤其是TSO弱内存模型)证明了模型的实用性。句法元理论的正确性以及完备性证明已在Lean证明助手中实现机械化验证。

英文摘要:

Static single assignment form, or SSA, has been the dominant compiler intermediate representation for decades. In this paper, we give a type theory for a variant of SSA, including its equational theory, which are strong enough to validate a variety of control and data flow transformations. We also give a categorical semantics for SSA, and show that the type theory is sound and complete with respect to the categorical axiomatization. We demonstrate the utility of our model by exhibiting a variety of concrete models satisfying our axioms, including in particular a model of TSO weak memory. The correctness of the syntactic metatheory, as well as the completeness proof has been mechanized in the Lean proof assistant.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑