Skip to main content
QUICK REVIEW

[Paper Review] Comparison between CPBPV, ESC/Java, CBMC, Blast, EUREKA and Why for Bounded Program Verification

Hélène Collavizza, Michel Rueher|ArXiv.org|Aug 11, 2008
Formal Methods in VerificationComputer Science5 references4 citations
TL;DR

This paper evaluates CPBPV, a constraint programming-based framework for bounded program verification, against six established tools—ESC/Java, CBMC, Blast, EUREKA, and Why—on a suite of C and Java benchmarks. It demonstrates CPBPV's superior handling of complex constraints, such as alldifferent and element constraints, and its efficiency in verifying programs with combinatorial logic and nonlinear arithmetic, outperforming model-checking tools in verification time and expressiveness for certain classes of problems.

ABSTRACT

This report describes experimental results for a set of benchmarks on program verification. It compares the capabilities of CPBVP "Constraint Programming framework for Bounded Program Verification" [4] with the following frameworks: ESC/Java, CBMC, Blast, EUREKA and Why.

Motivation & Objective

  • To evaluate the effectiveness and efficiency of CPBPV, a constraint programming framework for bounded program verification, in comparison to established verification tools.
  • To assess the expressiveness and scalability of CPBPV in handling complex program constraints, including combinatorial and nonlinear constraints.
  • To identify limitations in existing tools such as ESC/Java, CBMC, Blast, EUREKA, and Why when verifying programs with intricate conditional logic and array indexing with symbolic expressions.
  • To demonstrate the advantages of constraint programming techniques—especially element constraints and alldifferent constraints—in modular and precise verification of imperative programs.
  • To provide a comprehensive benchmark comparison under identical hardware and input conditions to ensure fair evaluation of verification performance and correctness.

Proposed method

  • CPBPV uses constraint programming techniques to verify program correctness by modeling program states and constraints symbolically, leveraging SAT/SMT solvers for constraint solving.
  • The framework integrates formal specifications (e.g., JML annotations) and translates them into constraint stores that are checked for consistency and validity.
  • For benchmarks, CPBPV processes programs with symbolic variables and constraints, including array indexing with expressions (element constraints) and global constraints like alldifferent.
  • Verification is performed by checking whether the postconditions are entailed under the preconditions and control flow constraints, using constraint propagation and filtering.
  • Input programs were adapted to each tool’s input format: JML for CPBPV, ESC/Java, and Why; C with assertions for CBMC and Blast; and a modified C version for Blast to handle arithmetic expressions.
  • All experiments were run on the same Intel Pentium M 1.86GHz machine with 1.5GB RAM, using official tool releases, with execution times and correctness results recorded.

Experimental results

Research questions

  • RQ1How does CPBPV compare in performance and correctness to ESC/Java, CBMC, Blast, EUREKA, and Why on bounded program verification tasks?
  • RQ2Can CPBPV effectively verify programs with complex conditional logic and combinatorial constraints, such as the triangle classification and sum of squares benchmarks?
  • RQ3What advantages does constraint programming offer over traditional model-checking approaches in verifying array manipulations and symbolic indexing (e.g., element constraints)?
  • RQ4To what extent can CPBPV handle nonlinear arithmetic and global constraints (e.g., alldifferent) that are challenging for SMT-based or model-checking tools?
  • RQ5How does CPBPV’s modular verification capability compare to monolithic verification in terms of scalability and verification time?

Key findings

  • CPBPV successfully verified the triangle classification benchmark with 10 feasible paths, correctly identifying all triangle types and rejecting invalid inputs, while ESC/Java and Why failed due to expression limitations.
  • For the sum of squares benchmark, CPBPV verified arrays of size up to 128 in under 2 seconds, while ESC/Java reported false errors for all sizes, indicating a tool limitation in handling complex arithmetic.
  • CPBPV solved the combinatorial sum of squares of permutations benchmark with an array of size 10 in 66.179 seconds, a task not feasible for EUREKA or CBMC under comparable settings.
  • In modular verification of selection sort, CPBPV completed verification in under 0.01 seconds for array size 40, leveraging element constraints to index arrays with symbolic variables, while EUREKA required 104 seconds on a faster machine.
  • CBMC and Blast struggled with nonlinear and complex arithmetic expressions, with CBMC timing out or reporting false errors on larger inputs, and Blast failing to verify assertions involving arithmetic reasoning.
  • Why and ESC/Java showed limitations in handling complex conditional logic and nonlinear constraints, with ESC/Java returning false errors on the sum of squares benchmark even for small array sizes.

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.