Running programs backwards: The logical inversion of imperative computation
Author:
Open Access
- 1 May 1997
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Formal Aspects of Computing
- Vol. 9 (3) , 331-348
Abstract
Imperative programs can be inverted directly from their forward-directed program code with the use of logical inference. The relational semantics of imperative computations treats programs as logical relations over the observable state of the environment, which is taken to be the state of the variables in memory. Program relations denote both forward and backward computations, and the direction of the computation depends upon the instantiation pattern of arguments in the relation. This view of inversion has practical applications when the relational semantics is treated as a logic program. Depending on the logic programming inference scheme used, execution of this relational program can compute the inverse of the imperative program. A number of nontrivial imperative computations can be inverted with minimal logic programming tools.Keywords
This publication has 19 references indexed in Scilit:
- On the synthesis of function inversesActa Informatica, 1992
- Grammar-related transformations of logic programsNew Generation Computing, 1991
- Program inversion in the refinement calculusInformation Processing Letters, 1991
- Program inversion: More than fun!Science of Computer Programming, 1990
- Invertible cellular automata: A reviewPhysica D: Nonlinear Phenomena, 1990
- Notes on Communicating Sequential Systems1986
- Metalogical control for logic programsThe Journal of Logic Programming, 1985
- The thermodynamics of computation—a reviewInternational Journal of Theoretical Physics, 1982
- An experimental program transformation and synthesis systemArtificial Intelligence, 1981
- Derivation of Invariant Assertions During Program Development by TransformationACM Transactions on Programming Languages and Systems, 1980