Inferring visual contracts from Java programs
作者:Abdullah Alshanqiti, Reiko Heckel, Timo Kehrer
摘要
Visual contracts model the operation of components or services by pre- and post-conditions formalised as graph transformation rules. They provide a precise intuitive notation to support testing, understanding and analysis of software. Their detailed specification of internal data states and transformations, referred to as deep behavioural modelling, is an error-prone activity. In this paper we propose a dynamic approach to reverse engineering visual contracts from Java based on tracing the execution of Java operations. The resulting contracts give an accurate description of the observed object transformations, their effects and preconditions in terms of object structures, parameter and attribute values, and their generalised specification by universally quantified (multi) objects, patterns, and invariants. While this paper focusses on the fundamental technique rather than a particular application, we explore potential uses in our evaluation, including in program understanding, review of test reports and debugging.
论文关键词:Visual contracts, Graph transformation, Model extraction, Dynamic analysis, Reverse engineering, Specification mining
论文评审过程:
论文官网地址:https://doi.org/10.1007/s10515-018-0242-9