期刊文献+

一个支持位运算形式化推理的抽象机

Abstract Machine Supporting Bit Arithmetic Reasoning
在线阅读 下载PDF
导出
摘要 程序推理使用的抽象机器与物理机器的差距降低了推理的精确度,为了缩小这个差距,本文提出了一个带位级别抽象的新抽象机,在这个机器里,二进制整数以纯语法的方式被表示成位矢量而不是非负整数.使用这个抽象机器,可以在其上进行许多带位操作指令的程序,特别是系统级代码的Hoare逻辑风格推理.本文中,二进制整数及其上的算术逻辑运算使用Coq的归纳结构演算来形式化,并且一些常见的重要性质也都使用Coq证明助理进行了严格的形式化证明. The gap between the physical machine and the abstract machine used in program reasoning reduces the accuracy of reasoning.In order to shorten this gap,a new abstract machine with blt-level abstraction is proposed,in which the binary integers are represented as bit vector in syntactic approach instead of non-negative integer number.With this new abstract machine,many programs with bit operation instructions,especially system-level codes,can be reasoned using Hoare Logic.In this paper,the binary integer along with its arithmetic and logic operations are formalized in Coq's Calculus of Inductive Construction,and many important properties are also formally proved in Coq proof assistant.
作者 项森 陈意云 林春晓 XIANG Sen;CHEN Yi-yun;LIN Chun-xiao(Department of Computer Science,University of Science and Technology of China,Hefei 230026.China)
出处 《小型微型计算机系统》 CSCD 北大核心 2007年第1期88-92,共5页 Journal of Chinese Computer Systems
基金 国家自然科学基金项目(60473068)资助.
关键词 形式化方法 程序验证 HOARE逻辑 程序设计中的逻辑 formal method program verification hoare logic logic in programming
  • 相关文献

参考文献10

  • 1Greg Morrisett,David Walker,Karl Crary,et al.From system F to typed assembly language[J].ACM Transaction on Programming Languages and Systems,1999,21(3):527-568.
  • 2Hoare C A R.An axiomatic basis for computer programming[J].Commun.ACM,1969,12(10):576-580.
  • 3George C.Necula.Proof-carrying code[C].Proceedings of the 24th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL97),1997:106-119.
  • 4Wang Fang-ting.Mathematical logic[B].University of Science and Technology of China Press,Hefei,Anhui,1992.
  • 5Yu Da-chuan,Nadeem A.Hamid,Zhong Shao.Building certified libraries for PCC:dynamic storage allocation[J].Sci.Computer Programming,2004,50(1-3):101-127.
  • 6Greg Morrisett,Karl Crary,Neal Glew,David Walker.Stack-based typed assembly language[J].Journal of Functional Programming,2002,12(1):43-88.
  • 7The Coq Development Team.The coq proof assistant reference manual V8.0[B],2004.
  • 8Henry S,Warren Jr.Hackers Delight[B].Addison Wesley,2002.
  • 9Leslie Lamport.The temporal logic of actions[C].ACM Toplas,1994,16(3):872-923.
  • 10Robert S.Boyer,Yuan Yu.Automated proofs of object code for a widely used microprocessor[J].Journal of the ACM,1996,43(1):166-192.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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