Skip to main content
QUICK REVIEW

[Paper Review] Verifying Eiffel Programs with Boogie

Julian Tschannen, Carlo A. Furia|arXiv (Cornell University)|Jun 23, 2011
Logic, programming, and type systemsComputer Science18 references13 citations
TL;DR

This paper presents AutoProof, a static verification tool that translates Eiffel programs with design-by-contract annotations into Boogie for automated verification. It supports advanced OOP features like inheritance, polymorphism, exceptions, and function objects (agents), reduces annotation overhead via automatic frame condition generation, and successfully verifies a range of Eiffel case studies with minimal manual effort.

ABSTRACT

Static program verifiers such as Spec#, Dafny, jStar, and VeriFast define the state of the art in automated functional verification techniques. The next open challenges are to make verification tools usable even by programmers not fluent in formal techniques. This paper presents AutoProof, a verification tool that translates Eiffel programs to Boogie and uses the Boogie verifier to prove them. In an effort to be usable with real programs, AutoProof fully supports several advanced object-oriented features including polymorphism, inheritance, and function objects. AutoProof also adopts simple strategies to reduce the amount of annotations needed when verifying programs (e.g., frame conditions). The paper illustrates the main features of AutoProof's translation, including some whose implementation is underway, and demonstrates them with examples and a case study.

Motivation & Objective

  • To enable practical, usable formal verification for Eiffel programs without requiring deep expertise in formal methods.
  • To reduce the manual annotation burden in program verification, especially for frame conditions and exception handling.
  • To support complex Eiffel language features such as inheritance, polymorphism, function objects (agents), and exception handling in a verified translation pipeline.
  • To integrate with the Eiffel Verification Environment (EVE) for a unified verification workflow.
  • To demonstrate the feasibility of verifying real-world Eiffel programs using automated tools based on intermediate verification languages like Boogie.

Proposed method

  • Translates Eiffel programs annotated with preconditions, postconditions, invariants, and assertions into equivalent Boogie programs.
  • Implements a translation of Eiffel’s unique exception mechanism—featuring rescue clauses and retry logic—into Boogie’s verification framework.
  • Applies syntactic heuristics to infer default frame conditions from postconditions, minimizing explicit frame annotations.
  • Supports advanced Eiffel features including polymorphic inheritance, function objects (agents), and dynamic type resolution.
  • Uses Boogie’s verification back-end to automatically prove correctness properties, including loop invariants and class invariants.
  • Integrates with the EVE environment to combine AutoProof with other verification techniques, including separation logic and interactive provers.

Experimental results

Research questions

  • RQ1Can Eiffel programs with complex object-oriented features be effectively verified using an automated tool based on an intermediate verification language like Boogie?
  • RQ2How can annotation overhead—especially for frame conditions and exception handling—be minimized while maintaining verification soundness?
  • RQ3To what extent can automatic inference of frame conditions and intermediate assertions improve usability without sacrificing verification power?
  • RQ4How well does the translation scale to real-world Eiffel programs with features like inheritance, agents, and exception handling?
  • RQ5Can the integration of AutoProof into a unified verification environment like EVE enhance the overall verification experience and tool synergy?

Key findings

  • AutoProof successfully translates and verifies 11 Eiffel case studies, including examples with exceptions, inheritance, agents, and complex data structures.
  • The average verification time across all examples was 2.76 seconds per program, with the longest case (Calculator) taking 9.73 seconds.
  • Frame conditions were automatically inferred in most cases, reducing the need for manual annotations, with only complex cases requiring explicit frame specifications.
  • The translation correctly models Eiffel’s unique exception mechanism, including retry logic and state restoration in rescue clauses, though full support was still under implementation at the time of writing.
  • The tool demonstrated scalability and usability on real-world Eiffel code, including programs using design patterns like Command and Observer via agents.
  • The integration with EVE enables synergistic use of multiple verification techniques, paving the way for a comprehensive verification stack for Eiffel.

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.