forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA.java
More file actions
41 lines (34 loc) · 661 Bytes
/
A.java
File metadata and controls
41 lines (34 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public class A {
int f1(int x, int y) {
if (x < 500) {
if (x > 400) {
return x;
}
if (y - 2 == x && y > 300) {
return x + y;
}
if (x != y + 1) {
int sum = x + y; // x <= 400
} else {
if (y > 300) {
int sum = x + y; // 302 <= x <= 400, y = x - 1, 301 <= y <= 399
}
}
if (x > 500) {
return x;
}
}
return 0;
}
int f2(int x, int y, int z) {
if (x < 500) {
if (x > 400) {
return x;
}
if (y == x - 1 && y > 300 && y + 2 == z && z == 350) {
return x + y + z;
}
}
return 0;
}
}