-
Notifications
You must be signed in to change notification settings - Fork 275
Field sensitive goto-symex #2574
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 all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3fb0408
Reinstate symex-deref's `write` parameter
smowton 6e514de
Field-sensitive level-2 SSA renaming
tautschnig ca9fcb7
Temporarily disable field-sensitivity for arrays
smowton 9577be9
Use `..` and `[[]]` for SSA expression field separator
smowton 52d3003
Field sensitivity: avoid inheriting L2 renaming from struct symbols
smowton c964e4c
Apply field-sensitivity expansion after removing derefs
smowton 267e54d
Remove composite object from the constant propagator when a field is …
smowton 3838235
Comment on and clarify field-sensitivity-specific expression transfor…
smowton 3b17634
Move field expansion outside goto_symex_statet::assignment
smowton 8cd443c
field_sensitivityt::get_fields: recurse on operands even when input i…
smowton 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ Test.class | |
--function Test.main --show-vcc | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#3 = \{ \{ \{ "java::GenericSub" \}, NULL, 0 \} \}$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#4 = \{ \{ \{ "java::GenericSub" \}, NULL, 5 \} \}$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#2 = \{ \{ \{ "java::GenericSub" \}, NULL, 0 \} \}$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#2\.\.@Generic\.\[email protected]\.\.@class_identifier = "java::GenericSub"$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#2\.\.@Generic\.\.key = NULL$ | ||
^\{-\d+\} symex_dynamic::dynamic_object1#3\.\.@Generic\.\.x = 5$ | ||
-- | ||
byte_extract_(big|little)_endian | ||
-- | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
KNOWNBUG pthread | ||
CORE pthread | ||
main.c | ||
|
||
^EXIT=0$ | ||
|
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,21 @@ | ||
#include <assert.h> | ||
|
||
struct S | ||
{ | ||
int a; | ||
}; | ||
|
||
int main() | ||
{ | ||
struct S s; | ||
s.a = 1; | ||
|
||
assert(s.a == 1); | ||
|
||
int A[1]; | ||
A[0] = 1; | ||
|
||
assert(A[0] == 1); | ||
|
||
return 0; | ||
} |
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,13 @@ | ||
KNOWNBUG | ||
main.c | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^VERIFICATION SUCCESSFUL$ | ||
(Starting CEGAR Loop|VCC\(s\), 0 remaining after simplification$) | ||
-- | ||
^warning: ignoring | ||
-- | ||
This requires field-sensitive SSA encoding of arrays to pass entirely via | ||
constant propagation (changing the above condition to "1 remaining after | ||
simplification" would also make it pass, but this isn't the point of the test). |
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,34 @@ | ||
struct S | ||
{ | ||
int v; | ||
struct Inner | ||
{ | ||
int x; | ||
} inner; | ||
}; | ||
|
||
struct S works; | ||
|
||
int main() | ||
{ | ||
struct S fails; | ||
|
||
works.v = 2; | ||
fails.v = 2; | ||
|
||
while(works.v > 0) | ||
--(works.v); | ||
|
||
while(fails.v > 0) | ||
--(fails.v); | ||
|
||
__CPROVER_assert(works.inner.x == 0, ""); | ||
|
||
_Bool b; | ||
if(b) | ||
{ | ||
struct S s = {42, {42}}; | ||
} | ||
|
||
return 0; | ||
} |
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,9 @@ | ||
CORE | ||
main.c | ||
--unwind 5 | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^VERIFICATION SUCCESSFUL$ | ||
(Starting CEGAR Loop|VCC\(s\), 0 remaining after simplification$) | ||
-- | ||
^warning: ignoring |
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
2 changes: 0 additions & 2 deletions
2
regression/goto-harness/nondet_elements_longer_lists/test.desc
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
2 changes: 0 additions & 2 deletions
2
regression/goto-harness/nondet_elements_longer_lists_global/test.desc
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
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.