Typestate: A programming language concept for enhancing software reliability
The DOI matches its Crossref record.
Abstract
The authors introduce a new programming language concept, called typestate, which is a refinement of the concept of type. Whereas the type of a data object determines the set of operations over permitted on the object, typestate determines the subset of these operations which is permitted in a particular context. Typestate tracking is a program analysis technique which enhances program reliability by detecting at compile-time syntactically legal but semantically undefined execution sequences. These include reading a variable before it has been initialized and dereferencing a pointer after the dynamic object has been deallocated. The authors define typestate, give examples of its application, and show how typestate checking may be embedded into a compiler. They discuss the consequences of typestate checking for software reliability and software structure, and summarize their experience in using a high-level language incorporating typestate checking.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Bugs as deviant behavior: a general approach to inferring errors in systems code
Engler, D., Chen, D. Y., Hallem, S., Chou, A., & Chelf, B. (2001) · Proceedings of the eighteenth ACM symposium on Operating systems principles · doi:10.1145/502034.502041 · Cited by 737
Securing web application code by static analysis and runtime protection
Huang, Y.-W., Yu, F., Hang, C., Tsai, C.-H., Lee, D.-T., & Kuo, S.-Y. (2004) · Proceedings of the 13th international conference on World Wide Web · doi:10.1145/988672.988679 · Cited by 567
ESP: path-sensitive program verification in polynomial time
Das, M., Lerner, S., & Seigle, M. (2002) · Proceedings of the ACM SIGPLAN 2002 conference on Programming language design and implementation · doi:10.1145/512529.512538 · Cited by 552
Programming languages for distributed computing systems
Bal, H. E., Steiner, J. G., & Tanenbaum, A. S. (1989) · ACM Computing Surveys · doi:10.1145/72551.72552 · Cited by 423
Jhala, R., & Majumdar, R. (2009) · ACM Computing Surveys · doi:10.1145/1592434.1592438 · Cited by 418
Perracotta: mining temporal API rules from imperfect traces
Yang, J., Evans, D., Bhardwaj, D., Bhat, T., & Das, M. (2006) · Proceedings of the 28th international conference on Software engineering · doi:10.1145/1134285.1134325 · Cited by 406
Jungloid mining: helping to navigate the API jungle
Mandelin, D., Xu, L., Bodík, R., & Kimelman, D. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065018 · Cited by 388
Detecting object usage anomalies
Wasylkowski, A., Zeller, A., & Lindig, C. (2007) · Proceedings of the the 6th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on The foundations of software engineering · doi:10.1145/1287624.1287632 · Cited by 272
Automatic extraction of object-oriented component interfaces
Whaley, J., Martin, M. C., & Lam, M. S. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566212 · Cited by 261
Jungloid mining: helping to navigate the API jungle
Mandelin, D., Xu, L., Bodík, R., & Kimelman, D. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065018 · Cited by 261
DeLine, R., & Fähndrich, M. (2004) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-24851-4_21 · Cited by 253
VerX: Safety Verification of Smart Contracts
Permenev, A., Dimitrov, D., Tsankov, P., Drachsler-Cohen, D., & Vechev, M. (2020) · 2020 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp40000.2020.00024 · Cited by 247
Foundations of Session Types and Behavioural Contracts
Hüttel, H., Lanese, I., Vasconcelos, V. T., Caires, L., Carbone, M., Deniélou, P.-M., Mostrous, D., Padovani, L., Ravara, A., Tuosto, E., et al. (2017) · ACM Computing Surveys · doi:10.1145/2873052 · Cited by 207
Using programmer-written compiler extensions to catch security holes
Ashcraft, K., & Engler, D. (2005) · Proceedings 2002 IEEE Symposium on Security and Privacy · doi:10.1109/secpri.2002.1004368 · Cited by 204
“While there has been some w orkon richer frameworks such as TypeState [15], Vault [5], and aspect-oriented programming [10 ], these still miss many systems relations and require programmer participation.”
BackgroundAutomatic detection and repair of errors in data structures
Demsky, B., & Rinard, M. (2003) · Proceedings of the 18th annual ACM SIGPLAN conference on Object-oriented programing, systems, languages, and applications · doi:10.1145/949305.949314 · Cited by 201
“In typestate systems, the type of each object can change over time to reflect changes in its properties [28, 20].”
BackgroundModular typestate checking of aliased objects
Bierhoff, K., & Aldrich, J. (2007) · Proceedings of the 22nd annual ACM SIGPLAN conference on Object-oriented programming systems, languages and applications · doi:10.1145/1297027.1297050 · Cited by 189
“We build on our previous work on leveraging typestates [34] for lightweight object protocol specification [4].”
BackgroundMethodHard-to-answer questions about code
LaToza, T. D., & Myers, B. A. (2010) · Evaluation and Usability of Programming Languages and Tools · doi:10.1145/1937117.1937125 · Cited by 141
CrySL: An Extensible Approach to Validating the Correct Usage of Cryptographic APIs
Kruger, S., Spath, J., Ali, K., Bodden, E., & Mezini, M. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2948910 · Cited by 112
Henzinger, T. A., Jhala, R., & Majumdar, R. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081713 · Cited by 111
“In the .rst case, we automatically re.ne the permissiveness abstraction to eliminate the spurious counterexample.”
Automatically Generating Test Cases for Specification Mining
Dallmeier, V., Knopp, N., Mallon, C., Fraser, G., Hack, S., & Zeller, A. (2012) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2011.105 · Cited by 67
“The term typestate was coined in 1986 by Strom and Yemini [26].”
BackgroundStateful Contracts for Affine Types
Tov, J. A., & Pucella, R. (2010) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-11957-6_29 · Cited by 43
“In addition to session types and other forms of typestate [15], substructural types have been used for memory management [8], for optimization of lazy languages [18], and to handle effects in pure languages [2].”
MethodResource-Dependent Algebraic Effects
Brady, E. (2015) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-14675-1_2 · Cited by 18
Metadata
- Authors
- Strom, R. E., & Yemini, S.
- Venue
- IEEE Transactions on Software Engineering
- Published
- 1986-01
- Volume
- SE-12
- Issue
- 1
- Pages
- 157-171
- ISSN
- 0098-5589 (ISSN-L)
- OpenAlex
- W2044590882
- Cited by
- 626
- References
- 0
- FWCI
- 2.08
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.