Skip to main content

Polymorphic subtyping for effect analysis: The algorithm

  • Conference paper
  • First Online:
Analysis and Verification of Multiple-Agent Languages (LOMAPS 1996)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1192))

Abstract

We study an annotated type and effect system that integrates let-polymorphism, effects, and subtyping into an annotated type and effect system for a fragment of Concurrent ML. First we define a type inference algorithm and then construct procedures for constraint normalisation and simplification. Next these algorithms are proved syntactically sound with respect to the annotated type and effect system.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. T. Amtoft, F. Nielson, H.R. Nielson, J. Ammann: Polymorphic subtypes for effect analysis: the dynamic semantics. This volume of SLNCS, 1997.

    Google Scholar 

  2. Y.-C. Fuh and P. Mishra: Polymorphic subtype inference: closing the theory-practice gap. In Proc. TAPSOFT '89. SLNCS 352, 1989.

    Google Scholar 

  3. Y.-C. Fuh and P. Mishra: Type inference with subtypes. Theoretical Computer Science, 73, 1990.

    Google Scholar 

  4. F. Henglein and C. Mossin: Polymorphic binding-time analysis. In Proc. ESOP '94, pages 287–301. SLNCS 788, 1994.

    Google Scholar 

  5. M.P. Jones: A theory of qualified types. In Proc. ESOP '92, pages 287–306. SLNCS 582, 1992.

    Google Scholar 

  6. P. Jouvelot and D.K. Gifford: Algebraic reconstruction of types and effects. In Proc. POPL'91, pages 303–310. ACM Press, 1991.

    Google Scholar 

  7. R. Milner: A theory of type polymorphism in programming. Journal of Computer Systems, 17:348–375, 1978.

    Google Scholar 

  8. J.C. Mitchell: Type inference with simple subtypes. Journal of Functional Programming, 1(3), 1991.

    Google Scholar 

  9. F. Nielson and H.R. Nielson: Constraints for polymorphic behaviours for Concurrent ML. In Proc. CCL'94. SLNCS 845, 1994.

    Google Scholar 

  10. H.R. Nielson and F. Nielson: Higher-order concurrent programs with finite communication topology. In Proc. POPL'94, pages 84–97. ACM Press, 1994.

    Google Scholar 

  11. H.R. Nielson, F. Nielson, T. Amtoft: Polymorphic subtypes for effect analysis: the static semantics. This volume of SLNCS, 1997.

    Google Scholar 

  12. P. Panangaden and J.H. Reppy: The essence of Concurrent ML. In ML with Concurrency: Design, Analysis, Implementation and Application (editor: Flemming Nielson), Springer-Verlag, 1996.

    Google Scholar 

  13. J.H. Siekmann: Unification theory. J. Symbolic Computation, 7:207–274, 1989.

    Google Scholar 

  14. G.S. Smith: Polymorphic type inference for languages with overloading and subtyping. Ph.D thesis from Cornell, 1991.

    Google Scholar 

  15. G.S. Smith: Polymorphic inference with overloading and subtyping. In SLNCS 668, Proc. TAPSOFT '93, 1993. Also see: Principal type schemes for functional programs with overloading and subtyping: Science of Computer Programming 23, pp. 197–226, 1994.

    Google Scholar 

  16. J.P. Talpin and P. Jouvelot: Polymorphic type, region and effect inference. Journal of Functional Programming, 2(3), pages 245–271, 1992.

    Google Scholar 

  17. J.P. Talpin and P. Jouvelot: The type and effect discipline. Information and Computation, 111, 1994.

    Google Scholar 

  18. Y.-M. Tang: Control flow analysis by effect systems and abstract interpretation. PhD thesis, Ecoles des Mines de Paris, 1994.

    Google Scholar 

  19. M. Tofte. Type inference for polymorphic references. Information and Computation, 89:1–34, 1990.

    MathSciNet  Google Scholar 

  20. M. Tofte and L. Birkedal: Region-annotated types and type schemes, 1996. Submitted for publication.

    Google Scholar 

  21. A.K. Wright: Typing references by effect inference. In Proc. ESOP '92, pages 473–491. SLNCS 582, 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Mads Dam

Rights and permissions

Reprints and permissions

Copyright information

© 1997 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Nielson, F., Riis Nielson, H., Amtoft, T. (1997). Polymorphic subtyping for effect analysis: The algorithm. In: Dam, M. (eds) Analysis and Verification of Multiple-Agent Languages. LOMAPS 1996. Lecture Notes in Computer Science, vol 1192. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-62503-8_10

Download citation

  • DOI: https://doi.org/10.1007/3-540-62503-8_10

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-62503-2

  • Online ISBN: 978-3-540-68052-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics