Deductive Verification of Cooperative RTOS Applications. Tasche, P., Herber, P., & Huisman, M. ACM Trans. Embed. Comput. Syst., Association for Computing Machinery, New York, NY, USA, August, 2025. Just Accepted
Deductive Verification of Cooperative RTOS Applications [link]Paper  doi  abstract   bibtex   1 download  
Embedded systems are used in many safety-critical domains, including in medicine, traffic and critical infrastructure. Due to the strict timing requirements such systems usually have to fulfill, they often run on real-time operating systems (RTOS). As the RTOS influences the function and the timing behavior of the system, it becomes important to rigorously ensure the correctness and safety of applications running on them while taking into account the semantics of the operating system. Existing verification approaches are either limited to specific RTOS components or based on explicit state space exploration techniques such as model checking, which do not scale well for concurrent or timed applications. In this paper, we propose a deductive approach to verify crucial safety properties about applications written for the widely-used RTOS FreeRTOS using the VerCors verifier. Our key ideas are threefold: 1) We provide a formalization of a wide variety of FreeRTOS features and an automatic encoding of FreeRTOS applications for verification with VerCors. 2) We adapt and enhance an existing approach for automatic invariant generation to largely automate the typically high-effort verification process. 3) We present a systematic technique to verify both functional and timing-related properties of cooperative RTOS applications. We demonstrate the applicability of our approach on a FreeRTOS demo application as well as an adaptive cruise control system.
@article{10.1145/3759251,
author = {Tasche, Philip and Herber, Paula and Huisman, Marieke},
title = {Deductive Verification of Cooperative RTOS Applications},
year = {2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
issn = {1539-9087},
url = {https://doi.org/10.1145/3759251},
doi = {10.1145/3759251},
abstract = {Embedded systems are used in many safety-critical domains, including in medicine, traffic and critical infrastructure. Due to the strict timing requirements such systems usually have to fulfill, they often run on real-time operating systems (RTOS). As the RTOS influences the function and the timing behavior of the system, it becomes important to rigorously ensure the correctness and safety of applications running on them while taking into account the semantics of the operating system. Existing verification approaches are either limited to specific RTOS components or based on explicit state space exploration techniques such as model checking, which do not scale well for concurrent or timed applications. In this paper, we propose a deductive approach to verify crucial safety properties about applications written for the widely-used RTOS FreeRTOS using the VerCors verifier. Our key ideas are threefold: 1) We provide a formalization of a wide variety of FreeRTOS features and an automatic encoding of FreeRTOS applications for verification with VerCors. 2) We adapt and enhance an existing approach for automatic invariant generation to largely automate the typically high-effort verification process. 3) We present a systematic technique to verify both functional and timing-related properties of cooperative RTOS applications. We demonstrate the applicability of our approach on a FreeRTOS demo application as well as an adaptive cruise control system.},
note = {Just Accepted},
journal = {ACM Trans. Embed. Comput. Syst.},
month = aug,
keywords = {deductive verification, embedded systems, real time, RTOS}
}

Downloads: 1