保证合同中的监控假设
Monitoring Assumptions in Assume-Guarantee Contracts
摘要:
在假定保证形式中,相对于行为规范的软件组件的部署前验证通常不保证在运行时间没有错误。这是因为,在环境确定之前,关于环境的假设无法解除。一种直观的方法是补充部署前的保证验证,直到假设,以及部署后的环境行为监视,以检查在运行时间是否满足假设。这样的监视器通常通过检测组件的应用程序代码来实现。监视步骤的另一个挑战是,环境行为通常是通过I/O库获得的,这可能会改变组件对输入格式的看法。这种转换要求我们引入第二个部署前验证步骤,以确保监视器发出的警报确实与违反环境假设相对应。在本文中,我们描述了一种方法,用于构建监视器和验证它们对组件的假设。我们还讨论了基于仪器的监测和潜在的方法来克服它的局限性。
英文摘要:
Pre-deployment verification of software components with respect to behavioral specifications in the assume-guarantee form does not, in general, guarantee absence of errors at run time. This is because assumptions about the environment cannot be discharged until the environment is fixed. An intuitive approach is to complement pre-deployment verification of guarantees, up to the assumptions, with post-deployment monitoring of environment behavior to check that the assumptions are satisfied at run time. Such a monitor is typically implemented by instrumenting the application code of the component. An additional challenge for the monitoring step is that environment behaviors are typically obtained through an I/O library, which may alter the component's view of the input format. This transformation requires us to introduce a second pre-deployment verification step to ensure that alarms raised by the monitor would indeed correspond to violations of the environment assumptions. In this paper, we describe an approach for constructing monitors and verifying them against the component assumption. We also discuss limitations of instrumentation-based monitoring and potential ways to overcome it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。