Structural Contracts - Motivating Contracts to Ensure Extra-Functional Semantics

Gregor Nitsche and Ralph Görgen and Kim Grüttner and Wolfgang Nebel
In Proceedings of the fifth IFIP International Embedded Systems Symposium (IESS 2015)
In our work, we aim at a composable and consistent specification and verification of Contracts for extra-functional properties, such as power consumption or temperature. To this end, a necessary precondition for the semantical correctness of such properties is to ensure the structurally correct modeling of their interdependences. While this can be solved by a tailoring of the Component Based Design (CmpBD) frameworks, the resulting design constraints are specific to tools and viewpoints, not being sufficiently configurable for the designers.To solve this problem within the contract framework, Contract Based Design (CBD) with explicit port variables provides also no configurable but sound methodology for structurally relating the properties between different components and views. For that, we propose the idea of Structural Contracts. Using implicit structural ports, structural guarantees can be given according to the Component Based Design structure. Expressing structural design constraints by the means of structural assumptions, the CmpBD constraints can become part of the Contract Based Design framework and, thus, can be checked for compatibility and refinement.As a result, structural contracts enable the contract-based specification and verification of structural rules for the correct modeling of functional and extra-functional interdependences. Providing both, property specifications and Component Based Design constraints by contracts, the approach is flexible and sound.
11 / 2015
Analog-Coverage in der Nanoelektronik