A CONTEXT AWARE TYPE SYSTEM FOR TREE-LIKE DATA STRUCTURES

dc.contributor.authorKussainov, Akhmetzhan
dc.date.accessioned2025-06-02T11:12:06Z
dc.date.available2025-06-02T11:12:06Z
dc.date.issued2025-05-07
dc.description.abstractIn 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.citationKussainov, A. (2025). A Context Aware Type System for Tree-Like Data Structures. Nazarbayev University School of Engineering and Digital Sciences
dc.identifier.urihttps://nur.nu.edu.kz/handle/123456789/8697
dc.language.isoen
dc.publisherNazarbayev University School of Engineering and Digital Sciences
dc.rightsAttribution 3.0 United Statesen
dc.rights.urihttp://creativecommons.org/licenses/by/3.0/us/
dc.subjecttype of access: open access
dc.subjecttype systems
dc.subjecttype checking
dc.subjectset approximation
dc.subjectabstract interpretation
dc.titleA CONTEXT AWARE TYPE SYSTEM FOR TREE-LIKE DATA STRUCTURES
dc.typeMaster`s thesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
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