Skip to content

KeY IDE

⚠ not yet verified
Unsupported historical content
This Eclipse integration is no longer supported or maintained. It targeted old Eclipse releases (Indigo/Luna era) and old versions of KeY; the update sites may no longer exist. This page is kept for historical reference.

KeY IDE is an alternative user interface for KeY directly integrated into Eclipse. The goal of this project is to provide the same functionality as the original user interface of KeY. Up to now only the basics (proof tree navigation, auto mode, interactive rule application) are available.

The following sections illustrate the main features of the KeY IDE using screenshots. Each section contains numbered screenshots that explain a usage scenario step by step. Clicking on each picture produces a more detailed view. The screenshots may differ from the latest release.

Prerequisites

The KeY IDE is compatible with Eclipse Indigo (3.7) or newer.

Required update-sites and installation instructions are available in the download area.

Verify a method contract

  1. Select the method to verify.

    Verify a method contract

  2. Start proof via main menu item “KeY, Start Proof”.

    Verify a method contract

  3. Select Application “KeY IDE”.

    Verify a method contract

  4. Select method contract to prove.

    Verify a method contract

  5. Switch to perspective “KeY”.

    Verify a method contract

  6. Do proof directly in Eclipse.

    Verify a method contract

Start auto mode

  1. Change strategy settings if required.

    Start auto mode

  2. Start auto mode via editor specifc toolbar item “Start Auto Mode”.

    Start auto mode

  3. Wait while auto mode is active.

    Start auto mode

  4. Inspect result.

    Start auto mode

Stop auto mode when breakpoint is hit

  1. Define a Line, Method or Java Exception breakpoint, a Watchpoint or a KeY Watchpoint as usual.

    Stop auto mode when breakpoint is hit

  2. Select toolbar item “Stop at Breakpoints” before starting the auto mode.

    Stop auto mode when breakpoint is hit

  3. Auto mode stops when breakpoint is hit.

    Stop auto mode when breakpoint is hit

Apply a rule interactively

  1. Move the mouse over a term and apply a rule via the context menu.

    Apply a rule interactively

Generate a counter example

  1. Select context menu item “Counterexample” of a goal.

    Generate a counter example

  2. Optionally visualize counter example via context menu item “Visualize Model”.

    Generate a counter example

  3. Inspect the visualized counter example.

    Generate a counter example

Generate test cases

  1. Select toolbar item “Generate test cases for open goals”.

    Generate test cases

  2. An additional Java project is created which contains the generated test cases. Follow the instructions in the Reame.txt file to add missing libraries.

    Generate test cases

KeY basics in Eclipse and troubleshooting