Skip to content

Implement parsing and typechecking of new cast operators #204

@dtarditi

Description

@dtarditi

Section 5.1 of the Checked C specification describes new cast operators for converting between pointers with different kinds of checking. It also describes changes to the existing C cast operator for checked pointer types.

Here are the proposed work items for this feature:

  • Design for extending IR with new cast information.
  • Implement IR extension for dynamic_bounds_cast and parse dynamic_bounds_cast<T>(e1), dynamic_bounds_cast<T>(e1, e2) , and dynamic_bounds_cast<T>(e1, e2, e3).
  • Same as above but for assume_bounds_cast.
  • Implement type checking rules for C-style casts involving checked pointer types. Work includes writing tests.
  • Implement type checking rules for dynamic_bounds_cast. Work includes writing tests.
  • Implement type checking rules for assume_bounds_cast. Work includes writing tests.

Metadata

Metadata

Assignees

Labels

featureThis labels new features and enhancements.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions