Commit 9260f35a authored by Sarah Grebing's avatar Sarah Grebing

Example Docu

parent 4e279984
Pipeline #17225 passed with stages
in 10 minutes and 13 seconds
......@@ -9,7 +9,7 @@ public class QuickSort extends JavaExample {
setName("Quicksort example");
setHelpText(null);
setHelpText(getClass().getResource("help.html"));
setJavaFile(getClass().
......
......@@ -6,7 +6,7 @@ public class JavaSimpleExample extends JavaExample {
public JavaSimpleExample() {
setName("Simple Java Example");
setJavaFile(this.getClass().getResource("Test.java"));
setJavaFile(this.getClass().getResource("Simple.java"));
defaultInit(getClass());
}
}
public class Test{
public class Simple{
......@@ -6,7 +6,7 @@ public class Test{
@ requires x >= 0;
@ ensures \result >0;
@*/
public int foo(int x){
public int very_simple(int x){
if(x > 0){
x--;
}else{
......
......@@ -3,7 +3,10 @@
<head>
<meta charset="UTF-8">
<title>Java Simple Test Example</title>
This is a simple Java example.
<h1>Very Simple Java Example</h1>
This is a very simple Java example.
Please select the contract <em>Simple:very_simple</em> from the contract list.
</head>
<body>
......
script t1(){
symbex;
foreach{
onestep;
andRight;
foreach{
tryclose;
}
}
// cases{
// case match `?X >= 0,?X > 0 ==>`:
// cut `?X = 0`[?X \ X];
// foreach{
// auto;
// }
// }
}
......@@ -89,7 +89,7 @@ Java method `split` has to be selected. After loading the problem the program to
shown in an own view on the right side, the script is shown on the left side and in the middle the proof obligation and the list of open goals is shown.
Views can be selected and docked to other places on the screen.
Please note that after a succesful loadthe statusbar indicates that the contract was loaded.
Please note that after a succesful load the statusbar indicates that the contract was loaded.
### Setting a breakpoint and starting the Interpreter
......@@ -136,7 +136,7 @@ Your browser does not support the video tag or WebM.
</video>
</center>
In this video we demonstrate the interactive point and click rule applications after selecting the interactive button.We further demonstrate how the interaction is included to the original script.
In this video we demonstrate the interactive point and click rule applications after selecting the interactive button. We further demonstrate how the interaction is included to the original script.
<center>
<video width="80%" controls>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment