Skip to main content
QUICK REVIEW

[Paper Review] Symbolic Execution for Verification

Joxan Jaffar, Jorge A. Navas|arXiv (Cornell University)|Mar 10, 2011
Software Testing and Debugging TechniquesComputer Science9 references3 citations
TL;DR

This paper extends interpolation-based symbolic execution to handle unbounded loops by introducing the minimax algorithm, a lazy loop unrolling technique that incrementally learns strongest invariants through intelligent backtracking. The method outperforms state-of-the-art CEGAR tools like BLAST in detecting real errors quickly and blocks infeasible paths early, showing competitive or superior performance on real-world benchmarks, especially in unsafe cases where it finds counterexamples faster due to aggressive pruning.

ABSTRACT

In previous work, we presented a symbolic execution method which starts with a concrete model of the program but progressively abstracts away details only when these are known to be irrelevant using interpolation. In this paper, we extend the technique to handle unbounded loops. The central idea is to progressively discover the strongest invariants through a process of loop unrolling. The key feature of this technique, called the minimax algorithm, is intelligent backtracking which directs the search for the next invariant. We then present an analysis of the main differences between our symbolic execution method and mainstream techniques mainly based on abstract refinement (CEGAR). Finally, we evaluate our technique against available state-of-the-art systems.

Motivation & Objective

  • To extend interpolation-based symbolic execution to handle unbounded loops, which previous work could not do without user-provided invariants.
  • To develop a lightweight, automated method for discovering the strongest possible loop invariants through lazy unrolling and intelligent backtracking.
  • To compare the proposed Abstraction Learning technique with mainstream CEGAR-based verification methods using academic examples and real programs.
  • To evaluate the prototype tool tracer against BLAST on real-world benchmarks to assess performance and scalability.

Proposed method

  • The minimax algorithm performs lazy loop unrolling by computing path-based invariants at loop-merge points using theorem prover manipulation of explicit constraints.
  • It classifies constraints into 'min' (to be abstracted for subsumption and loop invariance) and 'max' (to be preserved to detect infeasible paths and ensure safety).
  • The algorithm uses interpolants to selectively unroll only where necessary, avoiding loss of precision when strengthening invariants.
  • It employs intelligent backtracking to guide the search for the next invariant, minimizing information loss while ensuring termination when loops are bounded.
  • The approach avoids predicate abstraction and relies on symbolic execution with constraint simplification and abstraction via interpolation.
  • The prototype tracer system models the C heap using arrays with alias analysis and inlining, and is evaluated on instrumented real programs.

Experimental results

Research questions

  • RQ1How can symbolic execution be extended to automatically discover loop invariants in unbounded loops without user-provided annotations?
  • RQ2What are the key differences between interpolation-based symbolic execution and CEGAR-based abstraction refinement in handling loop invariants and path feasibility?
  • RQ3Can a symbolic execution method that aggressively prunes infeasible paths outperform CEGAR-based tools like BLAST in practice?
  • RQ4How does the minimax algorithm’s use of min and max constraints improve precision and performance in loop verification?

Key findings

  • Tracer found real counterexamples in unsafe programs (e.g., tcas-2b-unsafe) up to 1000x faster than BLAST, due to early pruning of infeasible paths.
  • For the tcas-2b-unsafe benchmark, tracer required only 91 exploration nodes and 0.01 seconds, while BLAST needed 40 predicates and 17.46 seconds.
  • In several benchmarks (cdaudio, floppy, serial), BLAST failed with exceptions and aborted, while tracer successfully verified them.
  • On average, tracer was competitive with BLAST, with some examples showing significant speedups, especially in error detection.
  • The minimax algorithm’s ability to compute strongest invariants early reduced exploration space, making it more efficient than BLAST in cases with complex infeasible paths.
  • The method’s performance was robust across diverse programs, with tracer outperforming BLAST in 12 out of 15 benchmarks, particularly in unsafe cases.

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.