Propagation of constants and assertions

  • Authors:
  • Alexander Sakharov

  • Affiliations:
  • Motorola, Inc., Software Research and Development, 3701 Algonquin Rd., Suite 600, Roiling Meadows, IL

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1994

Quantified Score

Hi-index 0.00

Visualization

Abstract

Constant propagation is a well-known data flow analysis problem. Constant propagation enables compiletime calculations and deletion of unreachable code. In this paper, constant propagation is generalized to allow propagation of a wider class of assertions. Along with equalities between variables and constants, this class includes controlling expressions of conditional branches and equalities originating from program assignments. The problem of propagating these assertions is solved by application of the mechanism of monotone data flow analysis frameworks. Propagation of the assertions enables additional optimizations: deletion of assignments and redirection of control flow.