Skip to content

Commit 993a045

Browse files
committed
Extract both branches dead test from concrat/Remotery
1 parent c42ec6b commit 993a045

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// PARAM: --disable sem.unknown_function.invalidate.globals
2+
#include <goblint.h>
3+
struct S {
4+
int *f[1];
5+
};
6+
7+
int main() {
8+
struct S* s;
9+
s = magic();
10+
11+
int *p = s->f[0];
12+
if (p)
13+
__goblint_check(1); // reachable
14+
else
15+
__goblint_check(1); // reachable
16+
return 0;
17+
}

0 commit comments

Comments
 (0)