Certified assembly programming with embedded code pointers
Authors:
Open Access
- 11 January 2006
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 41 (1) , 320-333
Abstract
Embedded code pointers (ECPs) are stored handles of functions and continuations commonly seen in low-level binaries as well as functional or higher-order programs. ECPs are known to be very hard to support well in Hoare-logic style verification systems. As a result, existing proof-carrying code (PCC) systems have to either sacrifice the expressiveness or the modularity of program specifications, or resort to construction of complex semantic models. In Reynolds's LICS'02 paper, supporting ECPs is listed as one of the main open problems for separation logic.In this paper we present a simple and general technique for solving the ECP problem for Hoare-logic-based PCC systems. By adding a small amount of syntax to the assertion language, we show how to combine semantic consequence relation with syntactic proof techniques. The result is a new powerful framework that can perform modular reasoning on ECPs while still retaining the expressiveness of Hoare logic. We show how to use our techniques to support polymorphism, closures, and other language extensions and how to solve the ECP problem for separation logic. Our system is fully mechanized. We give its complete soundness proof and a full verification of Reynolds's CPS-style "list-append" example in the Coq proof assistant.Keywords
This publication has 28 references indexed in Scilit:
- Certified assembly programming with embedded code pointersACM SIGPLAN Notices, 2006
- Building certified libraries for PCC: dynamic storage allocationScience of Computer Programming, 2004
- Interfacing Hoare Logic and Type Systems for Foundational Proof-Carrying Code2004
- An indexed model of recursive types for foundational proof-carrying codeACM Transactions on Programming Languages and Systems, 2001
- Predicate transformer semantics of a higher-order imperative language with record subtypingScience of Computer Programming, 2001
- Automated proofs of object code for a widely used microprocessorJournal of the ACM, 1996
- A Syntactic Approach to Type SoundnessInformation and Computation, 1994
- Lambda calculus notation with nameless dummies, a tool for automatic formula manipulation, with application to the Church-Rosser theoremIndagationes Mathematicae, 1972
- An axiomatic basis for computer programmingCommunications of the ACM, 1969
- Assigning meanings to programs1967