Institutions, property-aware programming and testing

  • Authors:
  • Magne Haveraaen

  • Affiliations:
  • Universitetet i Bergen

  • Venue:
  • LCSD '07 Proceedings of the 2007 Symposium on Library-Centric Software Design
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

The institution notion is a general model theoretic framework, explaining how specifications (algebraic axioms) relate to models (mathematical models or even software constructions) in a formalism-independent manner. There is a large set of institution-independent structuring mechanisms for specifications. Property aware programming, as e.g. supported by concepts in C++0X, provides algebraic axioms as part of the code to ensure correctness of generic software composition. Testing is very important for the validation of software, but tests are all too often developed on an ad hoc basis. Here we present a library testing framework, with a basis in structured specifications. The approach will be demonstrated on Sophus, a medium-sized software library for coordinate-free numerics. Sophus was developed using (informal) algebraic specifications in order to improve reusability and reduce development costs.