1992
DOI: 10.7146/dpb.v21i389.6624
|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 the 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 different perspectives, however. Safety analysis is based on closure analysis, whereas type inference attempts to assign a type to all subterms.In this paper we prove that safety analysis is sound, relative to both a strict and a… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
6
0

Year Published

1992
1992
2016
2016

Publication Types

Select...
3
2

Relationship

1
4

Authors

Journals

citations
Cited by 8 publications
(6 citation statements)
references
References 6 publications
0
6
0
Order By: Relevance
“…We express our analysis using set constraints on a collection of type variables [15,19]. For a given program component to be analyzed, we allocate a type variable for each program variable x, denoted x , and similarly for each non-variable expression e and class field or method N.f and N.m, respectively.…”
Section: Abstract Domain For Typesmentioning
confidence: 99%
See 2 more Smart Citations
“…We express our analysis using set constraints on a collection of type variables [15,19]. For a given program component to be analyzed, we allocate a type variable for each program variable x, denoted x , and similarly for each non-variable expression e and class field or method N.f and N.m, respectively.…”
Section: Abstract Domain For Typesmentioning
confidence: 99%
“…As can be seen, we use only simple subset constraints and conditional constraints (X ⊆ Y ∩ Z represents two constraints, X ⊆ Y and X ⊆ Z). The least solution to the constraints can be found using standard fixpoint algorithms [15,19,25].…”
Section: Type Inference Constraintsmentioning
confidence: 99%
See 1 more Smart Citation
“…currence [Sestoft 1991], α-converting a program so that each binding occurrence is unique, and using the binding variable as a token [Palsberg and Schwartzbach 1995]. In both cited works, only occurrences of procedures are specified.…”
Section: Occurrences Of Termsmentioning
confidence: 99%
“…Ayers [1993] used similar techniques to compute a highly optimized version of 0CFA. Palsberg and Schwartzbach [1995] use a constraint-based closure analysis similar to ours to support safety analysis. Stefanescu and Zhou [1994] have formulated a generalized closure analysis framework using abstract interpretation that can handle both mono-and polyvariance.…”
Section: Related Workmentioning
confidence: 99%