mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
These were due to several functions occurring that would have the same TRAP key. By making the functions static the TRAP keys will differ from each other.
46 lines
456 B
C
46 lines
456 B
C
static void always_false_1() {
|
|
while(0) {
|
|
l1:;
|
|
}
|
|
l2:;
|
|
}
|
|
|
|
static void always_false_2() {
|
|
int done = 1;
|
|
while(!done) {
|
|
done = 0;
|
|
}
|
|
}
|
|
|
|
static void always_true_1() {
|
|
while(1) {
|
|
l1:;
|
|
break;
|
|
}
|
|
l2:;
|
|
}
|
|
|
|
static void always_true_2() {
|
|
while(1) {
|
|
l1:;
|
|
break;
|
|
l2:;
|
|
}
|
|
l3:;
|
|
}
|
|
|
|
static void always_true_3() {
|
|
while(1) {
|
|
l1:;
|
|
}
|
|
l2:;
|
|
}
|
|
|
|
static void normal() {
|
|
int i = 0;
|
|
while(i < 10) {
|
|
++i;
|
|
}
|
|
l:;
|
|
}
|