A CONTEXT AWARE TYPE SYSTEM FOR TREE-LIKE DATA STRUCTURES
| dc.contributor.author | Kussainov, Akhmetzhan | |
| dc.date.accessioned | 2025-06-02T11:12:06Z | |
| dc.date.available | 2025-06-02T11:12:06Z | |
| dc.date.issued | 2025-05-07 | |
| dc.description.abstract | In this work, we design a context aware type system for an imperative programming language where all data are tree structures. Tree-like data structures can have different forms with distinct fields based on the way they are constructed. Our type system can determine the forms of data trees from a program context and ensure the correctness of field accesses and function applications. During type checking, the program context is approximated as a function that maps each program point to a set of possible program states. Indexing information is also approximated with special array range states and relative order of indices. This novel treatment of indices allows us to reason about the state of an array at some index without storing the states of individual elements. Once the program approximation is computed, the type-checking algorithm ensures the correctness of function and field applications. Function and field applications are valid if their preconditions are satisfied by the current program state. A program is well-typed if all function applications and field accesses can be resolved to exactly one valid overload in each possible program state. Otherwise, our type-checking algorithm concludes that the program is ill-typed. | |
| dc.identifier.citation | Kussainov, A. (2025). A Context Aware Type System for Tree-Like Data Structures. Nazarbayev University School of Engineering and Digital Sciences | |
| dc.identifier.uri | https://nur.nu.edu.kz/handle/123456789/8697 | |
| dc.language.iso | en | |
| dc.publisher | Nazarbayev University School of Engineering and Digital Sciences | |
| dc.rights | Attribution 3.0 United States | en |
| dc.rights.uri | http://creativecommons.org/licenses/by/3.0/us/ | |
| dc.subject | type of access: open access | |
| dc.subject | type systems | |
| dc.subject | type checking | |
| dc.subject | set approximation | |
| dc.subject | abstract interpretation | |
| dc.title | A CONTEXT AWARE TYPE SYSTEM FOR TREE-LIKE DATA STRUCTURES | |
| dc.type | Master`s thesis |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- Thesis_A_Context_Aware_Type_System_for_TreeLike_Data_Structures.pdf
- Size:
- 384.88 KB
- Format:
- Adobe Portable Document Format
- Description:
- Master`s thesis