Back to search

University of Alberta

SafeType: Detecting Type Violations for Type-Based Alias Analysis of C

Abstract

dc:description.abstract

A type-based alias analysis uses the types of variables in a program to assist in determining the alias relations of those variables. The C standard imposes restrictions on the types of expressions that may access objects in memory, with the explicit intent of specifying when two objects may be aliased. In practice, however, many C programs do not conform to these restrictions, making type-based alias analysis unsound for those programs. As a result, type-based alias analysis is frequently disabled. This thesis presents SafeType, a sound approach for compile-time detection of violations of the C standard’s type-based restrictions on memory access; describes an implementation of SafeType in the IBM XL C compiler, extended with flow- and context-sensitive queries to handle variables with type void *; evaluates that implementation, showing that it scales to programs with hundreds of thousands of lines of code; and identifies a previously unreported violation of the C standard’s type-based restrictions on memory access in the 470.lbm benchmark in SPEC CPU2006.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2013

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ireland, Iain A.
Advisor dc:contributor.advisor
  • Amaral, Jose Nelson (Computing Science)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Libraries with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/R3G737C31

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Ireland, Iain A.. SafeType: Detecting Type Violations for Type-Based Alias Analysis of C. Master's thesis, University of Alberta, 2013. https://doi.org/10.7939/R3G737C31