-
Notifications
You must be signed in to change notification settings - Fork 88
Fixes for Self-Validation Issues #1641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
051ab66
Add witness cram test
michael-schwarz 0e5043d
Fix `read_global`
michael-schwarz 9fa4e23
Spurious tracing
michael-schwarz d54dfcc
Fix tracing
michael-schwarz cf2641f
Update cram test
michael-schwarz 775c15f
Apron: Do not produce invariants about stale locals that have escaped
michael-schwarz 267f25e
Update tests
michael-schwarz 2fd5321
Enable `warn.deterministic`
michael-schwarz ced9396
Enable deterministic warnings
michael-schwarz 1795a2b
dune promote
michael-schwarz ef51516
Add SKIP to apron tests
michael-schwarz a716017
46/{95,96}: Use only `location_invariant`
michael-schwarz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,19 @@ | ||
| // CRAM PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --set witness.yaml.validate 95-witness-mm-escape.yml | ||
| #include <pthread.h> | ||
| #include <goblint.h> | ||
|
|
||
| int *b; | ||
| pthread_mutex_t e; | ||
|
|
||
| void main() { | ||
|
|
||
| int g = 8; | ||
| int a; | ||
| if(a) { | ||
| g = 10; | ||
| } | ||
|
|
||
| b = &g; | ||
|
|
||
| pthread_mutex_lock(&e); | ||
| } | ||
This file contains hidden or 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,29 @@ | ||
| $ goblint --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.relation.privatization mutex-meet-tid-cluster12 --set witness.yaml.validate 95-witness-mm-escape.yml 95-witness-mm-escape.c | ||
| [Info][Deadcode] Logical lines of code (LLoC) summary: | ||
| live: 7 | ||
| dead: 0 | ||
| total lines: 7 | ||
| [Success][Witness] invariant confirmed: 0 <= g (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: 0 <= *b (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: g <= 127 (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: *b <= 127 (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: -8LL + (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: 2147483648LL + (long long )a >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: (2147483638LL + (long long )a) + (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: (2147483637LL - (long long )a) + (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: 10LL - (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: 2147483647LL - (long long )a >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: (2147483658LL + (long long )a) - (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: (2147483657LL - (long long )a) - (long long )g >= 0LL (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: b == & g (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: g != 0 (95-witness-mm-escape.c:19:1) | ||
| [Success][Witness] invariant confirmed: *b != 0 (95-witness-mm-escape.c:19:1) | ||
| [Info][Witness] witness validation summary: | ||
| confirmed: 30 | ||
| unconfirmed: 0 | ||
| refuted: 0 | ||
| error: 0 | ||
| unchecked: 0 | ||
| unsupported: 0 | ||
| disabled: 0 | ||
| total validation entries: 30 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.