首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:Executing Underspecified OCL Operation Contracts with a SAT Solver
  • 本地全文:下载
  • 作者:Matthias P. Krieger ; Alexander Knapp
  • 期刊名称:Electronic Communications of the EASST
  • 电子版ISSN:1863-2122
  • 出版年度:2008
  • 卷号:15
  • 语种:English
  • 出版社:European Association of Software Science and Technology (EASST)
  • 摘要:Executing formal operation contracts is an important technique for requirements validation and rapid prototyping. Current approaches require additional guidance from the user or exhibit poor performance for underspecified contracts that describe the operation results non-constructively. We present an efficient and fully automatic approach to executing OCL operation contracts which uses a satisfiability (SAT) solver. The operation contract is translated to an arithmetic formula with bounded quantifiers and later to a satisfiability problem. Based on the system state in which the operation is called and the arguments to the operation, an off-the-shelf SAT solver computes a new state that satisfies the postconditions of the operation. An effort is made to keep the changes to the system state as small as possible. We present a tool for generating Java method bodies for operations specified with OCL. The efficiency of our method is confirmed by a comparison with existing approaches.
国家哲学社会科学文献中心版权所有