English

Structural Resolution for Abstract Compilation of Object-Oriented Languages

Programming Languages 2017-09-15 v1

Abstract

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.

Keywords

Cite

@article{arxiv.1709.04902,
  title  = {Structural Resolution for Abstract Compilation of Object-Oriented Languages},
  author = {Luca Franceschini and Davide Ancona and Ekaterina Komendantskaya},
  journal= {arXiv preprint arXiv:1709.04902},
  year   = {2017}
}

Comments

In Proceedings CoALP-Ty'16, arXiv:1709.04199

R2 v1 2026-06-22T21:43:30.750Z