BIP-based formal verification of embedded real-time operating systems
Embedded real-time operating systems (RTOSs) are widely deployed in safety-critical domains where reliability and functional correctness are stringent requirements. This paper reports formal verification of an in-house RTOS and its integration into the development workflow. We use BIP to build requirement-level models of kernel modules, leverage BIP’s C + + linking to emulate native RTOS behavior, and automatically convert model-generated traces into test code executable on the target, providing evidence of observable equivalence over the generated traces. The method was applied to six core modules with 23 properties specified; the 15 target properties of the task-management module were verified in full. Four of five safety properties hold under statistical model checking (error probability 0.001, precision 0.05), deadlock freedom is witnessed by a structural progress guard, and all ten functional properties hold under record-level comparison against the kernel. In total 1,638 traces were replayed as kernel tests; model and implementation agree on call order, arguments, return codes and task-state transitions in all scenarios. Results show that module-level models remain statistically analyzable, trace-derived tests localize divergence to one recorded action in one scenario, and verified modules can be reused and regenerated after kernel changes. It provides an incremental, tool-supported path, not exhaustive whole-kernel verification.
Authors
- Yang Xia (ORCID: https://orcid.org/0009-0000-8742-9157)
- Rui Yao (ORCID: https://orcid.org/0009-0007-7249-5670)
- Xinxin Jiang
- Yang Zhang
- Xiaoyan Zhao
- Xinxu Chang
Institutions
- University of Electronic Science and Technology of China (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-26
- DOI
- https://doi.org/10.21203/rs.3.rs-11671234/v1
- Primary Topic
- Formal Methods in Verification
- Type
- preprint