版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 陕西省2026年中考英语试题
- 基层团队文化建设
- 中学《舞动的青春街舞》教学设计
- 烟台市芝罘区世回尧街道社区工作者招聘考试题目
- 烟台市莱州市平里店镇社区工作者招聘考试题目
- 医院安全生产自查报告范文
- 检验科生化室实习生出科考试试题及答案
- 2026年生物制药质量协议谈判技巧分享
- 水工闸门运行工职业技能考试题库及答案
- 生理学期试题及答案
- 2026年基础设施建设与管理知识考试及答案
- 2026广东佛山市顺德区村(社区)大学生CEO选聘100人备考题库及一套参考答案详解
- 26年胸膜间皮瘤评估实操指引
- 浙江省绍兴市柯桥区2024-2025学年七年级下学期期末数学试卷(含答案)
- 2025北京市朝阳区太阳宫乡社区工作者招聘考试真题及答案
- 2026年山东春考《艺术设计类专业知识》模拟试题及答案解析
- 2026年吉安市青原区社区工作者招聘考试备考题库及答案解析
- 肥西反邪教协会工作制度
- 2025年托育保健医考题库及答案
- TSG08-2026《特种设备使用管理规则》全面解读课件
- 《2026年化学制药企业安全风险防控专项工作方案》解读
评论
0/150
提交评论