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

面向对象语言抽象编译的结构解析

Structural Resolution for Abstract Compilation of Object-Oriented Languages

Luca Franceschini, Davide Ancona, Ekaterina Komendantskaya

摘要:

我们提出了基于共归纳逻辑编程的面向对象语言的精确静态类型分析的抽象编译。源代码被翻译成一个逻辑程序,然后类型检查和推理问题就变成了要解决的关于结果逻辑程序的查询。我们利用共归纳语义来处理递归类型和方法产生的无限项和证明。由于最近的概念,结构解析共归纳逻辑编程,我们能够推断出非常精确的类型信息,包括一类不合理的递归类型,导致非终止先前考虑共归纳语义。我们还展示了如何转换逻辑程序,使它们满足结构归结的操作语义的先决条件,我们证明了这一步骤不影响的语义的逻辑程序。

英文摘要:

We propose abstract compilation for precise static type analysis of object-oriented languages based on coinductive logic programming. Source code is translated to a logic program, then type-checking and inference problems amount to queries to be solved with respect to the resulting logic program. We exploit a coinductive semantics to deal with infinite terms and proofs produced by recursive types and methods. Thanks to the recent notion of structural resolution for coinductive logic programming, we are able to infer very precise type information, including a class of irrational recursive types causing non-termination for previously considered coinductive semantics. We also show how to transform logic programs to make them satisfy the preconditions for the operational semantics of structural resolution, and we prove this step does not affect the semantics of the logic program.

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

↑