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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

BIP-based formal verification of embedded real-time operating systems

Yang Xia, Rui Yao, Xinxin Jiang, Yang Zhang et al.
Research Square
Formal Methods in Verification
preprint

BIP-based formal verification of embedded real-time operating systems

Yang Xia, Rui Yao, Xinxin Jiang, Yang Zhang, Xiaoyan Zhao, Xinxu Chang
preprint en

Abstract

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.

Research Square
University of Electronic Science and Technology of China (CN)
Formal Methods in Verification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon