Electronic Proceedings in Theoretical Computer Science (Aug 2018)

Reversing Parallel Programs with Blocks and Procedures

  • James Hoey,
  • Irek Ulidowski,
  • Shoji Yuen

DOI
https://doi.org/10.4204/EPTCS.276.7
Journal volume & issue
Vol. 276, no. Proc. EXPRESS/SOS 2018
pp. 69 – 86

Abstract

Read online

We show how to reverse a while language extended with blocks, local variables, procedures and the interleaving parallel composition. Annotation is defined along with a set of operational semantics capable of storing necessary reversal information, and identifiers are introduced to capture the interleaving order of an execution. Inversion is defined with a set of operational semantics that use saved information to undo an execution. We prove that annotation does not alter the behaviour of the original program, and that inversion correctly restores the initial program state.