Terminating polymorphic type inference program analysis
Abstract
A terminating polymorphic type inference program analysis helps to better optimize, understand, and/or browse computer programs. The analysis represents parameter values for each function call in the program with separate types and modifies the types to comply with typing constraints. The analysis also determines whether a potential non-terminating loop has been entered. If so, the analysis modifies the types such that the types comply with the typing constraints and such that the type inference analysis will terminate. In this manner, the analysis will generate a usable finite set of types for programs regardless of whether the principal typing for the program is infinite in size.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 61.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for performing a polymorphic type inference analysis for a program with a data processing system, the program comprising at least one function call, the method comprising the steps of: a) representing parameter values for each function call in the program with separate types; and b) modifying the types to comply with typing constraints, wherein the modifying step (b) comprises the steps of: i) determining whether a potential non-terminating loop has been entered, and ii) if a potential non-terminating loop has been entered, modifying the types such that the types comply with the t
- Claim 2Depends on #1
The method of claim 1, wherein the representing step (a) comprises the steps of representing a parameter variable for a function in the program with a generic t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 61 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Agesen, Ole, Concrete Type Inference: Delivering Object Oriented Applications , Ph.D. Thesis, Stanford University, Abstract and Table of Contents, pp. i ii, and vi viii (Dec. 1995).
- Agesen, Ole, Concrete Type Inference: Delivering Object-Oriented Applications, Ph.D. Thesis, Stanford University, Abstract and Table of Contents, pp. i-ii, and vi-viii (Dec. 1995).
- Aho, Alfred V., et al., Compilers: Principles, Techniques, and Tools , Addison Wesley Publishing Company, Contents and Chapter 6, pp. vii x and 343 388 (1986).
- Aho, Alfred V., et al., Compilers: Principles, Techniques, and Tools, Addison-Wesley Publishing Company, Contents and Chapter 6, pp. vii-x and 343-388 (1986).
- Aiken et al., "Static Type Inference in a Dynamically Typed Language", ACM, pp. 279-290, 1990.