A checkable interface language for pointer-based structures

  • Authors:
  • James R. Russell;Robert E. Strom;Daniel M. Yellin

  • Affiliations:
  • Distributed System Software Technology, IBM T. J. Watson Research Center, Yorktown Heights;Distributed System Software Technology, IBM T. J. Watson Research Center, Yorktown Heights;Distributed System Software Technology, IBM T. J. Watson Research Center, Yorktown Heights

  • Venue:
  • IDL '94 Proceedings of the workshop on Interface definition languages
  • Year:
  • 1994

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a technique for analysing structural constraints on data aggregates in high-level languages. Our technique includes a formal constraint language and a dataflow algorithm for automatically checking equality constraints. The constraint language is used to augment the type information on program interfaces. For example, one can specify that a procedure must return aggregates A and B where each element in aggregate A points to some element in aggregate B, and that parameter C will have the properties of a rooted tree both on input and output. Our dataflow algorithm tracks the constraints which must apply at each statement in order for the procedure to satisfy its interface, and detects invalid programs which fail to satisfy the constraints on their interfaces. We apply our technique to several examples.Our work is motivated by the requirements for expressive interface definition languages for distributed systems, and by the desire to mechanically check program modules against their interfaces. Our analysis techniques also yield information which may enable compilers and stub generators to produce better implementations.