Static determination of dynamic properties of generalized type unions

  • Authors:
  • Patrick Cousot;Radhia Cousot

  • Affiliations:
  • Laboratoire d'Informatique, U.S.M.G., BP. 53, 38041 Grenoble Cedex, France;Laboratoire d'Informatique, U.S.M.G., BP. 53, 38041 Grenoble Cedex, France

  • Venue:
  • Proceedings of an ACM conference on Language design for reliable software
  • Year:
  • 1977

Quantified Score

Hi-index 0.00

Visualization

Abstract

The classical programming languages such as PASCAL or ALGOL 68 do not provide full data type security. Run-time errors are not precluded on basic operations. Type safety necessitates a refinement of the data type notion which allows subtypes. The compiler must also be able to ensure that basic operations are applicable. This verification consists in determining a local subtype of globally declared variables or constants. This may be achieved by improved compiler capabilities to analyze the program properties or by language constructs which permit the expression of these properties. Both approaches are discussed and illustrated by the problems of access to records via pointers, access to variants of record structures, determination of disjoint collections of linked records, and determination of integer subrange. Both approaches are complementary and a balance must be found between what must be specified by the programmer and what must be discovered by the compiler.