Full text
Noname manuscript No. (will be inserted by the editor) Full Contract Verification for ATL using Symbolic Execution Bentley James Oakes ·Javier Troya ·Levi L´ucio ·Manuel Wimmer June 28, 2016 Abstract The Atlas Transformation Language (ATL) is currently one of the most-used model transformation languages and has become a de-facto standard in modeldriven engineering for implementing model transformations. At the same time, it is understood by the community that enhancing methods for exhaustively verifying such transformations allows for a more widespread adoption of model-driven engineering in industry. A variety of proposals for the verification of ATL transformations have arisen in the past few years. However, the majority of these techniques are either based on nonexhaustive testing or on proof methods that require human assistance and/or are not complete. In this paper, we describe our method for statically verifying the declarative subset of ATL model transformations. This verification is performed by translating the transformation (including features like filters, OCL expressions, and lazy rules) into our model transformation language DSLTrans. As we handle only the declarative portion of ATL, and DSLTrans is Turingincomplete, this reduction in expressivity allows us to use a symbolic-execution approach to generate representations of all possible input models to the transform- Bentley James Oakes School of Computer Science, McGill University, Canada E-mail: bentley.oak[email protected] Javier Troya Department of Computing Languages and Systems, Universidad de Sevilla, Spain, E-mail: jtroy[email protected] Levi L´ucio fortiss GmbH, M¨unchen, Germany, E-mail: [email protected] Manuel Wimmer Business Informatics Group, TU Wien, Austria, E-mail: [email protected]wien.ac.at ation. We then verify pre-/post-condition contracts on these representations, which in turn verifies the transformation itself. The technique we present in this paper is exhaustive for the subset of declarative ATL model transformations. This means that if the prover indicates a contract holds on a transformation, then the contract’s pre- /post-condition pair will be true for any input model for that transformation. We demonstrate and explore the applicability of our technique by studying several relatively large and complex ATL model transformations, including a model transformation developed in collaboration with our industrial partner. As well, we present our ‘slicing’ technique. This technique selects only those rules in the DSLTrans transformation needed for contract proof, thereby reducing proving time. Keywords Model transformation ·ATL ·Formal verification ·Symbolic execution ·Contracts ·Pre- /Post-conditions 1 Introduction Model transformations have become the main means for manipulating models in model-driven engineering [12], as transformations are an excellent compromise between strong theoretical foundations and applicability to realworld problems [34]. In particular, model transformations allow for mathematical treatment based on foundations of graphs and graph transformations, and can natively manipulate domain-specific concepts expressed in metamodels. For example, the Atlas Transformation Language (ATL) [4, 28] has come to prominence in the modeldriven engineering community. This success is due to ATL’s flexibility, support of the main meta-modelling
2 Bentley James Oakes et al. standards, usability that relies on strong tool integration with the Eclipse world, and a supportive development community. Due to the importance of ATL in both the academic and the industrial arenas, the verification of ATL transformations is of prime importance. This is because the correctness of software built using model-driven engineering techniques typically relies on the correctness of operations executed using model transformations. As well, there is a strong demand for tools that allow the building of verified software, especially in industries where quality and safety standards have to be met. In this paper we address this issue by detailing our technique for verifying visual pre-/post-condition contracts on ATL transformations. A contract is said to hold on a transformation if it holds on the transformation’s input-output pairs. That is, for all input models where the contract’s pre-condition holds, the contract’s post-condition also holds in the corresponding output model produced by executing the transformation. Traceability constraints between the elements of the input and output models may also be required. Otherwise, the contract does not hold, and consequently, the transformation does not correctly implement the contract. For example, this paper considers as running example an extended version of the well-known Families-to- Persons transformation from the ATL zoo [2], where mother(s), father(s), daughter(s) and son(s) belonging to a family are translated into men and women who are members of a community. One possible contract would try to assert that, for any input model containing a family that includes a mother and a daughter, a man is produced in the output community. We would expect the contract not to hold for the Families-to-Persons transformation, because there can exist families that are composed of only a mother and her daughter. The main contribution of our technique is that, if our prover demonstrates that the contract holds, then it will hold for any input model given to the ATL model transformation. We can thus guarantee the user can safely execute the model transformation without any need for additional testing or runtime checking, as seen in other ATL verification approaches (cf. Section 9). Our contract language is based on pre-/post-condition contracts, but also includes propositional logic operators for combining contracts. Section 5 includes a discussion of contracts, including examples and a summary of contract expressiveness. We prove that contracts hold or not by translating ATL transformations into transformations defined in a model transformation language called DSLTrans [10]. A theoretical framework has been developed for the DSLTrans model transformation language in which pre- /post-condition contracts can be shown to hold for all those input/output model pairs resulting from executing a given DSLTrans model transformation, or to not hold for at least one of those input/output pairs [32]. A fully automatic property prover based on this theory has been shown to be applicable to industrial problems [44]. In this paper we focus on verifying the declarative part of ATL, given the similarity to the DSLTrans model transformation language. It is common practice to use this subset of the language for the majority of transformation requirements. Additionally, using only declarative ATL normally results in clearer, more readable and more maintainable model transformations than when the imperative part of the language is used. Please note that this article is an extension of a paper presented at the MoDELS 2015 conference [36]. Besides incremental advancements of the general verification approach, this article introduces four major extensions over the previous paper. First, a substantial subsection (cf. Subsection 4.2.2) has been added, which explains how Object Constraint Language (OCL) expressions are handled in the transformation from ATL to DSLTrans. Second, additional ATL features are now considered in the mapping, namely helpers and conditions (cf. Section 4.1). Third, the evaluation of the approach has been significantly improved. In particular, we now also compare the transformations produced by the HOT with hand-built transformations in two case studies of varying complexity. Finally, the slicing algorithm initially described in [36] has been further improved and is now presented in more detail in Section 7. The presentation of our work is as follows: Section 2 briefly introduces the ATL and DSLTrans languages and their relevant constructs. Following this, Section 3 presents the extended Families-to-Persons ATL transformation, describes how it is executed, and presents its DSLTrans counterpart. Section 4 provides a pseudo-code algorithm and execution example for the higher-order transformation that automatically transforms declarative ATL transformations into their semantically-equivalent DSLTrans counterparts. Section 5 discusses our contract proving method. This includes the creation of the artifacts which represent transformation executions through symbolic execution, as well as a description of how contracts are proven using these artifacts. Some relevant pre-/postcondition contracts for the extended Families-to-Per- sons transformation are also described. Performance results obtained from applying our tool to a number of transformations, including a transform-
Full Contract Verification for ATL using Symbolic Execution 3 ation obtained from our industrial partner, are presented in Section 6. These results are discussed within the section and show that our technique is feasible. In Section 7, our slicing algorithm is discussed, which allows the prover to select only those rules which are needed to prove a particular contract. Results presented in this section demonstrate the reduction in contract proving time. Section 8 examines the transformations produced by our higher-order transformation (HOT) from ATL code, versus versions produced by hand in our earlier work. Both versions of one transformation are then used for contract proving, to examine the suitability of the HOT to replace the building of DSLTrans transformations by hand. Finally, we wrap-up in Sections 9 and 10 by describing related work and discussing threats to validity, our conclusions, and some thoughts on future work. 2 Preliminaries: ATL and DSLTrans In this section, we introduce the model transformation languages used in this paper. 2.1 ATL ATL is a textual rule-based model transformation language that provides both declarative and imperative language concepts. It is thus considered a hybrid model transformation language. An ATL transformation is composed of a set of transformation rules and helpers. Each rule describes how certain target model elements should be generated from certain source model elements. There are two kinds of rules: matched rules and lazy rules1. Matched rules are automatically executed by the ATL execution engine for every match in the source model according to the input patterns of the matched rules. In contrast, lazy rules have to be explicitly called from another rule, which gives more control over the transformation execution. The Object Constraint Language (OCL) is used all throughout ATL transformations as an expression language. A helper can be seen as an auxiliary OCL function, which can be used to avoid the duplication of the OCL code at different points in the ATL transformation. Rules are mainly composed of an input pattern and an output pattern. The input pattern is used to match input pattern elements that are relevant for the rule. 1We include ATL’s called rules under lazy rules. The output pattern specifies how the output pattern elements are created from the input model elements matched by the input pattern. Each output pattern element can have several bindings that can be used to initialize the values of the elements in the target model. Please note that these initializations are performed in a second phase after a first phase where all output elements are created by the matched rules. This separation in two steps enables the initialization of target values independent from the execution order of the rules, as explained in detail in Section 3.3. Listing 1 Families-to-Persons ATL Transformation Excerpt module Families2Persons ; create OUT :Persons from IN :Families ; r u l e Country2Community { from c:Families !Country to cmm :Persons !Community ( persons <−c.families−>collect (f|f.mothers ) , . . . )} r u l e Mother2Woman { from p:Families !Parent (p.family .mothers .includes(p) ) to w:Persons !Woman ( fullName <−p.firstName +p.family .lastName )} In Listing 1 we give a minimal excerpt of the Families-to-Persons transformation, which is fully explained in Section 3. In particular, two matched rules are defined. The first one transforms Countries into Communities, while the second one creates for each mother instance in the source model, a Woman instance in the target model. Please note that the second rule also has a filter for selecting from the set of Parents only the mothers. Bindings are used, for instance, to initialize the persons reference of Communities, by collecting all mothers from all Families of the matched Country. For more information on ATL the interested reader is referred to [28]. 2.2 DSLTrans DSLTrans is a visual graph-based and rule-based model transformation engine that has two important properties enforced by construction: all its computations are both terminating and confluent [10]. These properties stem from the fact that DSLTrans does not allow unbounded loops during execution, making it a Turingincomplete computing language [10]. Besides their obvious importance in practice, termination and confluence were instrumental in the implementation of our verification technique for pre-/post-condition contracts. Model transformations are expressed in DSLTrans as sets of graph rewriting rules, having an upper part (named MatchModel), a lower part (ApplyModel) and,
4 Bentley James Oakes et al. Fig. 1 An example of a DSLTrans rule optionally, negative application conditions. The main construction used in the scheduling of model transformation rules in DSLTrans is a layer. Each model transformation rule in a layer cannot match over the output of any other rule in the same layer. As well, rules cannot modify the input graph during the rewriting phase (termed out-place execution). Layers are organized sequentially and the output model that results from executing a given layer is passed as input to the next layer in the sequence. A DSLTrans rule can match over the elements of the input model of the transformation and also over elements that have been generated so far in the output model. Matching over elements of the output model of a transformation is achieved using a DSLTrans construct called backward links. Backward links allow matching over traces between elements in the input and the output models of the transformation. These traces are explicitly built by the DSLTrans transformation engine during rule execution. For example, we depict in Figure 1 a rule in the DSLTrans language. When a rule is executed, the graph in the MatchModel of the rule is searched for in the transformation’s input model, together with the classes in the ApplyModel of the rule that are connected to backward links. An example of a backward link can be observed in Figure 1 as a dotted line connecting the Country and the Community match classes. During the rewrite part of rule application, the instances of classes in the ApplyModel of the rule that are not connected to backward links, together with their adjacent relations, are created in the output model. For example, the UnionWomanRule rule in Figure 1 will match over a Country element connected to a Family element connected to a Parent element. If these elements are found in the input model along with the corresponding Community and Woman elements in the output model, then a persons relation will be created between those output elements. Although not present in this rule, copying object attribute values from the MatchModel to the ApplyModel of the rules is also part of the DSLTrans language, as illustrated in Section 3.4. In addition to the constructs presented in the example in Figure 1, DSLTrans has several others: existential matching which allows selecting only one result when a match class of a rule matches an input model, indirect links for transitive matching over containment relations in the input model, and negative application conditions that allow the transformation designer to specify conditions under which a rule should not match. These constructs are not currently used in our verification approach, and the interested reader is referred to [10] for further information. 3 The Extended Families-to-Persons Transformation As our running example we present an extended version of the Families-to-Persons transformation described in [36]. The original Families-to-Persons transformation can be found in the ATL zoo [2], and has also been discussed in a number of related works on verification and testing [25]. We chose this Families-to-Persons transformation as our running example for two reasons. First, it transforms domains whose concepts are easily understandable by anyone (cf. Section 3.1). Second, it has a certain degree of complexity since it uses many features available in the ATL language (cf. Section 3.2). 3.1 Transformation Domains The input and output metamodels of this transformation are shown in Figure 2. Please note that abstract classes are depicted in grey color and with italic names, and inheritance relationships are depicted in grey. The input metamodel, the Families Extended metamodel, has the Country class as a root element. A Country is made up of companies,families and cities. AFamily has a lastName, is registeredIn aNeighborhood and can have any number of mothers and fathers, who are Parents and may, in turn, work in (worksIn) a Company. It can also contain any number of sons and daughters, who are Children, and every child goesTo a School. Both parents and children are Members that have a firstName, belong to a family and each of them livesIn aCity. ACity may contain companies, and a Company, in turn, can be present in (relationship isIn) several distinct cities. A City is composed of neighborhoods, and these can have schools, where several students are registered. Every School has Services, and these may be special, for students with special needs, or simply
Full Contract Verification for ATL using Symbolic Execution 5 Country City Company School Service Neighborhood Family lastName :EString Child Member firstName :EString Parent NamedElement name :EString 1..* families 0..* sons 0..* daughters 0..* fathers 0..* mothers family 1..1 1..* cities 0..* companies 1..* isIn 0..* employees 0..1 worksIn companies 0..* registeredIn 1..1 1..1 livesIn 0..* schools 0..* special 0..* ordinary neighborhoods 1..* goesTo 1..1 students 0..* (a) Families Extended metamodel Community TownHall Committee Association SpecialFacility OrdinaryFacility Facility District Man Woman Person fullName :EString NamedElement name :EString 1..* persons 0..* associations committee 1..1 1..* townHalls 1..* districts facilities 0..* workers members 0..* 0..* committee 1..1 (b) Persons Extended metamodel Fig. 2 Metamodels of the Families-to-Persons Extended transformation offer ordinary services. Finally, countries, cities, companies, neighborhoods and schools have a name attribute, which is inherited from the abstract NamedElement class. The output metamodel, Persons Extended, is shown in Figure 2(b). The root class is Community, which is made up of persons,townHalls and associations. A Person has a fullName and can either be a Man or a Woman. An Association has a Committee that makes decisions. Every TownHall has a roster of workers (all the persons that are employed), hosts a Committee to make decisions, and also governs several districts. A District may contain several facilities, either of type SpecialFacility for those with special needs, or OrdinaryFacility. Each Facility may have registered several persons as members. Finally, associations, town halls, committees, districts and facilities have a name attribute. 3.2 Transformation Explanation Listing 2 displays the ATL code for the Families-to- Persons Extended model transformation, which is composed of 10 rules. In order to better explain the transformation and the mapping to the DSLTrans language (cf. Section 4.2.1), we have annotated many lines in the listing as follows: –Ri stands for rule i –IPEij for in-pattern element j in rule i –Fi for filter of rule i –OPEij for out-pattern element j of rule i –Bijk for binding k in simple out-pattern element j of rule i In ATL, the from part of rules is called an in-pattern and is made up of in-pattern elements and an optional filter. These in-pattern elements represent the elements from the input model that are matched by the rule, as long as they satisfy the filter. The to part of the rule is referred to as an out-pattern and is made up of outpattern elements which represent the elements that are created in the output model. They contain bindings, which are used to initialize the features of the created elements. The feature initialized by a binding can be either an attribute or a reference to another created element. In Listing 2, the transformation creates a Community from each Country, as specified by R1. The six bindings of OPE11 are used to initialize references. Please note that when the same property representing a reference is initialized in more than one binding (property persons in B111,B112,B113 and B114 in our case), the result is the union of the elements retrieved in all the bindings. Let us now focus on B115, which initializes the town- Halls association of the created Community. It assigns the cities of the Country which match the expression (c.cities). However, due to the output metamodel, the townHalls association of the created Community in the output model cannot point to a City in the input model. In fact, what the association will actually be pointing to is the element in the output model created from the respective City element of the input model. Therefore, there must be a rule that creates something from City elements. In our example, this is R6, which creates a Town- Hall from the matched City. Therefore, B115 initializes the townHall association of the Community created in OPE11 by referencing the TownHall elements created from the City elements referred to by the Country element matched in IPE1. To this purpose, ATL uses an internal trace mechanism, where the correspondences
6 Bentley James Oakes et al. between elements in the input and output models are tracked. Listing 2 Families-to-Persons Extended ATL Transformation module Families2Persons_Extended ; create OUT :Persons_Extended from IN :Families_Extended ; r u l e Country2Community {- - R 1 from c:Families !Country --IPE11 to cmm :Persons !Community (--OPE11 persons <−c.families−>collect (f|f.fathers ) , - - B 1 1 1 persons <−c.families−>collect (f|f.mothers ) , - - B 1 1 2 persons <−c.families−>collect (f|f.sons ) , - - B 1 1 3 persons <−c.families−>collect (f|f.daughters) , - - B 1 1 4 townHalls <−c.cities ,- - B 1 1 5 associations <−c.cities−>collect (cty |cty .companies −>collect (cmp |Tuple{ct=cty ,cm=cmp}) ) - - B 1 1 6 )} r u l e Father2Man {- - R 2 from p:Families !Parent --IPE21 (p.family .fathers .includes(p) ) - - F 2 to m:Persons !Man (--OPE21 fullName <−p.firstName +p.family .lastName - - B 2 1 1 )} r u l e Mother2Woman {- - R 3 from p:Families !Parent --IPE31 (p.family .mothers .includes(p) ) - - F 3 to w:Persons !Woman (--OPE31 fullName <−p.firstName +p.family .lastName - - B 3 1 1 )} r u l e Daughter2Woman {- - R 4 from ch :Families !Child --IPE41 (ch .family .daughters .includes(ch) ) - - F 4 to w:Persons !Woman (--OPE41 fullName <−ch .firstName +ch .family .lastName - - B 4 1 1 )} r u l e Son2Man {- - R 5 from ch :Families !Child --IPE51 (ch .family .sons .includes(ch) ) - - F 5 to m:Persons !Man (--OPE51 fullName <−ch .firstName +ch .family .lastName - - B 5 1 1 )} r u l e City2TownHall{- - R 6 from c:Families !City --IPE61 to th :Persons !TownHall(--OPE61 name <−c.name + ’ TownHall ’ , - - B 6 1 1 workers <−c.companies −>collect (cmp|cmp .employees) −>flatten ( ) −>select (em |em .livesIn=c) , - - B 6 1 2 committee <−cmt ,- - B 6 1 3 districts <−c.neighborhoods - - B 6 1 4 ) , cmt :Persons !Committee(--OPE62 name <−c.name + ’ TownHall Committee ’ - - B 6 2 1 )} r u l e CityCompany2Association{- - R 7 from ct :Families !City ,--IPE71 cm :Families !Company --IPE72 (ct .companies .includes(cm ) ) - - F 7 to a:Persons !Association(--OPE71 name <−ct .name +cm .name - - B 7 1 1 committee <−thisModule .resolveTemp(ct , ’ cmt ’ ) - - B 7 1 2 )} r u l e Neighborhood2District{- - R 8 from n:Families !Neighborhood --IPE81 (Families !Family .allInstances( ) −>exists (f|f.registeredIn=n) ) - - F 8 to d:Persons !District(--OPE81 name <−n.name , facilities <−n.schools −>select (sch|sch .ordinary −>notEmpty( ) ) −>collect (sch|thisModule .CreateOrdinaryFacility(sch) ) , - - B 8 1 1 facilities <−n.schools −>select (sch|sch .special −>notEmpty( ) ) −>collect (sch|thisModule .CreateSpecialFacility(sch) ) - - B 8 1 2 )} l a zy r u l e CreateOrdinaryFacility{- - R 9 from sch :Families !School --IPE91 to of :Persons !OrdinaryFacility(--OPE91 name <−’ Ordi nary F a c i l i t y S e r v i c e f o r s c h o o l ’ +sch .name ,- - B 9 1 1 members <−sch .students - - B 9 1 2 )} l a zy r u l e CreateSpecialFacility{- - R 1 0 from sch :Families !School - - I P E 1 0 1 to sf :Persons !SpecialFacility(- - O P E 1 0 1 name <−’ S p e c i a l F a c i l i t y S e r v i c e f o r s c h o o l ’ +sch .name ,--B1011 members <−sch .students --B1012 )} For clarification purposes, Figure 3 shows the creation of an output model from an input model by applying the Families-to-Persons Extended transformation. The left-hand side of the figure displays a model which conforms to the Families Extended metamodel seen in Figure 2(a). The right-hand side of the figure presents the output model obtained, which conforms to the Persons Extended metamodel (cf. Fig. 2(b)). Note that attributes are ignored in Figure 3, and classes and references are coloured to improve the readability of the figure. Elements are also given an identifier to indicate to which type they belong (e.g., Cmp1 is an element of type Company), and references have the same colour as their source element. In case of bidirectional references, the reference has the colours of both elements, but tags describing a specific end of the reference have the colour of the source element. For simplification and readability purposes, not all tags have been included (for instance, there are missing livesIn tags), although most of them are present. Since the attributes and references of the created elements are initialized with bindings, we have annotated the binding responsible for initializing each reference (again, attributes are ignored) in the output model. The central section of Figure 3 shows the internal traces used by ATL that keep information of which elements in the output model are created from which ones in the input model and the rule responsible for doing so. We can see that the traces also keep information about the identifiers of the in-pattern elements and out-pattern elements of each rule, something specially useful for the implementation of the resolveTemp operation (cf. Section 3.3). Figure 3 thus illustrates what has been described before, namely that Comm1 is created from Ctry1 by R1. Its townHalls reference is pointing to TH1, which has been created by R6 from Cty1, which belongs to Ctry1.cities, and assigned by B115. Both R2 and R3 take a Parent as input. Here, a filter is used to determine if the Parent is a father (R2) or a mother (R3). For instance, parents Par1 and Par2 are transformed to a Man with R2, while Par3 is transformed to a Woman with R3. The same thing happens with Children. Bindings B111 -B114 are used to initialize the person reference for the Community created in OPE11 for all parents and children. We see that an
Full Contract Verification for ATL using Symbolic Execution 7 Ctry1 Comm1 Fam1 Fam2 Par1 Par2 Par3 Chd1 Chd2 families fathers fathers mothers sons daughters Man1 Man2 Wom1 Wom2 Cty1 livesIn Cmp1 Nghb1 companies neighborhoods Sch1 Sch2 Srv1 Srv2 schools ordinary special employees livesIn companies student R1 cities student Man2 R2 R2 R5 R4 R3 TH1 Comt1 workers (B612) workers (B612) committee (B613) R6 Asso1 R7 Dist1 R8 SF1 OF1 R8,R10 R8,R9 persons (B114) persons (B112) persons (B111) persons (B113) persons (B111) townHalls (B115) associations (B116) districts (B614) facilities (B811) facilities (B812) members (B912) members (B1012) registeredIn registeredIn Input model Output model ATL traces family family family family family goesTo goesTo worksIn committee (B712) ccmm ch ch w w m m m p p p ccmt th ct cm a nd n n sch sch sf of Fig. 3 Execution example of the Families-to-Persons Extended transformation OCL collect operation is necessary, since we need to retrieve elements of specific types. B116 shows a special case where the Tuple operator is used. In this case, the collect operation retrieves pairs of {City, Company}elements, and the output elements created by these pairs are assigned to the associations reference. Therefore, there must be a rule that takes these pairs in the in-pattern. In our example, it is R7, composed of IPE71 and IPE72, where F7 makes sure that the Company is located in the City. As a result, following our example, Asso1 is created from Cty1 and Cmp1. B612 uses both the collect and select operators to pick only those employees of the companies located in the matched City (IPE61) that actually live in such city. In our example, Par1 and Par3 are selected, so the workers reference of TH1 points to Wom2 and Man2, created from Par1 and Par3, respectively. Finally, it is worth mentioning the use of lazy rules (R9 and R10). Lazy rules are only executed when they are called from other rules. This means that they will create elements only when they receive calls. In our example, these rules are called from R8, and specifically from bindings B811 and B812. Let us focus on binding B811.R8 creates a District (OPE81) from aNeighborhood (IPE81) as long as there is at least one Family registered in that neighborhood (F8). Then, for initializing its facilities reference, in B811 it selects those schools in the Neighborhood that have an ordinary Service and collects the result produced by lazy rule CreateOrdinaryFacility. This lazy rule (R9) receives as parameter the selected schools. It creates an OrdinaryFacility (OPE91) from the School (IPE91) and initializes its members reference with the students of the school. In Figure 3, we represent a joint execution of R8 and R9, since the latter is executed at the same time as the former due to its invocation. The same situation occurs with R8 and R10. 3.3 ATL Semantics and Transformation Execution The semantics of ATL define how an ATL transformation is internally executed. However, the ATL language has been described in the community in an intuitive and informal manner, by means of definitions of its main features in natural language [47]. This lack of rigorous description can easily lead to imprecisions and misunderstandings that might hinder the proper usage and analysis of the language, and the development of correct and interoperable tools. The other reference implementation of ATL is available as metamodels for the language and its virtual machine, and as a compiler from the language to the virtual machine and an interpreter for the virtual machine. The problem of this kind of implementation is that it is not abstract enough to provide meaningful semantics, and in an implementation-independent manner. Therefore, with the purpose of later describing the mapping from
8 Bentley James Oakes et al. ATL to DSLTrans, the aim of this subsection is to explain the semantics of ATL and to instantiate them in our running example. The execution of ATL transformations is split in two major steps: element creation and features initialization. This two-step process, however, is not explicit in ATL, and is described here to reduce the conceptual delta between ATL and DSLTrans. The first step of the execution is the creation of target elements and the above-mentioned trace links, the latter being created implicitly and automatically by ATL. In Figure 3, this step creates all the elements in the output model (but does not set their references nor attributes) as well as the trace links specified in the central part of the figure. This means that in-pattern elements are obtained from the input model and outpattern elements are created in the output model. In the second step, the features of the elements created in the output model are set. This means that the bindings are executed and resolved. In order to initialize the references, ATL uses the internal trace links. Although the references are automatically resolved as explained in the previous section, there exists an operation, the so-called resolveTemp operation, which can be used to explicitly resolve references. It makes it possible to point to any of the target model elements generated from a given (sequence of) in-pattern element(s). It is specially useful (and, in fact, needed) when the reference specified in a binding has to refer not to the first out-pattern element created in another rule, but to any of the rest. In our running example, B712 contains an operation of this type. Thus, an Association contains a reference named committee that has to reference the Committee created from the City matched in IPE71. As we can see in R6, every City creates a TownHall and a Committee. The latter is what we want to be referenced from B712. Since it is the second element created in the rule, we need the operation thisModule.resolveTemp(ct,‘cmt’), where ct is the identifier of IPE71 and cmt is the identifier of the out-pattern element that creates the Committee (OPE62 in our example). As we highlighted in the previous section, the resolveTemp operation provides the reason to store the identifiers of in-pattern elements and out-pattern elements in the trace links. 3.4 DSLTrans Representation Figure 4 displays the DSLTrans transformation which corresponds to the ATL Families-to-Persons Extended transformation shown in Listing 2. Let us mention here that we have removed five rules from the figure to improve visual clarity. There is a vertical dotted blue line for each of these rules, located where the rules have been removed. The missed rules are similar to those that surround them, and can therefore be safely ignored in our explanation. The process of constructing a DSLTrans transformation from an ATL one is described in the next section. For now, note that DSLTrans transformation obtained from ATL through the higher-order transformation includes only one rule per layer, meaning all rules execute sequentially. This is due to the sequential semantics of ATL that we replicate in DSLTrans. Also, note that attribute copies are represented with arrows from the ApplyModel of the rule to the Match- Model, such as in rule Neighborhood2District, where the created District gets the same name as the matched Neighborhood. The string of an attribute of a created element can also be initialized with the concatenation of several strings. For instance, in rule Father2Man, the full name of the created Man comes from the concatenation of the first name of the matched Parent and the last name of his/her Family. Or it can be assigned the string of an attribute of an element in the Match- Model concatenated with a given string, such as in rule City2TownHall. 4 Mapping ATL into DSLTrans In this section we first present the features of the declarative part of ATL that we consider for the translation to DSLTrans. Then, we describe the mapping between ATL transformations and DSLTrans transformations, emphasizing the translation of selected OCL operators. Finally, we explain the implementation of the mapping. 4.1 ATL Subset Selected While the version of our translator from ATL to DSL- Trans presented at the MoDELS 2015 conference [36] considered a large set of features available in the declarative part of the ATL language, our current version considers practically the complete set of features. As shown in Table 1, we now handle helpers and conditions. Since we consider almost all the features in the declarative part of ATL, we can assert that our current implementation of the higher-order transformation is sufficiently powerful to be of interest. The only features that are not considered for the translation are the using block and unique lazy rules. The using block is rarely used in ATL model transformations, as it is an optional mechanism for declaring
Full Contract Verification for ATL using Symbolic Execution 9 Fig. 4 DSLTrans version of the Families-to-Persons Extended transformation
16 Bentley James Oakes et al. The contract prover we describe here is the engine of the SyVOLT tool, which can currently be used to develop and verify DSLTrans transformations within the Eclipse environment [1,5,33]. Examples of contracts we prove are also presented, along with a brief discussion of the expressibility of the contract language. 5.1 Contract Proving Overview Given a transformation written in the DSLTrans transformation language, our contract proving technique can prove whether pre-/post-condition contracts will hold or not hold on all executions of the transformation. If a contract holds, then whenever the pre-condition of the contract matches over an input model, then the post-condition of the contract will match over the corresponding output model. Fig. 11 A contract to verify that two Woman and two Man elements are produced from the corresponding Members For example, Figure 11 describes a contract to be proved over all transformation executions for the extended Families-to-Persons transformation. An informal statement for this contract is: ‘an input family with a father, mother, son and daughter should always produce two men and two women in the output community’. Note that we employ backward links as part of the contract language, where as they are used to require that the output elements be generated from the attached input elements, similar to their use in DSL- Trans rules. Our contract prover is then able to prove whether or not this contract will hold for all transformation executions, and produce any counter-examples if Fig. 12 An example path condition representing the execution of three rules they occur. Further examples of contracts are found in Section 5.3.1. Contracts are proved through a process that first symbolically constructs all possible executions of the transformation, producing a set of path conditions. Each path condition represents the execution of a set of transformation rules, by containing the input and output elements which are produced by the execution of those transformation rules. For example, the path condition in Figure 12 represents the execution of three rules in the transformation. This representation includes the input and output elements that will be present in the input and output models if these three rules execute. The set of path conditions produced by the prover will therefore partition the set of valid executions of the transformation, where each execution is an input/output model pair. This technique was first proposed in [31] and further detailed in [32]. Pre-/post-condition contracts form an implication, which needs to be checked for each path condition that has been generated by the proving algorithm. In broad terms, a contract holds on a path condition if either the contract’s pre-condition elements cannot be found in the path condition, or the contract’s pre-condition together with its post-condition can be found in the path condition. The contract does not hold on the path condition if its pre-condition can be found in the path condition but its post-condition cannot. Finally, a contract holds for a transformation if it holds for all of its generated path conditions. Contracts are formally described in [32], while extensive discussion of the contract language is found in the PhD thesis of Gehan Selim [42]. Section 5.3.1 and Section 5.4 present further contract examples, while Section 5.5 briefly discusses the expressiveness of the contract language. 5.2 Path Condition Creation As described in [33], our contract prover constructs all artifacts used for contract proof through matching and rewriting of typed graphs. Therefore, the first
Full Contract Verification for ATL using Symbolic Execution 17 step for the contract proving process is to create T- Core matcher and rewriter primitives from each of the rules in the DSLTrans transformation [45]. These model transformation primitives are at the core of our prover, allowing us to reason about how rules could overlap with each other during transformation execution, and to perform the graph rewriting necessary for our technique. Note that this use of reasoning about the transformation under study as explicit graphs is in opposition to other approaches in the literature, where the transformation specifications are translated into a SAT solver or theorem prover, and then the proving mechanisms for those tools are used. A further discussion of our approach versus that in the literature can be found in [42]. In order to fully reason about all input models to a transformation, our contract prover creates a set of artifacts that represent all possible executions of the transformation. These artifacts are created by symbolically executing all rules in the transformation, taking into account rule overlapping and dependencies between rules. The rule combinations that are created are termed path conditions. For example, the first path condition could represent the case where no rules in the transformation execute. The next path condition is the case where only the first rule executes, the next is where only the second rule executes, and a fourth path condition is where both the two rules execute. Note that in our path condition creation process, we only consider one execution of each rule. That is, either a rule does not execute (and does not appear in the path condition), or we assume that it executes some number of times (and the rule appears once). This restriction is due to our abstraction, where we symbolically represent many executions of the same rule by the rule being present only once in each path condition. This abstraction is necessary for analysis purposes, as the infinite number of transformation executions must be covered by a finite number of path conditions. Note that this abstraction is possible because of the monotonicity of a DSLTrans transformation: a rule can only add elements to the output model of a DSLTrans transformation, but never remove them. As the transformation is made of layers, the symbolic execution process moves through each layer and determines how rules may interact with each other. Unlike generating the powerset of all rules, these rule interactions may in fact decrease the number of path conditions generated by the prover as certain combinations of rules are proven infeasible. For example, consider a rule R1 which matches on an Aelement, and a rule R2 which matches on an A element connected to a Belement. During an execution of the transformation, it would be impossible for R2 to execute without R1 also executing, as the match graph of R1 is a subset of the match graph of R2. Therefore, the rule R1 is ‘subsumed’ by the rule R2. Our prover is able to detect these subsumption interactions and resolve them in a step just prior to path condition generation. This lowers the number of path conditions created by disallowing certain rule combinations, as further discussed in [44]. As well, DSLTrans rules can also define backward links, as described for the extended Families-to-Persons transformation in Section 4.2.1. Recall that these backward links make dependencies on elements created by earlier rules. Specifically, these backward links require that the connected element in the apply part of the rule was created from the connected element in the match part of the rule, by matching over traceability links created during the execution of the transformation. This functionality is therefore similar to the implicit binding step present in ATL, as discussed in Section 4.2.1 under the title Generic Semantics for Step 2. During path condition construction, these backward link dependencies prevent some rules from executing, further decreasing the rule combinations possible. 5.2.1 Rule Interaction Cases As mentioned, our contract prover combines rules from different layers in the transformation to generate the path conditions. This section will now summarize the three cases in which a rule in a layer may combine with a path condition from a preceding layer. This information is presented to give the reader a sense of the complexities behind the symbolic execution of these rules, and a greater understanding of how path conditions represent executions of the transformation. For interested readers, a formal treatment of these cases is found in [32]. Note that backward links are represented by thick dashed lines between the match and apply elements in the figures below. Traceability links have also been added between elements in rules, and are represented by thin unbroken lines. For clarity, we omit association labels in the figures. Empty Path Condition The path condition generation process begins with the empty path condition. As mentioned, this represents the set of all transformation executions where no rules execute. As rules are combined with this empty path condition, match and apply elements will be placed in the path condition. These elements will symbolically represent elements present in the input and output model of the transformations represented by that path condition.
18 Bentley James Oakes et al. No Dependencies In the first case for rule interaction, the rule contains no backward links. In the path condition generation algorithm, two different path conditions will be produced. The first path condition produced represents the possibility of the rule not executing, while the other path condition produced represents the possibility of the rule executing. An example of this case is displayed in Figure 13, where the path condition PC is combined with the rule Father2Man. Note that the example path condition PC already contains Country and Community elements, to represent the symbolic execution of the rule Country2Community. The two path conditions on the right-hand side of Figure 13 show one path condition which is identical to PC, and one path condition which also contains the elements from the rule Father2Man. (a) Path condition and rule to combine (b) Two path conditions produced by combination Fig. 13 Combination example where the rule has no dependencies Unsatisfied Dependencies For the second case in rule interaction, the latter rule contains backward links that cannot be found in the path condition. This implies that the rule cannot execute. The old path condition is retained, and no new path condition is created. This case is represented by Figure 14. Note that the rule cotownHalls[...] contains backward links, which require that a Community element to have been created by a Country element, as well as a Townhall element to have been created by a City element. As this second backward link cannot be satisfied by the elements in PC, the rule cotownHalls[...] cannot execute. Therefore, only the path condition PC is retained and no new path condition is created. (a) Path condition and rule to combine (b) One path condition produced by combination Fig. 14 Combination example where the rule’s dependencies are not satisfied Satisfied dependencies Finally, the most difficult case is where the backward links match onto the path condition, over the traceability links present. Therefore, the rule may or must execute, depending on whether the elements in the match part of the rule already exist in the path condition. In this case, a new path condition is created for every possibility of how the rule may be matched onto the path condition. In the partial satisfiability case, not all elements of the rule can be found in PC. Figure 15 shows the combination of the path condition PC with the rule coassociations[...]. Note that the rule contains associations between the Country and City elements, as well as between the Country and Company elements. However, these associations are not present in the path condition PC. As the associations are not present in PC, this indicates that there is the possibility that the input model may not contain these associations between these elements. Therefore, two path conditions are produced. One path condition represents the case where the input
Full Contract Verification for ATL using Symbolic Execution 19 model does not allow for the rule coassociations[...] to execute. The other path condition produced will include these associations, as it represents the case where the rule will execute on the input model. Note that if the rule might match at multiple locations on PC, a new path condition would be produced for each location. (a) Path condition and rule to combine (b) Two path conditions produced by combination Fig. 15 Combination example where the rule’s dependencies are partially satisfied The complement to the partial satisfaction case is the total satisfaction case. In this case, the rule’s required elements are all present in the path condition. Therefore, the rule must execute for the transformation executions represented by that path condition. Figure 16 demonstrates the case where the dependencies of the rule acommittee[...] are totally satisfied by the path condition PC. Note that all backward links in the rule can be found in PC, as well as the required associations. The path condition produced is built by combining the rule onto the path condition locations at the location(s) where the rule matches. Note that in Figure 16, an association has been built between the Association and Committee elements. As with the partial satisfaction case, the rule may match at multiple locations. Attribute Setting The setting of attributes for rule elements is also symbolically executed in path condition construction. Essentially, we store in the path condition the equations stating the values for the attributes as they are assumed by the rules, and in subsequent rules we check for value compatibility of the match elements being matched. If the conditions on the attributes on the path condition element and the rule element are conflicting, no path condition is generated. Note that a fairly trivial solver is currently used, as the only available attribute data type in DSLTrans is (a) Path condition and rule to combine (b) One path condition produced by combination Fig. 16 Combination example where the rule’s dependencies are totally satisfied String. However, our approach is not overly restricted by this approach. From a pragmatic viewpoint, we note that our industrial case study only manipulates Strings. More generally, DSLTrans has been used to write many useful transformations with models that have only Strings as attributes. This is because DSLTrans specializes in language translations, as described in [34]. Model transformations of this kind typically do not require complex computations over attributes and the bulk of the work is achieved by node matching and rewriting. String attribute data is mostly copied over to the generated model or concatenated with other String data. A possible workaround to the restriction of only having available the String type is to convert non-String attributes and operations into Strings, such that they can be manipulated by the transformation. Then, each output String can be evaluated to produce the value in the original type. Note that, using this method, no operations of algebras other than the String algebra can be executed by the transformation engine. A more holistic approach would be to introduce additional data types in the DSLTrans language itself, thus allowing the execution of operations of other algebras. However, much care needs to be used when introducing new data types in DSLTrans, such that those types do not introduce potential non-terminating computations. That would invalidate the fact that all DSL- Trans transformations terminate. Additionally, a more powerful solver would also be necessary to allow path condition construction for a DSLTrans extended with additional data types.
20 Bentley James Oakes et al. Fig. 17 An example path condition representing the execution of three rules Partitioning Transformation Executions Following this reasoning about the three cases for interactions of rules, all rules in the transformation are examined and combined into path conditions. This is performed by examining each layer in the DSLTrans transformation in turn. For the first layer, the empty path condition is combined with each rule. Then for each subsequent layer n, the set of path conditions produced by layer n-1 are combined with rules from layer n. For example, the path condition examined in the total satisfiability case above will have been produced by the layer containing coassociations[...], as in the partial satisfiability case. The resulting path conditions at the end of this process will represent all viable sets of rules that could execute in the transformation. The infinite set of transformation executions will therefore be partitioned by the finite set of path conditions [32]. As each rule contains match and apply elements, the path condition thereby define which elements are present in the input and output models for that partition of transformation executions. Note that the empty path condition, which contains no elements, matches all other transformation executions not represented by another path condition. For example, Figure 17 symbolically represents the execution of three rules from the extended Families-to- Persons transformation: Country2Community,Mother- 2Woman, and copersonsSolveRef[...]Woman. Note that the Community element was produced from the Country element in the Country2Community rule, and was matched over by the backward link dependency in the copersonsSolveRef[...]Woman rule. This path condition represents all transformation executions where these three rules execute, and thus presents the input and output elements and associations which are known to exist if this set of rules executes. This abstraction of transformation executions by path conditions forms the basis for our technique of contract proving, where proving contracts on the set of produced path conditions allows us to reason about how the contract holds on the transformation’s inputoutput model pairs. 5.3 Contract Proving Process As path conditions are constructed through reasoning about the interaction of transformation rules, the structure of a path condition is very similar to that of a DSL- Trans rule with a match graph and an apply graph, as seen in Figure 17. The meaning of a particular path condition is, ‘if the elements in the top component of the path condition are in the input model, then the elements in the bottom component will be in the output model.’ Recall that this matches the intended meaning of a contract: ‘if the elements in the pre-condition are found in the transformation’s input model, then the post-condition elements should be found in the output model’. Therefore, to prove that a contract holds or not on a path condition, it is sufficient to see whether the elements in the contract can be matched onto the path condition, as described in [32]. There are three cases for determining the status of a contract: –If the pre-condition of the contract, including backward links, does not match the path condition, then the contract is not applicable for that path condition. –If both the pre-condition and post-condition match, then the contract does hold on that path condition. –If the pre-condition matches, but the post-condition does not match, then the contract does not hold on that path condition. Note that a contract may be expected to not hold in all cases for a transformation. For example, consider the contract DaughterMother, reproduced in Figure 18. The informal statement for this contract is ‘a family with a mother and a daughter will always produce a community with a man’. It is easy to see that an input model which contains only mother and daughter elements should not produce a man in the target community. Our contract prover will then find multiple counterexample path conditions which cause the contract to not hold, such as the path condition in Figure 17. Note that the pre-condition of the contract does match onto the top component of the path condition, while the Man element in the contract post-condition cannot be found in the bottom component of the path condition. Thus the failure of this contract gives further assurance that the transformation is working correctly, as daughters and mothers are not accidentally transformed into men. As this result is expected, this allows the transformation builder to have increased confidence in the validity of the transformation.
Full Contract Verification for ATL using Symbolic Execution 21 Fig. 18 A contract to verify whether a Man element will be produced from a Family containing a daughter element and a mother element - this contract will not hold If a contract fails to hold on the transformation and it was not expected to fail, then this indicates an error with either the contract or the transformation. The prover will report (and optionally draw) the path conditions which the contract did not hold on. As well, a minimal path condition is reported, which represents the smallest combination of rules that fails. This allows the transformation developer to identify those rule combinations wherein an error may occur, and change the transformation or contract accordingly. Note that our technique only identifies the path conditions where a problem arises. Identification of the erroneous elements and suggestions for repair are not handled at this time. Note that, despite the fact that the pre-condition of the DaughterMother contract cannot be (isomorphically) matched in the path condition in Figure 17, the pre-condition of the contract is still found in that path condition. This is so because there are input models matched by these two rules where the two distinct Family elements belonging to the two separate rules will match over the same family instance – remember that in DSLTrans rules can match over the same elements in the input model. The relation between the pre-condition of contracts and path condition is thus such that, any possibility of overlaps (or absence thereof) between elements of the same type belonging to two or more different rules in the path condition, is considered as a matching possibility for the pre-condition of the contract. The relation between the contract and path condition packs thus more information than a simple graph isomorphism. It is a mixed partial surjective / injective homomorphism between the path condition and the contract typed graphs: while the surjection allows “forgetting” that two or more elements in a path condition belong to different rules, the injection guarantees that elements belonging to the same rule in the path condition have an isomorphic counterpart in the property. Further examples, as well as a formalization of this relation can be found in [32]. In the case that the contract must explicitly reason about the multiplicity of Family elements, the contract language includes propositional logic, as in Section 5.3.1. 5.3.1 Further Contract Examples Fig. 19 A contract to verify proper construction of the name attribute in the output model Our contract language also allows reasoning about the attributes of elements in the models. Figure 19 describes a contract determining if the full name of the produced Person has been correctly created from the last name of the Family and the first name of the Member. Contracts can also be combined using propositional logic and pivots to enhance the expressiveness of the contract language [42, 44]. For example, we present a contract for the original Families-to-Persons transformation in Figure 20. This contract demonstrates the use of propositional logic in our contract prover to form an ‘if, then NOT’ implication between the two contracts2. For this combination contract to be true, for each path condition where the first contract holds, the second contract must not hold and the elements marked by the pivot attributes must be the same. This contract’s informal statement is ‘If a community contains any people, then that community does not contain two (or more) people’. Therefore, this contract expresses constraints on the multiplicity of elements, as will be further discussed in Section 5.5. Note that the contract language we present in this paper relies only on constructs that are found in the 2The logical connections between the contracts is not represented graphically
22 Bentley James Oakes et al. (a) ‘If’ portion (b) ‘Then NOT’ portion Fig. 20 Using propositional logic to express ‘if, then NOT’ contracts input and output metamodels, plus traceability links. Given that both ATL and DSLTrans operate on EMF metamodels, the contract language can thus be used seamlessly to describe pre-/post-conditions we wish to check on either ATL or DSLTrans transformations. This fact is a major advantage for our work: contracts can be expressed exactly in the same language and have the same semantics for both an ATL transformation and its semantically equivalent DSLTrans representation. 5.4 Contract Results This section will present the nine contracts we have created for the extended Families-to-Persons transformation, to illustrate the utility of contracts for verification. 366 path conditions were created for this transformation, representing a finite partition of the infinite set of the transformation’s possible executions. Then, each of the nine contracts were tested against each path condition. Each contract is detailed here as a tuple of an informal statement, the graphical representation, and how many path conditions the contract succeeded or failed on. Note that a contract’s success here means that both the contract’s pre-condition and post-condition (including backward links) matched onto the path condition, while failure means that the pre-condition matched, but the post-condition did not. As well, the contract still holds on path conditions where the pre-condition did not match, which is the remainder of the path conditions. If the contract does not hold on some path conditions, and therefore on not all transformation executions, a brief explanation will describe the rule interactions that prevent the contract from holding. Note that this section includes contracts that we expect to fail for the transformation. As mentioned, these contracts increase our confidence in the correctness of our transformation, as the prover will produce counterexample path conditions where the contract does not hold. As the path condition represents the execution of a particular set of transformation rules, this allows the user to reason about the interaction between the rules, and determine whether the transformation is erroneous or not. Note that the following division of contracts into sections is primarily for readability, as they address different areas of the source and target metamodels. 5.4.1 Families-to-Persons Contracts Pos-FourMembers Statement: AFamily with a father,mother,son and daughter should always produce two Man and two Woman elements in the target Community. Expected Result: Holds for all path conditions Path Conditions Succeeded On: 137 Path Conditions Failed On: 0 Pos-MotherFather Statement: The full name of a produced Person is correctly created from the concatenation of the first name of the Member and the last name of his/her Family
Full Contract Verification for ATL using Symbolic Execution 23 Expected Result: Holds for all path conditions Path Conditions Succeeded On: 236 Path Conditions Failed On: 0 Neg-DaughterMother Statement: AFamily with a mother and a daughter will always produce a Community with a man Expected Result: Does not hold for all path conditions Path Conditions Succeeded On: 178 Path Conditions Failed On: 42 Explanation: AMan element will not be produced from an all-female Family 5.4.2 Location Contracts Pos-TownHallComm Statement: ATownHall and a Committee are created for every City, and the created TownHall must have the created Committee as its committee Expected Result: Holds for all path conditions Path Conditions Succeeded On: 352 Path Conditions Failed On: 0 Pos-AssocCity Statement: ACommunity that contains a City with a Company should produce a Community with a Town- Hall and a Committee Expected Result: Holds for all path conditions Path Conditions Succeeded On: 287 Path Conditions Failed On: 0 Pos-ParentCompany Statement: If a Parent worksIn aCompany, the Person created from him/her should be within the workers of the TownHall created from the City where the Person lives Expected Result: Holds for all path conditions Path Conditions Succeeded On: 222 Path Conditions Failed On: 0 Neg-CountryCity Statement: If the Country has at least one City, then at least one Association should be created Expected Result: Does not hold for all path conditions Path Conditions Succeeded On: 189 Path Conditions Failed On: 176 Explanation: An Association is only created if there is
24 Bentley James Oakes et al. aCompany in the City 5.4.3 Facility Contracts Pos-ChildSchool Statement: If a Child goesTo aSchool that has a special Service, then a SpecialFacility has to be created that has the Person created from the Child as members Expected Result: Holds for all path conditions Path Conditions Succeeded On: 168 Path Conditions Failed On: 0 Neg-SchoolOrdFac Statement: An OrdinaryFacility should be created from each School Expected Result: Does not hold for all path conditions Path Conditions Succeeded On: 168 Path Conditions Failed On: 60 Explanation: ASchool will be transformed into a SpecialFacility if it provides a special Service 5.5 Contract Expressiveness This section will briefly discuss the expressiveness of our contract language. As seen from the above examples, contracts contain a pre-condition and a post-condition which each contain a typed graph. [42] divides the possible contracts into three types: multiplicity invariants,syntactic invariants, and pattern contracts3. 5.5.1 Multiplicity Invariants Contracts can express multiplicity invariants contained in the source or target metamodel. As seen in Figure 20 in Section 5.3.1, the propositional logic of our contract language allow us to specify that only one Person should be connected to a Community in the output model. This allows the user to ensure that rules are not combining to produce more elements than desired. Note however, that due to the abstraction of our approach these multiplicity invariants are not strict. As only one execution of each rule is considered in a path condition, our prover will not generate path conditions where a rule executes multiple times. Thus, multiplicity contracts such as the one in Figure 20 check for the existence of transformation executions where two Person elements are always created. 5.5.2 Syntactic Invariants Syntactic invariant contracts check whether the path condition is well-formed with respect to the input or output syntax. An example of this type of contract is shown in Figure 21 for the UML-to-Kiltera case study described in Section 6.1.3. The informal statement for this contract is ‘if there is an Inst element, then that Inst element has the same name as a ProcDef element.’ Fig. 21 An example of a syntactic invariant contract 3We here exclude rule reachability contracts, as the prover now automatically reports the failure of a rule to execute
Full Contract Verification for ATL using Symbolic Execution 25 5.5.3 Pattern Contracts The final category of contracts described by [42] are pattern contracts, which relate elements in the input model to elements in the output model. The nine contracts presented in Section 5.4 for the extended Families-to-- Persons transformation are of this type. The intention of these contracts is to allow the user to verify that multiple rules are interacting in a valid way, which is difficult from manual inspection of the rules themselves. 5.5.4 Limitations We note that our contract language allows for the definition of a wide variety of structural conditions. Comparisons can be drawn to [27], where the authors use PaMoMo as the basis for their contract language. This allows the authors to define a variety of visual contracts to express both negative and positive contracts. However, our contract language is currently limited as it can only represent structural conditions and not arbitrary expressions. This renders the contract language much less powerful than other constraint languages such as OCL. For example, the current implementation of our contract language does not contain operators for sets, or for handling non-String attributes. As well, as we are abstractly representing the rules that execute, and the number of times each rule executes, users must be careful about their definition of multiplicity constructs. Contracts also cannot be written to validate instance data for input or output models, such as ensuring that all input names start with a capital letter. 6 Experimental Results In this section we present an evaluation of our higherorder transformation and contract-proving technique. In particular, we are interested in the following research questions: –RQ1: Is our technique applicable to complex ATL transformations? –RQ2: How does the time and memory usage of the contract prover differ for each of our case studies? –RQ3: Given a particular contract, can we reduce the time taken for contract proving through transformation slicing? –RQ4: Does the version of the transformation produced by our higher-order transformation differ significantly from a hand-built transformation? Note that RQ1 and RQ2 are discussed directly in this section, while RQ3 is examined in Section 7 and RQ4 in Section 8. 6.1 Study Setup This section will describe the case studies used to answer our research questions. 6.1.1 Families-to-Person Transformations One of our experiments for this work was the Families- to-Persons transformation described in [36]. We retain this transformation for our experiments, as it contains a number of interesting concepts with regards to our verification work. In particular, the rules producing elements in the output model are non-trivial, as those elements have their attributes set through manipulation of the attributes in the input model. This case study tests our technique’s ability to correctly transform these attribute-setting rules and then prove contracts on these transformations. As well, this case study is technically challenging to prove contracts on, as multiple rules in the transformation contain duplicate elements, such as the Family element. As described in Section 5.3, our contract prover must be able to correctly perform non-isomorphic matching of the contract onto a path condition. That is, if there are similar elements in two rules in the path condition, the contract prover must resolve whether these elements match over separate elements in the input model, or over the same element. We also performed experiments on the extended Families-to-Persons transformation described in Section 3. This extension expands the number of ATL rules from five in the original transformation to ten in the extended version, which increases the number of DSL- Trans rules produced from 9 to 19. Consequently, the number of path conditions produced by our prover grows from 101 to 366. The purpose of experimenting on this transformation is therefore to examine the performance of our property prover on a larger transformation example which contains more complex rules and contracts. Note that the contracts proved on this transformation have been created by an author of this paper and do not come from past work. 6.1.2 GM-to-AUTOSAR Transformation Another transformation we examine as a case study is an industrial transformation seen in our earlier contract proving work [44]. The transformation in question takes as input models defined in a proprietary legacy metamodel used at General Motors (GM) for Vehicle Control Software development. The output metamodel is
32 Bentley James Oakes et al. 8.3 Conclusion The results for both experiments indicate that the produced DSLTrans transformations are of equivalent quality to the hand-built versions. There is a small to nonexistent performance penalty in one case, and in the other the rules produced were identical to the handbuilt version. Thus, we believe that it is sufficient to use our higher-order transformation as part of a toolchain to verify ATL transformations. 9 Related Work There has been already an extensive work on verifying different aspects of model transformations, e.g., cf. [6, 40] for surveys in this domain. With respect to the contribution of this paper, we summarize previous contributions for checking different kind of contracts for model transformations whereas the concrete approaches range from testing to verification approaches. 9.1 Model Transformation Testing In [25, 48] the authors describe their method where ‘Tracts’ can be specified for model transformations. These tracts define a set of constraints on the source and target metamodels, a set of source-target constraints, and a tract test suite, i.e., a collection of source models satisfying the source constraints. The accompanying TractsTool can then automatically transform the source models into the target metamodel, and subsequently verify that the source/target model pairs satisfy the constraints. The advantages of this are that the approach is not computationally-intensive, as tests can be narrowly focused in a modular way. Besides the Tracts approach, there are several other approaches supporting the testing of model transformations based on different kind of contracts such as model fragments [35], graph patterns [9,27], Triple Graph Grammars (TGGs) [49], dedicated testing languages [22,29], or as used in Tracts OCL constraints [17], and even a combination of these mentioned approaches [23]. While these mentioned approaches resort to black-box based testing, there are also approaches which allow for whitebox based testing of model transformations such as [26]. In contrast to testing approaches, the presented approach in this paper allows for contracts to be proved for all possible transformation executions, i.e., for all possible input models. However, we also keep the same implication idea: the pre-condition of a property sets constraints on the input models of the transformation, and then, the post-condition defines constraints on the output model. 9.2 Model Transformation Verification Previous work also proposed the idea of transforming ATL to formal domains. The work of [47] describes a formal semantics for ATL, such that ATL transformations can be expressed in the formal language Maude. Once expressed in Maude, properties can then be verified over the execution of this transformation, such as reachability of particular states, or that no more than one rule is matched on each source element. In our work, we transform the ATL transformation into the DSL- Trans transformation language to prove transformation contracts which is not in the scope of [47]. The work in [15] automatically transforms transformations in a number of transformation languages (such as ATL) to OCL. As well, similar to our system, the invariant, pre- and postconditions are described in a graph format. However, in [15] the counterexample conditions for each property are generated. Then a model finder generates a possible counter-example model, before the system determines if the model can be satisfied or not. Note that due to incomplete searching of the model space, the model finder may not find every counter-example. In contrast, our system works by matching the property onto path conditions, which abstracts all possible transformation executions. Thus, our property prover can give a stronger proof. In [24] the authors are checking different kinds of model transformation properties based on OCL and the usage of KodKod which requires again concrete bounds for property proving. The work by Anastasakis et al. [7] transforms QVT model transformations to Alloy in order to verify if given assertions, i.e., properties, hold for the given transformations. If no target model is found by Alloy for a given source model, the assertion does not hold. As Alloy needs bounds for the model search, models outside the given bounds are not found. Similar model transformation verification support based on Alloy is presented in [21] which also needs concrete bounds for performing the model search. Besides the mentioned bounded verification approaches, there are some unbounded approaches using theorem provers for verifying model transformations. For instance, Calegari et al. [16] propose an interactive approach to verify contracts for ATL transformations based on the Coq proof assistant. This approach is unbounded, but requires some user guidance. Another approach using the Coq proof assistant to ensure the correctness of model transformations is presented in [38]. However,
Full Contract Verification for ATL using Symbolic Execution 33 the authors aim to synthesize transformation implementations from specifications which are correct-by- construction instead of verifying independently developed transformations. Other approaches using theorem provers for model transformation verification go one step further by using modern SMT solvers such as is done in [14, 18]. These approaches do not require user guidance as it was required in the aforementioned Coq based approaches. They translate the ATL transformations as well as the contracts expressed in OCL into first-order logic expressions and use Z3 for performing the theorem proving. Compared to our approach, these approaches are in the same spirit, but they consider a smaller subset of ATL compared to our solution. For instance, currently they do not support lazy rules. Another work which translates ATL transformations for analysis purposes is presented in [41]. The authors argue that an algebraic graph transformation representation would allow for enhanced verification tasks. However, the authors do not go into detail on this aspect as they mainly focus on the correct translation of ATL language concepts to Henshin concepts. Thus, they consider the exploration of concrete verification tasks as future work. In [30], the authors present a generic transformation metamodel which can be used as an intermediate language for translating model transformation languages to this representation, before the transformations are transformed into a formal domain for performing analysis. The authors present several verification cases where the proposed framework helps in exploiting different verification formalisms and techniques. In our approach, we also aim for reusing an existing verification formalism provided by DSLtrans and show how a considerable subset of ATL can be translated into DSLtrans to perform contract verification. 9.3 Synopsis To the best of our knowledge, in this paper we have presented the only approach to fully prove properties defined as contracts for model transformations expressed in declarative ATL including advanced features such as lazy rules. 10 Conclusion This section will offer a brief discussion as to threats of validity, as well as a number of concluding thoughts on our contract prover and technique. 10.1 Threats to Validity This subsection discusses the major threats to the validity to our work. The higher-order transformation has not been formally verified. Thus, we cannot be completely sure that the DSLTrans transformations that are automatically produced are directly equivalent to the original ATL transformation. However, two arguments can be made for the HOT’s correctness. The first is that the HOT is relatively simple, as explained in Section 4. It consists of two steps: first creating the rules that generate the output elements and then creating the rules that generate the relations between output elements. This two-step approach makes ATL’s semantics explicit, and makes the DSLTrans transformations generated by the HOT easily understandable as well as traceable back to their original ATL specifications. Second, we have compared the contract proof results between two transformations created by hand, and the corresponding transformations generated by our higherorder transformation in Section 8. We note that one transformation produced by our HOT was exactly the same (modulo minor rule rearrangement) as the handbuilt version. As well, the other transformation was verified with similar proving time compared to the handbuilt version. For future work, we are interested in verifying the higher-order transformation itself using the contract prover we present here. Scalability is always an issue when exhaustive approaches such as ours are proposed. We have shown with our experiments that the HOT and the contract prover can transform and verify reasonably sized and complex transformations. As well, the slicing algorithm presented is able to reduce the verification time significantly for a complex transformation. However, more experiments with large transformations and contracts involving many elements are necessary to confirm our positive results on the usability and scalability of our technique. As DSLTrans is a Turing-incomplete computing language, it has limited expressiveness. This means that ATL transformations that use the refining mode for realizing in-place transformations or imperative constructs cannot in general be translated into DSLTrans to be verified by our approach. However, our technique can be used to verify the declarative subset of ATL in out-place transformations using the default mode, which is used in many more transformations than the refining mode. We are thus confident our technique is usable for a large class of real-world problems. Finally, only the String type is available in SyVOLT: this limitation implies that proofs in SyVOLT can only
34 Bentley James Oakes et al. be built for model transformations that manipulate attributes of types String. Note that this is not a limitation of the SyVOLT prover itself, but rather of the expressiveness of the DSLTrans language. This limitation can be surmounted in various ways, perhaps by converting non-String attributes and operations into Strings before transformation and doing the reverse operation after the transformation is concluded. 10.2 Conclusion In this paper, we have expanded on our novel technique from [36] to fully verify pre-/post-condition contracts on declarative ATL transformations. This approach is centered around transforming ATL transformations into DSLTrans, our transformation language with reduced-expressiveness. Our path condition generator is then able to produce a set of path conditions, which represent all possible transformation executions. Contracts are proved to either hold or not hold on each path condition, and thus on all transformation executions. This paper has also presented a number of case studies designed to answer our four research questions. Results indicate that our contract prover is applicable to reasonably sized and complicated ATL transformations, and that contracts can be proved using a feasible amount of time and memory. As well, we have also further detailed our ‘slicing’ technique, which selects only the rules which are needed to prove a particular contract. This results in a significant decrease in contract proving time. Finally, we determined that our HOT produces transformations that are a suitable replacement for hand-built transformations in contract proving. 10.3 Future Work Our future work will attempt to address any limitations of this work. In particular, we aim to produce a tool that can be used off-the-shelf to prove properties about a class of existing ATL transformations, fully automatically, by using the DSLTrans language as a hidden back-end. Our current focus is on integrating our higher-order transformation into our SyVOLT tool [5]. Another ongoing concern of ours is the time and space requirements to prove contracts on large transformations. We are investigating implementation speedups, such as further optimization of our matching algorithm and refinement of the transformation slicer. Acknowledgments The authors warmly thank Gehan Selim and Cl´audio Gomes for their contributions to the implementation of the contract prover. Bentley James Oakes is funded by an NSERC grant, as well as support from the NECSIS project, funded by Automotive Partnership Canada. The work of Javier Troya is funded by the European Commission (FEDER) and the Spanish and the Andalusian R&D&I programmes under grants and projects BELI (TIN2015-70560-R), THEOS (P10-TIC-5906) and COPAS (P12-TIC-1867). Finally, the work of Manuel Wimmer is funded by the Christian Doppler Forschungsgesellschaft and the BMWFW, Austria. References 1. A Short Introduction to SyVOLT. https://www.youtube. com/watch?v=8PrR5RhPptY 2. ATL Zoo. http://www.eclipse.org/atl/ atlTransformations 3. ATL2DSLTrans Artifacts. http://msdl.cs.mcgill.ca/ people/levi/files/MODELS2015_SoSyM 4. Atlas Transformation Language – ATL. http://eclipse. org/atl 5. SyVOLT tool. http://msdl.cs.mcgill.ca/people/levi/ contractprover 6. Amrani, M., L´ucio, L., Selim, G.M.K., Combemale, B., Dingel, J., Vangheluwe, H., Traon, Y.L., Cordy, J.R.: A Tridimensional Approach for Studying the Formal Verification of Model Transformations. In: Proc. of ICSTW, pp. 921–928 (2012) 7. Anastasakis, K., Bordbar, B., K¨uster, J.M.: Analysis of Model Transformations via Alloy. In: Proc. of MoDeVVa (2007) 8. Arendt, T., Habel, A., Radke, H., Taentzer, G.: From Core OCL Invariants to Nested Graph Constraints. In: Proc. ICGT, pp. 97–112 (2014). DOI 10.1007/ 978-3-319-09108-2 7 9. Balogh, A., et al.: Workflow-Driven Tool Integration Using Model Transformations. In: Graph Transformations and Model-Driven Engineering, pp. 224–248 (2010) 10. Barroca, B., L´ucio, L., Amaral, V., F´elix, R., Sousa, V.: DSLTrans: A Turing Incomplete Transformation Language. In: Proc. of SLE, pp. 296–305 (2011) 11. Bergmann, G.: Translating OCL to Graph Patterns. In: Proc. of MoDELS, pp. 670–686 (2014). DOI 10.1007/ 978-3-319-11653-2 41 12. Brambilla, M., Cabot, J., Wimmer, M.: Model-Driven Software Engineering in Practice. Morgan & Claypool Publishers (2012) 13. Burgueno, L., Troya, J., Wimmer, M., Vallecillo, A.: Static Fault Localization in Model Transformations. IEEE Transactions on Software Engineering 41(5), 490– 506 (2015) 14. B¨uttner, F., Egea, M., Cabot, J.: On Verifying ATL Transformations Using ’off-the-shelf’ SMT Solvers. In: Proc. of MoDELS, pp. 432–448 (2012). DOI 10.1007/ 978-3-642-33666-9 28
Full Contract Verification for ATL using Symbolic Execution 35 15. B¨uttner, F., Egea, M., Guerra, E., De Lara, J.: Checking Model Transformation Refinement. In: Proc. of ICMT, pp. 158–173 (2013) 16. Calegari, D., Luna, C., Szasz, N., Tasistro, A.: A Type- Theoretic Framework for Certified Model Transformations. In: Proc. of SBMF, pp. 112–127 (2010). DOI 10.1007/978-3-642-19829-8 8 17. Cariou, E., Belloir, N., Barbier, F., Djemam, N.: OCL Contracts for the Verification of Model Transformations. ECEASST 24 (2009) 18. Cheng, Z., Monahan, R., Power, J.F.: A Sound Execution Semantics for ATL via Translation Validation. In: Proc. of ICMT, pp. 133–148 (2015). DOI 10.1007/ 978-3-319-21155-8 11 19. Clavel, M., Dur´an, F., Eker, S., Lincoln, P., Mart´ı-Oliet, N., Meseguer, J., Talcott, C.: All About Maude - a Highperformance Logical Framework: How to Specify, Program and Verify Systems in Rewriting Logic. Springer (2007) 20. Cuadrado, J.S., Guerra, E., de Lara, J.: Uncovering Errors in ATL Model Transformations Using Static Analysis and Constraint Solving. In: Proc. of ISSRE, pp. 34–44 (2014). DOI 10.1109/ISSRE.2014.10 21. Gammaitoni, L., Kelsen, P.: F-Alloy: An Alloy Based Model Transformation Language. In: Proc. of ICMT, pp. 166–180 (2015). DOI 10.1007/978-3-319-21155-8 13 22. Garc´ıa-Dom´ınguez, A., Kolovos, D.S., Rose, L.M., Paige, R.F., Medina-Bulo, I.: EUnit: A Unit Testing Framework for Model Management Tasks. In: Proc. of MoDELS, pp. 395–409 (2011) 23. Giner, P., Pelechano, V.: Test-Driven Development of Model Transformations. In: Proc. of MoDELS, pp. 748– 752 (2009) 24. Gogolla, M., Hamann, L., Hilken, F.: Checking Transformation Model Properties with a UML and OCL Model Validator. In: Proc. of VOLT, pp. 16–25 (2014) 25. Gogolla, M., Vallecillo, A.: Tractable Model Transformation Testing. In: Proc. of ECMFA, pp. 221–235 (2011) 26. Gonz´alez, C.A., Cabot, J.: ATLTest: A White-Box Test Generation Approach for ATL Transformations. In: Proc. of MoDELS, pp. 449–464 (2012) 27. Guerra, E., de Lara, J., Wimmer, M., Kappel, G., Kusel, A., Retschitzegger, W., Sch¨onb¨ock, J., Schwinger, W.: Automated Verification of Model Transformations Based on Visual Contracts. Automated Software Engineering 20(1), 5–46 (2013) 28. Jouault, F., Allilaire, F., B´ezivin, J., Kurtev, I.: ATL: A Model Transformation Tool. Sci. Comput. Program. 72(1-2), 31–39 (2008) 29. Kolovos, D.S., Paige, R.F., Polack, F.A.: Model Comparison: A Foundation for Model Composition and Model Transformation Testing. In: Proc. of GaMMa, pp. 13–20 (2006) 30. Lano, K., Clark, T., Rahimi, S.K.: A Framework for Model Transformation Verification. Formal Asp. Comput. 27(1), 193–235 (2015). DOI 10.1007/ s00165-014-0313-z 31. L´ucio, L., Barroca, B., Amaral, V.: A Technique for Automatic Validation of Model Transformations. In: Proc. of MoDELS, pp. 136–150 (2010) 32. L´ucio, L., Oakes, B., Vangheluwe, H.: A Technique for Symbolically Verifying Properties of Graph-Based Model Transformations. Tech. rep., Technical Report SOCSTR-2014.1, McGill University (2014) 33. L´ucio, L., Oakes, B.J., Gomes, C., Selim, G.M., Dingel, J., Cordy, J.R., Vangheluwe, H.: SyVOLT: Full Model Transformation Verification Using Contracts. In: Proc. of MoDELS 2015 Demo and Poster Session (2015) 34. L´ucio, Levi and Amrani, Moussa and Dingel, J¨urgen and Lambers, Leen and Salay, Rick and Selim, Gehan and Syriani, Eugene and Wimmer, Manuel: Model Transformation Intents and their Properties. Software & Systems Modeling pp. 1–38 (2014). DOI 10.1007/ s10270-014-0429-x 35. Mottu, J.M., Baudry, B., Traon, Y.L.: Model Transformation Testing: Oracle Issue. In: Proc. of ICSTW, pp. 105–112 (2008) 36. Oakes, B.J., Troya, J., L´ucio, L., Wimmer, M.: Fully Verifying Transformation Contracts for Declarative ATL. In: Proc. of MoDELS, pp. 256–265 (2015) 37. Paen, E.: Measuring Incrementally Developed Model Transformations Using Change Metrics. Master’s thesis, Queen’s University (2012) 38. Poernomo, I., Terrell, J.: Correct-by-Construction Model Transformations from Partially Ordered Specifications in Coq. In: Proc. of ICFEM, pp. 56–73 (2010). DOI 10. 1007/978-3-642-16901-4 6 39. Posse, E., Dingel, J.: An Executable Formal Semantics for UML-RT. Software & Systems Modeling 15(1), 179– 217 (2016). DOI 10.1007/s10270-014-0399-z 40. Rahim, L., Whittle, J.: A Survey of Approaches for Verifying Model Transformations. Software & Systems Modeling 14(2), 1003–1028 (2015). DOI 10.1007/ s10270-013-0358-0 41. Richa, E., Borde, E., Pautet, L.: Translating ATL Model Transformations to Algebraic Graph Transformations. In: Proc. of ICMT, pp. 183–198 (2015). DOI 10.1007/ 978-3-319-21155-8 14 42. Selim, G.M.: Formal Verification of Graph-Based Model Transformations. Ph.D. thesis, Queen’s University (2015) 43. Selim, G.M., Cordy, J.R., Dingel, J., L´ucio, L., Oakes, B.J.: Finding and Fixing Bugs in Model Transformations with Formal Verification: An Experience Report. In: Proc. of AMT, pp. 26–35 (2015) 44. Selim, G.M., L´ucio, L., Cordy, J.R., Dingel, J., Oakes, B.J.: Specification and Verification of Graph-Based Model Transformation Properties. In: Proc. of ICGT, pp. 113–129 (2014) 45. Syriani, E., Vangheluwe, H., LaShomb, B.: T-Core: a framework for custom-built model transformation engines. Software & Systems Modeling 14(3), 1215–1243 (2015). DOI 10.1007/s10270-013-0370-4 46. Tisi, M., Mart´ınez, S., Jouault, F., Cabot, J.: Refining Models with Rule-based Model Transformations. Research Report RR-7582, INRIA (2011) 47. Troya, J., Vallecillo, A.: A Rewriting Logic Semantics for ATL. Journal of Object Technology 10(5), 1–29 (2011). DOI 10.5381/jot.2011.10.1.a5 48. Vallecillo, A., Gogolla, M., Burgueno, L., Wimmer, M., Hamann, L.: Formal Specification and Testing of Model Transformations. In: Formal Methods for Model-Driven Engineering, pp. 399–437 (2012) 49. Wieber, M., Anjorin, A., Sch¨urr, A.: On the Usage of TGGs for Automated Model Transformation Testing. In: Proc. of ICMT, pp. 1–16 (2014)
36 Bentley James Oakes et al. Author Biographies Bentley James Oakes is a PhD candidate in the Modelling, Simulation, and Design Lab at McGill University in Canada. His PhD topic is on the verification of model transformations in various domains using the SyVOLT frameworks and tool. Other research interests include causal-block diagrams, intellectual property issues in models, and artificial intelligence. Further information on his research can be found at http://msdl.cs.mcgill.ca/people/ bentley/. Javier Troya received his PhD degree in 2013 from the University of Malaga, Spain. He is currently a postdoctoral researcher in the Department of Computer Science and Languages at the University of Seville, Spain. Previously, he has been a postdoctoral researcher in the Business Informatics Group (BIG) at the Vienna University of Technology for more than two years. His research interests include modeling and metamodeling, model transformations, non-functional properties analysis and metamorphic testing. For more information, please visit http://www.lsi.us.es/~jtroya. Levi L´ucio is currently a staff researcher and Project Manager at fortiss GmbH, Germany. He received his PhD from the University of Geneva, Switzerland, in 2008. His research is about bridging software engineering and formal techniques. Some of his concrete areas of interest are model-driven development, model transformation languages, the verification of model transformations, correctness-by-construction, models of concurrency (in particular Algebraic Petri Nets), model evolution, model-based testing and tool construction. Levi is currently developing and leading projects together with avionic and automotive companies to produce IDEs based on frameworks that seamlessly integrate a range of domain specific languages. Such frameworks aim at providing the right languages for the right modelling tasks, while offering verification, refinement and traceability services. One of the main goals of such frameworks is to improve the available means for the certification of safety-critical software by the relevant authorities. Manuel Wimmer is a post-doctoral researcher at the Business Informatics Group of TU Wien. His research interests include the foundations of model engineering techniques as well as their application in domains such as tool interoperability, legacy modeling tool modernization, model versioning and evolution, software reverse engineering and migration, web engineering, cloud computing, and smart production. For further information about his research activities, please visit http://big.tuwien.ac. at/staff/mwimmer.