-
Notifications
You must be signed in to change notification settings - Fork 75
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 #924 from goblint/fix_address_meet
Fix address set meet
- Loading branch information
Showing
2 changed files
with
105 additions
and
7 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,26 @@ | ||
// PARAM: --enable annotation.int.enabled | ||
// This option enables ALL int domains for globals | ||
#include <stdlib.h> | ||
#include <goblint.h> | ||
struct slotvec { | ||
size_t size ; | ||
char *val ; | ||
}; | ||
static char slot0[256] ; | ||
static struct slotvec slotvec0 = {sizeof(slot0), slot0}; | ||
|
||
static void install_signal_handlers(void) | ||
{ | ||
{ if(!(slotvec0.val == & slot0[0LL])) { reach_error(); abort(); } }; | ||
} | ||
|
||
int main(int argc , char **argv ) | ||
{ | ||
// Goblint used to consider both branches in this condition to be dead, because the meet on addresses with different active int domains was broken | ||
{ if(!(slotvec0.val == & slot0[0LL])) { reach_error(); abort(); } }; | ||
install_signal_handlers(); | ||
|
||
// Should be reachable | ||
__goblint_check(1); | ||
return 0; | ||
} |