




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年03月内蒙古鄂尔多斯市东胜区事业单位引进高层次人才和紧缺专业人才50人笔试历年典型考题(历年真题考点)解题思路附带答案详解
- 深入贯彻学习2025年中央八项规定精神教育测试题及答案
- VDA6.3-2023版审核检查表
- 反渗透理论及要求
- 气道异物梗阻的急救ppt课件
- T∕CNTAC 22-2018 绒毛织物掉毛性的试验方法
- 能源计量网络图范例二
- 历代皇帝年号表
- 超星尔雅学习通《时间管理》章节测试含答案
- 二至六年级24点试题与部分答案
- 2016年江苏开放大学-实践性考核作业-建设工程施工管理1课件
评论
0/150
提交评论