arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.14320cs.SEcs.LO
收藏

结合架构建模与形式化程序分析来量化软件正确性

Quantifying Software Correctness by Combining Architecture Modeling and Formal Program Analysis

Florian Lanzinger, Christian Martin, Frederik Reiche, Samuel Teuber, Robert Heinrich, Alexander Weigl

AI总结:

本文提出 QuAC 模块化方法,结合面向服务架构建模、概率使用场景与演绎验证,用覆盖区域量化软件正确性,并基于 Palladio 与 KeY 的 Java 实现验证其可用性。

摘要:

大多数形式化方法将软件系统的正确性视为一种二元判定。然而,由于复杂系统由多个组件、使用场景和环境组成,完全证明其正确性十分困难。我们提出 QuAC,这是一种通过将软件架构建模与演绎验证相结合,来量化面向服务软件系统正确性的模块化方法。该方法基于面向服务架构模型以及系统的概率性使用场景。单个服务的正确性由覆盖区域近似表示,覆盖区域是一个公式,用于描述该服务的哪些输入已被证明不会导致错误执行。覆盖区域可以通过组合多种分析来确定,例如形式化验证、专家估计或测试。随后,覆盖区域和软件模型被组合成一个概率程序。据此,我们可以计算在给定使用配置下,没有任何服务在其覆盖区域之外被调用的概率。如果覆盖区域足够大,那么无需试图获得可能代价高昂的 100% 覆盖,而可以采用运行时验证或测试方法来处理覆盖区域之外的输入。我们还使用建模工具 Palladio 和演绎验证工具 KeY,给出了 QuAC 针对 Java 的实现。我们通过将其应用于一个能源系统的软件仿真,展示了该方法的可用性。

英文摘要:

Most formal methods see the correctness of a software system as a binary decision. However, proving the correctness of complex systems completely is difficult because they are composed of multiple components, usage scenarios, and environments. We present QuAC, a modular approach for quantifying the correctness of service-oriented software systems by combining software architecture modeling with deductive verification. Our approach is based on a model of the service-oriented architecture and the probabilistic usage scenarios of the system. The correctness of a single service is approximated by a coverage region, which is a formula describing which inputs for that service are proven to not lead to an erroneous execution. The coverage regions can be determined by a combination of various analyses, e.g., formal verification, expert estimations, or testing. The coverage regions and the software model are then combined into a probabilistic program. From this, we can compute the probability that under a given usage profile no service is called outside its coverage region. If the coverage region is large enough, then instead of attempting to get 100% coverage, which may be prohibitively expensive, run-time verification or testing approaches may be used to deal with inputs outside the coverage region. We also present an implementation of QuAC for Java using the modeling tool Palladio and the deductive verification tool KeY. We demonstrate its usability by applying it to a software simulation of an energy system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑