首页    期刊浏览 2025年07月18日 星期五
登录注册

文章基本信息

  • 标题:The Strong Object Invariant
  • 本地全文:下载
  • 作者:Dušan Malbaški ; Aleksandar Kupusinac
  • 期刊名称:TEM Journal
  • 印刷版ISSN:2217-8309
  • 电子版ISSN:2217-8333
  • 出版年度:2012
  • 卷号:1
  • 期号:1
  • 页码:9-15
  • 语种:English
  • 出版社:UIKTEN
  • 摘要:The concept of an invariant is fundamental to object-oriented programming,because it provides information on the overall behaviour of the class and/or its objects. An invariant is a predicate,that is true in every state that is proclaimed as valid. A strong invariant is a predicate,that is true in every valid state and false in every invalid state. Basically,we can divide them into two categories:object invariants and class invariants. Object invariants describe the consistency of object,i.e. non-static fields. Analysis of invariants takes the most important place in object-oriented program verification and can be directed in two ways – as prescribed and as described. This paper considers both analyses which are based on the strongest dynamic postconditions of methods with the guard as the precondition,thus,determining all possible transitions and only them. In addition,since dynamic postconditions are logical functions of the initial-final states,our solution is based solely on the first-order predicate logic.
  • 关键词:Invariants;Object-oriented programming;Program correctness;Program verification.
国家哲学社会科学文献中心版权所有