




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
SeekingforthePotofGoldattheEndoftheProgramSpectrumRainbow---频谱缺陷定位中挑战与解决方案ThelegendTheleprechaunsreburiedthegoldinpotsdeepundergroundallovertheisland.Whenrainbowsappear,theyalwaysendataspotwheresomeleprechaun'spotofgoldisburiedAutomatedFaultLocalizationDebuggingishardforhumans:weincreasinglyhavetoworkonandwithlargecodebasewrittenbyothers.Debuggingishardformachines:automatedrepairtechniquesrelyheavilyonautomatedfaultlocalisation.ProgramSpectrumandFaultLocalizationProgramspectrum:run-timeprofileAssociatedwitheachtestingresultGranularity:statements,branches,etc.Coverageinformation:binary(executionslice),executiontrace,etc.Testingresultforthetestcases:ProgramSpectrumandFaultLocalizationSince2001…ProgramSpectrumandFaultLocalizationJaccard……TarantulaOchiaiNaishCBIProgramSpectrumandFaultLocalizationJaccard……TarantulaOchiaiNaishCBIOK,itisanoldstory,but…Whichisthebest?定义:任意两个公式之间的关系FormulaR1isbetterthanformulaR2(R1→R2)R1R2ifforanyprogram,faultystatement,testsuiteandconsistenttie-breakingscheme,E1≤E2FormulaR1isequivalenttoformulaR2(R1↔R2)R1↔R2
ifforanyprogram,faultystatement,testsuiteandconsistenttie-breakingscheme,E1=E2TheoreticalFramework–Basis
TheoreticalFramework–BasisSBSFSA只与R的定义有关
TheoreticalFramework–BasisSB1SF1SA1SB2SF2SA2Assumeconsistenttie-breaking
TheoreticalFramework–BasisSB2SF2SA2SB1SF1SA1定理4:给定两个公式,如果其对应的程序语句子集存在反例使得相对应的子集间无确定包含关系,则R1
--\>R2,且R2
--\>R1TheoreticalFramework–Basis给定一定范围的公式集合,可以为其建立性能层次关系---例如基于35个公式的实例分析TheoreticalFramework–BasisER1M2AMPLEER3ER2OchiaiKulczynski2Wong3ER5GP2GP3GP196组等价公式StrictlybetterCover了过去20年的实验结论论文X.Xie(*),T.Y.Chen,F.-C.Kuo,B.W.Xu,ATheoreticalAnalysisofTheRiskEvaluationFormulasforSpectrum-BasedFaultLocalization,ACMTransactiononSoftwareEngineeringandMethodology,2013,Vol.22,No.4,pp.31:1-31:40.TheoreticalFramework–BasisHowtogeneralizedtheanalysis?Restricted,repeatedanalysis,sortofboring,seemstobeendless…Implication:给定任何一个公式,总能够找到它在给定公式集中的性能层次定位定义:Limitedmaximality---AriskevaluationformulaR1fromasubsetofformulas,S⊂F,issaidtobeamaximalformulaofS
ifforanyelementR2∈S,R2→R1impliesR2↔R1.定义:Maximality---AriskevaluationformulaR1fromasubsetofformulas,SissaidtobeamaximalformulainF,
ifforanydistinctformulaR2∈FsuchthatR2→R1impliesR2↔R1TheoreticalFramework–Generalization有限集无限集频谱坐标系:TheoreticalFramework–Generalization
给定P&TS(执行信息),每个点上将会附结>=0个程序语句,这些语句所获得的risk值就是其所附结点的risk值;不同执行信息决定了每个点上所附结语句的密度
频谱坐标系中的FaultyBorder:wecallthesequentialpoints<(F,0),(F,1),…,(F,ep),…,(F,P)>为FaultyBorder,记为ETheoreticalFramework–GeneralizationFaultyBorder作用:singlefaultsf一定附结于FaultyBorder的某个点上,因为ef=FTheoreticalFramework–Generalization附在哪个点取决于sf的ep值-neverknowduetoinevitablecoincidentalcorrectness(不确定性1)而sf的ranking又取决于R对于sf所附结点所赋予的risk在所有faultyborder上点risk值的排名(不确定性2)每次都能排在top很难!
TheoreticalFramework–Generalization
TheoreticalFramework–GeneralizationER1M2AMPLEER3ER2OchiaiKulczynski2Wong3ER5GP2GP3GP19
TheoreticalFramework–Generalization
定理:ThereisnoformulathatisgreatestagainstthesetofallformulasF
GreatestFormula:ariskevaluationformulaRissaidtobeagreatestformulainFifforanydistinctformulaR’inF,itholdsthatRR’TheoreticalFramework–Generalization结论TheoreticalFramework–Generalization……………………MaximalMaximalMaximalUR为空,PR不同UR不为空,PR相同AssignUR点为最小值PR不变Generalizationisdone论文发表S.Yoo(*),X.Xie(*),F-C.Kuo,T.Y.Chen,M.Harman,HumanCompetitivenessofGeneticProgramminginSpectrum-BasedFaultLocalisation:TheoreticalandEmpiricalAnalysis,ACMTransactionsonSoftwareEngineeringandMethodology,2017,26(1),pp.4:1-4:30.TheoreticalFramework–GeneralizationSBFLinPracticeHuman-centricdisciplineHumanbeingsgetinvolvedineachactivitySBFLinPracticeConcludedobservationsSBFLinMoocTestonlyhelpstoimprove“completionrate”in“top-rankingcases”SBFLinMoocTestisNOThelpinginreducingtimecostTimecostsignificantlyincreaseswithinaccurateSBFLresultsFinallyreachaparticularareaandfixthebug.First,considercasewithoutSBFLAfirstcodescanFollowedbyseveralroundsofnavigationalongthroughallthecodelinessequentiallySBFLinPracticeNow,let’sconsiderSBFLAfirstcodescan,i.e.askimoftheentireorpartofthecodebeforeinspectingthetopDuringFollow-upbrowsing,i.e.allnavigationafter“firstscan”,programmersswitchbetweenthetopandothers.UntiltheyidentifythebugandfixitSBFLinPracticeSBFLinPracticeConcludedobservationsFirstscanispreservedinSBFLSBFLmayresultininsufficientfirstcodescan---couldbeharmfultotheefficiencyCarefulscanleadstobettercodecomprehension---inevitabletoefficientdebuggingSBFLleadstomorerevisitandlongertimetospendonsf,inordertodetectitAutomaticdebugging:highlightasuspiciousareafordevtofocusonAsquicklyaspossibleAssmallaspossibleSBFLinPractice!missagoodglobalunderstanding;!moretimetocompensate!Generallyunrealistic!Browsingcontextisindispensable论文发表X.Xie,Z.Liu,S.Song,Z.Chen,J.XuanandB.W.Xu,RevisitofAutomaticDebuggingviaHumanFocus-tracking,InternationalConferenceonSoftwareEngineering(ICSE),2016,pp.808-819SBFLinPracticeThelegendThereisnopotofgoldattheendoftherainbow……Walkthroughtherainbow,youwillhavenothingbuttherainbowNoendofthepoint,noultimatesolution沿途的风景也能胜过彼岸Wefounda``prac
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 儿童疫苗接种后的注意事项与常见反应
- 【教学案例】店铺装修设计之专题页策划
- 表一行政执法主体统计表
- 2025届湖南省邵阳市新邵县高一化学第二学期期末调研试题含解析
- 江西省景德镇市2024-2025学年高一下学期6月期末质量检测政治试卷(含答案)
- 2024-2025高一政治第二学期期中考试试卷(初稿)
- 小服装店开业活动方案
- 岱山元宵节活动方案
- 小学音乐试讲活动方案
- 工地五四活动方案
- 2024年广东省中考生物+地理试卷(含答案)
- 室外供热管网设计计算书案例
- 外国城建史(复习整理)
- 高考语文必备古诗文(含翻译及赏析)
- 二年级北师大版语文下册形近字专项复习含答案
- 食品中日文加工用语
- 小班化教育课堂教学.ppt
- 等效内摩擦角计算表
- 2×1000MW高效清洁燃煤发电项目建议书写作模板-
- 继承不动产登记具结书
- 热型连铸铜合金工艺
评论
0/150
提交评论