mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
20 lines
262 B
C
20 lines
262 B
C
int f(int x, int y) {
|
|
if (x < 0) {
|
|
return x;
|
|
}
|
|
if (x < y) {
|
|
return y; // y is strictly positive because of the bound on x above
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int g(int x, int y) {
|
|
if (x < y) {
|
|
return y;
|
|
}
|
|
if (x < 0) {
|
|
return x;
|
|
}
|
|
return 0;
|
|
}
|