对以 Simulink-Stateflow 建模的 CPS 控制器进行基于搜索的自动化程序修复
Search-based Automated Program Repair of CPS Controllers Modeled in Simulink-Stateflow
AI总结:
针对 Simulink-Stateflow 控制器故障修复依赖人工且现有 APR 难以扩展的问题,提出结合全局与局部搜索、CPS 修复目标及变异算子的 FlowRepair,并在九个故障模型上验证其有效性。
摘要:
Stateflow 模型在工业界被广泛用于在 Simulink——事实上的 CPS 仿真器——中对信息物理系统(CPS)的高层控制逻辑进行建模。现有许多方法可用于测试 Simulink 模型,但一旦检测到故障,修复过程仍然依赖人工。这种人工过程会增加软件开发成本,因此开发能够降低该成本的新技术至关重要。自动化程序修复(APR)技术能够通过自动生成补丁显著缩短修复缺陷所需的时间。然而,当前方法在适用于 CPS 场景时面临可扩展性问题。为解决这一问题,我们提出了一种名为 FlowRepair 的基于搜索的自动化方法,该方法明确针对修复 Stateflow 模型而设计。FlowRepair 的新颖性包括:(1)一种结合全局搜索与局部搜索以生成补丁的新算法;(2)一组专为修复 CPS 而设计的新型修复目标(例如故障保持激活的时间);以及(3)一组用于自动修复 Stateflow 模型的变异算子。我们使用三个不同的案例研究系统以及总计九个有故障的 Stateflow 模型对 FlowRepair 进行了评估。实验表明:(1)FlowRepair 能够修复 Stateflow 模型中的缺陷,包括具有多个故障的模型;(2)FlowRepair 优于一种受知名 CPS 程序修复方法启发的基线 APR 技术,或与其表现相近。此外,我们同时提供了复现包和在线仓库,为在 Simulink 中建模的 CPS 的 APR 铺平了道路。
英文摘要:
Stateflow models are widely used in the industry to model the high-level control logic of Cyber-Physical Systems (CPSs) in Simulink--the defacto CPS simulator. Many approaches exist to test Simulink models, but once a fault is detected, the process to repair it remains manual. Such a manual process increases the software development cost, making it paramount to develop novel techniques that reduce this cost. Automated Program Repair (APR) techniques can significantly reduce the time for fixing bugs by automatically generating patches. However, current approaches face scalability issues to be applicable in the CPS context. To deal with this problem, we propose an automated search-based approach called FlowRepair, explicitly designed to repair Stateflow models. The novelty of FlowRepair includes, (1) a new algorithm that combines global and local search for patch generation; (2) a definition of novel repair objectives (e.g., the time a fault remained active) specifically designed for repairing CPSs; and (3) a set of mutation operators to repair Stateflow models automatically. We evaluated FlowRepair with three different case study systems and a total of nine faulty stateflow models. Our experiments suggest that (1) Flo wRepaircan fix bugs in stateflow models, including models with multiple faults; (2) FlowRepair surpasses or performs similarly to a baseline APR technique inspired by a well-known CPS program repair approach. Besides, we provide both a replication package and a live repository, paving the way towards the APR of CPSs modeled in Simulink.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。