Skip to main content
QUICK REVIEW

[Paper Review] Regression Testing of Virtual Prototypes Using Symbolic Execution

Bin Lin, Dejun Qian|arXiv (Cornell University)|Jan 22, 2016
Software Testing and Debugging TechniquesComputer Science26 references5 citations
TL;DR

This paper proposes a symbolic execution-based approach for regression testing of virtual prototypes across software versions. By collecting path constraints from the new version and using them to guide symbolic execution in the old version, the method systematically compares device states to detect behavioral differences, demonstrating high efficiency and effectiveness in identifying regressions in a real-world virtual prototype.

ABSTRACT

Recently virtual platforms and virtual prototyping techniques have been widely applied for accelerating software development in electronics companies. It has been proved that these techniques can greatly shorten time-to-market and improve product quality. One challenge is how to test and validate a virtual prototype. In this paper, we present how to conduct regression testing of virtual prototypes in different versions using symbolic execution. Suppose we have old and new versions of a virtual prototype, we first apply symbolic execution to the new version and collect all path constraints. Then the collected path constraints are used for guiding the symbolic execution of the old version. For each path explored, we compare the device states between two versions to check if they behave the same. We have applied this approach to a widely-used virtual prototype and detected numerous differences. The experimental results show that our approach is useful and efficient.

Motivation & Objective

  • To address the challenge of validating virtual prototypes during iterative development cycles in electronics and embedded systems.
  • To reduce the effort and risk of manual regression testing by automating the detection of behavioral differences between old and new versions of virtual prototypes.
  • To improve time-to-market and product quality by enabling early and precise identification of regressions in virtual platforms.
  • To provide a scalable and precise method for verifying functional consistency across virtual prototype versions using symbolic execution.

Proposed method

  • Symbolic execution is applied to the new version of a virtual prototype to extract all path constraints along execution paths.
  • The collected path constraints from the new version are reused to guide symbolic execution in the old version, ensuring equivalent path exploration.
  • For each corresponding path in both versions, device states (e.g., register values, memory contents) are compared to detect behavioral discrepancies.
  • The approach leverages symbolic execution's ability to explore multiple input paths simultaneously, increasing test coverage and precision.
  • A constraint solver is used to generate inputs that satisfy path constraints, enabling systematic exploration of complex control flows.
  • The method is integrated into a virtual platform environment to support real-world validation of embedded software.

Experimental results

Research questions

  • RQ1Can symbolic execution effectively identify behavioral regressions between different versions of a virtual prototype?
  • RQ2How can path constraints from a new version be reused to guide testing of an older version?
  • RQ3What is the scalability and precision of this approach in detecting functional differences in real-world virtual prototypes?
  • RQ4How does this method compare to traditional regression testing in terms of test coverage and false positive rates?

Key findings

  • The approach successfully detected numerous behavioral differences between the old and new versions of a widely used virtual prototype.
  • The method achieved high test coverage by systematically exploring paths guided by constraints from the new version.
  • The use of symbolic execution reduced the need for manual test case creation and improved the precision of regression testing.
  • The experimental evaluation confirmed the approach's efficiency and practicality in real embedded systems development workflows.

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.