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

Horn子句作为程序分析和转换的中间表示

Horn Clauses as an Intermediate Representation for Program Analysis and Transformation

Graeme Gange, Jorge A. Navas, Peter Schachte, Harald Sondergaard, Peter J. Stuckey

摘要:

许多最近的分析传统的命令式程序开始转换程序到逻辑程序,利用现有的LP分析和简单的LP语义。我们建议在整个编译过程中使用逻辑程序作为中间程序表示。通过确保确定性和单模性的限制,逻辑程序可以很容易地转换为机器语言或其他低级语言,同时保持简单的语义,使其适合作为程序分析和转换的语言。我们提出了一个简单的LP语言,强制执行确定性和单模性,并表明它使一个方便的程序表示的分析和转换。

英文摘要:

Many recent analyses for conventional imperative programs begin by transforming programs into logic programs, capitalising on existing LP analyses and simple LP semantics. We propose using logic programs as an intermediate program representation throughout the compilation process. With restrictions ensuring determinism and single-modedness, a logic program can easily be transformed to machine language or other low-level language, while maintaining the simple semantics that makes it suitable as a language for program analysis and transformation. We present a simple LP language that enforces determinism and single-modedness, and show that it makes a convenient program representation for analysis and transformation.

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

↑