面向对象程序切片中的数据流研究-计算机软件与理论专业毕业论文.docxVIP

面向对象程序切片中的数据流研究-计算机软件与理论专业毕业论文.docx

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘要本文致力于完成面向对象程序(c++)切片工具中数据依赖图的构造,因为数据 摘要 本文致力于完成面向对象程序(c++)切片工具中数据依赖图的构造,因为数据 依赖图的构造可以归结到程序中到达一定值信息的求解,所以本文主要阐述了到达 一定值的求解算法及相关的数据流分析问题,并讨论了算法的程序实现,以及在程 序切片中的应用。 文中工作使用的到达.定值求解算法是对编译器代码优化领域中经典的到达一 定值迭代求解算法的修改,使其适用于程序切片领域。在实现程序切片工具时, 本文利用GCC编译器的前端完成对C++程序的分析,在GCC生成的抽象语法树 基础上实现程序切片。在实现到达.定值求解算法时,因为算法基于控制流图,本 文提出了一种抽象语法树到控制流图的转换算法,并将其程序实现。在生成的控 制流图的基础上,根据到达.定值的求解算法,最终完成算法的程序实现。本文中 工作基本上可以处理各种复杂数据类型存在时,程序中到达一定值信息的求解, 但在数组和指针存在时,分析的精度有待提高。 关键字:数据流分析程序切片数据依赖控制流图抽象语法树 ABSTRACTThis ABSTRACT This paper is dedicated to the construction of data dependence graph of an object-oriented program slicing t001.For the construction of data dependence graph comes down to the obtaining of reaching definitions information,an algorithm for reaching definitions and related issues about data flow analysis are discussed.And the implementation of the algorithm and its application in program slicing are also discussed, The aJgodthrn for reaching defmifions in the paper is the modification of the classical iterative algorithm in the field of compiler code optimization,SO that it Can be applied to program slicing.In the implementation of the program slicing tool,the front end of GCC is utilized to parse the C++program and program slicing is constructed based on the AST(abstract syntax tree)produced by GCC.When implementing the algorithm for reaching definitions.an algorithm to txartsfoma the AST of the analyzed program to its according CFG(control flow日aph)is represented and implemented for the reason of CFO as the base of the algodthm for reaching defirtitions.After the construction of CFQ the algofithm for reaching definitions is implemented with the information obtained from the AST of the program.This paper call generate reaching defmiffons information for program with various dal口type while the precision needs to be improved in me presence ofarray and pointer. Keyword:data flow analysis program slicing data dependence control flow graph abstract syntax tree X砖s3j3;1创新性声明 X砖s3j3;1 创新性声明 本人声明

您可能关注的文档

文档评论(0)

peili2018 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档