arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.15915cs.PL
收藏

一种纯需求操作语义及其在程序分析中的应用

A Pure Demand Operational Semantics with Applications to Program Analysis

Scott Smith, Robert Zhang

AI总结:

本文提出一种仅依赖调用栈和词法层级的高阶函数式语言最小状态操作语义,证明其与标准语义等价,并基于其直接有限化构建了可推导递推、无需值拓宽的新型程序分析,给出了形式化定义与实现。

摘要:

本文为高阶函数式语言提出了一种新颖的最小状态操作语义,该语义仅以调用栈和源程序点或词法层级作为完整状态信息:无需环境、替换、续延等组件。我们证明了这种形式的操作语义与标准表述等价。随后我们展示了该方法如何为潜在的新应用开辟方向:我们将一种程序分析定义为该操作语义的直接有限化形式。与高阶程序的标准程序分析相比,由此自然产生的程序分析具备诸多新颖且有趣的特性,例如它可以推导递推关系,且无需值拓宽(value widening)。我们既给出了该分析的形式化定义,也描述了我们当前的实现情况。

英文摘要:

This paper develops a novel minimal-state operational semantics for higher-order functional languages that uses only the call stack and a source program point or a lexical level as the complete state information: there is no environment, no substitution, no continuation, etc. We prove this form of operational semantics equivalent to standard presentations. We then show how this approach can open the door to potential new applications: we define a program analysis as a direct finitization of this operational semantics. The program analysis that naturally emerges has a number of novel and interesting properties compared to standard program analyses for higher-order programs: for example, it can infer recurrences and does not need value widening. We both give a formal definition of the analysis and describe our current implementation.

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

↑