Back to Search Start Over

A compositional natural semantics and Hoare logic for low-level languages

Authors :
Saabas, Ando
Uustalu, Tarmo
Source :
Theoretical Computer Science. Apr2007, Vol. 373 Issue 3, p273-302. 30p.
Publication Year :
2007

Abstract

Abstract: The advent of proof-carrying code has generated significant interest in reasoning about low-level languages. It is widely believed that low-level languages with jumps must be difficult to reason about because of being inherently non-modular. We argue that this is untrue. We take it seriously that, unlike statements of a high-level language, pieces of low-level code are multiple-entry and multiple-exit. And we define a piece of code as consisting of either a single labelled instruction or a finite union of pieces of code. Thus we obtain a compositional natural semantics and a matching Hoare logic for a basic low-level language with jumps. By their simplicity and intuitiveness, these are comparable to the standard natural semantics and Hoare logic of While. The Hoare logic is sound and complete wrt the semantics and allows for compilation of proofs of the Hoare logic of While. [Copyright &y& Elsevier]

Details

Language :
English
ISSN :
03043975
Volume :
373
Issue :
3
Database :
Academic Search Index
Journal :
Theoretical Computer Science
Publication Type :
Academic Journal
Accession number :
24427799
Full Text :
https://doi.org/10.1016/j.tcs.2006.12.020