This paper uses a projection theory of slicing to formalize the definition of executable dynamic and forward program slicing. Previous definitions, when given, have been operational, and previous descriptions have been algorithmic. The projection framework
FormalizingExecutableDynamicandForwardSlicing
DaveBinkley
SebastianDanicic
TiborGyim´othy
MarkHarman
´AkosKiss
LahcenOuarbya
LoyolaCollege
BaltimoreMD21210-2699,USA.
GoldsmithsCollegeUniversityofLondonNewCross,LondonInstituteofInformaticsUniversityofSzeged6720Szeged,Hungary.BrunelUniversityUxbridge,MiddlesexUB83PH,UK.
SE146NW,UK.
Abstract
Thispaperusesaprojectiontheoryofslicingtoformal-izethede nitionofexecutabledynamicandforwardpro-gramslicing.Previousde nitions,whengiven,havebeenoperational,andpreviousdescriptionshavebeenalgorith-mic.Theprojectionframeworkisusedtoprovideadeclar-ativeformulationintermsofthedifferentequivalencespre-servedbythedifferentformsofslicing.
Theanalysisofdynamicslicingrevealsthattheslic-ingcriterionintroducedbyKorelandLaskicontainsthreeinter-wovencriteria.Itisshownhowthesethreeconceptu-allydistinctcriteriacanbedisentangledtorevealtwonewcriteria.Theanalysisofdynamicslicingalsorevealsthatthesubsumesrelationshipbetweenstaticanddynamicslic-ingismoreintricatethatpreviousauthorshaveclaimed.Finally,thepaperusestheprojectiontheorytoinves-tigatetheoreticalpropertiesofforwardslicing.Thisisachievedby rstre-formulatingforwardslicingtoprovideanexecutableforwardslice.Thisde nitionallowsforfor-malinvestigationoftherelationshipbetweenforwardandbackwardslicing.
1.Introduction
Thispaperisconcernedwiththeformalde nitionsandpropertiesofdynamicslicingandforwardslicing(ratherthanalgorithmsforcomputingthem).Itemploysthepro-jectiontheoryofprogramslicingintroducedbyHarman,Danicic,andBinkley[11,12].Usingthistheory,itispos-sibletostudyandexplainsimilaritiesanddifferencesbe-tweenslicingalgorithms.Thetheorywas rstusedtoex-aminethedifferencesandsimilaritiesbetweenamorphousandsyntax–preservingformsofslice[11,12].Thispaperusestheprojectiontheorytoinvestigatethenatureofdy-namicslicingasoriginallyformulatedbyKorelandLaski[18]andtoformalizethede nitionofexecutableforwardslice.
Theresultsondynamicslicingrevealthatthenatureofthedynamicslicingcriterionismoresubtlethanpreviousau-thorshaveclaimed[5,7,24].Thereisnosimpletwo–elementsubsumationrelationshipbetweenKorelandLaskidynamicslicingandstaticslicing.Inaddition,itisshownthatdynamicslicingcriteriacontainthreeinterwovencon-cepts;theinput,thetrajectory,andtheiterationcount.Pre-viousauthorshaveregardedtheinputastheonlyaspectofthedynamicslicingcriterion.
Thepaperalsopresentsresultsconcerningforwardslic-ing.Insteadofde ningaforwardsliceasthosecomponentsoftheprogramthatareaffectedbytheslicingcriterion,acomplementforwardsliceisde nedasaprogramwhoseexecutionisunaffectedbytheslicingcriterion.
Finally,thepaperintroducesasubsumationrelationshipthatrelatesthedifferenttypesofexecutablebackwardslic-ingmethods.Withthehelpoftheprojectionframeworkthreeorthogonalslicingcriteria(input,iterationcount,andtrajectoryequivalence)areidenti edandtheirextremesan-alyzed.Thesubsumesrelationshipofthe
so-identi edslicingmethodsisalsogiven.
FollowingVenkatesh[24],weusetheterm‘executable’tomeanthatasliceofprogramisitselfanexecutablepro-gramwhosesemanticsarea‘subset’ofthesemanticsof.Thisistobecontrastedwithanon–executableslice,whichismerelyasetofstatementsidenti edasbeingrelevanttotheslicingcriterion.Wepreferexecutableslicingde ni-tionsbecausetheycanbeinvestigatedformally,intermsoflanguagesemanticsandalsobecause,forsomeapplications(e.g.,testing,restructuringandreuse),slicesneedtobeex-ecutable.
Thepapermakesthreenoveltheoreticalcontributions:
1.TheanalysisofKorelandLaski’sde nitionofdy-namicslice[18]revealsthatthreedifferentandorthog-onalslicingcriteriahavebeeninterwoven.Byseparat-ingthese,thepaperintroducestwo,hithertounstudied,slicingcriteria:theiterationcountandthetrajectory.
热门文档