- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
methodcallsandmodelelds
Vol. 4, No. 8, September–October 2005
Reasoning with speci?cations containing
method calls and model ?elds
David R. Cok, B65 MC01816, Eastman Kodak Company, Research Devel-
opment Laboratories, Rochester, NY 14650-1816, USA, cok@
Allowing abstraction in program speci?cations increases modularity and comprehen-
sibility and is as important in speci?cations as it is in the program itself; two such
abstraction mechanisms are method invocations and model ?elds. However, method
invocations do not map neatly into the ?rst-order logics that are often used for assuring
the correctness of speci?cations. One problem is translating speci?cations in a way
that acknowledges the potential for exceptional behavior. Furthermore, translating
model ?elds into veri?cation conditions exposes the non-trivial interactions between
frame conditions and the model representations. The ESC/Java2 tool has been able
to achieve a practical translation of method invocations and model ?elds within the
design constraints of its parent tool, ESC/Java. Furthermore, the techniques used are
applicable to other speci?cation constructs such as generalized quanti?ers.
1 INTRODUCTION
Research and practical capability in program veri?cation is advancing signi?cantly
with the help of clearer semantics, evolution of languages and tools, and experience
with industrial-scale software systems. One research thread in program veri?ca-
tion combines (a) speci?cations indicating the intent of a program with (b) tools
that check those speci?cations either dynamically at run-time or statically with-
out needing to execute the program. Using method calls in speci?cations provides
a level of abstraction and conciseness that promotes reading, writing and under-
standing speci?cations and will likely assist in their automated veri?cation as well.
However, method calls in spec
文档评论(0)