adam-tapas-2020

Field Name Field Value
Type In Proceedings (Conference)
Link https://doi.org/10.1145/3427764.3428324
Preprint https://justus.science/pdfs/tapas2020.pdf
Abstract

Type checkers are the most commonly used form of static analysis, but their design is coupled to the rest of the language, making it hard or impossible to bring new kinds of reasoning to existing unmodified code. We propose a novel approach to checking advanced type invariants and properties in unmodified source code, while retaining the speed and ease of simple syntax directed type checkers. The insight is that by combining a relatively deep program analysis (symbolic execution) with an unusual choice of program abstraction (based on program slicing), it appears possible to reconstitute type-checking as a special case of a more general analysis, which the abstraction reduces mostly to ‘type-level’ reasoning, largely discarding the ‘value-level’ work of the program.

We implement a first simple prototype that demonstrates this idea by checking the safety of generic pointers in C, potentially bringing benefits roughly comparable with Milner’s polymorphism.

Author Justus Adam, Stephen Kell
Journal 11th Workshop on Tools for Automatic Program Analysis
Month 11
Title Type Checking beyond Type Checkers, via Slice & Run
Year 2020