期刊文献+

基于形式化规约的缺陷规则库构建与检测方法 被引量:1

Approach of constructing defect rule base and detecting source code based on formal specification
下载PDF
导出
摘要 传统的源码缺陷分析方法存在缺陷规则有限,缺陷检测结果不明确等问题。以模型检测中的形式化规约为基础,提出一种积木式缺陷规则库构建和源码检测方法。利用元数据,用户能够通过简单的CTL逻辑操作,实现自定义待检测的缺陷种类。并且,在检测到缺陷后能返回带有源程序行信息的反例路径,帮助开发人员快速定位缺陷根源。作为系统核心部分,规则库引擎从源程序中抽取控制流结构,进行符合控制反向(IOC)机制的元数据的动态匹配与标记。采用时序逻辑规约和标记后的控制流结构对程序建模,并结合NuSMV模型验证器实现验证。实现了原型系统,通过对开源程序的检测说明了该方法的有效性。 There exist the problems of insufficient number of defect rules and of unclear detecting results in traditional source-code defect-analysis techniques. A toy-brick pattern defect base construction method and source code detecting method are proposed, based upon formal specification. By making use of metadata, users can customize types of defect rules to detect. Furthermore, counterexamples carrying line information of the source code are returned, thus helping program developers to quickly locate the defect roots. As a key part, rule base engine is introduced, which extracts control flow from source code and dynamically matches and labels the meta data according to Inversion of Control(IOC)mechanism. The object program is modeled with temporal logic specification and labeled control flow, and NuSMV is utilized to realize verification. A prototype is implemented, and detecting results on open source programs show that the methods are effective.
出处 《计算机工程与应用》 CSCD 2014年第13期66-72,102,共8页 Computer Engineering and Applications
基金 优秀青年教师科技支撑专项(No.YX2011-29) 国家自然科学基金(No.61170268)
关键词 积木式模式 形式化规约 模型检测 toy-brick pattern formal specification model checking
  • 相关文献

参考文献15

  • 1Artzi S, Kiezun A, Dolby J, et al.Finding bugs in Web applications using dynamic test generation and explicit- state model cheeking[J].IEEE Transactions on Software Engineering, 2010,36 ( 4 ) : 474-494.
  • 2Ball T, Levin V, Rajamani S K.A decade of software model checking with SLAM[J].Communications of the ACM, 2011,54(7) :68-76.
  • 3Yoo J, Jee E, Cha S.Formal modeling and verification of safety-critical software[J].Software, 2009,26( 3 ) : 42-49.
  • 4Choppy C,Klai K,Zidani H.Formal verification of UML state diagrams:a petri net based approach[J].ACM SIGSOFT Software Engineering Notes, 2011,36( 1 ):1-8.
  • 5Slatten V, Kraemer F A, Herrmann P.Towards automatic generation of formal specifications to validate and verify reliable distributed systems:a method exemplified by an industrial case study[J].ACM SIGPLAN Notices, 2012, 47(3) : 147-156.
  • 6Cordeiro L,Fischer B,Marques-Silva J.SMT-based bounded model checking for embedded ANSI-C software[J].IEEE Trans- actions on Software Engineering, 2012,38(4) : 957-974.
  • 7Ljungkrantz O,Akesson K,Fabian M, et al.Formal speci- fication and verification of industrial control logic com- ponents[J].IEEE Transactions on Automation Science and Engineering, 2010,7 (3) : 538 -548.
  • 8Fioravanti F, Pettorossi A, Proietti M, el al.Generalization strategies for the verification of infinite state systems[J]. TPLP,2013,13(2) : 175-199.
  • 9Liu P, Zhang C.Pert: the application-aware tailoring of java object persistence[J].IEEE Transactions on Software Engineering, 2012,38 (4) : 909-922.
  • 10FitzRoy-Dale N, Kuz I, Heiser G.Architecture optimisation with currawong[J].ACM SIGCOMM Computer Communication Review ,2011,41( 1 ) : 115-119.

同被引文献3

引证文献1

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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