arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.08159cs.SE
收藏

CodoMo:用于集成计算机视觉系统敏捷验证流程的Python模型检验方法

CodoMo: Python Model Checking to Integrate Agile Verification Process of Computer Vision Systems

Yojiro Harie, Yuto Ogata, Gautam Bishnu Prasad, Katsumi Wasaki

AI总结:

本研究提出CodoMo工具,通过AST静态分析与符号执行测试将Python代码自动转为pyModelChecking可用的中间模型,结合多进程方法提升效率,可在保持敏捷开发的同时实现计算机视觉系统的模型检验验证。

摘要:

模型检验是验证有限状态并发系统的基础技术。传统上,模型设计最初是为了促进模型检验的应用而创建的。这一以模型驱动开发(MDD)为代表的流程,是从给定模型生成等效代码,且该模型在实现开始前就经过验证。然而,与敏捷开发方法相比,这种方法速度慢得多,在可扩展性和重构方面缺乏灵活性。我们提出了“CodoMo:面向pyModelChecking的Python代码到模型生成器”。该工具通过AST静态分析器和符号执行测试工具将Python代码自动转换为适合用pyModelChecking进行验证的中间模型,弥合了传统模型检验与敏捷方法之间的差距。此外,我们实现了一种多进程方法,将PyExZ3的执行与Kripke结构的生成集成在一起,实现了更高的工作效率。通过使用CodoMo,我们成功验证了一个带有基于手势的图像处理接口的Tello无人机编程,展示了该工具在增强验证流程的同时,保持当今快节奏开发周期所需敏捷性的强大能力。

英文摘要:

Model checking is a fundamental technique for verifying finite state concurrent systems. Traditionally, model designs were initially created to facilitate the application of model checking. This process, representative of Model Driven Development (MDD), involves generating an equivalent code from a given model which is verified before implementation begins. However, this approach is considerably slower compared to agile development methods and lacks flexibility in terms of expandability and refactoring. We have proposed "CodoMo: Python Code to Model Generator for pyModelChecking." This tool automates the transformation of a Python code by an AST static analyzer and a concolic testing tool into intermediate models suitable for verification with pyModelChecking, bridging the gap between traditional model checking and agile methodologies. Additionally, we have implemented a multiprocess approach that integrates the execution of PyExZ3 with the generation of Kripke structures achieving greater work efficiency. By employing CodoMo, we successfully verified a Tello Drone programming with gesture-based image processing interfaces, showcasing the tool's powerful capability to enhance verification processes while maintaining the agility required for today's fast-paced development cycles.

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

↑