FlowRepair: Search-based automated program repair of CPS controllers modeled in Simulink-Stateflow

Read full text
Authors: Aitor Arrieta, Pablo Valle, Shaukat Ali
Cited by: 0
References: 56

Abstract

Context: Stateflow models are widely used in the industry to model the high-level control logic of Cyber-Physical Systems (CPSs) in Simulink. 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. Automated Program Repair (APR) techniques can significantly reduce this cost by automatically generating patches that fix bugs. However, current approaches face scalability issues to be applicable in the CPS context. Objectives: The goal of this paper is to propose an APR method which is scalable for Stateflow models. Method: 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 specifically tailored for repairing CPSs; (3) a set of mutation operators to repair Stateflow models automatically; and (4) an evaluation on a new dataset encompassing 19 faulty stateflow models with real bugs. Results: Our results suggest that (1) FlowRepair can fix bugs in stateflow models; (2) FlowRepair surpasses or performs similarly to a baseline APR technique inspired by a well-known CPS program repair approach. Conclusion: This paper presents the first tool for APR CPSs whose high-level control program is developed in Simulink-Staflow. The results show that the approach is effective and scalable to such complex systems.

Fields of Study & Subjects

Formal Methods in Verification Software Testing and Debugging Techniques Radiation Effects in Electronics

Publication details

Journal / source
Information and Software Technology
Volume
192
Pages
108010–108010
Publication date
6 January 2026
Language
EN