期刊文献+

DDoop:基于差分式Datalog求解的增量指针分析框架

DDoop:Incremental Pointer Analysis Framework Based on Differential Datalog Evaluation
下载PDF
导出
摘要 指针分析是对软件进行编译优化、错误检测的核心基础技术之一.现有经典指针分析框架,如Doop,会将待分析程序和分析算法转化成Datalog评估问题并进行求解,如程序规模较大,单次求解分析时间开销较大.在程序频繁变更发布的情况下,相关程序分析的开销更是难以负担.近年来,增量分析作为一种在代码频繁变更场景下有效复用已有分析结果提升分析效率的技术受到了越来越多的关注.然而,目前的增量指针分析技术通常针对特定算法设计,支持的指针分析选项有限,其可用性也受到较大限制.针对上述问题,设计并实现一种基于差分式Datalog求解的增量指针分析框架DDoop(Differential Doop).DDoop实现增量输入事实生成技术与增量分析规则自动化重写技术,将多版本程序增量分析问题表达为差分Datalog评估问题,从而可以充分利用成熟的差分式Datalog求解引擎,如DDlog,来实现端到端的增量指针分析,并最大化兼容复用Doop中已有的指针分析实现,提供透明的增量化支持.在广泛应用的真实世界程序上对DDoop进行实验评估,实验结果显示DDoop相较于非增量的Doop框架具有显著的性能优势,同时高度兼容Doop中已有的各种指针分析规则. Pointer analysis is a core and fundamental technology for software compiler optimization and bug detection.Existing classic pointer analysis frameworks such as Doop will transform the programs to be analyzed and analysis algorithms into Datalog evaluation problems like too large program size and solve them.As a result,the analysis time overhead of a single solution can be high,and the program analysis overhead can hardly be afforded especially in situations where programs are frequently changed and released.In recent years,as a technology that effectively reemploys existing analysis results and improves analysis efficiency under frequent code changes,incremental analysis has caught increasing attention.However,since current incremental pointer analysis techniques are often designed for specific algorithms,the supported pointer analysis options are limited and their usability is significantly restricted.To this end,this study designs and implements Differential Doop(DDoop),an incremental pointer analysis framework based on Differential Datalog evaluation.DDoop implements incremental input fact generation and automatic rewriting for incremental analysis rules,expressing incremental analysis problems of multi-version programs as Differential Datalog evaluation problems.Finally,a mature Differential Datalog solution engine like DDlog can be fully utilized to achieve end-to-end incremental pointer analysis,maximizing compatibility and reuse of existing pointer analysis implementations in Doop and providing transparent support for incrementalization.Additionally,experimental evaluation of DDoop is conducted on widely adopted real-world programs.The results show that compared to the non-incremental Doop framework,DDoop has a significant performance advantage while highly compatible with a variety of pointer analysis rules existing in Doop.
作者 沈天琪 王熙灶 宾向荣 卜磊 SHEN Tian-Qi;WANG Xi-Zao;BIN Xiang-Rong;BU Lei(State Key Laboratory for Novel Software Technology(Nanjing University),Nanjing 210023,China;Department of Computer Science and Technology,Nanjing University,Nanjing 210023,China;Software Institute,Nanjing University,Nanjing 210023,China)
出处 《软件学报》 EI CSCD 北大核心 2024年第6期2608-2630,共23页 Journal of Software
基金 国家自然科学基金(62232008,62172200) 江苏省前沿引领技术基础研究专项(BK20202001) 中央高校基本科研业务费专项资金(020214380101)。
关键词 指针分析 增量分析 Datalog引擎 增量计算 差分式Datalog pointer analysis incremental analysis Datalog engine incremental computation Differential Datalog
  • 相关文献

参考文献3

二级参考文献6

共引文献26

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部