A theory of type qualifiers

Citation
Js. Foster et al., A theory of type qualifiers, ACM SIGPL N, 34(5), 1999, pp. 192-203
Citations number
32
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
34
Issue
5
Year of publication
1999
Pages
192 - 203
Database
ISI
SICI code
1523-2867(199905)34:5<192:ATOTQ>2.0.ZU;2-I
Abstract
We describe a framework for adding type qualifiers to a language. Type qual ifiers encode a simple but highly useful form of subtyping. Our framework e xtends standard type rules to model the how of qualifiers through a program , where each qualifier or set of qualifiers comes with additional rules tha t capture its semantics. Our framework allows types to be polymorphic in th e type qualifiers. We present a const-inference system for C as an example application of the framework. We show that for a set of real C programs, ma ny more consts can be used than are actually present in the original code.