自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

mahope的专栏

马不停蹄

  • 博客(0)
  • 资源 (2)
  • 收藏
  • 关注

空空如也

能抓取ie浏览器运行时HTML源代码的工具--iespy

能够抓到ie运行时的HTML源码,对于网页编程学习是很有帮助的。

2009-04-05

Using Slicing to Identify Duplication in Source Code.pdf

一个论文,关于代码重构的--使用切片识别源代码中的重复部分。 采用了PDG(程序依赖图)和一个叫Codesurfer的软件。 可以识别交织的重复代码,生成新的函数。 本文具有很好的启发价值。 Programs often have a lot of duplicated code, which makes both understanding and maintenance more dicult. This problem can be alleviated by detecting duplicated code, extracting it into a separate new procedure, and replacing all the clones (the instances of the duplicated code) by calls to the new procedure. This paper describes the design and initial implementation of a tool that nds clones and displays them to the programmer. The novel aspect of our approach is the use of program dependence graphs (PDGs) and program slicing to nd isomorphic PDG subgraphs that represent clones. The key bene ts of this approach are that our tool can nd non-contiguous clones (clones whose components do not occur as contiguous text in the program), clones in which match- ing statements have been reordered, and clones that are intertwined with each other. Furthermore, the clones that are found are likely to be mean- ingful computations, and thus good candidates for extraction.

2009-03-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除