Skip to content

Commit 31822d2

Browse files
committed
correct typo in min
1 parent 096f576 commit 31822d2

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

src/castnull.java

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@ rule
2626
<nextLoc> I:Int => ?_:Int </nextLoc>
2727
requires X >=Int -2147483648 andBool X <=Int 2147483647 andBool Y >=Int -2147483648 andBool Y <=Int 2147483647
2828

29-
endmodule
30-
31-
32-
29+
endmodule

src/verification/min.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
public class min {
22

33
public static void main(String[] args) {
4-
4+
System.out.println("min of 4 and 5 is" + min(4, 5));
55
}
66
//@min(x,y)==minInt(x,y)
77
static int min(int x, int y)
88
{
99
if (x <= y)
1010
return x;
1111
else
12-
return x;
12+
return y;
1313
}
1414
}

0 commit comments

Comments
 (0)