南京大学学报(自然科学版) ›› 2010, Vol. 46 ›› Issue (1): 7176.
卞磊 * , 刘超, 金茂忠
Bian Software Engineering Institute, Beihang University, Beijing, 100083, China)Lei, Liu Chao, Jin MaoZhong
摘要: 审查是预防代码缺陷的重要手段, 但审查耗时, 浪费人力, 需要自动化工具对其进行辅助. 数据流异常是审查中着重检查的缺陷之一, 本文提出了一种基于有穷自动机的过程内数据流异常的检测
方法. 此方法首先对被测过程进行静态分析, 得到被测过程的逻辑路径; 而后基于有穷自动机和已获得的逻辑路径, 通过每个数据项的状态迁移来判断数据流是否存在异常. 本文介绍的方法面向审查, 并不
局限于某种特定的语言, 并且一定程度上提高了数据流异常检测和审查的效率.
[ 1 ] Fagan M. Design and code inspections to reduce errors in program development. IBM Systems Journal, 1976, 15(3): 182~ 211. [ 2 ] Beizer B. Software testing techniques. 2 nd edition. New York: International T homson Computer Press, 1990. [ 3 ] Dunsmore A, Roper M, Wood M. Practical code inspection techniques for object?oriented systems: An experimental comparison. Software IEEE, 2003, 20( 4) : 21~ 29. [ 4 ] ONeill D. Issues in software inspection. Software IEEE, 1997, 14( 1) : 18~ 19. [ 5 ] Gerard O? Regan. A practical approach to software quality. Chen Y, Shan S Q. Beijing: Tsinghua Publishing, 2004. (Gerard O? Regan. 软件质量实用方法论. 陈?茵, 闪四清. 北京: 清华大学出版社, 2004) . [ 6 ] Fosdick L D, Osterweil L J. Data flow analysis in software reliability. ACM Computing Surveys, 1976, 8(4): 41~ 56. [ 7 ] Huang J C. Detection of dataflow anomaly through program instrumentation. IEEE T ransactions on Software Engineering, 1979, SE- 5(2) , 226~ 236. [ 8 ] Louridas P. Static code analysis. Software IEEE, 2006, 23(4): 58~ 61. [ 9 ] Tang F G, Qian H B. Method and implementation of data flow analysis for Ada software. Journal of Beijing University of Aeronautics and Astronautics, 1997, 23(1): 25~ 29. (唐发根, 钱红兵. Ada 软件数据流分析方法及其实现. 北京航空航天大学学报, 1997, 23(1) : 25~ 29). [10] Jiang Z L, Jiang S X, Formal Languages and Automaton Theory. Beijing: Tsinghua Publishing, 2003, 123~ 124. ( 蒋宗礼, 姜守旭. 形式语言与自动机理论. 北京: 清华大学出版社, 2003, 123~ 124) . [11] John E H, Rajeev M, Jeffrey D U. Introduction to Automata Theory, Languages, and Computation. Beijing: China Machine Press, 2004, 80~ 81. (John E H, Rajeev M, Jeffrey D U 著. 自动机理论、 语言和计算导论. 刘?田, 姜?晖, 王捍贫. 北京: 机械工业出版社, 2004, 80~ 81) . |
No related articles found! |
|