版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 天文题目及答案
- 物业垃圾广告车管理制度(3篇)
- 石化静设备管理制度(3篇)
- 兽药营销培训
- 胖东来管理制度工作划分(3篇)
- 蜡烛失火与消防管理制度(3篇)
- 铁路维修小车的管理制度(3篇)
- 饮用水制售管理制度(3篇)
- 《GA 996-2012警力输送车》专题研究报告
- 兽医局防疫员培训课件
- 公路工程施工安全技术与管理课件 第09讲 起重吊装
- 2026年城投公司笔试题目及答案
- 国家安全生产十五五规划
- 河南省2025年普通高等学校对口招收中等职业学校毕业生考试语文试题 答案
- GB/T 16938-2008紧固件螺栓、螺钉、螺柱和螺母通用技术条件
- FZ/T 82006-2018机织配饰品
- 《食品包装学(第三版)》教学PPT课件整套电子讲义
- 全尺寸测量报告FAI
- 新教材教科版五年级上册科学全册课时练(课后作业设计)
- pep人教版六年级英语上册《Recycle2》教案教学设计
- 过电压抑制柜配电聚优柜控制器
评论
0/150
提交评论