-
Notifications
You must be signed in to change notification settings - Fork 77
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 #618 from goblint/ldv-races
ldv-benchmarks races benchmarking
- Loading branch information
Showing
11 changed files
with
129 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"pre": { | ||
"cppflags": [ | ||
"-DGOBLINT_NO_PTHREAD_ONCE", | ||
"-DGOBLINT_NO_QSORT", | ||
"-DGOBLINT_NO_BSEARCH" | ||
] | ||
}, | ||
"ana": { | ||
"sv-comp": { | ||
"enabled": true, | ||
"functions": true | ||
}, | ||
"int": { | ||
"def_exc": true, | ||
"enums": false, | ||
"interval": true | ||
}, | ||
"activated": [ | ||
"base", | ||
"threadid", | ||
"threadflag", | ||
"threadreturn", | ||
"mallocWrapper", | ||
"mutex", | ||
"access", | ||
"escape", | ||
"expRelation", | ||
"mhp" | ||
], | ||
"malloc": { | ||
"wrappers": [ | ||
"kmalloc", | ||
"__kmalloc", | ||
"usb_alloc_urb", | ||
"__builtin_alloca", | ||
"kzalloc", | ||
|
||
"ldv_malloc", | ||
|
||
"kzalloc_node", | ||
"ldv_zalloc", | ||
"kmalloc_array", | ||
"kcalloc", | ||
|
||
"ldv_xmalloc", | ||
"ldv_xzalloc", | ||
"ldv_calloc" | ||
] | ||
} | ||
}, | ||
"witness": { | ||
"id": "enumerate", | ||
"unknown": false | ||
}, | ||
"solver": "td3", | ||
"sem": { | ||
"unknown_function": { | ||
"spawn": false | ||
}, | ||
"int": { | ||
"signed_overflow": "assume_none" | ||
} | ||
} | ||
} |
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
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
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,25 @@ | ||
// PARAM: --set ana.activated[+] var_eq | ||
// ldv-benchmarks: u__linux-concurrency_safety__drivers---net---ethernet---ethoc.ko.cil.c | ||
#include <assert.h> | ||
|
||
struct resource { | ||
char const *name ; | ||
unsigned long flags ; | ||
struct resource *parent ; | ||
struct resource *sibling ; | ||
struct resource *child ; | ||
}; | ||
|
||
struct resource *magic(); | ||
|
||
int main() { | ||
struct resource *res = (struct resource *)0; | ||
res = magic(); | ||
|
||
if (res == (struct resource *)0) | ||
assert(1); // reachable | ||
else | ||
assert(1); // TODO 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// PARAM: --enable ana.int.def_exc --enable ana.int.interval | ||
// ldv-benchmarks: u__linux-concurrency_safety__drivers---net---ethernet---amd---pcnet32.ko.c | ||
#include <assert.h> | ||
|
||
int main() { | ||
int debug_value = -1; | ||
|
||
if ((unsigned int)debug_value > 31U) | ||
assert(1); // reachable | ||
else | ||
assert(1); // NOWARN (unreachable) | ||
|
||
return 0; | ||
} |