-
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.
Introduce attribute
goblint_stub
for variables to prevent tracking …
…it relationally
- Loading branch information
1 parent
8e5dcef
commit 5ee4216
Showing
3 changed files
with
18 additions
and
3 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
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,15 @@ | ||
//SKIP PARAM: --enable ana.int.interval --sets sem.int.signed_overflow assume_none --set ana.activated[+] apron --enable ana.autotune.enabled | ||
// Check that autotuner respect goblint_stub attributes as hints to not track variables. | ||
#include <goblint.h> | ||
|
||
int main () { | ||
// Normally these appear only inside our stubs to prevent tracking relational information for variables which will never have interesting values associated with them | ||
int x __attribute__((goblint_stub)); | ||
int y __attribute__((goblint_stub)); | ||
|
||
if( x < y) { | ||
__goblint_check(x < y); //UNKNOWN! | ||
} | ||
|
||
return 0; | ||
} |