{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T03:29:57Z","timestamp":1792726197801,"version":"4.5.0"},"reference-count":46,"publisher":"Association for Computing Machinery (ACM)","issue":"5s","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Embed. Comput. Syst."],"published-print":{"date-parts":[[2025,9,30]]},"abstract":"<jats:p>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 article, 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.<\/jats:p>","DOI":"10.1145\/3759251","type":"journal-article","created":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T09:12:39Z","timestamp":1754385159000},"page":"1-25","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Deductive Verification of Cooperative RTOS Applications"],"prefix":"10.1145","volume":"24","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1518-4079","authenticated-orcid":false,"given":"Philip","family":"Tasche","sequence":"first","affiliation":[{"name":"Formal Methods and Tools group, University of Twente","place":["Enschede, Netherlands"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5349-154X","authenticated-orcid":false,"given":"Paula","family":"Herber","sequence":"additional","affiliation":[{"name":"Embedded Systems group, University of M\u00fcnster","place":["M\u00fcnster, Germany"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4467-072X","authenticated-orcid":false,"given":"Marieke","family":"Huisman","sequence":"additional","affiliation":[{"name":"Formal Methods and Tools group, University of Twente","place":["Enschede, Netherlands"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,9,26]]},"reference":[{"key":"e_1_3_3_2_2","doi-asserted-by":"publisher","unstructured":"Philip Tasche Paula Herber and Marieke Huisman. 2025. [Artifact] deductive verification of cooperative RTOS applications. 4TU.ResearchData. DOI:10.4121\/62dcf604-3009-4e09-a002-52c12e9504fa","DOI":"10.4121\/62dcf604-3009-4e09-a002-52c12e9504fa"},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-024-00743-4"},{"key":"e_1_3_3_4_2","volume-title":"The FreeRTOS \\(^{\\text{TM}}\\)  Reference Manual","author":"Services Amazon Web","year":"2017","unstructured":"Amazon Web Services. 2017. The FreeRTOS \\(^{\\text{TM}}\\) Reference Manual. Retrieved from https:\/\/freertos.org\/Documentation\/02-Kernel\/07-Books-and-manual\/01-RTOS_book"},{"key":"e_1_3_3_5_2","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-11(1:2)2015"},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-65630-9_1"},{"key":"e_1_3_3_7_2","volume-title":"Specification of Operating System","year":"2020","unstructured":"AUTOSAR. 2020. Specification of Operating System. Retrieved August 18, 2025 from https:\/\/www.autosar.org\/fileadmin\/standards\/R20-11\/CP\/AUTOSAR_SWS_OS.pdf"},{"key":"e_1_3_3_8_2","volume-title":"Mastering the FreeRTOS Real Time Kernel","author":"Barry Richard","year":"2023","unstructured":"Richard Barry and The FreeRTOS Team. 2023. Mastering the FreeRTOS Real Time Kernel. Retrieved August 18, 2025 from https:\/\/freertos.org"},{"key":"e_1_3_3_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/CoDIT.2018.8394813"},{"key":"e_1_3_3_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66845-1_7"},{"key":"e_1_3_3_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/SBESC56799.2022.9964952"},{"key":"e_1_3_3_12_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-40436-8_13"},{"key":"e_1_3_3_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/3497775.3503681"},{"key":"e_1_3_3_14_2","volume-title":"Proceedings of the Embedded World Exhibition and Conference 2021","author":"Chong Nathan","year":"2021","unstructured":"Nathan Chong and Bart Jacobs. 2021. Formally verifying FreeRTOS\u2019 interprocess communication mechanism. In Proceedings of the Embedded World Exhibition and Conference 2021. Retrieved from https:\/\/www.amazon.science\/publications\/formally-verifying-freertos-interprocess-communication-mechanism"},{"key":"e_1_3_3_15_2","doi-asserted-by":"publisher","unstructured":"Matthias Daum Norbert W. Schirmer and Mareike Schmidt. 2010. From operating-system correctness to pervasively verified applications. In 8th International Conference on Integrated Formal Methods (LNCS). Springer Berlin Heidelberg 105\u2013120. DOI:10.1007\/978-3-642-16265-7_9","DOI":"10.1007\/978-3-642-16265-7_9"},{"key":"e_1_3_3_16_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_3_3_17_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-10452-7_8"},{"key":"e_1_3_3_18_2","first-page":"653","volume-title":"Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation","author":"Gu Ronghui","year":"2016","unstructured":"Ronghui Gu, Zhong Shao, Hao Chen, Xiongnan (Newman) Wu, Jieung Kim, Vilhelm Sj\u00f6berg, and David Costanzo. 2016. CertiKOS: An extensible architecture for building certified concurrent OS kernels. In Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation. USENIX Association, 653\u2013669. Retrieved from https:\/\/www.usenix.org\/conference\/osdi16\/technical-sessions\/presentation\/gu"},{"key":"e_1_3_3_19_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCWAMTIP53232.2021.9674115"},{"key":"e_1_3_3_20_2","doi-asserted-by":"publisher","DOI":"10.1145\/3453417.3453437"},{"key":"e_1_3_3_21_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-17244-1_9"},{"key":"e_1_3_3_22_2","doi-asserted-by":"publisher","DOI":"10.1109\/TASE.2011.11"},{"key":"e_1_3_3_23_2","doi-asserted-by":"publisher","DOI":"10.1109\/IEEESTD.2012.6134619"},{"key":"e_1_3_3_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/1629575.1629596"},{"key":"e_1_3_3_25_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECRTS.2019.8"},{"key":"e_1_3_3_26_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-41131-2_1"},{"key":"e_1_3_3_27_2","doi-asserted-by":"publisher","DOI":"10.1007\/s11390-021-1644-x"},{"key":"e_1_3_3_28_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.sysarc.2024.103220"},{"key":"e_1_3_3_29_2","volume-title":"Design Verification Through Software Architecture Recovery: Meeting ISO 26262 Requirements on Software Using Static Analysis","author":"Molin Oscar","year":"2013","unstructured":"Oscar Molin. 2013. Design Verification Through Software Architecture Recovery: Meeting ISO 26262 Requirements on Software Using Static Analysis. Master\u2019s Thesis. Retrieved from https:\/\/www.diva-portal.org\/smash\/get\/diva2:631065\/FULLTEXT01.pdf"},{"key":"e_1_3_3_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-41528-4_22"},{"key":"e_1_3_3_31_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49122-5_2"},{"key":"e_1_3_3_32_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2006.12.035"},{"key":"e_1_3_3_33_2","doi-asserted-by":"publisher","DOI":"10.1109\/DATE.2010.5457130"},{"key":"e_1_3_3_34_2","volume-title":"OSEK\/VDX Binding Specification","author":"group OSEK","year":"2004","unstructured":"OSEK group. 2004. OSEK\/VDX Binding Specification. Retrieved August 18, 2025 from https:\/\/www.osek-vdx.org\/mirror\/Binding142.pdf"},{"key":"e_1_3_3_35_2","doi-asserted-by":"publisher","DOI":"10.1109\/ARES.2015.14"},{"key":"e_1_3_3_36_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-30826-0_2"},{"key":"e_1_3_3_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/DSD57027.2022.00096"},{"key":"e_1_3_3_38_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-06410-9_48"},{"key":"e_1_3_3_39_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICECCS20050.2012.6299224"},{"key":"e_1_3_3_40_2","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2022.3197501"},{"key":"e_1_3_3_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICACCI.2018.8554955"},{"key":"e_1_3_3_42_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-77382-2_23"},{"key":"e_1_3_3_43_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-50521-8_9"},{"key":"e_1_3_3_44_2","doi-asserted-by":"publisher","DOI":"10.1109\/VLSID.2014.22"},{"key":"e_1_3_3_45_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCP.2008.4648391"},{"key":"e_1_3_3_46_2","doi-asserted-by":"publisher","DOI":"10.1002\/stvr.1662"},{"key":"e_1_3_3_47_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.sysarc.2017.09.008"}],"container-title":["ACM Transactions on Embedded Computing Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3759251","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,8]],"date-time":"2025-10-08T14:29:09Z","timestamp":1759933749000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3759251"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,9,26]]},"references-count":46,"journal-issue":{"issue":"5s","published-print":{"date-parts":[[2025,9,30]]}},"alternative-id":["10.1145\/3759251"],"URL":"https:\/\/doi.org\/10.1145\/3759251","relation":{},"ISSN":["1539-9087","1558-3465"],"issn-type":[{"value":"1539-9087","type":"print"},{"value":"1558-3465","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,9,26]]},"assertion":[{"value":"2025-07-23","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-07-29","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-09-26","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}