Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions key.ui/examples/heap/FM2024Tutorial/ArrayList/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
example.name = Array List and Linked List
example.path = FM 2024 Tutorial
example.additionalFile.1 = src/List.java
example.additionalFile.2 = src/ArrayList.java
example.additionalFile.3 = src/Node.java
example.additionalFile.4 = src/LinkedList.java
example.additionalFile.5 = src/Test.java

The binary search examples from the paper "The Java verification tool KeY: A tutorial" presented as the Formal Methods Symposium 2024 in Milan.

@author Bernhard Beckert, Richard Bubel, Daniel Drodt, Reiner Hähnle, Florian Lanzinger, Wolfram Pfeifer, Mattias Ulbrich, Alexander Weigl

This example contains an interface for a List with operations "size", "get", "add", and "find." The interface is implemented as an ArrayList and a LinkedList of Nodes and highlights the usage of ghost fields and dynamic frames.

Some proofs need manual proof interaction to close.
11 changes: 11 additions & 0 deletions key.ui/examples/heap/FM2024Tutorial/BinarySearch/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
example.name = Binary Search
example.path = FM 2024 Tutorial
example.additionalFile.1 = src/BinSearch.java

The binary search examples from the paper "The Java verification tool KeY: A tutorial" presented as the Formal Methods Symposium 2024 in Milan.

@author Bernhard Beckert, Richard Bubel, Daniel Drodt, Reiner Hähnle, Florian Lanzinger, Wolfram Pfeifer, Mattias Ulbrich, Alexander Weigl

Binary search returns the index of a given element in a sorted array if it exists.

The example contains two implementations of binary search: recursive and iterative. The former return -1 if the element is not found; the latter throws an exception in that case. Both example close without user interaction.
2 changes: 1 addition & 1 deletion key.ui/examples/heap/removeDups/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ example.path = Getting Started
example.additionalFile.1 = RemoveDup.unspecified
example.additionalFile.2 = RemoveDup.java

This is a simple excercise for JML and KeY.
This is a simple exercise for JML and KeY.

@author Mattias Ulbrich

Expand Down
4 changes: 4 additions & 0 deletions key.ui/examples/index/samplesIndex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ firstTouch/09-Quicktour/README.txt
firstTouch/10-SITA/README.txt
firstTouch/11-StateMerging/README.txt

# FM 2024 Tutorial
heap/FM2024Tutorial/BinarySearch/README.txt
heap/FM2024Tutorial/ArrayList/README.txt

# Java Features
Java/MultiCatch/README.txt
Java/Records/README.txt
Expand Down
Loading