We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096f576 commit 31822d2Copy full SHA for 31822d2
src/castnull.java
src/verification/min_spec.k src/verification/min-spec.ksrc/verification/min_spec.k renamed to src/verification/min-spec.k
@@ -26,7 +26,4 @@ rule
26
<nextLoc> I:Int => ?_:Int </nextLoc>
27
requires X >=Int -2147483648 andBool X <=Int 2147483647 andBool Y >=Int -2147483648 andBool Y <=Int 2147483647
28
29
-endmodule
30
-
31
32
+endmodule
src/verification/min.java
@@ -1,14 +1,14 @@
1
public class min {
2
3
public static void main(String[] args) {
4
+ System.out.println("min of 4 and 5 is" + min(4, 5));
5
}
6
//@min(x,y)==minInt(x,y)
7
static int min(int x, int y)
8
{
9
if (x <= y)
10
return x;
11
else
12
- return x;
+ return y;
13
14
0 commit comments