2009
DOI: 10.1007/978-3-642-00515-2_10
|View full text |Cite
|
Sign up to set email alerts
|

An Inference Algorithm for Guaranteeing Safe Destruction

Abstract: Abstract. Safe is a first-order eager language with facilities for programmer-controlled destruction and copying of data structures. It provides also regions, i.e. disjoint parts of the heap where the programmer may allocate data structures. A type system is used to avoid dangling pointers arising from the inadequate usage of these facilities. In this paper we present an inference algorithm, we describe its implementation, and give a number of successfully typed examples. Also the correctness of the algorithm … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
8
0

Year Published

2009
2009
2015
2015

Publication Types

Select...
5
1

Relationship

2
4

Authors

Journals

citations
Cited by 9 publications
(8 citation statements)
references
References 11 publications
0
8
0
Order By: Relevance
“…However, all three approaches require the programmer to provide explicit size information, that is checked rather than inferred. Finally, a combination of sized types with memory regions has been suggested by Peña and Segura [22], building on information provided by ancillary analyses on termination and safe destruction [23]. However, this does not deal with co-recursive costs.…”
Section: Soundness Of the Proof Systemmentioning
confidence: 99%
“…However, all three approaches require the programmer to provide explicit size information, that is checked rather than inferred. Finally, a combination of sized types with memory regions has been suggested by Peña and Segura [22], building on information provided by ancillary analyses on termination and safe destruction [23]. However, this does not deal with co-recursive costs.…”
Section: Soundness Of the Proof Systemmentioning
confidence: 99%
“…is true for r-marked types, while function danger (t) attaches a mark r to a safe type t. For a complete description, see [11]. An inference algorithm for this type system has been developed in [12].…”
Section: Safe Type Systemmentioning
confidence: 99%
“…In [11] we made a detailed comparison with those works showing that our system accepts as safe some programs that their system rejects. Another difference is that we have developed a type inference algorithm [12] which they lack.…”
Section: Related Work and Conclusionmentioning
confidence: 99%
See 1 more Smart Citation
“…The Safe language and a sharing analysis for it were published in [11]. We also defined a type system and a type inference algorithm [10,9] guaranteeing that destruction facilities and region management are done in a safe way.…”
Section: Introductionmentioning
confidence: 99%