# Idealized coinductive type systems for imperative object-oriented programs

Davide Ancona; Giovanni Lagorio

RAIRO - Theoretical Informatics and Applications (2011)

- Volume: 45, Issue: 1, page 3-33
- ISSN: 0988-3754

## Access Full Article

top## Abstract

top## How to cite

topAncona, Davide, and Lagorio, Giovanni. "Idealized coinductive type systems for imperative object-oriented programs." RAIRO - Theoretical Informatics and Applications 45.1 (2011): 3-33. <http://eudml.org/doc/221986>.

@article{Ancona2011,

abstract = {
In recent work we have proposed a novel approach to define idealized
type systems for object-oriented languages, based on abstract compilation of
programs into Horn formulas which are interpreted w.r.t. the coinductive (that is, the greatest) Herbrand model. In this paper we investigate how this approach can be applied also in
the presence of imperative features.
This is made possible by considering a natural translation of Static Single Assignment intermediate form programs into Horn formulas, where φ functions
correspond to union types.
},

author = {Ancona, Davide, Lagorio, Giovanni},

journal = {RAIRO - Theoretical Informatics and Applications},

keywords = {Imperative object-oriented languages; type analysis; coinduction; SSA intermediate form; imperative object-oriented languages},

language = {eng},

month = {3},

number = {1},

pages = {3-33},

publisher = {EDP Sciences},

title = {Idealized coinductive type systems for imperative object-oriented programs},

url = {http://eudml.org/doc/221986},

volume = {45},

year = {2011},

}

TY - JOUR

AU - Ancona, Davide

AU - Lagorio, Giovanni

TI - Idealized coinductive type systems for imperative object-oriented programs

JO - RAIRO - Theoretical Informatics and Applications

DA - 2011/3//

PB - EDP Sciences

VL - 45

IS - 1

SP - 3

EP - 33

AB -
In recent work we have proposed a novel approach to define idealized
type systems for object-oriented languages, based on abstract compilation of
programs into Horn formulas which are interpreted w.r.t. the coinductive (that is, the greatest) Herbrand model. In this paper we investigate how this approach can be applied also in
the presence of imperative features.
This is made possible by considering a natural translation of Static Single Assignment intermediate form programs into Horn formulas, where φ functions
correspond to union types.

LA - eng

KW - Imperative object-oriented languages; type analysis; coinduction; SSA intermediate form; imperative object-oriented languages

UR - http://eudml.org/doc/221986

ER -

## References

top- O. Agesen, The cartesian product algorithm, in ECOOP'05 – Object-Oriented Programming. Lecture Notes in Computer Science952 (1995) 2–26.
- R. Amadio and L. Cardelli, Subtyping recursive types. ACM Trans. Prog. Lang. Syst.15 (1993) 575–631.
- D. Ancona and G. Lagorio, Coinductive type systems for object-oriented languages, in ECOOP'09 – Object-Oriented Programming. Lecture Notes in Computer Science5653 (2009) 2–26.
- D. Ancona and G. Lagorio, Coinductive subtyping for abstract compilation of object-oriented languages into Horn formulas, in Proceedings of GandALF 2010. Electronic Proceedings in Theoretical Computer Science25 (2010) 214–223.
- D. Ancona and G. Lagorio, Complete coinductive subtyping for abstract compilation of object-oriented languages, in Formal Techniques for Java-like Programs (FTfJP10), ACM Digital Library (2010).
- D. Ancona, G. Lagorio and E. Zucca, Type inference for polymorphic methods in Java-like languages, in ICTCS'07 – Italian Conf. on Theoretical Computer Science, edited by G.F. Italiano, E. Moggi and L. Laura, eProceedings. World Scientific (2007).
- D. Ancona, G. Lagorio and E. Zucca, Type inference by coinductive logic programming, in Post-Proceedings of TYPES'08. Lecture Notes in Computer Science5497 (2009). Zbl1246.68079
- D. Ancona, A. Corradi, G. Lagorio and F. Damiani, Abstract compilation of object-oriented languages into coinductive CLP(X): when type inference meets verification. Technical report, Karlsruhe Institute of Technology (2010). Formal Verification of Object-Oriented Software. Papers presented at the International Conference, Paris, France (2010). Zbl1308.68027
- C. Anderson, P. Giannini and S. Drossopoulou, Towards type inference for Javascript, in ECOOP'05 – Object-Oriented Programming. Lecture Notes in Computer Science3586 (2005) 428–452.
- F. Barbanera, M. Dezani-Cincaglini and U. de'Liguoro, Intersection and union types: Syntax and semantics. Inform. Comput.119 (1995) 202–230.
- W.R. Cook, W.L. Hill and P.S. Canning, Inheritance is not subtyping, in ACM Symp. on Principles of Programming Languages 1990. ACM Press (1990), 125–135. Zbl0837.68061
- B. Courcelle, Fundamental properties of infinite trees. Theoret. Comput. Sci.25 (1983) 95–169. Zbl0521.68013
- P. Cousot, Types as abstract interpretations, in ACM Symp. on Principles of Programming Languages (1997), 316–331.
- P. Cousot and R. Cousot, Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints, in ACM Symp. on Principles of Programming Languages 1977. ACM Press (1977), 238–252.
- R. Cytron, J. Ferrante, B.K. Rosen, M.N. Wegman and F.K. Zadeck, Efficiently computing static single assignment form and the control dependence graph. ACM Trans. Prog. Lang. Syst.13 (1991) 451–490.
- D. Das and U. Ramakrishna, A practical and fast iterative algorithm for phi-function computation using DJ graphs. ACM Trans. Prog. Lang. Syst.27 (2005) 426–440.
- M. Furr, J. An, J.S. Foster and M. Hicks, Static type inference for Ruby, in SAC '09: Proceedings of the 2009 ACM symposium on Applied computing. ACM Press (2009).
- P. Heidegger and P. Thiemann, Recency types for analyzing scripting languages, in ECOOP'10 – Object-Oriented Programming. Lecture Notes in Computer Science6183 (2010) 200–224.
- A. Igarashi and H. Nagira, Union types for object-oriented programming. JOT6 (2007) 47–68.
- A. Igarashi, B.C. Pierce and P. Wadler, Featherweight Java: a minimal core calculus for Java and GJ. ACM Trans. Prog. Lang. Syst.23 (2001) 396–450.
- X. Leroy and H. Grall, Coinductive big-step operational semantics. Inform. Comput.207 (2009) 284–304. Zbl1165.68044
- R. Min and G. Gupta, Coinductive logic programming and its application to boolean sat, in FLAIRS Conference (2009).
- R. Min and G. Gupta, Coinductive logic programming with negation, in LOPSTR (2009), 97–112. Zbl1284.68117
- N. Oxhøj, J. Palsberg and M.I. Schwartzbach, Making type inference practical, in ECOOP'92 – European Conference on Object-Oriented Programming (1992), 329–349.
- M. Odersky, M. Sulzmann and M. Wehr, Type inference with constrained types. Theory Pract. Obj. Syst.5 (1999) 35–55.
- J. Palsberg and M.I. Schwartzbach, Object-oriented type inference, in ACM Symp. on Object-Oriented Programming: Systems, Languages and Applications 1991. ACM Press (1991), 146–161.
- J. Palsberg and M.I. Schwartzbach, Object-Oriented Type Systems. John Wiley & Sons (1994). Zbl0821.68023
- J. Plevyak and A. Chien, Precise concrete type inference for object-oriented languages, in Ninth Annual ACM Conference on Object-Oriented Programming Systems, Languages, and Applications. ACM Press (1994), 324–340.
- N. Saeedloei and G. Gupta, Verifying complex continuous real-time systems with coinductive CLP(R), in Proc. of LATA 2010. Lecture Notes in Computer Science (2010). Zbl1284.68365
- L. Simon, A. Mallya, A. Bansal and G. Gupta, Coinductive logic programming, in Logic Programming, 22nd International Conference, ICLP (2006), 330–345. Zbl1131.68400
- L. Simon, A. Bansal, A. Mallya and G. Gupta, Co-logic programming: Extending logic programming with coinduction, in Automata, Languages and Programming, 34th International Colloquium, ICALP (2007), 472–483. Zbl1171.68404
- J. Singer, Static Program Analysis based on Virtual Register Renaming, Ph.D. thesis, Computer Laboratory, University of Cambridge (2006).
- M. Sulzmann and P.J. Stuckey, HM(X) type inference is CLP(X) solving. J. Funct. Program.18 (2008) 251–283. Zbl1142.68021
- T. Wang and S.F. Smith, Precise constraint-based type inference for Java, in ECOOP'01 – European Conference on Object-Oriented Programming2072 (2001) 99–117. Zbl0982.68729
- T. Wang and S. Smith, Polymorphic constraint-based type inference for objects. Technical report, The Johns Hopkins University (2008), submitted for publication.
- T. Zhao, Type inference for scripting languages with implicit extension, in FOOL 2010 – Intl. Workshop on Foundations of Object-Oriented Languages (2010).

## NotesEmbed ?

topTo embed these notes on your page include the following JavaScript code on your page where you want the notes to appear.