Skip to main content
QUICK REVIEW

[Paper Review] Property-based Code Slicing for Efficient Verification of OSEK/VDX Operating Systems

Mingyu Park, Taejoon Byun|arXiv (Cornell University)|Jan 1, 2013
Real-time simulation and control systemsEngineering7 citations
TL;DR

This paper proposes a property-based code slicing technique to automate environment model generation and kernel abstraction for efficient verification of OSEK/VDX automotive operating systems. By leveraging static analysis to extract function dependencies and constraints from the OSEK/VDX standard and kernel call structure, the method reduces verification targets and enables effective integration of model checking (CBMC) and random testing, significantly improving fault detection and efficiency on the Trampoline OS case study.

ABSTRACT

Testing is a de-facto verification technique in industry, but insufficient for identifying subtle issues due to its optimistic incompleteness. On the other hand, model checking is a powerful technique that supports comprehensiveness, and is thus suitable for the verification of safety-critical systems. However, it generally requires more knowledge and cost more than testing. This work attempts to take advantage of both techniques to achieve integrated and efficient verification of OSEK/VDX-based automotive operating systems. We propose property-based environment generation and model extraction techniques using static code analysis, which can be applied to both model checking and testing. The technique is automated and applied to an OSEK/VDX-based automotive operating system, Trampoline. Comparative experiments using random testing and model checking for the verification of assertions in the Trampoline kernel code show how our environment generation and abstraction approach can be utilized for efficient fault-detection.

Motivation & Objective

  • To address the high cost and complexity of verifying safety-critical OSEK/VDX-based automotive operating systems.
  • To reduce verification effort by minimizing the kernel code and environment model through automated static analysis.
  • To improve fault detection efficiency by focusing on code paths relevant to specific safety properties.
  • To enable collaborative verification using model checking and random testing with a unified, property-driven environment model.

Proposed method

  • Applying backward slicing from target properties to identify top-level functions with direct dependency.
  • Using forward slicing to compute the cone of influence and extract relevant code segments.
  • Imposing external constraints from the OSEK/VDX standard and internal constraints from function call structures to generate valid, non-deterministic function-call sequences.
  • Automating environment model and kernel abstraction using the static analysis tool Understand.
  • Reducing the verification target to only extracted functions and their pre-processing code for efficient model checking and testing.
  • Integrating the generated models with CBMC for formal verification and with random testing for stress testing.

Experimental results

Research questions

  • RQ1How can environment models be automatically generated to reduce verification cost in OSEK/VDX-based systems?
  • RQ2To what extent does property-based code slicing improve test coverage and fault detection in embedded operating systems?
  • RQ3How can model checking and random testing be collaboratively applied using a unified environment model?
  • RQ4What are the relative strengths and limitations of CBMC, root-level, and end-level random testing in detecting subtle faults?
  • RQ5How can code abstraction via slicing improve the scalability of formal verification for real-time kernels?

Key findings

  • The property-based environment generation technique reduced the verification target size by focusing only on code paths relevant to the property under analysis.
  • End-Level Random Testing successfully detected overflow-related faults in task activation counting, which were missed by CBMC due to resource constraints on unwinding depth.
  • CBMC achieved the highest comprehensiveness but was limited by exponential cost growth with increasing unwinding depth.
  • Root-Level Random Testing was less effective for stress testing due to dependency on a fixed OIL configuration file.
  • API-Level Random Testing provided immediate feedback without additional analysis, making it suitable for rapid fault localization after detection.
  • The collaborative workflow—starting with End-Level Random Testing, followed by Root-Level testing, and concluding with CBMC—proved effective for identifying and verifying subtle safety issues.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.