Normalization for Removing Code Variations in Modular Programs

Tiantian Wang, Xiaohong Su, Peijun Ma
{"title":"Normalization for Removing Code Variations in Modular Programs","authors":"Tiantian Wang, Xiaohong Su, Peijun Ma","doi":"10.1109/ISCSCT.2008.307","DOIUrl":null,"url":null,"abstract":"Code variations are widely believed to impede program analysis. This paper introduces an approach for removing code variations in programs with function calls. Non-recursive programs and recursive programs are handled with different strategies. An inlining algorithm based on system dependence graph is developed to remove the module structure variation in non-recursive programs. Recursive programs are not in lined, but also normalized by performing semantic-preserving transformations on system dependence graphs. As a result, semantically equivalent constructs are transformed to the same system dependence graph representation, so that code variations are removed. This approach has been applied to similar code detection and automatic grading of student programs. Test results show that it can efficiently remove code variations and improve program analysis.","PeriodicalId":228533,"journal":{"name":"2008 International Symposium on Computer Science and Computational Technology","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-12-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2008 International Symposium on Computer Science and Computational Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISCSCT.2008.307","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Code variations are widely believed to impede program analysis. This paper introduces an approach for removing code variations in programs with function calls. Non-recursive programs and recursive programs are handled with different strategies. An inlining algorithm based on system dependence graph is developed to remove the module structure variation in non-recursive programs. Recursive programs are not in lined, but also normalized by performing semantic-preserving transformations on system dependence graphs. As a result, semantically equivalent constructs are transformed to the same system dependence graph representation, so that code variations are removed. This approach has been applied to similar code detection and automatic grading of student programs. Test results show that it can efficiently remove code variations and improve program analysis.
消除模块化程序中代码变化的规范化
人们普遍认为代码变化会阻碍程序分析。本文介绍了一种在带有函数调用的程序中消除代码变化的方法。非递归程序和递归程序采用不同的处理策略。为了消除非递归程序中模块结构的变化,提出了一种基于系统依赖图的内联算法。递归程序不是线性的,而是通过在系统依赖图上执行语义保留转换来规范化的。因此,语义上等价的构造被转换为相同的系统依赖图表示,从而消除了代码变体。该方法已应用于类似的代码检测和学生课程的自动评分。测试结果表明,该方法能够有效地消除代码变化,提高程序分析能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信