Model Extraction for ARINC 653 based Avionics Soft

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ModelExtractionforARINC653basedAvionicsSoftware?PedrodelaC´amara,Mar´ıadelMarGallardo,andPedroMerino1UniversityofM´alagaCampusdeTeatinoss/n,29071,M´alaga,Spainpedro.delacamara@gmail.com,{gallardo,pedro}@lcc.uma.esAbstract.Oneofthemostexcitingandpromisingapproachestoensurethecorrectnessofcriticalsystemsissoftwaremodelchecking,whichcon-sidersrealcode,writtenwithstandardprogramminglanguageslikeC.Onegeneraltechniquetoimplementthisapproachisproducingareducedmodelofthesoftwareinordertoemployexistingandefficienttools,likespin.Thispaperpresentstheapplicationofthetechniquetoavionicssoftwareconstructedontopofanapplicationinterface(api)compliantwiththearinc653specification(apex),whichiswidelyemployedbythemanufacturersintheavionicsindustry.Thepaperusesmodellingtech-niquespreviouslydevelopedbytheauthors.However,thesetechniquesarenowextendedtodealwithnewproblems,likereal-timeaspectsandscheduling.Thepaperalsocontainsanoveltestingmethodtoensurethecorrectnessofthekeypartinthemodel:theexecutionenginethatim-plementsapexservices.Thistestingmethodusesspintoexecuteofficialtestsuites.Keywords:Modelextraction,softwaremodelchecking,avionics,apex,RealTime1IntroductionApplicationsoftwareforavionics,rangingfromcomfortandmeasurementsoft-waretocriticalflyingcontrolsystems,arecurrentlyimplementedontopofasharednetworkofprocessorsfollowingstandardinterfaceslikearinc653(Avion-icsApplicationSoftwareStandardInterface)[1].Theapplicationsshareproces-sors,memoryanddevices(sensorsandinput/outputdevices)andthewholesystemrequiresspecificschedulingmethodswithrealtimefeatures.Sothever-ificationofthiskindofsystemisarealtrendformodelcheckerpractitioners.Itiswellknownthatonemajorproblemofmodelcheckingfornon-experten-gineersisthatthetechniquerequiresadeepunderstandingofboththemodellingandthepropertylanguagessupportedbythetools.Furthermore,themanualconstructionprocessissusceptibletohumanerrorsduetomisunderstandingsor?ThisworkhasbeenpartiallysupportedbytheSpanishMECundergrantTIN2004-7943-C04plainprogrammingbugs.Thisisonereasontostartmanyprojectsthatcangen-eratesuitablemodelswithminimalhumaninteraction(seeFeaver[9],JPF1[7]andBandera[4]).In[6]and[5],theauthorsdevelopamodelextractiontech-niquetodealwithsoftwarebuiltontopofwelldefinedapis.Theapproachwasimplementedforspin4(thesametargetasthatofotherrelatedtoolslikeFeaVerorBandera).Inthispaper,weextendandapplyourmethodtoverifyCapplicationsrunningontopofapex.Themainextensionstoourpreviousworkconsistinmodellingtimefeaturesandusingconformancetestingforcheckingthecorrectnessofourmodel.Modellingandverificationofavionicssoftwareisalsodescribedin[10].Theproblemofmodellingrealtimeinspinhasbeenconsideredin[3].Although,adetailedcomparisonwiththeseworksisgiveninSection8,wemaysummarizethemaincontributionsofthispaperasfollows:1.Themethodtomodeltimingeventspreservesthesizeofthestatespaceintothelimitssuitableforverificationwithspin,like[3].Inaddition,ourapproachcanalsobenefitfromabstractmatching.2.Theapproachin[10]isorientedtotheverificationoftheoperatingsystem(os),andnottotheapplicationsrunningontopofthisos.Wemodelboththeosandtheapplicationand,inparticular,wefocusondebuggingtheapplication.Furthermore,ourmodelofthearincexecutionengineisalsoavailablefortraditionalhand-mademodellingoftheapplications.3.Insofarastheverificationoftheapplicationdependsonthecorrectnessofthemodeloftheos,weautomaticallycheckthecorrectnessofourarincmodel.Tothisend,weemployspintodoautomatictesting,usingtheofficialtestsuitesavailableintheavionicsindustry.Thepaperisorganizedasfollows.ThepreliminarymaterialinSection2summarizesourgeneralextractionapproachtodealwithsoftwareconstructedontopofwell-definedapis[6].Section3givesanoverviewoftheapexapiandthepartitioningschemeforavionicssoftware.ThemainideasofthemodelextractionapproacharepresentedinSection4andthedetailsoftimemodellinginSection5.SomeexperimentalresultsthatconfirmthefeasibilityofthemethodisgiveninSection6.Section7showsthecorrectnessofourapproachthroughtesting.Sections8and9concludewithamoredetailedcomparisonwithrelatedworks,andtheconclusions,respectively.2ModelextractionwithWell-definedAPIsExistingapproachestoverifyingsoftwarebymodelextractiondonotspecificallyaddresstheproblemofhowtomodelservicesprovidedbytheoperatingsystem.Theyaresuitableforsourcecodethatonlycontainslibraryfunctionsthatcanbeexecutedbythetargetmodelchecker(seeFeaver[7]).Whenthetargetmodelcheckercannotdirectlyexecutealltheoperatingsystemcalls,itisnecessarytoaddsomeextrahardnesstocompletetheextractedmodels.2Clientsandservers(Ccode)globalvarsmain(){LocalvarsCblock;APIcall;............Cblock;APIcall;}Functionsglobalvarsmain(){LocalvarsCblock;APIcall;............Cblock;APIcall;}FunctionsAdditionalCglobalvars;proctypep1(){CglobalvarsClocalvars;Cblock;APIcall;............Cblock;APIcall;}proctypep2(){Cblock;APIcall;............Cblock;APIcall;}Clientsandservers(Pormelacode)Fig.1.MappingschemeinSocketMCIn[6]weconsideredhowtoverifyconcurrentCapplicationsthatmakeexten-siveuseofosfacilitiesthroughsystemcalls.Inourapproachtomodelextraction,weconstructaspinorientedmodelo

1 / 21
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功