mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
33 lines
349 B
Java
33 lines
349 B
Java
class Test {
|
|
int field;
|
|
|
|
int f(int param) {
|
|
field = 3;
|
|
int x = 1;
|
|
int y;
|
|
int z;
|
|
if (param > 2) {
|
|
x++;
|
|
y = ++x;
|
|
z = 3;
|
|
} else {
|
|
y = 2;
|
|
y += 4;
|
|
field = 10;
|
|
z = 4;
|
|
}
|
|
;
|
|
while (x < y) {
|
|
if (param++ > 4) {
|
|
break;
|
|
}
|
|
y -= 1;
|
|
}
|
|
;
|
|
for (int i = 0; i<10; i++) {
|
|
x += i;
|
|
}
|
|
;
|
|
return x + y;
|
|
}
|
|
} |