ebook img

Formal Methods for Components and Objects: 4th International Symposium, FMCO 2005, Amsterdam, The Netherlands, November 1-4, 2005, Revised Lectures PDF

435 Pages·2006·3.668 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Formal Methods for Components and Objects: 4th International Symposium, FMCO 2005, Amsterdam, The Netherlands, November 1-4, 2005, Revised Lectures

Lecture Notes in Computer Science 4111 CommencedPublicationin1973 FoundingandFormerSeriesEditors: GerhardGoos,JurisHartmanis,andJanvanLeeuwen EditorialBoard DavidHutchison LancasterUniversity,UK TakeoKanade CarnegieMellonUniversity,Pittsburgh,PA,USA JosefKittler UniversityofSurrey,Guildford,UK JonM.Kleinberg CornellUniversity,Ithaca,NY,USA FriedemannMattern ETHZurich,Switzerland JohnC.Mitchell StanfordUniversity,CA,USA MoniNaor WeizmannInstituteofScience,Rehovot,Israel OscarNierstrasz UniversityofBern,Switzerland C.PanduRangan IndianInstituteofTechnology,Madras,India BernhardSteffen UniversityofDortmund,Germany MadhuSudan MassachusettsInstituteofTechnology,MA,USA DemetriTerzopoulos UniversityofCalifornia,LosAngeles,CA,USA DougTygar UniversityofCalifornia,Berkeley,CA,USA MosheY.Vardi RiceUniversity,Houston,TX,USA GerhardWeikum Max-PlanckInstituteofComputerScience,Saarbruecken,Germany Frank S. de Boer Marcello M. Bonsangue Susanne Graf Willem-Paul de Roever (Eds.) Formal Methods for Components and Objects 4th International Symposium, FMCO 2005 Amsterdam, The Netherlands, November 1-4, 2005 Revised Lectures 1 3 VolumeEditors FrankS.deBoer CentreforMathematicsandComputerScience,CWI Kruislaan413,1098SJAmsterdam,TheNetherlands E-mail:[email protected] MarcelloM.Bonsangue LeidenUniversity LeidenInstiuteofAdvancedComputerScience P.O.Box9512,2300RALeiden,TheNetherlands E-mail:[email protected] SusanneGraf VERIMAG 2AvenuedeVignate,CentreEquitation,38610Grenoble-Giéres,France E-mail:[email protected] Willem-PauldeRoever UniversityofKiel InstituteofComputerScienceandAppliedMathematics Hermann-Rodewald-Str.3,24118Kiel,Germany E-mail:[email protected] LibraryofCongressControlNumber:2006930291 CRSubjectClassification(1998):D.2,D.3,F.3,D.4 LNCSSublibrary:SL2–ProgrammingandSoftwareEngineering ISSN 0302-9743 ISBN-10 3-540-36749-7SpringerBerlinHeidelbergNewYork ISBN-13 978-3-540-36749-9SpringerBerlinHeidelbergNewYork Thisworkissubjecttocopyright.Allrightsarereserved,whetherthewholeorpartofthematerialis concerned,specificallytherightsoftranslation,reprinting,re-useofillustrations,recitation,broadcasting, reproductiononmicrofilmsorinanyotherway,andstorageindatabanks.Duplicationofthispublication orpartsthereofispermittedonlyundertheprovisionsoftheGermanCopyrightLawofSeptember9,1965, initscurrentversion,andpermissionforusemustalwaysbeobtainedfromSpringer.Violationsareliable toprosecutionundertheGermanCopyrightLaw. SpringerisapartofSpringerScience+BusinessMedia springer.com ©Springer-VerlagBerlinHeidelberg2006 PrintedinGermany Typesetting:Camera-readybyauthor,dataconversionbyScientificPublishingServices,Chennai,India Printedonacid-freepaper SPIN:11804192 06/3142 543210 Preface Large and complex software systems provide the necessary infrastructure in all industriestoday.Inordertoconstructsuchlargesystemsinasystematicmanner, thefocusinthedevelopmentmethodologieshasswitchedinthelasttwodecades from functional issues to structural issues: both data and functions are encap- sulated into software units which are integrated into large systems by means of various techniques supporting reusability and modifiability. This encapsulation principleisessentialtoboththeobject-orientedandthemorerecentcomponent- based software engineering paradigms. Formalmethodshavebeenappliedsuccessfullytotheverificationofmedium- sized programs in protocol and hardware design. However, their application to the developmentoflargesystems requiresmoreemphasis onspecification,mod- eling and validation techniques supporting the concepts of reusability and mod- ifiability and their implementation in new extensions of existing programming languages like Java. The new format of FMCO 2005 consisted of invited keynote lectures and tutorial lectures selected through a corresponding open call. The latter provide atutorialperspectiveonrecentdevelopments.Incontrasttoexistingconferences, abouthalfoftheprogramconsistedofinvitedkeynotelecturesbytopresearchers sharing their interest in the application or development of formal methods for large-scale software systems (object or component oriented). FMCO does not focus on specific aspects of the use of formal methods, but rather it aims at a systematic and comprehensive account of the expanding body of knowledge on modern software systems. This volume contains the contributions submitted after the symposium by both invited and selected lecturers. The proceedings of FMCO 2002, FMCO 2003, and FMCO 2004 have already been published as volumes 2852, 3188, and 3657 of Springer’s Lecture Notes in Computer Science. We believe that theseproceedingsprovideauniquecombinationofideasonsoftwareengineering and formal methods which reflect the expanding body of knowledge on modern software systems. June 2006 F.S. de Boer M.M. Bonsangue S. Graf W.-P. de Roever Organization The FMCO symposia are organized in the context of the project Mobi-J, a project founded by a bilateral research program of The Dutch Organization forScientificResearch(NWO)andtheCentralPublicFundingOrganizationfor AcademicResearchinGermany(DFG).ThepartnersoftheMobi-Jprojectsare: the Centrum voor Wiskunde en Informatica, the Leiden Institute of Advanced Computer Science, and the Christian-Albrechts-Universita¨tKiel. This project aims at the development of a programming environment which supports component-based design and verification of Java programs annotated with assertions. The overall approach is based on an extension of the Java lan- guage with a notion of component that provides for the encapsulation of its internal processing of data and composition in a network by means of mobile asynchronous channels. Sponsoring Institutions The Dutch Organizationfor Scientific Research (NWO) The Royal Netherlands Academy of Arts and Sciences (KNAW) The Dutch Institute for Programming research and Algorithmics (IPA) The Centrum voor Wiskunde en Informatica (CWI), The Netherlands TheLeidenInstitute ofAdvancedComputerScience(LIACS), TheNetherlands Table of Contents Component and Service Oriented Computing A Software Component Model and Its Preliminary Formalisation Kung-Kiu Lau, Mario Ornaghi, Zheng Wang ...................... 1 Synchronised Hyperedge Replacement as a Model for Service Oriented Computing Gian Luigi Ferrari, Dan Hirsch, Ivan Lanese, Ugo Montanari, Emilio Tuosto ................................................. 22 System Design Control of Modular and Distributed Discrete-Event Systems Jan Komenda, Jan H. van Schuppen ............................. 44 Model-Based Security Engineering with UML: Introducing Security Aspects Jan Ju¨rjens ................................................... 64 The Pragmatics of STAIRS Ragnhild Kobro Runde, Øystein Haugen, Ketil Stølen............... 88 Tools Smallfoot: Modular Automatic Assertion Checking with Separation Logic Josh Berdine, Cristiano Calcagno, Peter W. O’Hearn .............. 115 Orion: High-Precision Methods for Static Error Analysis of C and C++ Programs Dennis R. Dams, Kedar S. Namjoshi ............................. 138 Algebraic Methods Beyond Bisimulation: The “up-to” Techniques Davide Sangiorgi .............................................. 161 Separation Results Via Leader Election Problems Maria Grazia Vigliotti, Iain Phillips, Catuscia Palamidessi.......... 172 VIII Table of Contents Divide and Congruence: From Decomposition of Modalities to Preservationof Branching Bisimulation Wan Fokkink, Rob van Glabbeek, Paulien de Wind ................. 195 Model Checking Abstraction and Refinement in Model Checking Orna Grumberg................................................ 219 ProgramCompatibility Approaches Edmund Clarke, Natasha Sharygina, Nishant Sinha ................ 243 Cluster-Based LTL Model Checking of Large Systems Jiˇr´ı Barnat, Luboˇs Brim, Ivana Cˇerna´............................ 259 Safety and Liveness in Concurrent Pointer Programs Dino Distefano, Joost-Pieter Katoen, Arend Rensink ............... 280 Assertional Methods Modular Specification of Encapsulated Object-Oriented Components Arnd Poetzsch-Heffter, Jan Sch¨afer .............................. 313 Beyond Assertions: Advanced Specification and Verification with JML and ESC/Java2 Patrice Chalin, Joseph R. Kiniry, Gary T. Leavens, Erik Poll ....... 342 Boogie: A Modular Reusable Verifier for Object-Oriented Programs Mike Barnett, Bor-Yuh Evan Chang, Robert DeLine, Bart Jacobs, K. Rustan M. Leino............................................ 364 Quantitative Analysis On a Probabilistic Chemical Abstract Machine and the Expressiveness of Linda Languages Alessandra Di Pierro, Chris Hankin, Herbert Wiklicky .............. 388 Partial Order Reduction for Markov Decision Processes:A Survey Marcus Groesser, Christel Baier ................................. 408 Author Index................................................... 429 A Software Component Model and Its Preliminary Formalisation Kung-KiuLau1,MarioOrnaghi2,andZhengWang1 1SchoolofComputerScience,theUniversityofManchester ManchesterM139PL,UnitedKingdom {kung-kiu, zw}@cs.man.ac.uk 2DipartimentodiScienzedell’Informazione, Universita’deglistudidiMilano ViaComelico39/41,20135Milano,Italy [email protected] Abstract. Asoftwarecomponentmodelshoulddefinewhatcomponentsare,and how they can be composed. That is, it should define a theory of components and theircomposition. Current softwarecomponent models tendtouseobjects orport-connectortypearchitecturalunitsascomponents,withmethodcallsand port-to-portconnectionsascompositionmechanisms.However,thesemodelsdo notprovideapropercompositiontheory,inparticularforkeyunderlyingconcepts suchasencapsulationandcompositionality.Inthispaper,weoutlineournotion oftheseconcepts,andgiveapreliminaryformalisationofasoftwarecomponent modelthatembodiestheseconcepts. 1 Introduction The context of this work is Component-based Software Engineering, rather than Component-based Systems. In the latter, the focus is on system properties, and componentsaretypicallystatemachines.Keyconcernsareissuesrelatedtocommuni- cation,concurrency,processes,protocols,etc.Propertiesofinterestaretemporal,non- functionalpropertiessuchasdeadlock-freedom,safety,liveness,etc.Intheformer,the focusisonsoftwarecomponentsandmiddlewareforcomposingthem.Usuallyasoft- warecomponentmodel,e.g.EnterpriseJavaBeans(EJB)[21],providestheunderlying framework. Asoftwarecomponentmodelshoulddefine(i)whatcomponentsare,i.e.theirsyntax andsemantics;and(ii)howtocomposecomponents,i.e.thesemanticsoftheircomposi- tion.Currentcomponentmodelstendtouseobjectsorport-connectortypearchitectural units as components, with method calls and port-to-port connections as composition mechanisms.However,thesemodelsdonotdefineapropertheoryforcomposition. Webelievethatencapsulationandcompositionalityarekeyconceptsforsuchathe- ory. In this paper, we explain these notions, and their role in a composition theory. Usingtheseconcepts,wepresentasoftwarecomponentmodel,togetherwithaprelim- inaryformalisation. F.S.deBoeretal.(Eds.):FMCO2005,LNCS4111,pp.1–21,2006. (cid:2)c Springer-VerlagBerlinHeidelberg2006 2 K.-K.Lau,M.Ornaghi,andZ.Wang 2 Current Component Models Currently,so-calledcomponentmodels,e.g.EJBandCCM(CORBAComponentMo- del) [24], do notfollowa standardterminologyor semantics. Thereare differentdef- initions of what a componentis [6], and most of these are not set in the context of a componentmodel.Inparticular,theydonotdefinecompositionproperly. For example, a widely used definition of components is the following, due to Szyperski[28]: “A software componentis a unit of composition with contractually specified interfacesandexplicitcontextdependenciesonly.A softwarecomponentcan bedeployedindependentlyandissubjecttocompositionbythirdparties.” AdifferentdefinitionisthefollowingbyMeyer[20]: “A component is a software element (modular unit) satisfying the following conditions: 1.Itcanbeusedbyothersoftwareelements,its‘clients’. 2. It possesses an official usage description, which is sufficient for a client authortouseit. 3.Itisnottiedtoanyfixedsetofclients.” Boththesedefinitionsdonotmentionacomponentmodel,inparticularhowcomposi- tionisdefined. ThefollowingdefinitiongiveninHeinemanandCouncill[12]mentionsacomponent model: “A[componentisa]softwareelementthatconformstoacomponentmodeland canbeindependentlydeployedandcomposedwithoutmodificationaccording toacompositionstandard.” butitdoesnotdefineone. Nevertheless, there is a commonly accepted abstract view of what a component is, viz. a software unit that contains (i) code for performing services, and (ii) an in- terface for accessing these services (Fig. 1(a)). To provide its services, a component Name Interface provided services Code required services (a) (b) Fig.1.Asoftwarecomponent may require some services. So a component is often depicted as in Fig. 1(b), e.g. in CCMandUML2.0[23]. Incurrentsoftwarecomponentmodels,componentsaretypicallyobjectsasinobject- orientedlanguages,andport-connectortypearchitecturalunits,withmethodcallsand ADL(architecturedescriptionlanguages[26])connectorsascompositionmechanisms respectively. Acompletesurveyofthesemodelsisbeyondthescopeofthispaper.Itcanbefound in[17]. ASoftwareComponentModelandItsPreliminaryFormalisation 3 3 OurComponent Model Inourcomponentmodel,componentsencapsulatecomputation(anddata),1 andcom- positionoperatorsencapsulatecontrol.Ourcomponentsareconstructedfrom(i)com- putation units and (ii) connectors. A computation unit performs computation within itself, and does not invoke computationin another unit. Connectorsare used to build components from computation units, and also as composition operators to compose componentsintocompositecomponents. 3.1 ExogenousConnectors Ourconnectorsareexogenousconnectors[16].Thedistinguishingcharacteristicofex- ogenousconnectorsisthattheyencapsulatecontrol.IntraditionalADLs, components B A D C E (a)Componentsandconnectors (b)Controlflow Fig.2.TraditionalADLs aresupposedtorepresentcomputation,andconnectorsinteractionbetweencomponents [19](Fig.2(a)).Actually,however,componentsrepresentcomputationaswellascon- trol, since control originates in components, and is passed on by connectors to other components.ThisisillustratedbyFig.2(b),wheretheoriginofcontrolisdenotedby adotinacomponent,andtheflowofcontrolisdenotedbyarrowsemanatingfromthe dotandarrowsfollowingconnectors. Inthissituation,componentsarenottrulyindependent,i.e.theyaretightlycoupled, albeitonlyindirectlyviatheirports. Ingeneral,componentconnectionschemesincurrentcomponentmodels(including ADLs) use message passing, and fall into two main categories: (i) connection by di- rectmessagepassing;and(ii)connectionbyindirectmessagepassing.Directmessage K1 component B A notify(); connector B A K1.notify(); B.a(); a(); a(); B.a(); D K2.notify(); K2 K3 D C.b(); C C.b(); notify(); C notify(); K3.notify(); b(); c(); C.b(); b(); C.b(); c(); (a)Directmessagepassing (b)Indirectmessagepassing Fig.3.Connectionbymessagepassing passingcorrespondstodirectmethodcalls, asexemplifiedbyobjectscallingmethods in other objects (Fig. 3 (a)), using method or event delegation, or remote procedure call(RPC).Softwarecomponentmodelsthatadoptdirectmessagepassingschemesas 1Forlackofspace,wewillnotdiscussdatainthispaper.

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.