mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
24 lines
437 B
C++
24 lines
437 B
C++
// semmle-extractor-options: -std=c++17
|
|
|
|
long __builtin_expect(long);
|
|
|
|
void f(int *v) {
|
|
int *w;
|
|
bool b;
|
|
|
|
if (v) {}
|
|
if (!v) {}
|
|
if (v == 0) {}
|
|
if ((!v) == 0) {}
|
|
if (v != 0) {}
|
|
if ((!v) != 0) {}
|
|
if(__builtin_expect((long)v)) {}
|
|
if(__builtin_expect((long)!v)) {}
|
|
if (true && v) {}
|
|
if (v && true) {}
|
|
if (true && !v) {}
|
|
if (!v && true) {}
|
|
if (b = !v) {}
|
|
if (b = !v; b) {}
|
|
}
|