1995
DOI: 10.1006/inco.1995.1058
|View full text |Cite
|
Sign up to set email alerts
|

Safety Analysis versus Type Inference

Abstract: Safety analysis is an algorithm for determining if a term in an untyped lambda calculus with constants is safe, i.e., if it does not cause an error during evaluation. This ambition is also shared by algorithms for type inference. Safety analysis and type inference are based on rather di erent perspectives, however. Safety analysis is global in that it can only analyze a complete program. In contrast, type inference is local in that it can analyze pieces of a program in isolation. In this paper we prove that sa… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
26
0

Year Published

1995
1995
2012
2012

Publication Types

Select...
5
3
1

Relationship

0
9

Authors

Journals

citations
Cited by 45 publications
(26 citation statements)
references
References 18 publications
0
26
0
Order By: Relevance
“…Reachability analyses have previously been discovered independently [25,26,27,28]. In our case they arise naturally from a projecting abstraction of a reachable states collecting semantics.…”
Section: Characteristics Of the Derived Analysismentioning
confidence: 99%
See 1 more Smart Citation
“…Reachability analyses have previously been discovered independently [25,26,27,28]. In our case they arise naturally from a projecting abstraction of a reachable states collecting semantics.…”
Section: Characteristics Of the Derived Analysismentioning
confidence: 99%
“…However by using a pointer or the implicit label of each sub-expression instead of the sub-expression itself, a single constraint takes only constant space. By linearly determining a representative for each sub-expression, by generating O(n 2 ) constraints, linear post-processing, and iteratively solving them using a well-known algorithm [26,28,21], we can compute the analysis in worst-case O(n 3 ) time. The extracted constraints bear similarities to existing constraint-based analyses in the literature.…”
Section: Extracting a Constraint-based Cfamentioning
confidence: 99%
“…Palsberg and Schwartzbach [121] coined the term safety analysis for such an analysis. Their analysis is based on a constraint-based CFA.…”
Section: Safety Analysismentioning
confidence: 99%
“…The particular constraint system we consider is due to Palsberg and Schwartzbach [67], used in performing what they call safety analysis -a version of closure analysis -but very similar sets of constraints have been used for type inference [66]. For each subterm of the program we will have a variable, which is going to hold information about that particular part of the program (whether this is type information or anything else is irrelevant).…”
Section: Example: Constraint Systemsmentioning
confidence: 99%