mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
36 lines
426 B
C
36 lines
426 B
C
|
|
int z;
|
|
|
|
int pureFun(void) {
|
|
return 3;
|
|
}
|
|
|
|
int imPureFun(void) {
|
|
z++;
|
|
return 4;
|
|
}
|
|
|
|
int strcmp(char *x, char *y);
|
|
int unknownFun(char *x, char *y);
|
|
|
|
void f(int x, int y) {
|
|
if (x && y)
|
|
x++;
|
|
|
|
if (x && y++)
|
|
x++;
|
|
|
|
if (x && pureFun())
|
|
x++;
|
|
|
|
if (x && imPureFun())
|
|
x++;
|
|
|
|
if (x && strcmp("foo", "bar"))
|
|
x++;
|
|
|
|
if (x && unknownFun("foo", "bar"))
|
|
x++;
|
|
}
|
|
|