期刊文献+

利用属性文法对程序中的副作用进行检测 被引量:1

Detection Side Effect in Expressions by Using Attributed Grammar
下载PDF
导出
摘要 表达式是程序的基本组成单位。在C、C++语言程序中,变量的自增/自减运算造成表达式或函数调用中存在副作用。表达式或函数调用中的副作用会造成程序运行结果的异常,甚至导致系统崩溃。首先对副作用的产生原因进行了分析,进而提出了利用属性文法对具有副作用的表达式或函数调用进行检测的方法,该方法可以有效地完成表达式或函数调用中的副作用的检测。 表达式是程序的基本组成单位。在C、C++语言程序中,变量的自增/自减运算造成表达式或函数调用中存在副作用。表达式或函数调用中的副作用会造成程序运行结果的异常,甚至导致系统崩溃。首先对副作用的产生原因进行了分析,进而提出了利用属性文法对具有副作用的表达式或函数调用进行检测的方法,该方法可以有效地完成表达式或函数调用中的副作用的检测。
出处 《计算机科学》 CSCD 北大核心 2012年第S3期276-279,共4页 Computer Science
基金 山东农业大学青年创新基金(23470)资助
关键词 表达式的副作用 函数调用副作用 词法规则 属性文法 Side effect of an expression Side effect of function call Lexical rule Attributed grammar
  • 相关文献

参考文献8

  • 1Nguyen P H,Xue Jing-ling.Interprocedural side-effect analysisand optimization in the presence of dynamic class loading. Proceedings of the Twenty eighth Australasian Conference onComputer Science . 2005
  • 2Qian Ju,Zhou Yu-ming,Xu Bao-wen.Improving Side-Effect A-nalysis with Lazy Access Path Resolving. Ninth IEEE In-ternational Working Conference on Source Code Analysis andManipulation . 2009
  • 3Gray K E,Mycroft A.System tests from unit tests[OL]. ht-tp://www.cl.cam.ac.uk/ . 2012
  • 4Jingling Xue,Phung Hua Nguyen,John Potter.Interprocedural side-effect analysis for incomplete object-oriented software modules. The Journal of Systems and Software . 2007
  • 5Nguyen P H,Xue Jing-ling.Interprocedural side-effect analysisand optimization in the presence of dynamic class loading. Proceedings of the Twenty eighth Australasian Conference onComputer Science . 2005
  • 6Qian Ju,Zhou Yu-ming,Xu Bao-wen.Improving Side-Effect A-nalysis with Lazy Access Path Resolving. Ninth IEEE In-ternational Working Conference on Source Code Analysis andManipulation . 2009
  • 7Gray K E,Mycroft A.System tests from unit tests[OL]. ht-tp://www.cl.cam.ac.uk/ . 2012
  • 8Jingling Xue,Phung Hua Nguyen,John Potter.Interprocedural side-effect analysis for incomplete object-oriented software modules. The Journal of Systems and Software . 2007

同被引文献9

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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