-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1233 from goblint/concrat-both-branches
Fix both branches dead from bot address in array
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// PARAM: --disable sem.unknown_function.invalidate.globals | ||
#include <goblint.h> | ||
struct S { | ||
int *f[1]; | ||
}; | ||
|
||
int main() { | ||
struct S* s; | ||
s = magic(); | ||
|
||
int *p = s->f[0]; | ||
if (p) | ||
__goblint_check(1); // reachable | ||
else | ||
__goblint_check(1); // reachable | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters