mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
311 B
Java
18 lines
311 B
Java
public class A {
|
|
int f1(int x, int y) {
|
|
if (x < 0) {
|
|
return x; // strictly negative
|
|
}
|
|
if (x < y) {
|
|
return y; // y is strictly positive because of the bound on x above
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
void unsigned(int x) {
|
|
char c = (char)x;
|
|
System.out.println(c); // positive
|
|
}
|
|
}
|