Deriving Pre-conditions for Array Bound Check Elimination

  • Authors:
  • Wei-Ngan Chin;Siau-Cheng Khoo;Dana N. Xu

  • Affiliations:
  • -;-;-

  • Venue:
  • PADO '01 Proceedings of the Second Symposium on Programs as Data Objects
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a high-level approach to array bound check optimization that is neither hampered by recursive functions, nor disabled by the presence of partially redundant checks. Our approach combines a forward analysis to infer precise contextual constraint at designated program points, and a backward method for deriving a safety precondition for each bound check. Both analyses are formulated with the help of a practical constraint solver based on Presburger formulae; resulting in an accurate and fully automatable optimization. The derived preconditions are also used to guide bound check specialization, for the purpose of eliminating partially redundant checks.