Lecture Notes in Computer Science 7021 Commenced Publication in 1973 Founding and Former Series Editors: Gerhard Goos, Juris Hartmanis, and Jan van Leeuwen Editorial Board David Hutchison Lancaster University, UK Takeo Kanade Carnegie Mellon University, Pittsburgh, PA, USA Josef Kittler University of Surrey, Guildford, UK Jon M. Kleinberg Cornell University, Ithaca, NY, USA Alfred Kobsa University of California, Irvine, CA, USA Friedemann Mattern ETH Zurich, Switzerland John C. Mitchell Stanford University, CA, USA Moni Naor Weizmann Institute of Science, Rehovot, Israel Oscar Nierstrasz University of Bern, Switzerland C. Pandu Rangan Indian Institute of Technology, Madras, India Bernhard Steffen TU Dortmund University, Germany Madhu Sudan Microsoft Research, Cambridge, MA, USA Demetri Terzopoulos University of California, Los Angeles, CA, USA Doug Tygar University of California, Berkeley, CA, USA Gerhard Weikum Max Planck Institute for Informatics, Saarbruecken, Germany
Adenilso Simao Carroll Morgan (Eds.) Formal Methods: Foundations and Applications 14th Brazilian Symposium, SBMF 2011 São Paulo, Brazil, September 26-30, 2011 Revised Selected Papers 13
Volume Editors Adenilso Simao University of São Paulo Institute of Mathematics and Computer Science Avenida Trabalhador, são-carlense, 400 Zip Code 13566-590, São Carlos, SP, Brazil E-mail: adenilso@icmc.usp.br Carroll Morgan University of New South Wales School of Computer Science and Engineering Sydney, NSW 2052, Australia E-mail: carrollm@cse.unsw.edu.au ISSN 0302-9743 e-issn 1611-3349 ISBN 978-3-642-25031-6 e-isbn 978-3-642-25032-3 DOI 10.1007/978-3-642-25032-3 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2011939535 CR Subject Classification (1998): D.2.4, D.2, F.3, D.3, D.1, K.6, F.4 LNCS Sublibrary: SL 2 Programming and Software Engineering Springer-Verlag Berlin Heidelberg 2011 This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, re-use of illustrations, recitation, broadcasting, reproduction on microfilms or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer. Violations are liable to prosecution under the German Copyright Law. The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. Typesetting: Camera-ready by author, data conversion by Scientific Publishing Services, Chennai, India Printed on acid-free paper Springer is part of Springer Science+Business Media (www.springer.com)
Preface This volume contains the papers presented at SBMF 2011: the 14th Brazilian Symposium on Formal Methods. The conference was held in the city of São Paulo, Brazil, colocated with CBSoft 2011, the Second Brazilian Conference on Software: Theory and Practice. The conference program included two invited talks, given by Catuscia Palamidessi (INRIA Saclay, France) and John Harrison (Intel Corporation, USA). A total of 13 research papers were presented at the conference and are included in this volume; they were selected from 37 submissions. The submissions came from 12 countries: Algeria, Brazil, China, Finland, France, Germany, India, Ireland, Malaysia, Portugal, Spain, the UK and the USA. There were also sessions specially devoted to a track of short papers, and these are published separately as a technical report including papers describing work in progress. The deliberations of the Program Committee and the preparation of these proceedings were handled by EasyChair, which indeed made our lives much easier. We are grateful to the Program Committee, and the additional reviewers, for their hard work in evaluating submissions and suggesting improvements. SBMF 2011 was organized by Escola de Artes, Ciências e Humanidades da Universidade de São Paulo (EACH/USP) and Faculdade de Computação e Informática da Universidade Presbiteriana Mackenzie (FCI/Mackenzie) under the auspices of the Brazilian Computer Society (SBC). We are very thankful to the organizers of this year s conference, Fatima L.S. Nunes Marques (EACH/USP) and Ana Cristina Vieira de Melo (IME/USP), and we are specially thankful to CBSoft 2011 s organizers Marcelo Fantinato (EACH/USP) and Luciano Silva (FCI/Mackenzie), who arranged everything and made the conference run smoothly. The conference was sponsored by the following organizations, which we thank for their generous support: CNPq, the Brazilian Scientific and Technological Research Council CAPES, the Brazilian Higher Education Funding Council FAPESP, São Paulo Research Foundation Google Inc. Universidade de São Paulo Universidade Presbiteriana Mackenzie August 2011 Adenilso Simao Carroll Morgan
Conference Organization Program Chairs Adenilso Simao Carroll Morgan ICMC/USP, Brazil UNSW, Australia Steering Committee Adenilso Simao Carroll Morgan David Naumann Jim Davies Jim Woodcock Leila Silva Marcel Oliveira Patrícia Machado Rohit Gheyi ICMC-USP, Brazil UNSW, Australia Stevens Institute of Technology, USA University of Oxford, UK (Co-chair) University of York, UK UFS, Brazil UFRN, Brazil(Co-chair) Program Committee Aline Andrade David Aspinall Luis Barbosa Michael Butler Andrew Butterfield Ana Cavalcanti Marcio Cornelio Andrea Corradini Jim Davies David Deharbe Ewen Denney Clare Dixon Jorge Figueiredo Rohit Gheyi Rolf Hennicker Juliano Iyoda Gerald Luettgen Patrícia Machado UFBA, Brazil University of Edinburgh, UK Universidade do Minho, Portugal University of Southampton, UK Trinity College Dublin, Ireland University of York, UK UFPE, Brazil Università di Pisa, Italy University of Oxford, UK UFRN, Brazil RIACS/NASA, USA University of Liverpool, UK Ludwig-Maximilians-Universität München, Germany UFPE, Brazil University of Bamberg, Germany
VIII Conference Organization Ana Melo Stephan Merz Anamaria Moreira Alvaro Moreira Arnaldo Moura Alexandre Mota David Naumann Daltro Nunes Jose Oliveira Marcel Oliveira Alberto Pardo Alexandre Petrenko Leila Ribeiro Augusto Sampaio Leila Silva Heike Wehrheim Jim Woodcock USP, Brazil INRIA Lorraine, France UFRN, Brazil UFRGS, Brazil Unicamp, Brazil UFPE, Brazil Stevens Institute of Technology, USA UFRGS, Brazil Universidade do Minho, Portugal UFRN, Brazil Universidad de la Republica, Uruguay CRIM, Canada UFRGS, Brazil UFPE, Brazil UFSE, Brazil University of Paderborn, Germany University of York, UK External Reviewers Ludwig Adam Sebastian Bauer Florent Bouchy Flavio S Correa Da Silva Alexander Ditter Arnaud Dury Andrew Edmunds Christoph Gladisch Alexander Knapp Giovanny Lucero Kenneth Mackenzie Tiago Massoni Iain Mcginniss Jan Tobias Muehlberg Ingrid Nunes Stefan Rieger Paulo Salem Da Silva Luis Sierra Renato Alexandre Silva Colin Snook Daniele Nantes Sobrinho Dominik Steenken Local Organization Marcelo Fantinato Luciano Silva Fátima L.S. Nunes Marques Ana Cristina Vieira de Melo EACH/USP (General Chair) FCI/Mackenzie (General Chair) EACH/USP IME/USP
Table of Contents Model Transformation and Induced Instance Migration: A Universal Framework... 1 Harald König, Michael Löwe, and Christoph Schulz SPARKSkein: A Formal and Fast Reference Implementation of Skein... 16 Roderick Chapman, Eric Botcazou, and Angela Wallenburg Full Abstraction at Package Boundaries of Object-Oriented Languages... 28 Yannick Welsch and Arnd Poetzsch-Heffter B to CSP Migration: Towards a Formal and Automated Model-Driven Engineering of Hardware/Software Co-design... 44 Marcel Vinicius Medeiros Oliveira, David B.P. Déharbe, and Luís C.D.S. Cruz Simulation and Verification of Synchronous Set Relations in Rewriting Logic... 60 Camilo Rocha and César Muñoz PiStache: Implementing π-calculus in Scala... 76 Pedro Matiello and Ana C.V. de Melo Sound and Complete Abstract Graph Transformation... 92 Dominik Steenken, Heike Wehrheim, and Daniel Wonisch On the Specification, Verification and Implementation of Model Transformations with Transformation Contracts... 108 Christiano Braga, Roberto Menezes, Thiago Comicio, Cassio Santos, and Edson Landim Modular Embedding of the Object Constraint Language into a Programming Language... 124 Fabian Büttner and Martin Gogolla Algebra of Monotonic Boolean Transformers... 140 Viorel Preoteasa Behavioural Preservation in Fault Tolerant Patterns... 156 Diego Machado Dias and Juliano Manabu Iyoda
X Table of Contents A Formal Approach to Fixing Bugs... 172 Sara Kalvala and Richard Warburton A Formal Treatment of Agents, Goals and Operations Using Alternating-Time Temporal Logic... 188 Christophe Chareton, Julien Brunel, and David Chemouil Author Index... 205