On simple programs with primitive conditional statements

https://doi.org/10.1016/S0019-9958(85)80019-XGet rights and content
Under an Elsevier user license
open archive

This paper is concerned with the expressive power (or computational power) of loop programs over different sets of primitive instructions. In particular, we show that an {x ← 0, xy, xx + 1, do xend, if x = 0 then yz}-program which contains no nested loops can be transformed into an equivalent {x ← 0, xy, xx + 1, do xend}-program (also without nested loops) in exponential time and space. This translation was earlier claimed, in the literature, to be obtainable in polynomial time, but then this was subsequently shown to imply that PSPACE = PTIME. Consequently, the question of translatability was left unanswered. Also, we show that the class of functions computable by {x ← 0, xy, xx + 1, x − 1, do xend, if x = 0 then xc}-programs is exactly the class of Presburger functions.

Cited by (0)

*

This research was supported in part by NSF Grant MCS 83-04756.

This research was supported in part by The University Research Institute, The University of Texas at Austin and the IBM Corporation.